Expand description
Tool abstractions for agent function calling.
Provides base traits and types for tool integration:
BaseTool: String-based tool interface (object-safe)Tool: Type-safe generic tool interfaceToolDefinition: LLM function calling definitionToolRegistry: Tool collection and lookup
Structs§
- Function
Call - Function call inside a ToolCall
- Function
Definition - Function definition inside a tool
- Structured
Output - Wrapper for parsing structured JSON output from LLM responses.
- Structured
Tool - Structured tool wrapper.
- Tool
Call - Tool call from LLM response
- Tool
Call Builder - Builder for constructing a
ToolCallfield by field. - Tool
Call Result - Tool call result to send back to LLM
- Tool
Definition - Tool definition for LLM function calling
- Tool
Registry - Tool registry for storing and managing multiple tool instances.
Enums§
- Tool
Error - Tool error type.
Traits§
Functions§
- to_
tool_ definition - Converts BaseTool to ToolDefinition (for function calling).