Makes model output conform to a provided JSON Schema (json_schema with strict true), configured through text.format in Responses or response_format in Chat Completions. It governs format, not tool calls.
Also called response_format, text.format.
Read more: Microsoft Learn
In the Ultra Transcenders books
Each book explains Structured outputs in context, with comparison tables and the common traps.
Terms in this definition
- JSON
Text-based format for structured data. ARM templates and Cosmos DB documents are written in it, and most Azure REST APIs exchange request and response bodies as application/json.
- Schema
The middle part of a Unity Catalog name (
catalog.schema.table), grouping tables, views, volumes, functions and models inside a catalog. A grant on it covers everything in it now and later, and nothing inside can be reached withoutUSE SCHEMA. - FORMAT
A DAX function that turns a value into text according to a format string, for instance "MMMM" to show a month's name. Since the output is text, numeric operations can't use it, and dynamic format strings were introduced to get around that.
- Chat message roles
Labels on chat messages: instructions go under system, the person's input under user, the model's previous answers under assistant, and results returned by a called tool under tool (or function).