Rulvar API reference / @rulvar/core / PricedComponents
Interface: PricedComponents
Defined in: packages/core/src/model/pricing.ts:60
The four components a provider statement itemizes (RV812): uncached input, output, cached input, cache writes, each with its token base and dollars. Decomposed with EXACTLY the arithmetic of priceUsdOf, which is defined as the sum of these four terms in this order, so a statement reconciliation and the settled fold can never disagree about what a usage costs.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
cachedInput | PricedComponent | - | packages/core/src/model/pricing.ts:64 |
cacheWrite | PricedComponent | - | packages/core/src/model/pricing.ts:65 |
input | PricedComponent | The uncached prompt remainder: inputTokens minus both cache subsets, clamped at zero. | packages/core/src/model/pricing.ts:62 |
output | PricedComponent | - | packages/core/src/model/pricing.ts:63 |