Skip to main content

Module tool

Module tool 

Source

Structs§

FetchArgs
Arguments for the fetch tool.
ParallelExecutor
Executes tools in parallel by grouping calls by tool name and using Tool::call_batch
ReadArgs
Arguments for the read tool.
SequentialExecutor
Executes tools sequentially one by one by using Tool::call

Traits§

Tool
A trait for tools that can be called with JSON string arguments.
ToolArgs
Provides tool name, description, and definitions for tools generated by the #[tool] macro.
ToolExecutor
Executes tool calls with different strategies (parallel, sequential, etc.)

Functions§

fetch
Fetch a webpage and convert HTML to Markdown
read
Read file contents with optional character range.

Attribute Macros§

tool
Transforms a function or method into a tool with generated args struct and ToolArgs implementation.