Skip to main content

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.
Example:

ToolFunctionDefinition

See the dedicated ToolFunctionDefinition page for full documentation. Wrapper for a function schema within a tool definition.
Example:

FunctionSchema

See the dedicated FunctionSchema page for full documentation. Function/tool schema definition for LLM function calling.
Example:
JSON:

FunctionRequestHttp

HTTP request configuration for executing functions via REST API.
Example:
JSON:

FunctionRequestRetry

Retry configuration with exponential backoff.
Example:

Complete Example