Interface: CostBreakdown
Defined in: javascript/src/breakdown.ts:13
Granular credit cost report for a usage event.
All money fields are Decimal (never binary number) and are quantized to
6dp ROUND_HALF_UP. total is the single source of truth: it is recomputed
from the components (clamped at 0) and quantized — there is NO implicit
integer truncation of the total (that was the revenue-leak bug).
Properties
breakdown
breakdown:
StructuredObject
Defined in: javascript/src/breakdown.ts:21
cacheSavings
cacheSavings:
Decimal
Defined in: javascript/src/breakdown.ts:17
fixedCredits
fixedCredits:
Decimal
Defined in: javascript/src/breakdown.ts:18
modelCredits
modelCredits:
Decimal
Defined in: javascript/src/breakdown.ts:14
operationCredits
operationCredits:
Decimal
Defined in: javascript/src/breakdown.ts:19
searchCredits
searchCredits:
Decimal
Defined in: javascript/src/breakdown.ts:16
toolCredits
toolCredits:
Decimal
Defined in: javascript/src/breakdown.ts:15
total
total:
Decimal
Defined in: javascript/src/breakdown.ts:20