OptionalmaxTokens: numberOptionalmaxRefuse calls that would push the session total above this many tokens. undefined disables the guard.
The most recent call, or undefined before the first one.
Tokens left under maxTokens, or undefined when no budget is set.
Totals since construction or the last reset().
Token and request accounting for one
EventRegistryclient. Costs come from the API's response headers, so they are only known after a call finished. The budget guard therefore estimates the next call with the last cost reported for the same path.