Tamper-proof audit trails for AI agents.
Project description
agentseal-sdk
Tamper-proof audit trails for AI agents. Every action is cryptographically chained — tamper with one record and the entire chain breaks.
Install
pip install agentseal-sdk
Quickstart
from agentseal import Seal
seal = Seal(api_key="as_sk_...")
# Record an action
seal.record(
agent="my-bot",
action="email:send",
params={"to": "user@example.com"},
reasoning="User requested password reset",
)
# Query the audit trail
entries = seal.query(agent="my-bot")
# Verify chain integrity
result = seal.verify(agent="my-bot")
print(result) # {"valid": True, "entries_verified": 1}
API
Seal(api_key, base_url=DEFAULT)
Create a client. Supports with Seal(...) as seal: context manager.
seal.record(agent, action, params, reasoning, authorized_by)
Record an agent action to the tamper-proof chain. Returns {id, sequence, entry_hash, parent_hash}.
seal.query(agent, action_type, since, until, limit)
Query recorded entries with optional filters. Returns a list of entry dicts.
seal.verify(agent)
Verify hash chain integrity. Returns {"valid": True, "entries_verified": N} or {"valid": False, "broken_at_sequence": N, "reason": "..."}.
@seal.track(agent, action)
Decorator to auto-record function calls.
@seal.track(agent="my-bot")
def send_email(to, subject, body):
... # function runs, then the call is recorded automatically
Get an API key
Sign up at agentseal.io
License
MIT
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 agentseal_sdk-0.1.0.tar.gz.
File metadata
- Download URL: agentseal_sdk-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d9f69b2ac3a3a8069a542c6a08f0b1375af5cccea9a810e5f52d456e060e695
|
|
| MD5 |
4c0ce5a27e5f661f548c73ac86ef134f
|
|
| BLAKE2b-256 |
44a443633e628c282955474015f4ccdf85c5bc7059344afc4dd3731388a6dd98
|
File details
Details for the file agentseal_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentseal_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffea2e9f62b486e4a9399a24819e0663ed96d7370694010f89e21fa1d531a877
|
|
| MD5 |
348bde21aca00a06d82edb23fb935cc8
|
|
| BLAKE2b-256 |
0180b7eb067ccac5ad9bea95e70f85ab271f2336c4de2f98f2de9ef4ebe71739
|