unOpen.AI
In closed beta: Roxy, a private AI assistant with permanent memory running on infrastructure the user owns. Brand, site, product, backend and conversational design.
LLM structured outputs force a model’s response into a schema you define, usually JSON, through constrained decoding or tool calling. That made structured output reliable, and the reliability is narrower than it sounds: the schema settles the shape of the response, not whether its values are true. For teams building on it, validation and an evaluation set still decide that.
Introduction transcript. Qubi: Software can't act on a paragraph; it needs an answer in a fixed shape. We compile the schema into the decoder, so only valid shapes can come out. A valid shape can still hold a wrong value, so each one is checked. Then your code decides: it checks permission, runs the tool, and logs the call.
Almost no production AI system consumes free text. A support agent emits an intent, a confidence and a set of arguments; a document pipeline emits fields; an orchestration layer emits which tool to call and with what. The model's paragraph is for the human at the end, if there is one — the part the software acts on is a structured object.
That makes structured output the least discussed and most load-bearing part of the stack. It is also where a system quietly becomes fragile: a parser wrapped in a try block, a regular expression pulling JSON out of a markdown fence, a retry loop that fires a few times an hour and nobody looks at. All of that was necessary once. It is not any more, and removing it is usually the cheapest reliability win available on an existing system.
The reason is a change in mechanism rather than a change in model quality. Asking a model nicely for JSON is a prompt. Constraining its decoder so that no token producing invalid JSON can be sampled is an engineering guarantee about syntax, and it is the difference between hoping and knowing — about the shape, and only about the shape.
This is the distinction worth being pedantic about, because a great deal of production incident time is spent on the right-hand column by teams who believed the left-hand one had covered it.
| Criterion | Constrained decoding | Still your job |
|---|---|---|
| Output parses as JSON | Yes | No |
| Required fields are present | Yes | No |
| Types match the schema | Yes | No |
| Enum values are members of the enum | Yes | No |
| The value is factually right | No | Yes |
| The identifier refers to a record that exists | No | Yes |
| The date is inside a plausible range | No | Yes |
| The amount matches the source document | No | Yes |
| The tool is the right tool for this request | No | Yes |
| The caller is permitted to invoke it | No | Yes |
There is a second-order effect worth knowing about: a grammar can only mask tokens, so a model pushed into a shape it does not want to produce will fill the shape anyway. If your schema requires a customer_id and the source text contains none, a constrained decoder cannot emit “there isn't one” unless you gave it a way to say so. It will emit a plausible-looking identifier instead. Most invented-value bugs we see are this bug, and the fix is in the schema rather than in the prompt.
found boolean, an enum member called not_stated. Without it a required field is an instruction to invent. With it, “not present in this document” becomes a first-class answer you can measure the rate of.invoice_total_including_vat extracts better than amount, and a description on the field beats a paragraph in the system prompt explaining what amount means. The schema is read by the model as part of the context; write it for that reader as well as for the type checker.source_quote or page field alongside each extracted value costs a few tokens and changes what verification is possible: a reviewer can check the citation rather than re-reading the document, and an automated check can confirm the quoted span actually appears in the source. Grounding the output in something checkable is worth more than any confidence score the model reports about itself.A tool call is the point where a language model stops producing text and starts causing effects, which makes the validation step between the two the most consequential twenty lines in the system. The model proposes; your code decides.
user or trigger
only what this caller may use
name + argument object
schema, then business rules
error back to the model
as the end user, not the service
and log the arguments
Once anything downstream consumes the object, the schema is a published contract with the same compatibility rules as any API. Adding an optional field is safe. Adding a required one, tightening an enum, renaming a field or changing a type is a breaking change, and doing it in place breaks every consumer at once.
Two practices make this cheap. Keep the schema in version control as its own artefact rather than inline in a prompt string, so a diff is reviewable and a change is attributable. And treat a schema change as a change that must pass the evaluation set — enum edits in particular shift model behaviour in ways nobody predicts, because the enum members are part of the context the model reasons in. A schema change with no eval run behind it is a deploy with no test behind it.
The same argument applies to the tool definitions. A renamed parameter, a reworded description, a reordered enum: all of them alter what the model sees, and all of them belong on the same review path as the code that executes the call.
It can, and the effect depends on how far the schema is from what the model would naturally produce. A schema that fights the model — forcing a rigid order, demanding a field the input does not support, denying any way to express uncertainty — costs accuracy even though every response is valid. The practical test is to run the same task with and without the constraint against your evaluation set. Where a gap appears, it is nearly always the schema that needs redesigning rather than the constraint that needs removing.
A numeric self-reported confidence is weakly informative at best and tends to cluster in a narrow band regardless of whether the answer is right. A small enum — clear, ambiguous, not found — is more useful, because the categories are actionable routing decisions rather than a number somebody has to threshold. Better still are external signals: whether the quoted span exists in the source, whether a lookup confirms the identifier, whether two independent extractions agree.
Yes. Grammar-constrained sampling is implemented in the common open-source inference servers, so schema enforcement is available without a hosted provider, and it is one of the areas where self-hosting gives you more control rather than less. Smaller models benefit from it disproportionately: much of their apparent unreliability at structured tasks is formatting failure rather than reasoning failure, and constraining the decoder removes that layer entirely.
The same way as anything else: a set of real inputs with the correct object for each, scored field by field rather than on whole-object equality. Field-level scoring is the part teams skip, and it is what tells you that the pipeline is fine except that dates are wrong 8% of the time. Include inputs where the correct answer is null or not_found, since a set made only of clean documents cannot detect the invention failure mode at all.
They operate at different levels. Structured output and tool calling are the model-side mechanism: how a model is made to emit a validated argument object. The Model Context Protocol is a transport and capability-description standard for connecting a model to tool servers over a common interface. You can use tool calling with no MCP at all, and an MCP server is ultimately exposing tools that a model calls this way.
What we built, what stage it is at, and a link to the live thing wherever there is one.
In closed beta: Roxy, a private AI assistant with permanent memory running on infrastructure the user owns. Brand, site, product, backend and conversational design.
yourOS is an operating system with an AI at its heart. You talk to it like a person, out loud or typed. It makes your calls, plans your days and works on your projects with a crew of agents, on your own private server. Our own product, built from the first commit; the waitlist is open.
Website, backend and app assets for Sonora, a free AI sound-therapy app on iOS and Android published by Cognitive AI.
Brand, website, prototype, apps on five platforms, the AI backend and the algorithm-intelligence pipeline for Podswap, a social growth engine that runs without a human in the loop.
Live at coherence.com: brand identity generated with AI agents we directed, the motion system and website for the group behind Sonora, AboutAI, WakeUp and MudShadows. Agent work remains in build.
Live at domainbooth.com for DomainBooth, a premium domain brokerage: a new animated mark, every page redesigned and rebuilt with designed mobile layouts, and a custom CMS for its sales record, featured names, press and enquiries.
Live at wakeup.com for Coherence: a new 3D mark, a code-rain site built from scratch, a custom CMS for a team of writers with roles, editor review and author pages, 52 posts moved off WordPress at their old addresses, and every page made readable by search engines and AI assistants, ahead of the WakeUp binaural beats app.
Bring the schema and a hundred real inputs. Field-level scoring usually finds the bug in an afternoon.
30-minute technical call · no deck