command
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 19, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
StructuredShield
Your LLM responses always match your schema. Always.
StructuredShield validates LLM responses against JSON schemas and automatically retries when validation fails. 96%+ pass rate with zero code changes.
Quickstart
export OPENAI_API_KEY=sk-...
npx @stockyard/jsonguard
# Dashboard → http://localhost:4102/ui
What You Get
- JSON Schema validation on every response
- Auto-retry (up to 3x) with the validation error in the prompt
- Pass rate dashboard — see your success rate in real-time
- Per-schema stats — track which schemas cause issues
- Failure browser — expected vs actual JSON, side by side
Part of Stockyard.
Documentation
¶
JSONGuard — "Guarantee valid JSON from any LLM."
Source Files
¶
Click to show internal directories.
Click to hide internal directories.