pub trait ToolRegistry: Send + Sync {
// Required methods
fn schemas(&self) -> Vec<ToolSchema>;
fn get(&self, name: &str) -> Option<Arc<dyn Tool>>;
}Expand description
Required Methods§
Sourcefn schemas(&self) -> Vec<ToolSchema>
fn schemas(&self) -> Vec<ToolSchema>
Return the schemas of all tools in the registry, used to populate the tools
field of an LLM request.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".