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§
Sourcefn additional_tools(&self) -> Vec<Box<dyn Tool>>
fn additional_tools(&self) -> Vec<Box<dyn Tool>>
Return any additional tools that should be available to the agent.