pub struct ToolInvoker { /* private fields */ }Expand description
Manages action registration and execution for an agent
Implementations§
Source§impl ToolInvoker
impl ToolInvoker
Sourcepub fn register(&mut self, action: Box<dyn ActionInvoker>)
pub fn register(&mut self, action: Box<dyn ActionInvoker>)
Register an action
Sourcepub fn list_actions(&self) -> Vec<ActionMetadata>
pub fn list_actions(&self) -> Vec<ActionMetadata>
List all registered actions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolInvoker
impl !RefUnwindSafe for ToolInvoker
impl Send for ToolInvoker
impl Sync for ToolInvoker
impl Unpin for ToolInvoker
impl !UnwindSafe for ToolInvoker
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