pub trait ToolResolver {
// Required method
fn resolve_tool(&self, name: &str) -> Option<&dyn DynTool>;
}Expand description
Resolves a tool node’s declared name to the DynTool that executes it.
The tool counterpart of AgentResolver. A
HashMap<String, Box<dyn DynTool>> implements
it out of the box.
Required Methods§
Sourcefn resolve_tool(&self, name: &str) -> Option<&dyn DynTool>
fn resolve_tool(&self, name: &str) -> Option<&dyn DynTool>
The tool registered under name, or None if none is.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".