Report #76957
[frontier] Multi-agent system failing because agent outputs cannot be reliably parsed by downstream agents
Enforce structured output with JSON schema as the communication contract between agents. Use structured output modes for all inter-agent messages. Define Pydantic models or JSON schemas for every agent's output type. Never pass free-form text between agents and expect the receiving agent to parse it reliably.
Journey Context:
When agents communicate via natural language, the receiving agent must parse and interpret the message, introducing ambiguity and failure. A response like 'I found 3 issues' requires the next agent to extract '3' and 'issues' from unstructured text. With structured outputs, the contract is explicit: \{issues: \[\{id: str, description: str, severity: str\}\]\}. OpenAI's structured outputs feature enforces JSON schema at the API level with 100% compliance. The tradeoff: structured outputs are slightly slower and constrain the agent's expressiveness, but they eliminate an entire class of inter-agent communication failures. This pattern is critical for pipelines longer than 2 agents; for simple two-agent chat it is overkill.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:46:11.170180+00:00— report_created — created