On-chain EU AI Act compliance SDK for AI agents — immutable audit logs, KYA registration, incident reporting, post-market monitoring.
Project description
agentauditai-sdk
On-chain EU AI Act compliance for AI agents — immutable audit logs, Know Your Agent (KYA) registration, incident reporting, and post-market monitoring across 5 EVM networks.
Enforcement deadline: August 2, 2026.
Installation
pip install agentauditai-sdk
Quick Start
1. Register an AI agent (Art. 13, 26 — KYA standard)
from agentauditai import AgentAuditClient
client = AgentAuditClient(
api_key="your-api-key",
base_url="https://your-agentaudit-api",
network="base",
)
registration = client.register_agent(
agent_id="42",
name="customer-support-agent",
model="claude-sonnet-4-6",
network="base",
)
print(f"Registered: tx={registration.tx_hash}")
print(f"Articles covered: {registration.articles}")
2. Audit an agent action (Art. 12, 19 — record-keeping)
from agentauditai import AgentAuditClient
client = AgentAuditClient(api_key="your-api-key", network="arbitrum")
result = client.audit_action(
agent_id="42",
action="LLM_DECISION",
data={
"prompt": "Summarise the customer complaint",
"response": "Refund approved for order #8821",
"model": "claude-sonnet-4-6",
},
risk_level="HIGH",
)
print(f"Logged on-chain: {result.tx_hash}")
print(f"Audit ID: {result.audit_id}")
print(f"Articles triggered: {result.articles}")
3. Get compliance report (Art. 72 — post-market monitoring)
from agentauditai import AgentAuditClient
client = AgentAuditClient(api_key="your-api-key", network="base")
# Risk score
risk = client.get_risk_score(agent_id="42")
print(f"Risk level: {risk.level} score: {risk.score}")
print(f"Status: {risk.compliance_status}")
# Full compliance report
report = client.get_compliance_report(agent_id="42")
print(f"Agent: {report.agent_name}")
print(f"Total actions logged: {report.total_actions_logged}")
print(f"Applicable articles: {report.applicable_articles}")
print(f"Compliance status: {report.compliance_status}")
for obligation in report.obligations:
status = "PASS" if obligation["met"] else "FAIL"
print(f" [{status}] {obligation['article']} — {obligation['obligation']}")
EU AI Act Coverage
| Article | Obligation | Method |
|---|---|---|
| Art. 9 | Risk management system | get_risk_score() |
| Art. 11 | Technical documentation | register_agent() |
| Art. 12 | Record-keeping & audit logs | audit_action() |
| Art. 13 | Transparency to users | register_agent() |
| Art. 14 | Human oversight | audit_action() with action tagging |
| Art. 19 | Conformity assessment logging | audit_action() |
| Art. 26 | Deployer obligations (KYA) | register_agent() |
| Art. 72 | Post-market monitoring | get_compliance_report() |
| Art. 73 | Serious incident reporting | audit_action(action="REPORT_INCIDENT") |
Supported Networks
| Network | Chain ID |
|---|---|
| Base Mainnet | 8453 |
| Arbitrum One | 42161 |
| Optimism Mainnet | 10 |
| Polygon Mainnet | 137 |
| Mantle Mainnet | 5000 |
Configuration
| Parameter | Environment Variable | Default |
|---|---|---|
api_key |
AGENTAUDIT_API_KEY |
— |
base_url |
— | http://localhost:3000 |
network |
— | base |
timeout |
— | 30 |
Links
- Website: getagentaudit.xyz
- PyPI: pypi.org/project/agentauditai-sdk
- npm: npmjs.com/package/@agentauditai/sdk
AgentAudit AI — a RunLockAI product
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
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 agentauditai_sdk-1.0.0.tar.gz.
File metadata
- Download URL: agentauditai_sdk-1.0.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f188b71391a6a33c6aec5b17c8b44fc334329f63655520cf770b2fc855a4d8a4
|
|
| MD5 |
9595c4d8a9d1cea8de5b84ed55d98671
|
|
| BLAKE2b-256 |
253e5c88d17fde17c1babd7f0890a1f21900db4cc1f2fa5b4648f3f4cc844681
|
File details
Details for the file agentauditai_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: agentauditai_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07e5adf345534a245c405d4325d5e88d46e7e5519f33b009e447f09ff4d40318
|
|
| MD5 |
f61963befdb42b891d93e21a2c592e76
|
|
| BLAKE2b-256 |
f3ef6bd29591d20d078a43a85d87548d7309b575e712a0022caf4df56350d9f3
|