Flight recorder for LLM apps
Project description
qprompt-cli
Flight recorder for LLM apps: capture how a question was parsed, what tools were called, what evidence was used, and what risks remain.
What this tracks
question,model, timestamp,trace_id- parser output (
intent,entities, assumptions) - request envelope (
messages, tools available) - tool calls (name, redacted input, output summary, status/error)
- response metrics (latency, token estimates)
- evidence and answer audit risk flags
What this does not track
- Hidden internal chain-of-thought for hosted closed models
- Neuron-level/attention internals from provider backends
Install (local)
python -m pip install -e .
Python import:
from qprompt import Tracer
CLI
qprompt run "why did revenue drop in March?"
qprompt list
qprompt show <trace_id_or_path>
qprompt diff <trace_a> <trace_b>
Traces are saved under:
.traces/YYYY-MM-DD/trace_<uuid>.json
Schema
- JSON schema file:
src/llmtrace/trace_schema.json - Runtime trace builder/validator:
src/llmtrace/schema.py
Example output (run)
- Parsed intent and entities
- Tools used and summaries
- Evidence list
- Risk flags
Next integration step
Replace the mock callable in Tracer.chat(...) with your real model provider call and preserve returned usage token fields.
Project details
Release history Release notifications | RSS feed
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 qprompt_cli-0.1.1.tar.gz.
File metadata
- Download URL: qprompt_cli-0.1.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a48f91cb5579d4bb346df91276f87311b73863581010ced51bbd98010f60e732
|
|
| MD5 |
e9ebe219fe58d552f304d783d602c163
|
|
| BLAKE2b-256 |
0118685d2fcea9da0fc8ff7d74f918cdecfd5009e453f60bb9a6d3d54fa9c197
|
Provenance
The following attestation bundles were made for qprompt_cli-0.1.1.tar.gz:
Publisher:
release.yml on kraftaa/llm-explain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qprompt_cli-0.1.1.tar.gz -
Subject digest:
a48f91cb5579d4bb346df91276f87311b73863581010ced51bbd98010f60e732 - Sigstore transparency entry: 1423834416
- Sigstore integration time:
-
Permalink:
kraftaa/llm-explain@482ec9946ad82262cbc03194d42f9d2ca8716a27 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/kraftaa
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@482ec9946ad82262cbc03194d42f9d2ca8716a27 -
Trigger Event:
push
-
Statement type:
File details
Details for the file qprompt_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: qprompt_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2d748d1c044639ec760ee7217771cf602175aa9b169ddc123d6f432cfa629f9
|
|
| MD5 |
26294e4aa49904e5879f0cd97da8c513
|
|
| BLAKE2b-256 |
27b6ea158987ac71c91377950aa3052d04099858e75a259df8a3bbc9c375c3b3
|
Provenance
The following attestation bundles were made for qprompt_cli-0.1.1-py3-none-any.whl:
Publisher:
release.yml on kraftaa/llm-explain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qprompt_cli-0.1.1-py3-none-any.whl -
Subject digest:
d2d748d1c044639ec760ee7217771cf602175aa9b169ddc123d6f432cfa629f9 - Sigstore transparency entry: 1423834489
- Sigstore integration time:
-
Permalink:
kraftaa/llm-explain@482ec9946ad82262cbc03194d42f9d2ca8716a27 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/kraftaa
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@482ec9946ad82262cbc03194d42f9d2ca8716a27 -
Trigger Event:
push
-
Statement type: