โ† Back to Utilities
โœ…FREEBeginner

RESPONSE VALIDATOR

Validate LLM JSON output against a schema and auto-retry on failure.

Drop-in for any function that returns JSON from an LLM. Pass your value + schema, get back errors. Or pass an llm_call function + schema and it'll auto-retry: each retry appends the validation errors to the prompt so the model can self-correct. Supports type, required, properties, additionalProperties, enum, pattern, format (email/uri/date), minLength/maxLength, minItems/maxItems/uniqueItems, minimum/maximum/exclusive, multipleOf, items, oneOf/anyOf/allOf, const. CLI mode for offline schema-checking JSON files. Pure stdlib, no jsonschema dependency.

FREE

NO PURCHASE REQUIRED

Instant download after checkout.
Inject via CLI.

Tech Stack

Python 3
stdlib only

WHAT'S INCLUDED

โ–ธJSON Schema subset validator
โ–ธAuto-retry with error feedback
โ–ธCLI mode for offline checking
โ–ธComposes with json-repair as the parser

TAGS

jsonschemavalidationllmpython

NEED SOMETHING DIFFERENT?

Get a custom utility built to your exact specs.

Request Custom Build โ†’