Skip to main content

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

Metadata

Release files for tethral-acr 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tethral-acr 0.4.0
File Size Uploaded
tethral_acr-0.4.0.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tethral-acr 0.4.0
File Interpreter ABI Platform
tethral_acr-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / tethral_acr-0.4.0.tar.gz

Download URL tethral_acr-0.4.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
95584a6442347a4c166281b6d6bc03485fc3d9c4612bbad0ef1814fad71ddc0b
BLAKE2b-256 checksum
How to use checksums
2052bca9d548125b98d5c7611a488f982a9c4f8a58ef7d767edf3386936635b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / tethral_acr-0.4.0-py3-none-any.whl

Download URL tethral_acr-0.4.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dee31884a327bec2a9d5914fedd809dc945765fddf970149a015fa6543222442
BLAKE2b-256 checksum
How to use checksums
52d7c8227f58b810d64c11f56f2b78c78069f9cd01ef29db4fdd60434b132929
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page