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

RealtimeConversationItemFunctionCall interface

实时对话中的函数调用项。

扩展

属性

arguments

函数调用的参数。 这是一个JSON编码的字符串,表示传递给函数的参数,例如 {"arg1": "value1", "arg2": 42}。

call_id

函数调用的ID。

created_at

Unix 时间戳(以秒为单位)表示该项目被持久化的时间。

id

物品的唯一ID。 这些数据可以由客户端提供,也可以由服务器生成。

name

要调用的函数的名称。

object

返回的API对象标识符——始终 realtime.item为。 创建新物品时可选项。

response_id

产生本项目的响应ID(适用时)。

status

项目的状态。 对对话没有影响。

type

项的类型。 始终为 function_call。

属性详细信息

arguments

函数调用的参数。 这是一个JSON编码的字符串,表示传递给函数的参数,例如 {"arg1": "value1", "arg2": 42}。

arguments: string

属性值

string

call_id

函数调用的ID。

call_id?: string

属性值

string

created_at

Unix 时间戳(以秒为单位)表示该项目被持久化的时间。

created_at?: Date

属性值

Date

id

物品的唯一ID。 这些数据可以由客户端提供,也可以由服务器生成。

id?: string

属性值

string

name

要调用的函数的名称。

name: string

属性值

string

object

返回的API对象标识符——始终 realtime.item为。 创建新物品时可选项。

object?: "realtime.item"

属性值

"realtime.item"

response_id

产生本项目的响应ID(适用时)。

response_id?: string

属性值

string

status

项目的状态。 对对话没有影响。

status?: "in_progress" | "completed" | "incomplete"

属性值

"in_progress" | "completed" | "incomplete"

type

项的类型。 始终为 function_call。

type: "function_call"

属性值

"function_call"