Structured Output
Constraining a model to emit valid JSON or a schema-conforming object.
Resumen
Structured output constrains generation so the result parses against a schema, usually by restricting which tokens are allowed at each position. It solves the problem that asking a model for JSON produces JSON most of the time, and a pipeline cannot be built on most of the time. It exists because the constraint is enforced during generation rather than validated afterwards, so retries and repair logic are not needed.
Grafo de tecnologías
Cómo se conecta Structured Output con el resto del stack.
Aplicado a
- AI Agent application AI Agents Structured Output used for AI Agent High ✓ source
- Constrained Decoding technique Techniques Constrained Decoding used for Structured Output High ✓ source
- Function Calling technique Prompting Structured Output used for Function Calling High ✓ source