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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smolagents_openttt-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smolagents_openttt-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file smolagents_openttt-0.1.0.tar.gz.

File metadata

  • Download URL: smolagents_openttt-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for smolagents_openttt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7c800350beba4b6db91e431d853e111c2cbbea6f5cae0d9a9d62d95a33940cde
MD5 1f63bfcdb4175eae313ecaaf19639247
BLAKE2b-256 b9e0355cfd18402e705543e3fbf6191e8a1b53a1f31858fc2bd2e77a9d6c131e

See more details on using hashes here.

File details

Details for the file smolagents_openttt-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smolagents_openttt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e63d839aa8c405edc1e1ab451b4e23c45a62f3c0b43d43e44fbab7a51391d7b
MD5 a1448e70d795bf348db08b58ada9d60b
BLAKE2b-256 db4be66f19c0fe92b63b2d45656e895045690b0b6cb25a29cadc7d6cac1b0c33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page