The definition of a tool message.

interface TextChatMessagesTextChatMessageTool {
    content: string;
    role: "tool";
    tool_call_id: string;
}

Hierarchy (view full)

Properties

content: string

The contents of the tool message.

role: "tool"

The role of the messages author. Note that this parameter is case sensitive, make sure to use lower case.

tool_call_id: string

Tool call that this message is responding to.