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[]