Interfaces
OutputFallbackOptions<T>
Interface: OutputFallbackOptions<T>
Defined in: src/core/outputFallback.ts:89
Type Parameters
T
T
Properties
canned?
readonlyoptionalcanned?:T
Defined in: src/core/outputFallback.ts:101
Tier 3 — guaranteed-valid safety net. Validated against the schema at builder time (throws on mismatch — fail-fast on misconfig). When set, the agent NEVER throws on output-schema failure.
When omitted, fallback-thrown errors propagate to the caller
(consumer chooses fail-open vs fail-closed).
fallback
readonlyfallback:OutputFallbackFn<T>
Defined in: src/core/outputFallback.ts:93
Tier 2 — async function that produces a candidate value. May
throw or return invalid data; the agent will fall through to
canned if so.
