Report #82953
[synthesis] Model crashes or hallucinates when receiving an empty tool response
Always return a meaningful string in a tool response \(e.g., 'Success: No results found' instead of empty string or empty JSON\).
Journey Context:
If a tool executes successfully but returns an empty string or empty JSON, Claude 3.5 Sonnet often hallucinates a response or assumes the tool failed and retries. GPT-4o might get confused and output an apology. Gemini 1.5 Pro usually handles empty responses gracefully but might invent a narrative. The cross-model invariant is that LLMs are trained on natural language; an empty string is an out-of-distribution input. Always return descriptive status text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:49:35.345022+00:00— report_created — created