Skip to main content

Deterministic, non-LLM grounding & hallucination classifier for agent loops.

Project description

reshimu-shor

Deterministic, non-LLM grounding & hallucination classifier for agent loops.

Python port of @reshimu/shor. Functionally identical to the TypeScript implementation — same input produces the same classification. Sub-50ms. Zero runtime dependencies (stdlib only).

This is the minimal README. The full README ships at the project root in a later step.

Install

pip install reshimu-shor

Quick start

from reshimu_shor import classify

result = classify(
    output="According to the report, Q3 revenue was $4.2M from 47 customers.",
    context="...the conversation history, tool outputs, documents the agent saw...",
)

print(result.level)            # 'GROUNDED' | 'PARTIAL' | 'UNGROUNDED' | 'INDETERMINATE'
print(result.score)            # [0, 1]
print(result.entities)         # per-entity lookup ledger
print(result.flag_for_review)  # True for PARTIAL and UNGROUNDED

License

MIT

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

reshimu_shor-0.1.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

reshimu_shor-0.1.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file reshimu_shor-0.1.1.tar.gz.

File metadata

  • Download URL: reshimu_shor-0.1.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for reshimu_shor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c95f811658242a79eda6c0a32cd1fc85acc8ab709ef46b36fdc73565e7ba45c9
MD5 02e877bf84b6bd3bf8894174a7c2c06a
BLAKE2b-256 584e32882207682f43d60b51375eb21740a73fb7f1d105d222812dff06073437

See more details on using hashes here.

File details

Details for the file reshimu_shor-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: reshimu_shor-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for reshimu_shor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a2b63375784ddb5fe375c6a673d1aac014928066e72179756a88bad9b99836c
MD5 6ae868bf02772269a8c492e5b322e99d
BLAKE2b-256 d209bee0d44fa805ce6b189b2f09d9bd67e4ca3cc159b30e2f1f6ddd2665b508

See more details on using hashes here.

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