---
title: "ChatFormatJSONSchemaConfig"
---

JSON Schema response format for structured outputs


## Fields

| Field                                                                                                                                                                                             | Type                                                                                                                                                                                              | Required                                                                                                                                                                                          | Description                                                                                                                                                                                       | Example                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `json_schema`                                                                                                                                                                                     | [components.ChatJSONSchemaConfig](../components/chatjsonschemaconfig.mdx)                                                                                                                          | :heavy_check_mark:                                                                                                                                                                                | JSON Schema configuration object                                                                                                                                                                  | \{<br/>"description": "A mathematical response",<br/>"name": "math_response",<br/>"schema": \{<br/>"properties": \{<br/>"answer": \{<br/>"type": "number"<br/>}<br/>},<br/>"required": [<br/>"answer"<br/>],<br/>"type": "object"<br/>},<br/>"strict": true<br/>} |
| `type`                                                                                                                                                                                            | [components.ChatFormatJSONSchemaConfigType](../components/chatformatjsonschemaconfigtype.mdx)                                                                                                      | :heavy_check_mark:                                                                                                                                                                                | N/A                                                                                                                                                                                               |                                                                                                                                                                                                   |