Python SDK for Heed — human-in-the-loop approval for AI agents
Project description
heed
Python SDK for Heed — human-in-the-loop approval for AI agents.
Install
pip install heed
Quickstart
from heed import Heed
client = Heed(api_key="hd_live_your_key_here")
result = client.request_approval(
action="send_invoice",
summary="Invoice ACME Corp for $5,200",
context={"amount": 5200},
)
if result.get("requires_approval"):
decision = client.wait_for_decision(result["id"], timeout=300)
print(decision["status"]) # approved | rejected | ...
else:
print("Auto-approved — proceed")
Webhook verification
from heed import verify_webhook
is_valid = verify_webhook(request_body, request.headers["X-OA-Signature"], webhook_secret)
Docs: https://heed.run/docs
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
heed-0.1.0.tar.gz
(3.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
heed-0.1.0-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file heed-0.1.0.tar.gz.
File metadata
- Download URL: heed-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b806b7f9e134fff0cddd5bae8f9a8d157a6ba17adf1cb5b9109d679fa532221d
|
|
| MD5 |
4056190a70aaecf46b0d2a6f2dd72809
|
|
| BLAKE2b-256 |
4db2779444a945e0d61b21206d7dd494422bb3a5c372dce261d937d0dcf09ee2
|
File details
Details for the file heed-0.1.0-py3-none-any.whl.
File metadata
- Download URL: heed-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6493021a9fe5a95756cba37ad72dd94120a82ed192db2dd0c39b3f55d5e94c20
|
|
| MD5 |
5d2dd5ce1ed6cb29a6607f2dbf9143c3
|
|
| BLAKE2b-256 |
7d795c1f6fe6843c810912d70dcddc5eff3631e63931107c298b0275ec1b6ffb
|