pub struct SucceedTool { /* private fields */ }Expand description
The tool itself.
Implementations§
Source§impl SucceedTool
impl SucceedTool
Sourcepub fn new(desk: Arc<Mutex<SuccessionDesk>>) -> Result<SucceedTool, AxError>
pub fn new(desk: Arc<Mutex<SuccessionDesk>>) -> Result<SucceedTool, AxError>
§Errors
Propagates a malformed parameter schema, which is a build-time defect rather than a runtime one.
Trait Implementations§
Source§impl Tool for SucceedTool
impl Tool for SucceedTool
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 Freeze for SucceedTool
impl RefUnwindSafe for SucceedTool
impl Send for SucceedTool
impl Sync for SucceedTool
impl Unpin for SucceedTool
impl UnsafeUnpin for SucceedTool
impl UnwindSafe for SucceedTool
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