Class●Since v0.2
SessionCostTracker
SessionCostTracker(
self,
graph_total: float | None = None,
graph_breakdown: CostBreakdown | None = None,Constructors
Attributes
Methods
side_breakdown
:
CostBreakdown
|
None
=
None
)
constructor
__init__
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.
