Skip to main content

wrap()

The single execution primitive in AgentRein. Pass any API client (or a specific sub-resource object) and AgentRein intercepts every method call automatically.

Approval Gates with wrap()

Pass requiresApproval (Python: requires_approval) with a list of method paths that need human sign-off before executing.
If rejected, ApprovalRejectedError is thrown/raised and the session is automatically rolled back.