We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f72c082 commit d3368abCopy full SHA for d3368ab
1 file changed
packages/core/src/sessions/contextUsage.ts
@@ -15,12 +15,7 @@ export interface ContextUsage {
15
used: number;
16
size: number;
17
percentage: number;
18
- /**
19
- * Cumulative estimated cost of the whole session, summed across turns. `used`
20
- * is a point-in-time snapshot of resident context, but each turn's cost is a
21
- * spend that accrues, so cost is totalled rather than replaced. `null` when
22
- * no turn reported a cost (e.g. codex, which emits tokens without a cost).
23
- */
+ /** Cumulative estimated session cost, summed across turns; `null` if none reported (e.g. codex). */
24
cost: { amount: number; currency: string } | null;
25
breakdown: ContextBreakdown | null;
26
}
0 commit comments