> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aurous-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# response_format_too_deep

> The structured-output schema nests deeper than the parser's cap.

**Code**: `response_format_too_deep`
**HTTP status**: `400`
**Type**: `invalid_request`

## When it fires

The JSON schema in `response_format.json_schema` nests deeper than the platform's parser will accept. Distinct from `response_format_too_large` (which is byte-size) — this is about structural depth.

## How to recover

Flatten nested object definitions by pulling them into `$defs` and referencing them with `$ref`. Each `$ref` resets the depth counter from the reference site, so deeply nested workflows become representable as shallow references to shared definitions.
