Report #9388
[architecture] Inter-agent natural language messages cause hallucination and parsing failures
Enforce structured JSON schema for all inter-agent message payloads, restricting natural language to a specific 'thought' field if needed, and using function-calling for handoffs rather than chat completions.
Journey Context:
Developers often treat multi-agent systems as humans talking in a chat, using free-form text. This breaks down because LLMs are unreliable at extracting structured parameters \(like file paths or function names\) from unstructured text, leading to cascading errors. Structured schemas guarantee machine-readable state transfer. The tradeoff is slightly higher token overhead for schema keys, but the elimination of parsing errors makes it strictly worth it. OpenAI's Swarm framework explicitly uses function calls for handoffs instead of free-text chat for this exact reason.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:07:23.966386+00:00— report_created — created