pub enum ToolExecutor {
Fn(ToolExecuteFn),
Boxed(ToolExecuteBox),
}Expand description
Tool executor — either a function pointer or a boxed closure.
Variants§
Fn(ToolExecuteFn)
Boxed(ToolExecuteBox)
Implementations§
Source§impl ToolExecutor
impl ToolExecutor
Sourcepub fn call(&self, ctx: Arc<ToolContext>, args: String) -> ToolFuture
pub fn call(&self, ctx: Arc<ToolContext>, args: String) -> ToolFuture
Execute the tool, dispatching to the appropriate variant.
Auto Trait Implementations§
impl !RefUnwindSafe for ToolExecutor
impl !UnwindSafe for ToolExecutor
impl Freeze for ToolExecutor
impl Send for ToolExecutor
impl Sync for ToolExecutor
impl Unpin for ToolExecutor
impl UnsafeUnpin for ToolExecutor
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