Security and permissions for AI Agents
Project description
AgentWarden SDK
Security and permission management for AI Agents.
Installation
pip install agentwarden
Quick Start
from agentwarden import AgentWarden
# Initialize with your API key
guard = AgentWarden(api_key="your-api-key")
# Check if agent can execute an action
result = guard.check(
agent_id="agent-001",
action="stripe.refund",
context={"amount": 50}
)
if result.allowed:
# Execute your action
stripe.refund.create(amount=50)
# Log the action
guard.log("agent-001", "stripe.refund", "success")
else:
print(f"Action blocked: {result.reason}")
Helper Method
def refund_payment():
return stripe.refund.create(amount=50)
# Check, execute, and log automatically
result = guard.execute(
"agent-001",
"stripe.refund",
refund_payment,
context={"amount": 50}
)
Documentation
Visit https://agentwarden.io for full documentation.
License
MIT License
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
agentwarden-0.1.1.tar.gz
(4.1 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 agentwarden-0.1.1.tar.gz.
File metadata
- Download URL: agentwarden-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04b683684f6a7b05c3317242b35be6263f0f7ddcd38f70d980ec29d1fb870567
|
|
| MD5 |
f37d4c091907870a3898398f4f967fa5
|
|
| BLAKE2b-256 |
0478e9ed79b0c28725a0e36e5d1522cf836c15b2b170e331ddda3685976ede04
|
File details
Details for the file agentwarden-0.1.1-py3-none-any.whl.
File metadata
- Download URL: agentwarden-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b8786f27ddbbd7d32f133fe2c516aeacf3c72f09d644e01bf97aa4fa0dde64a
|
|
| MD5 |
49839e971564f6c4a83365089d9a93e9
|
|
| BLAKE2b-256 |
80d0a3a11aede8750790b4a372bd65e3c13f21e61b57b1c3eba3d8f65c881cb5
|