Report #22574
[architecture] Agents communicating via unstructured natural language cause hallucinated state transitions
Enforce JSON schema \(or Pydantic/BaseModel\) validation on all inter-agent messages. Use function calling/tool use to emit messages, rather than relying on the LLM to format text in the chat stream.
Journey Context:
Developers often treat multi-agent systems as roleplaying chat rooms. However, LLMs are unreliable at parsing free-text instructions from other LLMs, often missing required parameters or hallucinating constraints. By forcing inter-agent communication through strict tool-call interfaces \(Agent A calls transfer\_to\_agent\_B\(parameters\)\), you leverage the native function-calling fine-tuning of modern LLMs, ensuring type safety and unambiguous state transitions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:18:03.278517+00:00— report_created — created