pub struct MockHandledFailureTool;Available on crate feature
test-utils only.Expand description
A tool failure with separate operator and model-visible feedback.
Trait Implementations§
Source§impl Clone for MockHandledFailureTool
impl Clone for MockHandledFailureTool
Source§impl Tool for MockHandledFailureTool
impl Tool for MockHandledFailureTool
Source§type Error = MockToolError
type Error = MockToolError
Typed error returned by direct calls to this tool. Read more
Source§fn description(&self) -> String
fn description(&self) -> String
Model-facing description.
Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
JSON Schema for arguments.
Source§async fn call(
&self,
_context: &mut ToolContext,
_args: Self::Args,
) -> Result<Self::Output, Self::Error>
async fn call( &self, _context: &mut ToolContext, _args: Self::Args, ) -> Result<Self::Output, Self::Error>
Execute the tool.
Source§fn map_error(&self, error: Self::Error) -> ToolExecutionError
fn map_error(&self, error: Self::Error) -> ToolExecutionError
Normalize a typed author-facing error for runtime policy and telemetry. Read more
Source§fn annotations(&self) -> ToolAnnotations
fn annotations(&self) -> ToolAnnotations
What calling the tool does to the world, for the host’s policies
(approval, plan mode, which calls run side by side). Nothing is
stated by default, which reads as the protocol’s defaults
(
ToolAnnotations).Auto Trait Implementations§
impl Freeze for MockHandledFailureTool
impl RefUnwindSafe for MockHandledFailureTool
impl Send for MockHandledFailureTool
impl Sync for MockHandledFailureTool
impl Unpin for MockHandledFailureTool
impl UnsafeUnpin for MockHandledFailureTool
impl UnwindSafe for MockHandledFailureTool
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