json
Structured output and machine-readable responses.
5 tagged items
Instructor
A small Python library that forces a model output into a Pydantic schema and retries automatically when the response fails validation.
Tested on Claude Sonnet · Jun 2026
- GuideUniversal
Force a strict output contract
How to make a model response reliably machine-parseable: exact fields, no preamble, no trailing summary. For anything that downstream code reads and…
- CheatsheetUniversal
Forcing an output format that holds
Phrasings that really constrain output, and the popular ones that do not. I asked for the same thing twenty times and counted the failures.
Tested on Claude Sonnet · May 2026
- ConfigUniversal
System prompt for a support triage bot
A system prompt for classifying incoming support messages into a fixed set of routes, with an explicit escape for the unclear ones.
- PromptUniversal
Extract structured data as JSON
A strict extraction prompt that returns valid JSON only, with nulls for missing fields instead of invented values.