Skip to main content

Module tool

Module tool 

Source
Expand description

Tool layer implementation

This module provides a clear separation of concerns for tool functionality:

  • spec: Tool schema definitions (ToolSpec, ToolCall, ToolResult)
  • dispatch: Tool routing and registry (ToolRegistry)
  • helpers: Shared utility functions
  • tools: Builtin tool modules, one per tool

Re-exports§

pub use dispatch::ToolRegistry;
pub use error::ToolError;
pub use spec::ToolCall;
pub use spec::ToolResult;
pub use spec::ToolSpec;

Modules§

dispatch
Tool routing and dispatch logic.
error
spec
Tool schema specifications