FunctionTool interface
在自己的代码中定义模型可以选择调用的函数。 详细了解 函数调用。
- 扩展
属性
| defer_loading | 该函数是否通过工具搜索推迟和加载。 |
| description | 函数工具的描述。 |
| name | 要调用的函数名称。 |
| parameters | 函数的参数模式。 |
| strict | 函数参数是否必须严格匹配参数模式。 |
| type | 函数工具的类型。 始终为 |
属性详细信息
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"