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.0.tar.gz (8.2 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.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qprompt_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 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.0.tar.gz
Algorithm Hash digest
SHA256 546cf102b4a0f67d2dea0d44d351863ddc129f69e4d642c474fdd9142b0db1bd
MD5 5437bb781f6a17aeda807a087004755d
BLAKE2b-256 6625aa79d5e2a98897e83ebba921244beb214b469f9dc14cea0e766ca66204cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for qprompt_cli-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: qprompt_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c7a8706232a130eb737b33d45a942ed8150c14676175df7b2159a6e3932e8af
MD5 22616106278479ad0827d17bb71340ee
BLAKE2b-256 7e3cbd3252e6228de7557886ccfcdc632393ae5269154f26ae6f862ce4f98369

See more details on using hashes here.

Provenance

The following attestation bundles were made for qprompt_cli-0.1.0-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