Skip to main content

ToolSource

Trait ToolSource 

Source
pub trait ToolSource: Send + Sync {
    // Required method
    fn additional_tools(&self) -> Vec<Box<dyn Tool>>;
}
Expand description

Trait for providing additional tools at runtime (mid-session).

Implemented by registries that allow agents to create new tools during execution. The agent queries this source on each tool loop iteration to discover newly registered tools.

Required Methods§

Source

fn additional_tools(&self) -> Vec<Box<dyn Tool>>

Return any additional tools that should be available to the agent.

Implementors§