createFallbackAdapter
Auto-generated API reference for createFallbackAdapter.
Function: createFallbackAdapter()
createFallbackAdapter(
candidates,options?):AdapterFactory
Defined in: fallback.ts:28
Try adapters in order. If the first fails (throws while opening, or errors mid-stream before emitting any non-done chunk), fall through to the next. As soon as a candidate produces its first real chunk, that's the committed one — we don't retroactively retry mid-stream.
Errors that happen after committing are propagated; the caller sees a normal streaming failure, not a mysterious cross-candidate retry that could duplicate tool calls.
#Parameters
#candidates
#options?
FallbackOptions = \{\}
#Returns
AdapterFactory