What is Structured Output?
AI EngineeringLast updated:
Constraining LLM responses to follow a specific format like JSON, XML, or a defined schema.
Structured output ensures LLM responses can be reliably parsed by downstream code. Techniques include JSON mode, function calling, grammar-constrained decoding, and schema-based validation to guarantee well-formed outputs.