Skip to content

FallbackStrategy

const FallbackStrategy: object

Defined in: packages/ai.matey.types/src/router.ts:25

Fallback strategies for handling backend failures.

readonly CUSTOM: "custom" = 'custom'

Use custom fallback logic.

readonly NONE: "none" = 'none'

No fallback - fail immediately if primary backend fails.

readonly PARALLEL: "parallel" = 'parallel'

Try all backends in parallel, return first success.

readonly SEQUENTIAL: "sequential" = 'sequential'

Try backends sequentially in order until one succeeds.