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.Source§fn subject(&self, _call: &ToolCall) -> Result<GateSubject, AxError>
fn subject(&self, _call: &ToolCall) -> Result<GateSubject, AxError>
What this call is about, read by the grammar this tool already
parses its arguments with. Read more
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