Skip to main content
The Python SDK and docs are currently in beta. Report issues on GitHub.
JSON Schema response format for structured outputs

Fields

FieldTypeRequiredDescriptionExample
json_schemacomponents.ChatJSONSchemaConfig:heavy_check_mark:JSON Schema configuration object{"description": "A mathematical response","name": "math_response","schema": {"properties": {"answer": {"type": "number"}
},
“required”: [
“answer”
],
“type”: “object”
},
“strict”: true<br/>}
typecomponents.ChatFormatJSONSchemaConfigType:heavy_check_mark:N/A