Skip to main content

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


Download files

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

Source Distribution

qprompt_cli-0.1.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

qprompt_cli-0.1.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for qprompt_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a48f91cb5579d4bb346df91276f87311b73863581010ced51bbd98010f60e732
MD5 e9ebe219fe58d552f304d783d602c163
BLAKE2b-256 0118685d2fcea9da0fc8ff7d74f918cdecfd5009e453f60bb9a6d3d54fa9c197

See more details on using hashes here.

Provenance

The following attestation bundles were made for qprompt_cli-0.1.1.tar.gz:

Publisher: release.yml on kraftaa/llm-explain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for qprompt_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2d748d1c044639ec760ee7217771cf602175aa9b169ddc123d6f432cfa629f9
MD5 26294e4aa49904e5879f0cd97da8c513
BLAKE2b-256 27b6ea158987ac71c91377950aa3052d04099858e75a259df8a3bbc9c375c3b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for qprompt_cli-0.1.1-py3-none-any.whl:

Publisher: release.yml on kraftaa/llm-explain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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