Skip to main content

llamaindex-openttt

TTTPS Proof-of-Time callback handler for LlamaIndex. Attaches a cryptographic audit-trail timestamp (a signed Proof-of-Time receipt) to ChatResponse.additional_kwargs / CompletionResponse.additional_kwargs on every LLM event, 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.

Install

pip install llamaindex-openttt

Usage

from llama_index.core.callbacks import CallbackManager
from llamaindex_openttt import TTTPSTimestampCallbackHandlerKPPLive

Settings.callback_manager = CallbackManager([TTTPSTimestampCallbackHandlerKPPLive()])

resp = llm.complete("hi")
print(resp.additional_kwargs["tttps_receipt"])
# {"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 out of on_event_end, and the generated text itself is never touched.

License

MIT

Metadata

Release files for llamaindex-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 llamaindex-openttt 0.1.0
File Size Uploaded
llamaindex_openttt-0.1.0.tar.gz 4.0 kB Details

Built distribution (wheel)

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

Total release size: 8.6 kB

Release files / llamaindex_openttt-0.1.0.tar.gz

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

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

Download URL llamaindex_openttt-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4aa27e1bab331aeef59c5096b38ca6b10f3ec02484cf4a32c321a957a0fd4f3e
BLAKE2b-256 checksum
How to use checksums
414a136c43d23c3f172b21559ab2d1847b09e759df0880785d9a591d3add1867
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