Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / PricedComponents

Interface: PricedComponents

Defined in: packages/core/dist/index.d.ts

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

PropertyTypeDescriptionDefined in
cachedInputPricedComponent-packages/core/dist/index.d.ts
cacheWritePricedComponent-packages/core/dist/index.d.ts
inputPricedComponentThe uncached prompt remainder: inputTokens minus both cache subsets, clamped at zero.packages/core/dist/index.d.ts
outputPricedComponent-packages/core/dist/index.d.ts