agentskit.js

FallbackOptions

Auto-generated API reference for FallbackOptions.

Interface: FallbackOptions

Defined in: adapters/src/fallback.ts:4

#Properties

#onFallback?

optional onFallback?: (from) => void

Defined in: adapters/src/fallback.ts:11

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: adapters/src/fallback.ts:9

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