pub struct SearchTool { /* private fields */ }Expand description
What a search answers with, and what it refuses.
Implementations§
Trait Implementations§
Source§impl Tool for SearchTool
impl Tool for SearchTool
fn meta(&self) -> &ToolMeta
Source§fn invoke(&self, call: &ToolCall) -> Result<ToolOutcome, AxError>
fn invoke(&self, call: &ToolCall) -> Result<ToolOutcome, AxError>
Fail-closed identity: a call whose name differs from
meta().name
must return E_INVALID_ARGS, never route silently.Auto Trait Implementations§
impl !RefUnwindSafe for SearchTool
impl !UnwindSafe for SearchTool
impl Freeze for SearchTool
impl Send for SearchTool
impl Sync for SearchTool
impl Unpin for SearchTool
impl UnsafeUnpin for SearchTool
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