Python SDK for the ACR (Agent Composition Records) network
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
tethral_acr-0.3.0.tar.gz
(5.4 kB
view details)
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.3.0.tar.gz.
File metadata
- Download URL: tethral_acr-0.3.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c51cc3b8169231fae854f98b79bf653ec433ef41f5d43a08c9d3dea8487b4ca
|
|
| MD5 |
4596ac7b10a20487045cfd1effd22cb0
|
|
| BLAKE2b-256 |
4752b313e2600fcd19a6e378ccfca69b8d31fe53490d93422836bb1ef60444c0
|
File details
Details for the file tethral_acr-0.3.0-py3-none-any.whl.
File metadata
- Download URL: tethral_acr-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
296e0728edee1bb2943ac843afe57451e68b44b041e9933c24dbd3281090847f
|
|
| MD5 |
e68d941b592a7ea505c94cc91089c1a1
|
|
| BLAKE2b-256 |
2812852b460d957bdc4ec0bc77a95b8ddc0eb3d104fe963a58533fc379c19a7e
|