pub struct MockExampleTool;Available on crate feature
test-utils only.Expand description
A mock tool named example_tool that returns "Example answer".
Trait Implementations§
Source§impl Tool for MockExampleTool
impl Tool for MockExampleTool
Source§type Error = MockToolError
type Error = MockToolError
Typed error returned by direct calls to this tool. Read more
Source§fn description(&self) -> String
fn description(&self) -> String
Model-facing description.
Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
JSON Schema for arguments.
Auto Trait Implementations§
impl Freeze for MockExampleTool
impl RefUnwindSafe for MockExampleTool
impl Send for MockExampleTool
impl Sync for MockExampleTool
impl Unpin for MockExampleTool
impl UnsafeUnpin for MockExampleTool
impl UnwindSafe for MockExampleTool
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