ChatResponseMessageOutput interface
回應中收到的聊天訊息表示法。
屬性
content | 訊息的內容。 |
role | 與訊息相關聯的聊天角色。 可能的值:“system”、“user”、“assistant”、“tool” |
tool_calls | 必須解析的工具呼叫,並將其輸出附加至後續的輸入訊息,以供聊天完成要求解析為已設定。 |
屬性詳細資料
content
訊息的內容。
content: null | string
屬性值
null | string
role
與訊息相關聯的聊天角色。
可能的值:“system”、“user”、“assistant”、“tool”
role: string
屬性值
string
tool_calls
必須解析的工具呼叫,並將其輸出附加至後續的輸入訊息,以供聊天完成要求解析為已設定。
tool_calls?: ChatCompletionsToolCallOutput[]