FunctionToolParam interface
model interface FunctionToolParam
属性
| allowed_callers | 调用者可能会直接或程序化调用该函数工具。 |
| async | 工具响应是否可以异步返回,还是在下一次响应创建时立即返回。 |
| defer_loading | 是否应推迟此功能,并通过工具搜索发现。 |
| description | 函数的描述帮助模型决定何时以及如何调用它。 |
| name | 该名称用于工具调用中识别该函数。 |
| output_schema | 描述函数输出的 JSON 模式。 |
| parameters | 描述函数接受参数的 JSON 模式。 |
| strict | 函数参数是否必须严格匹配参数模式。 |
| type | 函数工具的类型。 始终为 |
属性详细信息
allowed_callers
async
工具响应是否可以异步返回,还是在下一次响应创建时立即返回。
async?: boolean
属性值
boolean
defer_loading
是否应推迟此功能,并通过工具搜索发现。
defer_loading?: boolean
属性值
boolean
description
函数的描述帮助模型决定何时以及如何调用它。
description?: string
属性值
string
name
该名称用于工具调用中识别该函数。
name: string
属性值
string
output_schema
描述函数输出的 JSON 模式。
output_schema?: Record<string, any>
属性值
Record<string, any>
parameters
strict
函数参数是否必须严格匹配参数模式。
strict?: boolean
属性值
boolean
type
函数工具的类型。 始终为 function。
type: "function"
属性值
"function"