StructuredOutputValidationError
Thrown when the parsed JSON does not match the expected Zod schema.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new StructuredOutputValidationError(
issues):StructuredOutputValidationError
Parameters
Section titled “Parameters”issues
Section titled “issues”unknown[]
Returns
Section titled “Returns”StructuredOutputValidationError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”cause?
Section titled “cause?”
readonlyoptionalcause?:Error
Original error that caused this one, if any.
Inherited from
Section titled “Inherited from”code:
string
Machine-readable error code (e.g., “ABORT”, “RATE_LIMIT”, “TOOL_DENIED”).
Inherited from
Section titled “Inherited from”issues
Section titled “issues”
readonlyissues:unknown[]
Zod validation issues.
retryable
Section titled “retryable”
readonlyretryable:boolean
Whether this error can be retried by retry middleware.