pub struct FailureContext {
pub unit_id: String,
pub unit_title: String,
pub attempt: u32,
pub duration_secs: u64,
pub tool_count: usize,
pub turns: usize,
pub input_tokens: u64,
pub output_tokens: u64,
pub cost: f64,
pub error: Option<String>,
pub tool_log: Vec<String>,
pub verify_command: Option<String>,
}Expand description
Everything needed to produce a failure summary.
Fields§
§unit_id: String§unit_title: String§attempt: u32§duration_secs: u64§tool_count: usize§turns: usize§input_tokens: u64§output_tokens: u64§cost: f64§error: Option<String>§tool_log: Vec<String>Log lines in [tool] ToolName path/or/args format.
verify_command: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for FailureContext
impl RefUnwindSafe for FailureContext
impl Send for FailureContext
impl Sync for FailureContext
impl Unpin for FailureContext
impl UnsafeUnpin for FailureContext
impl UnwindSafe for FailureContext
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more