Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/provider / / CostTrackingTotals
Interface: CostTrackingTotals
Defined in: packages/provider/src/middleware/with-cost-tracking.ts:22
Aggregated totals for one provider × model, returned by CostAccumulator.totalFor / CostAccumulator.totals.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
cachedReadTokens | readonly | number | Prompt tokens served from the provider cache (subset of promptTokens). | packages/provider/src/middleware/with-cost-tracking.ts:28 |
cacheWriteTokens | readonly | number | Prompt tokens written to the provider cache (subset of promptTokens). | packages/provider/src/middleware/with-cost-tracking.ts:30 |
callCount | readonly | number | - | packages/provider/src/middleware/with-cost-tracking.ts:23 |
completionTokens | readonly | number | - | packages/provider/src/middleware/with-cost-tracking.ts:25 |
costUsd | readonly | number | - | packages/provider/src/middleware/with-cost-tracking.ts:31 |
promptTokens | readonly | number | - | packages/provider/src/middleware/with-cost-tracking.ts:24 |
totalTokens | readonly | number | - | packages/provider/src/middleware/with-cost-tracking.ts:26 |