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()
PassrequiresApproval (Python: requires_approval) with a list of method paths
that need human sign-off before executing.
ApprovalRejectedError is thrown/raised and the session is
automatically rolled back.