pub struct ConsecutiveErrors(pub usize);Expand description
Stop after N consecutive rounds where all tool executions failed.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl StopPolicy for ConsecutiveErrors
impl StopPolicy for ConsecutiveErrors
Source§fn evaluate(&self, input: &StopPolicyInput<'_>) -> Option<StoppedReason>
fn evaluate(&self, input: &StopPolicyInput<'_>) -> Option<StoppedReason>
Evaluate stop decision. Return
Some(StoppedReason) to terminate.Auto Trait Implementations§
impl Freeze for ConsecutiveErrors
impl RefUnwindSafe for ConsecutiveErrors
impl Send for ConsecutiveErrors
impl Sync for ConsecutiveErrors
impl Unpin for ConsecutiveErrors
impl UnwindSafe for ConsecutiveErrors
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