pub struct ToolRegistry { /* private fields */ }
Expand description
Simplified tool registry for backward compatibility
This registry provides a simplified interface focused on tools only, maintaining compatibility with existing code that expects a ToolRegistry.
Implementations§
Source§impl ToolRegistry
impl ToolRegistry
Sourcepub async fn register_plugin(&self, plugin: Box<dyn VxPlugin>) -> Result<()>
pub async fn register_plugin(&self, plugin: Box<dyn VxPlugin>) -> Result<()>
Register a plugin that provides tools
Sourcepub fn supports_tool(&self, tool_name: &str) -> bool
pub fn supports_tool(&self, tool_name: &str) -> bool
Check if a tool is supported
Sourcepub fn get_tool_names(&self) -> Vec<String>
pub fn get_tool_names(&self) -> Vec<String>
Get all tool names
Sourcepub fn get_all_tools(&self) -> Vec<Box<dyn VxTool>>
pub fn get_all_tools(&self) -> Vec<Box<dyn VxTool>>
Get all tools from all plugins
Sourcepub async fn initialize_all(&self) -> Result<()>
pub async fn initialize_all(&self) -> Result<()>
Initialize all plugins
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolRegistry
impl RefUnwindSafe for ToolRegistry
impl Send for ToolRegistry
impl Sync for ToolRegistry
impl Unpin for ToolRegistry
impl UnwindSafe for ToolRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more