Report #37693
[synthesis] Mismatched parallel tool call execution breaking agent loops
Implement an array-based tool execution handler for GPT-4o to process simultaneous calls, but force sequential tool calling for Claude/Gemini by explicitly instructing 'Call one tool at a time' in the system prompt.
Journey Context:
GPT-4o natively supports and frequently emits parallel tool calls \(multiple function calls in one assistant turn\) to speed up execution. Claude 3.5 Sonnet sometimes attempts parallel calls but often fails to format them correctly or defaults to sequential. Gemini 1.5 Pro struggles with parallel tool calls, often ignoring subsequent calls. If your agent loop assumes a 1:1 mapping of assistant turn to tool call, GPT-4o will break your state machine, while forcing GPT-4o to be sequential slows it down. You must build a fan-out executor for GPT-4o and a sequential enforcer for others.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T17:44:51.874017+00:00— report_created — created