interface ChatCompletionToolMessageParam {
    content: string | ChatCompletionContentPartText[];
    role: "tool";
    tool_call_id: string;
}

Properties

content: string | ChatCompletionContentPartText[]

The contents of the tool message.

role: "tool"

The role of the messages author, in this case tool.

tool_call_id: string

Tool call that this message is responding to.