Skip to main content

ToolSource

Trait ToolSource 

Source
pub trait ToolSource: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn tools(&self) -> Vec<SharedTool> ;
}
Expand description

Provides tools that can be merged into a ToolRegistry.

Maturity: core (port). MCP and remote adapters live outside the kernel and implement this trait; merge is last-wins on tool name.

Required Methods§

Source

fn name(&self) -> &str

Stable source id for logs (static, mcp:server, …).

Source

fn tools(&self) -> Vec<SharedTool>

Tools contributed by this source (order not significant after merge).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§