Metadata-Version: 2.4
Name: agentwarden
Version: 0.1.2
Summary: Security and access control for AI Agents
Home-page: https://github.com/securewarden/agentwarden-sdk
Author: David Fdez
Author-email: hello@agentwarden.io
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.27.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# AgentWarden SDK

Security and permission management for AI Agents.

## Installation
```bash
pip install agentwarden
```

## Quick Start
```python
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
```python
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](https://agentwarden.io) for full documentation.

## License

MIT License
