FunctionTool interface
在您自己的程式代碼中定義函式,模型可以選擇呼叫。 深入瞭解 函式呼叫。
- Extends
屬性
| description | |
| name | 要呼叫的函式名稱。 |
| parameters | |
| strict | |
| type | 函式工具的類型。 一律為 |
屬性詳細資料
description
description?: string
屬性值
string
name
要呼叫的函式名稱。
name: string
屬性值
string
parameters
parameters: Record<string, any>
屬性值
Record<string, any>
strict
strict: boolean
屬性值
boolean
type
函式工具的類型。 一律為 function。
type: "function"
屬性值
"function"