Expand description
Core tool system for AI agents
This module provides a unified, schema-driven tool system that enables:
- Type-safe tool definitions with JSON Schema support
- Automatic serialization to LLM-specific formats (OpenAI, Anthropic, Gemini)
- Tool registry for discovery and introspection
- Context pattern for state access in tool implementations
Structs§
- Tool
Context - Context provided to tool implementations for accessing agent state and utilities
- Tool
Parameter Schema - JSON Schema definition for tool parameters
- Tool
Registry - Tool registry for managing and discovering available tools
- Tool
Schema - Complete schema definition for a tool
Enums§
- Tool
Result - Result of a tool invocation
Traits§
- Tool
- Core trait for tool implementations
Type Aliases§
- ToolBox
- Type alias for boxed tool instances