pub struct ErrorEvent<'a> {
pub agent: &'a str,
pub error: &'a StepError,
pub step_number: usize,
}Expand description
Passed to the on_error hook when an agent errors or a limit is exceeded.
Fields§
§agent: &'a strName of the agent that errored.
error: &'a StepErrorThe error that occurred.
step_number: usizeStep number where the error happened.
Auto Trait Implementations§
impl<'a> Freeze for ErrorEvent<'a>
impl<'a> RefUnwindSafe for ErrorEvent<'a>
impl<'a> Send for ErrorEvent<'a>
impl<'a> Sync for ErrorEvent<'a>
impl<'a> Unpin for ErrorEvent<'a>
impl<'a> UnsafeUnpin for ErrorEvent<'a>
impl<'a> UnwindSafe for ErrorEvent<'a>
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