ResponseFormat

ResponseFormat
ResponseFormat

Response format configuration for structured outputs. Compatible with OpenAI's Chat Completion API.

Supported formats:

  • {"type": "text"}
  • {"type": "json_object"}
  • {"type": "json_schema", "json_schema": {"name": ..., "schema": {...}, "strict": true}}
JSON Example
{
    "type": "string",
    "json_schema": {
        "name": "string",
        "schema": {},
        "strict": false
    }
}
string
type
Required  

type

Enumeration: text, json_object, json_schema
json_schema
Optional

json_schema