Skip to content
providerkit
GitHub

ProviderFallbackConfig

Defined in: core/src/fallback.ts:100

Standard options that any provider config can accept to configure fallbacks inline.

optional fallbackOptions?: FallbackOptions<Provider>;

Defined in: core/src/fallback.ts:109

Custom cooldown or telemetry options for the fallback pool.


optional fallbacks?: readonly FallbackCandidate[];

Defined in: core/src/fallback.ts:103

Secondary and tertiary providers to try if this provider fails/exhausts: hand-built Providers, preset-id FallbackSpecs, or both.


optional watchdog?: WatchdogOptions;

Defined in: core/src/fallback.ts:107

Watch every candidate separately. A silent candidate then times out and rotates; wrapping the completed pool would abort the whole chain instead. Fallback specs inherit this unless they set their own watchdog.