Skip to main content

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?​

readonly optional attemptMinimum: 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​

readonly customerMicro: number

supplierMicro​

readonly supplierMicro: number


components​

readonly components: Readonly<Record<string, RateComponent>>

Defined in: packages/agentos/src/safety/runtime/CreditRates.ts:50

The billable components, by key.


currency​

readonly currency: "USD"

Defined in: packages/agentos/src/safety/runtime/CreditRates.ts:48

The currency every amount is in.


reasoningInOutput​

readonly reasoningInOutput: 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​

readonly version: string

Defined in: packages/agentos/src/safety/runtime/CreditRates.ts:46

The version's id, unique and never reused.