Report #80507
[architecture] Agent-to-agent messages keep failing to parse or lose critical fields
Use structured schema \(JSON Schema / Pydantic models\) for all inter-agent messages. Define explicit message types with required fields, enums, and validation. Never pass free-form natural language between agents.
Journey Context:
LLMs generate natural language that is great for humans but terrible as a machine protocol. When Agent A sends free-form text to Agent B, Agent B must parse it, leading to missing fields, inconsistent formatting, hallucinated data, and cascading parse failures. Structured schemas act as a contract: fields are validated at send time, missing data is caught immediately, and receiving agents do not waste tokens on parsing. The tradeoff is more upfront design work and less flexibility, but inter-agent communication is a protocol, not a conversation. Reserve natural language for the final human-facing output only. OpenAI Swarm encodes this by having agents return structured function\_call results rather than free-text responses.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:43:56.429370+00:00— report_created — created