ATB (Agent Trace Bundle) Python SDK — tamper-evident audit trails for AI agent workflows
Project description
ATB Python SDK
The official Python SDK for ATB (Agent Trace Bundle) — tamper-evident, replayable audit trails for AI agent workflows.
Installation
pip install atb-sdk
With LangChain integration:
pip install atb-sdk[langchain]
Quick Start
from atb import Bundle
# Create a new bundle
bundle = Bundle()
# Append events
bundle.append("dev.session", {
"date": "2025-01-15",
"features_built": ["hash chaining", "CLI init"],
"blockers": ["RFC 8785 library compatibility"],
})
bundle.append("decision", {
"choice": "Go over Rust for CLI",
"reason": "Solo founder velocity",
"alternatives": ["Rust", "Python-only"],
})
# Save to disk
bundle.save("run.atb/bundle.atb")
# Later — reload and verify integrity
b = Bundle.load("run.atb/bundle.atb")
b.verify() # Raises ATBVerificationError if tampered
print(f"Verified {len(b)} events — chain intact.")
LangChain Integration
from atb import Bundle
from atb.integrations.langchain import ATBCallbackHandler
from langchain.chat_models import ChatOpenAI
bundle = Bundle()
handler = ATBCallbackHandler(bundle, auto_save=True)
llm = ChatOpenAI(callbacks=[handler])
# All LLM calls are now automatically recorded in the bundle.
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 atb_sdk-1.0.2.tar.gz.
File metadata
- Download URL: atb_sdk-1.0.2.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e5c6f06504077dedf5aedcd854718b8dc95347276570c89b2ae72754a835649
|
|
| MD5 |
1db4a5e19eb436fb5e87d006a746f63c
|
|
| BLAKE2b-256 |
aa791cd1edfac428c198f3c95ac7257386a38ee38225a4736d095eb5b3a48e42
|
Provenance
The following attestation bundles were made for atb_sdk-1.0.2.tar.gz:
Publisher:
release.yml on pcguest/atb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atb_sdk-1.0.2.tar.gz -
Subject digest:
9e5c6f06504077dedf5aedcd854718b8dc95347276570c89b2ae72754a835649 - Sigstore transparency entry: 1074514238
- Sigstore integration time:
-
Permalink:
pcguest/atb@14d7690206ddf7e67293274e1cd4a946b9d8d2fd -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/pcguest
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@14d7690206ddf7e67293274e1cd4a946b9d8d2fd -
Trigger Event:
push
-
Statement type:
File details
Details for the file atb_sdk-1.0.2-py3-none-any.whl.
File metadata
- Download URL: atb_sdk-1.0.2-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
441961a6507fcb769a12cbd27b3ae77fd343bc7aa801a6334326332c27976430
|
|
| MD5 |
156d34118ae6b6e7d29037854a0e15f2
|
|
| BLAKE2b-256 |
2028051e4755fc482c6b6658e7999917d248ecd055988d3c6e926d23aabe8799
|
Provenance
The following attestation bundles were made for atb_sdk-1.0.2-py3-none-any.whl:
Publisher:
release.yml on pcguest/atb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atb_sdk-1.0.2-py3-none-any.whl -
Subject digest:
441961a6507fcb769a12cbd27b3ae77fd343bc7aa801a6334326332c27976430 - Sigstore transparency entry: 1074514269
- Sigstore integration time:
-
Permalink:
pcguest/atb@14d7690206ddf7e67293274e1cd4a946b9d8d2fd -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/pcguest
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@14d7690206ddf7e67293274e1cd4a946b9d8d2fd -
Trigger Event:
push
-
Statement type: