Skip to main content

Module tool

Module tool 

Source

Enums§

DocumentFormat
Document formats supported for tool results
ImageFormat
Image formats supported for tool results
ToolError
Errors that can occur during tool execution
ToolResult
Result types that tools can return.

Traits§

DynTool
Object-safe trait for dynamic tool dispatch (used internally by the agent).
Tool
Trait for implementing tools that can be used by AI agents.

Functions§

box_tool
Convert a Tool into a type-erased Box<dyn DynTool> for storage in collections.
format_params_ansi
Format tool parameters with ANSI colors
format_params_markdown
Format tool parameters as Markdown
format_params_plain
Format tool parameters as plain text
format_result_ansi
Format tool result with ANSI colors
format_result_markdown
Format tool result as Markdown
format_result_plain
Format tool result as plain text