Skip to content
Français

UsageCost

import type { UsageCost } from "@elie-laloum/outpost/workflows";
  • currencyRequired
    "EUR" | "USD"
    Currency of the table used to estimate this usage.
  • amountRequired
    number
    Estimated amount in major currency units; a lower bound when complete is false.
  • completeRequired
    boolean
    True only when every reported token is attributable to a priced model and all counters are complete.
export interface UsageCost {
  readonly currency: "EUR" | "USD";
  readonly amount: number;
  readonly complete: boolean;
}