Report #92792
[synthesis] Agent crashes or hallucinates after receiving an empty string tool result
Always return a structured JSON with a status message \(e.g., \{"status": "success", "message": "Action completed"\}\) instead of an empty string or null when a tool has no natural return value.
Journey Context:
When a tool returns an empty string, GPT-4o often assumes success and synthesizes a final answer. Claude frequently halts or returns an error, expecting explicit confirmation of the tool's state. Gemini is prone to hallucinating a tool output if the result is ambiguous or empty. Structured responses normalize this cross-model divergence and prevent context degradation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:20:27.951907+00:00— report_created — created