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§
Sourcefn tools(&self) -> Vec<SharedTool> ⓘ
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".