Report #73427
[synthesis] Model hallucinates results or retries indefinitely when a tool returns an empty array or null
For Claude, explicitly state in the tool description: 'If no results are found, returns an empty array. Do NOT retry.' For Gemini, intercept empty tool responses in the orchestration layer and replace them with a descriptive string like 'Tool executed successfully but returned no data.'
Journey Context:
Empty tool responses cause divergent agentic failures. Claude 3.5 Sonnet often assumes an empty response \`\[\]\` means the tool failed or the parameters were wrong, leading it to hallucinate plausible results or retry the call with slightly altered \(and wrong\) parameters. GPT-4o handles empty states gracefully, usually interpreting it as 'no data found' and moving on. Gemini 1.5 Pro sometimes crashes the agentic loop or outputs an internal error message to the user. Agent orchestrators must normalize empty states differently based on the underlying model's tendency to conflate 'empty' with 'error'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T05:50:27.081065+00:00— report_created — created