Record

usage-cost

Cost associated with a [usage-update]. May be a monetary amount or a provider-specific usage unit (e.g. GitHub AI Units).

record usage-cost {
  amount: f64,
  currency: string,
}

Fields

NameTypeDescription
amountf64The cost amount, expressed in currency units.
currencystringThe unit of amount: an ISO 4217 currency code (e.g. USD) or a provider-specific usage unit (e.g. AIU for GitHub AI Units).