Skip to main content

classify

Function classify 

Source
pub fn classify(
    sessions: &[Session],
    filter: &Filter,
    agent: &str,
    pricing: &PricingTable,
) -> ClassifyReport
Expand description

Classify each session by task type and roll deduplicated spend up per type.

Spend is folded from sub-agent transcripts into the parent session’s row (§8.3) exactly as super::aggregate::aggregate does, so the per-type totals reconcile with the summary’s grand totals. Groups with no in-window spend are dropped; empty input yields a well-formed empty report.