Skip to main content

Python SDK for AgentAudit — open-source compliance monitoring for AI agents

Project description

AgentAudit

Python SDK for AgentAudit — 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

pip install agentic-audit

Quick start

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

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
  • Cowork — plugin with automatic hook registration
  • LangChainpip install agentic-audit[langchain] for callback handler
  • CrewAI — event hook for multi-agent crews
  • Any agent — REST API / this SDK

Links

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentic_audit-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentic_audit-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file agentic_audit-0.1.0.tar.gz.

File metadata

  • Download URL: agentic_audit-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agentic_audit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 912f5787de89ec3db9d3bb9c4856d1e15c1287ba7e4c1e72e352d145222df5fa
MD5 ece8a3987e48cf8e07125f8a901738a1
BLAKE2b-256 4bde90fab3f9a628464cc399d2c6450bf13b170eec3f38038c95a43e15e03151

See more details on using hashes here.

File details

Details for the file agentic_audit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentic_audit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agentic_audit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd85ec32acf0479b884bc6b604996b768ee05f78dce0d4a390082457d0035c73
MD5 64f4fbd37a02231ec60cd910d3107bfd
BLAKE2b-256 cc9f3fefaea67a1f0ff624b8d49f7e9d8a5a218f7457db4e5c3a13a2346f3c9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page