Skip to main content

Module tool

Module tool 

Source
Expand description

Tool/function calling types. Tool/function calling types for LLM APIs.

Provides the core types for defining tools, making tool calls, and returning results — compatible with OpenAI and Anthropic function calling APIs.

Structs§

ToolCall
A tool call requested by the LLM during generation.
ToolDefinition
Definition of a tool/function that an LLM can invoke.
ToolResult
Result of executing a tool call, to be sent back to the LLM.