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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 llamaindex_openttt-0.1.0.tar.gz.
File metadata
- Download URL: llamaindex_openttt-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb530e35dcdb26ab93b9d947eeb925e0029a54c2a58e56442a1bf1b5f9fa0702
|
|
| MD5 |
f1bf76da0d3e6e2d672223d99e7ef5e2
|
|
| BLAKE2b-256 |
ef23a6a243265b3b716c004d6afa0b76b2690f70bedcf1d23a1faca4a4cc7c69
|
File details
Details for the file llamaindex_openttt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llamaindex_openttt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4aa27e1bab331aeef59c5096b38ca6b10f3ec02484cf4a32c321a957a0fd4f3e
|
|
| MD5 |
193bbae03b7087e05aefc8d90f07d61c
|
|
| BLAKE2b-256 |
414a136c43d23c3f172b21559ab2d1847b09e759df0880785d9a591d3add1867
|