pub struct FunctionTool<F> { /* private fields */ }
Expand description
A simple tool that wraps a function
Implementations§
Source§impl<F> FunctionTool<F>
impl<F> FunctionTool<F>
Trait Implementations§
Source§impl<F> BaseTool for FunctionTool<F>
impl<F> BaseTool for FunctionTool<F>
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get the description of the tool
Source§fn schema(&self) -> ToolSchema
fn schema(&self) -> ToolSchema
Get the schema for this tool
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the tool is available
Source§fn input_schema(&self) -> Option<Value>
fn input_schema(&self) -> Option<Value>
Get the input schema for this tool
Source§fn output_schema(&self) -> Option<Value>
fn output_schema(&self) -> Option<Value>
Get the output schema for this tool
Source§impl<F> Tool for FunctionTool<F>
impl<F> Tool for FunctionTool<F>
Auto Trait Implementations§
impl<F> Freeze for FunctionTool<F>where
F: Freeze,
impl<F> RefUnwindSafe for FunctionTool<F>where
F: RefUnwindSafe,
impl<F> Send for FunctionTool<F>where
F: Send,
impl<F> Sync for FunctionTool<F>where
F: Sync,
impl<F> Unpin for FunctionTool<F>where
F: Unpin,
impl<F> UnwindSafe for FunctionTool<F>where
F: UnwindSafe,
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