pub struct CostStats {
pub total_tokens: u64,
pub total_cost: f64,
pub avg_tokens_per_bean: f64,
pub first_pass_rate: f64,
pub overall_pass_rate: f64,
pub most_expensive_bean: Option<BeanRef>,
pub most_retried_bean: Option<BeanRef>,
pub beans_with_history: usize,
}Expand description
Cost and token statistics aggregated from RunRecord history.
Fields§
§total_tokens: u64§total_cost: f64§avg_tokens_per_bean: f64§first_pass_rate: f64Rate at which closed beans passed on their first attempt (0.0–1.0).
overall_pass_rate: f64Rate at which attempted beans eventually closed (0.0–1.0).
most_expensive_bean: Option<BeanRef>§most_retried_bean: Option<BeanRef>§beans_with_history: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for CostStats
impl RefUnwindSafe for CostStats
impl Send for CostStats
impl Sync for CostStats
impl Unpin for CostStats
impl UnsafeUnpin for CostStats
impl UnwindSafe for CostStats
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