pub struct StopOnError;Expand description
Default strategy: stop on tool failure.
This is the most conservative strategy. The kernel only reports the fact without making business recovery decisions for the upper layer.
Trait Implementations§
Source§impl ToolErrorRecovery for StopOnError
impl ToolErrorRecovery for StopOnError
fn on_error<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_tool_names: &'life2 [String],
_error: &'life3 AgentError,
) -> Pin<Box<dyn Future<Output = AgentResult<ToolErrorAction>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl Freeze for StopOnError
impl RefUnwindSafe for StopOnError
impl Send for StopOnError
impl Sync for StopOnError
impl Unpin for StopOnError
impl UnsafeUnpin for StopOnError
impl UnwindSafe for StopOnError
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