Interface: RateSnapshot
Defined in: packages/agentos/src/safety/runtime/CreditRates.ts:44
A rate version: immutable once published, and kept by a call for its whole life. A component key names a billable
quantity (media_second, input_token, output_token, reasoning_token, cached_input_token, tts_character and
so on); the host chooses the keys, and every quantity it meters must have one.
Properties
attemptMinimum?
readonlyoptionalattemptMinimum:object
Defined in: packages/agentos/src/safety/runtime/CreditRates.ts:57
A charge every attempt incurs whatever its usage (a provider's minimum charge), in micro-dollars per side.
customerMicro
readonlycustomerMicro:number
supplierMicro
readonlysupplierMicro:number
components
readonlycomponents:Readonly<Record<string,RateComponent>>
Defined in: packages/agentos/src/safety/runtime/CreditRates.ts:50
The billable components, by key.
currency
readonlycurrency:"USD"
Defined in: packages/agentos/src/safety/runtime/CreditRates.ts:48
The currency every amount is in.
reasoningInOutput
readonlyreasoningInOutput:boolean
Defined in: packages/agentos/src/safety/runtime/CreditRates.ts:55
Whether the provider's output count already includes its reasoning tokens. When true, a reasoning_token
quantity is reported for visibility and not billed again, so reasoning is counted once.
version
readonlyversion:string
Defined in: packages/agentos/src/safety/runtime/CreditRates.ts:46
The version's id, unique and never reused.