pub trait HasInnerTool: Send + Sync {
// Required method
fn inner_tool(&self) -> &dyn Tool;
}Expand description
Trait for contexts that can borrow an inner Tool for passthrough.
Keep shared ownership inside the bridge context; callers only need a borrowed
dyn Tool to delegate metadata, validation, and execution.
Required Methods§
fn inner_tool(&self) -> &dyn Tool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".