Skip to content
Français

FallbackAttempt

import type { FallbackAttempt } from "@elie-laloum/outpost";
  • failureRequired
    FallbackTrigger
    Category that ended this candidate: quota or unavailable.
  • messageRequired
    string
    Quota or outage message that ended this candidate.
  • resetAtOptional
    string | undefined
    ISO reset timestamp reported with a quota failure; absent for outages and unknown resets.
  • indexRequired
    number
    Zero-based position of the candidate in FallbackAgent.agents.
  • nameRequired
    string
    Adapter name of the candidate, such as claude, codex, custom or replay.
  • modelOptional
    string | undefined
    Model name selected on the candidate; absent when a CLI keeps its native default, and for a replay agent.
export interface FallbackAttempt extends FallbackCandidate {
  readonly failure: FallbackTrigger;
  readonly message: string;
  readonly resetAt?: string;
}