Expand description
Tool contract shared by the tool node, the agent node and tool
providers (native Rust tools, MCP servers, HTTP tools…).
Structs§
- Tool
Error - Error calling a tool (transport, unknown tool…).
- Tool
Image Error - A tool result image that breaks a limit.
- Tool
Output - Result of a tool call.
- Tool
Registry - Service registered in
crate::node::Services: named tool providers (e.g.builtin,mcp:github). Nodes reference tools asprovider/tool. - Tool
Spec - Description of a callable tool, exposed to models for tool calling.
Enums§
- Tool
Image - An image returned by a tool.
Constants§
- MAX_
TOOL_ IMAGES - Most images one tool result may carry.
- MAX_
TOOL_ IMAGE_ BYTES - Largest decoded size of one tool result image, in bytes (5 MiB).
- TOOL_
IMAGE_ MEDIA_ TYPES - Media types accepted for tool result images (supported by every built-in provider).
Traits§
- Tool
Runtime - A source of tools.
Functions§
- check_
images - Check the images of one tool result: at most
MAX_TOOL_IMAGES, each passingToolImage::check.