agentskit.js

FallbackOptions

Auto-generated API reference for FallbackOptions.

Interface: FallbackOptions

Defined in: fallback.ts:3

#Properties

#onFallback?

optional onFallback?: (from) => void

Defined in: fallback.ts:10

Observability hook — fires when one adapter fails and the chain advances.

#Parameters

from
error

Error

id

string

index

number

#Returns

void


#shouldRetry?

optional shouldRetry?: (error, index) => boolean

Defined in: fallback.ts:8

Predicate deciding whether an error from a given adapter should trigger fall-through to the next. Default: always retry the next.

#Parameters

error

Error

index

number

#Returns

boolean

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page