OpenAI 400 error: tool_calls must be followed by tool messages for each tool_call_id
Our support agent started failing with a 400 on roughly one conversation in twelve. The model had begun returning several tool calls in one turn and our loop only answered the first. Answering every tool_call_id in order fixed it.