pub struct StepEvent<'a> {
pub agent: &'a str,
pub outcome: &'a Outcome,
pub duration: Duration,
pub step_number: usize,
pub retries: usize,
}Expand description
Passed to the on_step hook after each successful agent step.
Fields§
§agent: &'a strName of the agent that ran.
outcome: &'a OutcomeThe outcome the agent returned.
duration: DurationWall-clock time for the step.
step_number: usizeSequential step counter (starts at 1).
retries: usizeConsecutive retry count for the current agent.
Auto Trait Implementations§
impl<'a> Freeze for StepEvent<'a>
impl<'a> RefUnwindSafe for StepEvent<'a>
impl<'a> Send for StepEvent<'a>
impl<'a> Sync for StepEvent<'a>
impl<'a> Unpin for StepEvent<'a>
impl<'a> UnsafeUnpin for StepEvent<'a>
impl<'a> UnwindSafe for StepEvent<'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