Interfaces

OutputFallbackOptions<T>

Interface: OutputFallbackOptions<T>

Defined in: src/core/outputFallback.ts:89

Type Parameters

T

T

Properties

canned?

readonly optional canned?: 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

readonly fallback: 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.

On this page