pub struct ToolRegistry { /* private fields */ }Implementations§
Source§impl ToolRegistry
impl ToolRegistry
pub fn new() -> Self
pub fn register(&mut self, tool: ToolBox)
pub fn get(&self, name: &str) -> Option<&ToolBox>
pub fn list(&self) -> Vec<ToolDefinition>
pub fn names(&self) -> Vec<String>
Sourcepub fn skill_catalog(&self) -> Option<String>
pub fn skill_catalog(&self) -> Option<String>
Return the skill metadata catalog from the SkillTool (if registered).
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 UnsafeUnpin 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