Report #54344
[architecture] Agent outputs unstructured text causing downstream parsing failures in multi-agent chain
Enforce strict JSON schema contracts at agent boundaries using structured outputs \(e.g., OpenAI function calling or tool schemas\). Validate outputs with a deterministic parser \(like Pydantic\) before passing to the next agent; on validation failure, retry or abort, never pass raw text.
Journey Context:
Unstructured text seems flexible but introduces fragility. Downstream agents hallucinate when parsing free-text outputs, leading to cascading errors. Structured outputs guarantee schema compliance, but limit the agent's ability to express nuance. The tradeoff is strictness vs flexibility. Strictness is the right call because parsing failures cascade and break multi-step workflows, whereas nuance can be preserved within schema fields.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:42:49.222209+00:00— report_created — created