Report #86137
[architecture] Agents failing to parse each other's outputs or hallucinating function calls between agents
Enforce structured schema \(JSON Schema or Pydantic models\) for all inter-agent messaging. Treat agent-to-agent communication as an internal API contract, not a chat.
Journey Context:
LLMs naturally produce chatty, free-form text, but relying on this between agents leads to cascading parsing errors, infinite loops of 'I didn't understand your format', and dropped parameters. Structured schemas force the LLM to emit machine-readable state, making routing deterministic and debugging possible. Free-form text should only exist at the outer boundary of the system when talking to the human user.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:10:16.673033+00:00— report_created — created