Structured output
The ask: enforce schemas on LLM output, validate, retry on parse errors, log failures.
The problem: a language model answers in prose, and software needs data. When an agent's answer feeds the next step of a pipeline it has to arrive in an exact shape, every time, and the system has to notice the moment it doesn't. Otherwise one garbled reply quietly corrupts everything downstream.
In the fleet
- Draft-gate judges reply in JSON. Malformed replies are parsed, shape-checked, range-checked, and retried once before the judge is discarded.
- The video judge runs a repair chain on almost-JSON (bad escapes, trailing commas) before giving up, then asserts exactly five score keys.
- A contract gate on the article handoff raises on any missing or malformed field before the pipeline spends a cent.
- Eval scorers check field, type and range on every scenario run; parse failures are logged with the reason.
Lives in
Draft-gate panelVideo engineFleet eval harnessCaveat: validation is hand-rolled rather than built on a standard schema library like Pydantic. The prose-level output contract is prompt-enforced, and only the stronger model tier honours it.