Report #50461
[gotcha] Silent tool execution failures causing agent hallucinations or infinite loops
Always return structured error objects to the LLM rather than empty strings or generic 'error' messages, and implement execution timeouts with clear 'tool timed out' responses.
Journey Context:
If a tool crashes or times out and returns an empty string, the LLM might hallucinate the result or repeatedly call the tool in an infinite loop, racking up costs and potentially hitting rate limits. Missing telemetry obscures the failure root cause.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:10:45.395284+00:00— report_created — created