pub struct CalculatorTool;Expand description
Example: Calculator tool for simple math
Trait Implementations§
Source§impl Tool for CalculatorTool
impl Tool for CalculatorTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description for LLM
Source§fn input_schema(&self) -> JsonValue
fn input_schema(&self) -> JsonValue
JSON schema for input parameters
Auto Trait Implementations§
impl Freeze for CalculatorTool
impl RefUnwindSafe for CalculatorTool
impl Send for CalculatorTool
impl Sync for CalculatorTool
impl Unpin for CalculatorTool
impl UnwindSafe for CalculatorTool
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