Skip to content

StructuredOutputParseError

Thrown when the model returns text that is not valid JSON for structured output.

new StructuredOutputParseError(rawText): StructuredOutputParseError

string

StructuredOutputParseError

AgentExpressError.constructor

readonly optional cause?: Error

Original error that caused this one, if any.

AgentExpressError.cause


code: string

Machine-readable error code (e.g., “ABORT”, “RATE_LIMIT”, “TOOL_DENIED”).

AgentExpressError.code


readonly rawText: string

The raw text the model returned.


readonly retryable: boolean

Whether this error can be retried by retry middleware.

AgentExpressError.retryable