共用方式為


ChatRequestToolMessage interface

代表已設定工具所要求輸出的要求聊天訊息。

Extends

屬性

content

訊息的內容。

role

與此訊息相關聯的聊天角色,一律是工具訊息的「工具」。

tool_call_id

所提供內容解析之工具呼叫的標識碼。

屬性詳細資料

content

訊息的內容。

content?: string

屬性值

string

role

與此訊息相關聯的聊天角色,一律是工具訊息的「工具」。

role: "tool"

屬性值

"tool"

tool_call_id

所提供內容解析之工具呼叫的標識碼。

tool_call_id: string

屬性值

string