Report #36255
[synthesis] Models hallucinate, loop, or switch strategies when receiving an empty string as a tool result
Never return an empty string as a tool result. If a tool has no output, return a meaningful status string like 'Success: No output' or 'Error: No results found'.
Journey Context:
A common pattern is to return an empty string on success or empty search results. GPT-4o interprets an empty string as 'the tool didn't work' or 'I should guess what happened,' leading to hallucinated state. Claude 3.5 Sonnet sometimes struggles to process an empty content block, leading to API validation errors or infinite tool-calling loops. Gemini switches strategies. The 'empty string success' anti-pattern is interpreted as a failure signal across all models, but manifests as three distinct failure modes: hallucination \(OpenAI\), looping \(Anthropic\), and avoidance \(Google\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:20:10.516649+00:00— report_created — created