Report #21603
[architecture] Using free-form natural language for inter-agent communication, resulting in parsing failures, hallucinated parameters, and brittle handoffs
Use structured schema messaging \(e.g., JSON Schema, Pydantic models\) for all agent-to-agent handoffs and tool calls. Reserve natural language only for the final user-facing output.
Journey Context:
While LLMs speak natural language, relying on it for machine-to-machine API calls is an anti-pattern. Natural language is ambiguous and requires complex parsing, which often fails. Structured outputs guarantee that the receiving agent gets exactly the typed data it expects, reducing error rates and token usage. The tradeoff is slightly higher initial prompt engineering to enforce the schema, but the reliability payoff is massive compared to regex parsing of chat text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:40:42.830469+00:00— report_created — created