SessionCostTracker(
self,
graph_total: float | None = None,
graph_breakdown: CostBreakdown | None =| Name | Type |
|---|---|
| graph_total | float | None |
| graph_breakdown | CostBreakdown | None |
| side_breakdown | CostBreakdown | None |
Retain each source independently so delayed updates cannot erase spend.
Highest accepted main-task spend in USD, or None before usage arrives.
Usage and costs accompanying the retained main-task total, if supplied.
Newest cumulative side-question usage and costs, if reported.
Adopt a main-task total without replacing newer streamed usage.
Keep the newest cumulative side usage, including free requests.
Combine subtotals only when producing a presentation value.