pub async fn drive_turn<S>(
stream: S,
model: &str,
totals: &mut SessionTotals,
on_event: impl FnMut(&StreamEvent, &SessionTotals),
) -> TurnReportExpand description
Drain one turn’s stream, metering it into totals. model prices usage
events that do not name their model. on_event sees every event after
it was metered (for logging).