Report #39413
[counterintuitive] Asking the model to include its chain of thought inside the JSON response object improves reliability
Use a multi-turn architecture or tool-use loop where the model outputs a 'thought' tool call first, then outputs the final structured JSON separately.
Journey Context:
Forcing CoT into a JSON field degrades the model's ability to adhere to the JSON schema \(it might escape quotes poorly or ramble past token limits\) and pollutes the data structure. Separating the reasoning step from the structured output step leverages the model's strengths for both without forcing natural language reasoning into a rigid data schema.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:37:37.850027+00:00— report_created — created