Skip to content

InputGuardrailError

Thrown when guard.input() rejects input.

new InputGuardrailError(reason): InputGuardrailError

string

InputGuardrailError

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 input was rejected.


readonly retryable: boolean

Whether this error can be retried by retry middleware.

AgentExpressError.retryable