pub struct ReadTool { /* private fields */ }Expand description
What a read answers with, and what it refuses.
Implementations§
Trait Implementations§
Source§impl Tool for ReadTool
impl Tool for ReadTool
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 ReadTool
impl !UnwindSafe for ReadTool
impl Freeze for ReadTool
impl Send for ReadTool
impl Sync for ReadTool
impl Unpin for ReadTool
impl UnsafeUnpin for ReadTool
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