Skip to main content

Module tool

Module tool 

Source

Structs§

SharedTool
A wrapper that allows Arc to be used as Box This is useful for sharing tools across multiple agents without cloning Wrapper around Arc<dyn ToolT> that presents a Box<dyn ToolT>-like API. Useful when sharing tool instances across multiple agents without cloning.
ToolCallResult
Result emitted after executing a single tool call, including the tool name, success flag, original arguments, and the tool’s structured result payload.

Enums§

ToolCallError

Traits§

ToolInputT
Marker trait for input types used by #[derive(ToolInput)] macros.
ToolRuntime
Runtime behavior for tools.
ToolT

Functions§

shared_tools_to_boxes
Helper function to convert Vec<Arc> to Vec<Box> This is useful when implementing AgentDeriveT::tools() with shared tools Convert a vector of Arc<dyn ToolT> into boxed trait objects for use in agent definitions.
to_llm_tool
Convert a ToolT trait object to an LLM Tool