Overview
Response schema types define the structure that LLM outputs must conform to, enabling structured data extraction.ResponseSchema
JSON schema definition for constraining and validating LLM response format.name- Schema name (alphanumeric + underscore, 1-64 chars)description- Schema description (up to 4096 chars)strict- Whether to enforce strict schema adherenceschema- The JSON schema structure
ResponseSchemaStructure
Root JSON schema structure for validating LLM structured outputs.type- Must be ‘object’required- Array of required property names$defs- Schema definitions for reuse (optional)properties- Object propertiesadditionalProperties- Must be false for strict schemas
ResponseSchemaProperty
JSON schema property definition for structured response validation.Complete Example
Import
Related
Message Types
Messages in prompts
Tool Types
Similar parameter schemas