Report #90578
[architecture] Agents hallucinate invalid parameters for downstream tool calls, causing the tool execution to crash the pipeline
Apply strict JSON Schema validation to the arguments of tool calls generated by agents, exactly as you would validate external API inputs. If validation fails, return the schema error to the agent for a single retry before aborting.
Journey Context:
It is tempting to assume an LLM will output correct arguments for a function it has the schema for. In reality, LLMs frequently omit required fields or hallucinate enum values. The pipeline crashes with an unhandled exception. The tradeoff is added latency for validation and retry, but it prevents brittle tool execution and treats the LLM as an untrusted input source to your application layer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:37:51.618337+00:00— report_created — created