pub struct RetryOnError;Expand description
Continue on tool failure, feeding the error back to the model
Suitable for scenarios where model self-healing is desired (e.g. code-agent, browser-agent).
Trait Implementations§
Source§impl ToolErrorRecovery for RetryOnError
impl ToolErrorRecovery for RetryOnError
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 RetryOnError
impl RefUnwindSafe for RetryOnError
impl Send for RetryOnError
impl Sync for RetryOnError
impl Unpin for RetryOnError
impl UnsafeUnpin for RetryOnError
impl UnwindSafe for RetryOnError
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