A tool message in a chat.

interface ChatsToolMessage {
    content: string | ChatsTextContentPart[];
    role: "tool";
    tool_call_id: string;
}

Properties

content: string | ChatsTextContentPart[]

Content of a tool message.

role: "tool"

Role of the messages author, in this case should always be "tool".

tool_call_id: string

ToolCallID is the tool call that this message is responding to.