Skip to main content

smolagents-openttt

TTTPS Proof-of-Time step callback for smolagents. Attaches a cryptographic audit-trail timestamp (a signed Proof-of-Time receipt) to each agent ActionStep.tttps_receipt, sealed against the public self-serve KPP Provenance API.

This attaches a cryptographic audit-trail timestamp and integrity hash. It does not certify legal or regulatory compliance (EU AI Act, FDA, and so on). Treat it as an audit-trail timestamp, not a compliance claim.

Note: this package only depends on httpx, not smolagents itself. The callback is duck-typed against memory_step.model_output so it has no import dependency on smolagents' internals. You still need smolagents installed in your own project to actually get step_callbacks invoked.

Install

pip install smolagents-openttt

Usage

from smolagents import CodeAgent
from smolagents_openttt import ttts_pot_step_callback_kpp_live

agent = CodeAgent(
    tools=[],
    model=your_model,
    step_callbacks=[ttts_pot_step_callback_kpp_live],
)
result = agent.run("your task")

for step in agent.memory.steps:
    print(getattr(step, "tttps_receipt", None))
    # {"status": "ok", "receipt_id": "...", "receipt": "...", "time": "...", ...}

Set KPP_API_KEY (mint one for free via POST https://kpp.kenosian.com/v1/keys) and optionally KPP_BASE / KPP_TIMEOUT_S as environment variables.

Fail-open: any network/upstream error degrades the receipt to {"status": "degraded", ...}. It never raises, and the step's model_output/observations/action_output are never touched.

License

MIT

Metadata

Release files for smolagents-openttt 0.1.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 smolagents-openttt 0.1.0
File Size Uploaded
smolagents_openttt-0.1.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smolagents-openttt 0.1.0
File Interpreter ABI Platform
smolagents_openttt-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / smolagents_openttt-0.1.0.tar.gz

Download URL smolagents_openttt-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7c800350beba4b6db91e431d853e111c2cbbea6f5cae0d9a9d62d95a33940cde
BLAKE2b-256 checksum
How to use checksums
b9e0355cfd18402e705543e3fbf6191e8a1b53a1f31858fc2bd2e77a9d6c131e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / smolagents_openttt-0.1.0-py3-none-any.whl

Download URL smolagents_openttt-0.1.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e63d839aa8c405edc1e1ab451b4e23c45a62f3c0b43d43e44fbab7a51391d7b
BLAKE2b-256 checksum
How to use checksums
db4be66f19c0fe92b63b2d45656e895045690b0b6cb25a29cadc7d6cac1b0c33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

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