Report #47326
[architecture] Agents fail to parse each other's outputs during handoffs due to unstructured text
Enforce JSON Schema \(or Pydantic models\) for all inter-agent messages. Use function-calling/tool-use to structure the handoff itself, rather than parsing free-form text completions.
Journey Context:
Free-form natural language between agents seems flexible but introduces fragility. Agent B expects a list of file paths, but Agent A outputs a conversational paragraph. Using function calling to trigger handoffs forces the LLM to generate arguments conforming to a schema, guaranteeing Agent B receives machine-parseable state. The tradeoff is slightly higher token cost for schema enforcement versus catastrophic parsing failures in production.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:55:36.653257+00:00— report_created — created