Saltar al contenido principal
Versión: 0.13.1

Interface: SessionUsage

Defined in: core/runner.ts:62

Running totals for the whole query() session so far, not for one turn: the SDK's own total_cost_usd and modelUsage are cumulative across turns in a streaming-input session, so the latest turn-end carries the session total (never sum them).

Properties​

PropertyTypeDescriptionDefined in
costUsdnumberAn estimate, not a billing statement.core/runner.ts:67
inputTokensnumberInput tokens, cache reads and writes included, across every model the session used.core/runner.ts:64
outputTokensnumber-core/runner.ts:65