FunctionTool interface
Defines a function in your own code the model can choose to call. Learn more about function calling.
- Extends
Properties
| description | |
| name | The name of the function to call. |
| parameters | |
| strict | |
| type | The type of the function tool. Always |
Property Details
description
description?: string
Property Value
string
name
The name of the function to call.
name: string
Property Value
string
parameters
parameters: Record<string, any>
Property Value
Record<string, any>
strict
strict: boolean
Property Value
boolean
type
The type of the function tool. Always function.
type: "function"
Property Value
"function"