Module tools

Module tools 

Source
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§

ToolContext
Context provided to tool implementations for accessing agent state and utilities
ToolParameterSchema
JSON Schema definition for tool parameters
ToolRegistry
Tool registry for managing and discovering available tools
ToolSchema
Complete schema definition for a tool

Enums§

ToolResult
Result of a tool invocation

Traits§

Tool
Core trait for tool implementations

Type Aliases§

ToolBox
Type alias for boxed tool instances