ToolFunction
Types for defining tools, functions, and their execution configurations.Overview
Tool types define how LLMs can call external functions, including schemas, parameters, HTTP configurations, and retry logic.ToolFunction
Tool function definition with schema and optional HTTP request configuration.Fields
The function definition containing the schema. See ToolFunctionDefinition.
Optional HTTP request configuration for executing the function via REST API. See FunctionRequestHttp.
Example
ToolFunctionDefinition
See the dedicated ToolFunctionDefinition page for full documentation. Wrapper for a function schema within a tool definition.Fields
The function schema. Aliased as
schema in JSON — use var_schema in Python to avoid collision with the Python reserved word.Example
FunctionSchema
See the dedicated FunctionSchema page for full documentation. Function/tool schema definition for LLM function calling.Fields
Function name. Must match
^[a-zA-Z0-9_]{1,64}$ (alphanumeric and underscores, max 64 chars).Whether to enforce strict schema validation. When
True, the LLM must conform exactly to the parameter schema.Example
FunctionRequestHttp
HTTP request configuration for executing functions via REST API.Fields
Optional retry configuration. See FunctionRequestRetry.