Why Does Structured Output Fail? An Empirical Study of Prompt-Enforced Pydantic Schemas Across Nine LLMs
This matters immediately. Validity rate is a trap; you need to know why outputs fail and it varies by schema and task. The finding that JSON formatting is the culprit suggests a quick win: push models to raw JSON or adopt native structured-output modes. Anthropic's native mode should be your default for this reason.