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
Release files for reshimu-shor 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reshimu_shor-0.1.1.tar.gz | 15.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reshimu_shor-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.9 kB
Release files / reshimu_shor-0.1.1.tar.gz
| Download URL | reshimu_shor-0.1.1.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c95f811658242a79eda6c0a32cd1fc85acc8ab709ef46b36fdc73565e7ba45c9
|
|
BLAKE2b-256 checksum How to use checksums |
584e32882207682f43d60b51375eb21740a73fb7f1d105d222812dff06073437
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / reshimu_shor-0.1.1-py3-none-any.whl
| Download URL | reshimu_shor-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a2b63375784ddb5fe375c6a673d1aac014928066e72179756a88bad9b99836c
|
|
BLAKE2b-256 checksum How to use checksums |
d209bee0d44fa805ce6b189b2f09d9bd67e4ca3cc159b30e2f1f6ddd2665b508
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|