Metadata-Version: 2.4
Name: agentic-audit
Version: 0.1.0
Summary: Python SDK for AgentAudit — open-source compliance monitoring for AI agents
Project-URL: Homepage, https://agentaudit.dev
Project-URL: Documentation, https://docs.agentaudit.dev
Project-URL: Repository, https://github.com/dorianganessa/agentaudit
Project-URL: Issues, https://github.com/dorianganessa/agentaudit/issues
Project-URL: Changelog, https://github.com/dorianganessa/agentaudit/blob/main/CHANGELOG.md
Author-email: Adriano Sanges <adriano@agentaudit.dev>
License: Apache-2.0
Keywords: agents,ai,ai-act,audit,compliance,gdpr,monitoring,pii,soc2
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: httpx<1.0,>=0.27
Provides-Extra: langchain
Requires-Dist: langchain-core>=0.3.0; extra == 'langchain'
Description-Content-Type: text/markdown

# AgentAudit

Python SDK for [AgentAudit](https://agentaudit.dev) — open-source compliance monitoring for AI agents.

Log every AI agent action, auto-detect PII, score risk, and map to GDPR / AI Act / SOC 2.

## Install

```bash
pip install agentic-audit
```

## Quick start

```python
from agentaudit import AgentAudit

audit = AgentAudit(api_key="aa_live_xxxxx")

event = audit.log(
    agent_id="booking-agent-v2",
    action="access_customer_record",
    data={"customer_email": "maria@example.com"},
)

print(event.risk_level)   # "medium"
print(event.pii_detected) # True
print(event.frameworks)   # {"gdpr": ["art_30"], "ai_act": ["art_14"]}
```

## Async support

```python
from agentaudit import AsyncAgentAudit

async with AsyncAgentAudit(api_key="aa_live_xxxxx") as audit:
    event = await audit.log(
        agent_id="my-agent",
        action="database_query",
        data={"query": "SELECT * FROM users"},
    )
```

## Integrations

- **Claude Code** — zero-overhead deterministic hooks via [`agentic-audit-hook`](https://pypi.org/project/agentic-audit-hook/)
- **Cowork** — plugin with automatic hook registration
- **LangChain** — `pip install agentic-audit[langchain]` for callback handler
- **CrewAI** — event hook for multi-agent crews
- **Any agent** — REST API / this SDK

## Links

- [Documentation](https://docs.agentaudit.dev)
- [GitHub](https://github.com/dorianganessa/agentaudit)
- [Quickstart](https://docs.agentaudit.dev/getting-started/quickstart/)

## License

Apache 2.0
