pub struct FunctionTool { /* private fields */ }
Expand description
A tool implementation backed by a function/closure
Trait Implementations§
Source§impl Tool for FunctionTool
impl Tool for FunctionTool
Source§fn schema(&self) -> ToolSchema
fn schema(&self) -> ToolSchema
Returns the schema definition for this tool
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