pub trait ToolLookup {
// Required method
fn lookup(&self, basename: &str) -> Option<ToolSchemaInfo>;
}Expand description
Abstraction over a tool-schema registry. tool_invocation_of calls
this to resolve the basename of the peeled primary to a schema.
Implementors: agent_tools::tool_schema::ToolRegistry (production),
and the MockRegistry in the tests below.
Required Methods§
Sourcefn lookup(&self, basename: &str) -> Option<ToolSchemaInfo>
fn lookup(&self, basename: &str) -> Option<ToolSchemaInfo>
Return the schema info for basename (already lowercase-stripped),
or None if the tool is not registered.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".