Skip to main content

ToolFunctionDefinition

Wraps a FunctionSchema inside a ToolFunction. Each tool in deployment.prompt.tools has a definition of this type.

Import

Fields

var_schema
FunctionSchema
required
The function schema. Aliased as schema in JSON — use var_schema in Python to avoid collision with the Python reserved word. See FunctionSchema.

Example

Accessing from a deployment