
Agents
My LLM returns broken JSON: JSON mode vs structured outputs vs tool calling
Valid JSON, the right shape and a correct value are three different promises. Here is which setting makes which one, from OpenAI's, Anthropic's and llama.cpp's own docs, plus the local equivalents.
Aliteq Team · 3h ago · 9 min