Skip to content
Français

WorkflowUsageUnavailable

import { WorkflowUsageUnavailable } from "@elie-laloum/outpost";

Error recorded when reported usage is marked incomplete while the budget sets token limits without attempts. It fails the run and cancels running and pending tasks; set budget.attempts to keep a bounded fallback.

Complete example and detailed rules.

  • dimensionOptional
    "usage"
    Always usage: token accounting is incomplete and the budget has no attempt fallback.
  • nameRequired
    string
    Stable error name WorkflowUsageUnavailable.
  • messageRequired
    string
    Human-readable explanation of the failure.
  • stackOptional
    string | undefined
    JavaScript stack trace for the error, when available.
  • causeOptional
    unknown
    Underlying failure this error wraps; quotaFault() and unavailableFault() follow this chain.
export declare class WorkflowUsageUnavailable extends Error {
  readonly dimension = "usage";
  constructor();
}