agentgate Python SDK
Install and get human approval before your AI agent takes a risky action.
Install
pip install useagentgate
Quick Start
from agentgate import AgentGate
gate = AgentGate(
api_key="ag_test_xxx",
default_channel="#agent-approvals"
)
result = await gate.request_approval(
action="send_email",
description="Send pricing proposal to client@acme.com",
context={"deal_value": "$50,000", "recipient": "john@acme.com"},
risk_tier="high",
timeout_minutes=30,
)
if result.approved:
print(f"Approved by {result.approved_by}")
elif result.rejected:
print(f"Rejected: {result.reason}")
elif result.timed_out:
print("No response")
Sync Usage
from agentgate import AgentGateSync
gate = AgentGateSync(api_key="ag_test_xxx")
result = gate.request_approval(action="send_email", description="...")
Release files for useagentgate 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| useagentgate-1.0.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| useagentgate-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / useagentgate-1.0.0.tar.gz
| Download URL | useagentgate-1.0.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a369e21d0e233e47a20741aeb283c5044b5e28277eea87e04a09b4ccf96ddbec
|
|
BLAKE2b-256 checksum How to use checksums |
297f022228a9b5a854b1e8f7b72b2b77c55cf00b33a67a824779bee35b9df9a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / useagentgate-1.0.0-py3-none-any.whl
| Download URL | useagentgate-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b7392fce612a929676487121fd3bca54897dada769c025133a80e339684ee83
|
|
BLAKE2b-256 checksum How to use checksums |
bd45de11290f6a1daf5df6ff979cc8195b4227da4a80c01e1d259d0a32db633f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|