The Python SDK additionally provides a common
AgentReinError base class that all other SDK errors inherit from (the TypeScript SDK has no equivalent base class) — catch AgentReinError in Python if you want to handle any SDK error generically.ApprovalRejectedError
ApprovalRejectedError
Thrown/raised when a human rejects a
requiresApproval/requires_approval action. AgentRein automatically triggers session rollback before throwing/raising.ApprovalTimeoutError
ApprovalTimeoutError
Thrown/raised when a
requiresApproval/requires_approval action is not reviewed within the timeout window.
The SDK logs the timed-out action as failed, which triggers AgentRein’s normal
session rollback flow.WrapOptionsValidationError
WrapOptionsValidationError
Thrown/raised synchronously when invalid options are passed to Valid minimums:
wrap().
Common causes: pollIntervalMs/poll_interval_ms below 1000ms or timeoutMs/timeout_ms below 5000ms.