Structured Output
Definition
Structured output is when a language model is made to answer in an exact machine-readable format, usually JSON matching a schema the developer provides, so the application can use the answer directly instead of parsing free text.
Diagram
Schema
{ "total": number }Written so far
{ "total": The model’s likely next tokens
aboutblocked1allowed"blocked4allowedTheblocked