Skip to content

Function: rejectedCardSpec()

rejectedCardSpec(err): { actions?: object[]; facts?: object[]; subtitle?: string; text?: string; title: string; } | null

The card the model produced, wherever it ended up.

structuredOutput rejects anything off-schema by THROWING, and Mastra puts the offending payload on the error (details.value) - so the model’s real answer is recoverable from a failed call. Both the spec shape and a full Adaptive Card document are accepted, from an object or from JSON text.

unknown

{ actions?: object[]; facts?: object[]; subtitle?: string; text?: string; title: string; } | null