pub trait ToolRegistry: Send + Sync {
// Required method
fn resolve(&self, tool_name: &str) -> Option<Arc<dyn Tool>>;
// Provided method
fn available_tools(&self) -> Vec<String> { ... }
}Expand description
Core traits and types.
Always available regardless of feature flags. Includes:
Agent- The fundamental trait for all agentsTool/Toolset- For extending agents with capabilitiesSession/State- For managing conversation contextEvent- For streaming agent responsesAdkError/Result- Unified error handling A registry that maps tool names to concrete tool instances.
Implementations resolve string identifiers (e.g. from a skill or config)
into executable Arc<dyn Tool> instances.
Required Methods§
Provided Methods§
Sourcefn available_tools(&self) -> Vec<String>
fn available_tools(&self) -> Vec<String>
Returns a list of all tool names available in this registry.