你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChatResponseMessageOutput interface

响应中收到的聊天消息的表示形式。

属性

content

消息的内容。

role

与消息关联的聊天角色。

可能的值:“system”、“user”、“assistant”、“tool”、“developer”

tool_calls

必须解析的工具调用并将其输出追加到后续输入消息中,以便聊天完成请求按配置解析。

属性详细信息

content

消息的内容。

content: null | string

属性值

null | string

role

与消息关联的聊天角色。

可能的值:“system”、“user”、“assistant”、“tool”、“developer”

role: string

属性值

string

tool_calls

必须解析的工具调用并将其输出追加到后续输入消息中,以便聊天完成请求按配置解析。

tool_calls?: ChatCompletionsToolCallOutput[]

属性值