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

FunctionTool interface

在自己的代码中定义模型可以选择调用的函数。 详细了解 函数调用

扩展

属性

defer_loading

该函数是否通过工具搜索推迟和加载。

description

函数工具的描述。

name

要调用的函数名称。

parameters

函数的参数模式。

strict

函数参数是否必须严格匹配参数模式。

type

函数工具的类型。 始终为 function

属性详细信息

defer_loading

该函数是否通过工具搜索推迟和加载。

defer_loading?: boolean

属性值

boolean

description

函数工具的描述。

description?: string

属性值

string

name

要调用的函数名称。

name: string

属性值

string

parameters

函数的参数模式。

parameters: Record<string, unknown>

属性值

Record<string, unknown>

strict

函数参数是否必须严格匹配参数模式。

strict: boolean

属性值

boolean

type

函数工具的类型。 始终为 function

type: "function"

属性值

"function"