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
| Property | Type | Description | Defined in |
|---|---|---|---|
costUsd | number | An estimate, not a billing statement. | core/runner.ts:67 |
inputTokens | number | Input tokens, cache reads and writes included, across every model the session used. | core/runner.ts:64 |
outputTokens | number | - | core/runner.ts:65 |