pub struct TurnError {
pub error: LlmError,
pub iterations: u32,
pub total_usage: Usage,
pub events: Vec<LoopEvent>,
}Expand description
Terminal: the loop errored.
Fields§
§error: LlmErrorThe error.
iterations: u32Iterations completed before the error.
total_usage: UsageUsage accumulated before the error.
events: Vec<LoopEvent>Lifecycle events from the final turn (may include IterationStart
even though the turn errored).
Auto Trait Implementations§
impl Freeze for TurnError
impl !RefUnwindSafe for TurnError
impl Send for TurnError
impl Sync for TurnError
impl Unpin for TurnError
impl !UnwindSafe for TurnError
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