pub struct FunctionTool { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Tool for FunctionTool
impl Tool for FunctionTool
fn definition(&self) -> ToolDefinition
fn invoke<'a>( &'a self, args_json: &'a str, context: &'a ToolExecutionContext, ) -> ToolFuture<'a, Result<String, ToolError>>
Auto Trait Implementations§
impl Freeze for FunctionTool
impl !RefUnwindSafe for FunctionTool
impl Send for FunctionTool
impl Sync for FunctionTool
impl Unpin for FunctionTool
impl !UnwindSafe for FunctionTool
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