pub struct ToolRegistry { /* private fields */ }Expand description
Registry for managing tools
The registry stores all available tools and provides methods to list, query, and execute them.
Implementations§
Source§impl ToolRegistry
impl ToolRegistry
Sourcepub fn list_names(&self) -> Vec<String>
pub fn list_names(&self) -> Vec<String>
List all tool names
Sourcepub fn list_tools(&self) -> Vec<JsonValue>
pub fn list_tools(&self) -> Vec<JsonValue>
List all tools with their schemas (for LLM function calling)
Trait Implementations§
Source§impl Debug for ToolRegistry
impl Debug for ToolRegistry
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