Approval gates for AI agent payments and emails. CONTINUE / REVIEW / STOP before execution.
Project description
diplomat-gate
Approval gates for AI agent payments and emails. Evaluate tool calls against policies — CONTINUE / REVIEW / STOP — before execution.
Install
pip install diplomat-gate
pip install "diplomat-gate[yaml]" # for YAML config
pip install "diplomat-gate[all]" # all extras
Quick start
from diplomat_gate import Gate
gate = Gate.from_yaml("gate.yaml")
verdict = gate.evaluate({
"action": "charge_card",
"amount": 15000,
"currency": "usd",
"customer_id": "cus_abc123",
})
if verdict.allowed:
# proceed
pass
elif verdict.needs_review:
# route to human
pass
else:
# verdict.blocked — abort
pass
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
diplomat_gate-0.1.0.tar.gz
(23.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diplomat_gate-0.1.0.tar.gz.
File metadata
- Download URL: diplomat_gate-0.1.0.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9156104333146267bed3512143c0783c9273f6e31babe1504dfd616fefb6a800
|
|
| MD5 |
2fcab43008c67ec9157f6e5834efae4b
|
|
| BLAKE2b-256 |
eb054f1362d0c680b379646a8b31dbe6cf4285e2e08144fe4b1f4c15f4b200bb
|
File details
Details for the file diplomat_gate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: diplomat_gate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
154cfb8d0f6f7fbe62ad57c82aa3a5e6b99544838e2fcf9f4aa0e693ccb20e30
|
|
| MD5 |
9e22f13ee212edc1ec098b05cbbc58a7
|
|
| BLAKE2b-256 |
3818bc436fb36a2f1b478b0f11cc376f7e43597dd6296483d9226cad6509ddf6
|