pub struct CallTool { /* private fields */ }Expand description
The tool itself.
Implementations§
Trait Implementations§
Source§impl Tool for CallTool
impl Tool for CallTool
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 Freeze for CallTool
impl RefUnwindSafe for CallTool
impl Send for CallTool
impl Sync for CallTool
impl Unpin for CallTool
impl UnsafeUnpin for CallTool
impl UnwindSafe for CallTool
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