pub struct RetryOptions<F>{
pub max_retries: usize,
pub on_retry: F,
}Expand description
Options for the execute_with_retry function.
Fields§
§max_retries: usizeMaximum number of retry attempts (default: 2).
on_retry: FCallback to get new tool calls from the model after a retry. Receives the error messages and the attempt number (1-indexed). Should return new tool calls or an error.
Auto Trait Implementations§
impl<F> Freeze for RetryOptions<F>where
F: Freeze,
impl<F> RefUnwindSafe for RetryOptions<F>where
F: RefUnwindSafe,
impl<F> Send for RetryOptions<F>where
F: Send,
impl<F> Sync for RetryOptions<F>where
F: Sync,
impl<F> Unpin for RetryOptions<F>where
F: Unpin,
impl<F> UnwindSafe for RetryOptions<F>where
F: UnwindSafe,
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