Skip to content
Français

FallbackTrigger

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

Failure category that hands a fallback agent’s dispatch to its next candidate, listed in the on option of createFallbackAgent(). Values: “quota” (terminal usage or rate limit, code quota), “unavailable” (outage recognized by unavailableFault(); the error keeps its process, provider or timeout code).

Complete example and detailed rules.

export type FallbackTrigger = "quota" | "unavailable";