Skip to content

rulvar API reference


rulvar API reference / @rulvar/rulvar / entryUsageSlices

Function: entryUsageSlices()

ts
function entryUsageSlices(entry): UsageSlice[];

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

The per-model slices of a terminal entry: the recorded split when the call spanned several models, else the whole usage attributed to servedBy. The fallback is what makes every journal written before the split shipped price exactly as it did before.

Parameters

ParameterType
entryJournalEntry

Returns

UsageSlice[]