Issue 13 · Nov 2–8, 2026Editions · Glossary · Archive · Method · RSS · HU / ENG

News of the AI era, curated weekly

Glossary › Basics

structured output

advancedwidespread

Structured output is an AI response that is not free text but data in a predefined, fixed format, allowing another program to process it directly.

In plain terms

If you ask someone to tell you about their shopping yesterday, everyone phrases it differently. If, however, you hand them a form with fields for 'store name', 'date', and 'total amount', you always receive the data in the same format. Structured output gives this form to the language model.

This is necessary because the language model's response is often read not by a human but by another program, such as an invoicing system, calendar, or database. Programs cannot deal with sentences starting with 'Of course, here are the requested data!' They expect data in precisely defined fields of a specific type.

The plain answer is for humans, while structured output is for machines. This is what turns conversational AI into a reliable component that can be built into larger systems. Agents work in a similar way: when an agent uses a tool, it passes on, in a structured format, what it is requesting and with what data.

How it works

  1. The developer provides a schema, or an empty form: which fields should be present, whether number, text, date or list, and which are mandatory. This is most often a description in JSON format.
  2. The model receives the schema alongside the question and writes the answer accordingly.
  3. In stricter solutions, the system allows only continuations that fit the schema at every step while writing. Thus, the model cannot step outside the format, for example, it cannot omit a closing parenthesis.
  4. The receiving program checks the final answer against the schema and may request a new one if it is incorrect or incomplete.
  5. The data finally proceeds to the next step without human intervention: into a table, a database, or the next operation of an agent.

An everyday example

You photograph a restaurant bill with your phone, and the expense-tracking app automatically fills in the "location", "date", "amount", and "category" fields. Behind the scenes, a vision-capable language model may be working, extracting data from the photo, inferring the category based on content, and returning all this as structured output. This is why the app can immediately place everything in the correct category.

Who is affected

developerHow to reliably connect a language model to other software without having to pull free text apart with fragile tricks. → Code
entrepreneur, executiveThis is how AI becomes an automatable workflow: invoice, order, and email data are automatically entered into your systems.
employeeIf you ask the AI for a table-formatted, uniform answer, you save manual copying and reformatting. → Work & HR
everyoneBehind the automatic filling and summarization of many everyday applications, this solution works, even if you do not see it.

A common misconception

MythIf the response arrives in a regular format, then its content is definitely correct.
In realityStructured output guarantees only the format, not the content. The model can write incorrect or fabricated data into a perfectly filled form, so important values must be verified.

Limits and risks

Similar, but not the same

Related concepts

Broader

large language model, generative AI, Application programming interface

Narrower

JSON schema, constrained decoding

On the edge

JSON mode, tool calling, AI-agent, prompt, hallucination, data extraction

A brief history

Initially, developers could only ask the model to comply with the format in the prompt, which often resulted in incorrect output. In 2023, open-source tools (such as the grammars of llama.cpp and the Outlines library) already enforced the format during text generation. OpenAI introduced JSON mode in November 2023, and in August 2024, the Structured Outputs feature that guarantees adherence to the schema. Other major providers, such as Google and Anthropic, also offer similar solutions.

Where things stand

By the end of 2026, most large model providers and open-source runtime environments offer this as a basic feature. It has become a fundamental building block of agent-based systems and business automation.

Status: 2026 November

Also known as

structured output · structured response · structured output · structured outputs

Sources

This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.