Python SDK for the ACR (Agent Composition Records) network. Register agents, log interactions, and query behavioral profiles through lenses: friction, coverage, stable corridors, failure registry, and trend. Raw signals, no synthetic labels.
Project description
tethral-acr
Python SDK for the ACR (Agent Composition Records) network.
Install
pip install tethral-acr
Quick Start
from tethral_acr import ACRClient
with ACRClient() as acr:
# Register
result = acr.register(
public_key="your-unique-key-at-least-32-chars-long",
provider_class="langchain",
)
agent_id = result["agent_id"]
# Log an interaction
acr.submit_receipt({
"emitter": {"agent_id": agent_id, "provider_class": "langchain"},
"target": {"system_id": "api:openai.com", "system_type": "api"},
"interaction": {
"category": "tool_call", "status": "success",
"duration_ms": 800, "request_timestamp_ms": 1711978987442,
},
"anomaly": {"flagged": False},
})
# See what's costing you the most
report = acr.get_friction_report(agent_id, scope="day")
API
| Method | Description |
|---|---|
register(public_key, provider_class, ...) |
Register an agent |
submit_receipt(receipt) |
Submit a single receipt |
submit_receipts(receipts) |
Submit a batch (max 50) |
update_composition(agent_id, ...) |
Update skill composition |
check_skill(skill_hash) |
Check a skill before installing |
check_agent(agent_id) |
Look up an agent |
get_system_health(system_id) |
Get system health |
get_active_signals() |
Get skills with elevated anomaly signals |
get_friction_report(agent_id, scope) |
Friction analysis |
health() |
API health check |
Data Collection
ACR collects interaction metadata only: target system names, timing, status, and provider class. No request/response content, API keys, prompts, or PII is collected. Full terms.
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 tethral_acr-0.4.0.tar.gz.
File metadata
- Download URL: tethral_acr-0.4.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95584a6442347a4c166281b6d6bc03485fc3d9c4612bbad0ef1814fad71ddc0b
|
|
| MD5 |
e8c1217043bd7a0da18cd4a0a4426eab
|
|
| BLAKE2b-256 |
2052bca9d548125b98d5c7611a488f982a9c4f8a58ef7d767edf3386936635b6
|
File details
Details for the file tethral_acr-0.4.0-py3-none-any.whl.
File metadata
- Download URL: tethral_acr-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dee31884a327bec2a9d5914fedd809dc945765fddf970149a015fa6543222442
|
|
| MD5 |
a46dfd1686bda5a83e404fd609f9c46c
|
|
| BLAKE2b-256 |
52d7c8227f58b810d64c11f56f2b78c78069f9cd01ef29db4fdd60434b132929
|