pub struct ClassifyReport {
pub agent: String,
pub since: Option<Date>,
pub sessions_classified: u64,
pub total_tokens: u64,
pub total_cost_usd: f64,
pub has_unpriced: bool,
pub by_task_type: Vec<TaskTypeRollup>,
pub sessions: Vec<SessionClass>,
}Expand description
Everything the renderers need for the task-type breakdown.
Fields§
§agent: String§since: Option<Date>Window applied to the spend (UTC date, inclusive), echoed for the header.
sessions_classified: u64Number of (folded) sessions that had in-window spend and were classified.
total_tokens: u64Deduplicated known tokens across all in-window sessions (incl. sub-agents).
total_cost_usd: f64USD cost of the priceable share of that spend.
has_unpriced: boolTrue if any in-window request could not be priced (§8.5 / §8.7): the cost figures are then a lower bound.
by_task_type: Vec<TaskTypeRollup>Per-type rollups, sorted by cost desc, tokens desc, then TaskType rank.
sessions: Vec<SessionClass>Per-session rows, sorted by cost desc, tokens desc, then id asc.
Trait Implementations§
Source§impl Debug for ClassifyReport
impl Debug for ClassifyReport
Auto Trait Implementations§
impl Freeze for ClassifyReport
impl RefUnwindSafe for ClassifyReport
impl Send for ClassifyReport
impl Sync for ClassifyReport
impl Unpin for ClassifyReport
impl UnsafeUnpin for ClassifyReport
impl UnwindSafe for ClassifyReport
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