Skip to content

OutputGuardrailError

Thrown when guard.output() blocks a response (if onBlock: "error").

new OutputGuardrailError(reason): OutputGuardrailError

string

OutputGuardrailError

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 reason: string

Reason the response was blocked.


readonly retryable: boolean

Whether this error can be retried by retry middleware.

AgentExpressError.retryable