Expand description
motosan-agent-tool — the Tool trait, runtime tool execution context,
and a registry, plus a catalogue of built-in tools.
In 0.4 this crate is wired to motosan-agent-primitives for the
wire-format types (ToolCall, ToolResult, ToolAnnotations,
ContentBlock). See tool for the layering / migration story.
Re-exports§
pub use error::Error;pub use error::Result;pub use registry::ToolRegistry;pub use tool::Tool;pub use tool::ToolContext;pub use tool::ToolDef;pub use tool::ToolOutput;
Modules§
- error
- registry
- tool
- The
Tooltrait, execution context, and runtime tool output type. - tools
- Built-in tool implementations.
Structs§
- Tool
Annotations - Capability metadata a tool publishes about itself.
- Tool
Call - An assistant-issued request to invoke a named tool.
- Tool
Result - The reply pairing for a
ToolCall. - Tool
Schema - Canonical LLM-facing tool declaration shared across the workspace: the
name, human-readabledescription, and JSON-Schemainput_schemathe model sees. Layer-specific fields live on the wrappers —motosan_agent_tool::ToolDefadds the host-sideinternal_name, andmotosan_ai::Tooladds the providercacheflag — both via#[serde(flatten)]so the on-the-wire shape is{name, description, input_schema, ...}.
Enums§
- Content
Block - One slice of multimodal content inside a
Message. - Value
- Represents any valid JSON value.