Report #63082
[architecture] Using free-form natural language for inter-agent communication causing parsing failures and hallucinated arguments
Enforce structured-schema messaging \(e.g., JSON Schema or Pydantic models\) for all inter-agent handoffs and tool calls. Agents must output strictly typed payloads, not conversational text, when invoking another agent.
Journey Context:
While LLMs excel at natural language, using it as the RPC mechanism between agents introduces non-determinism. The receiving agent might misinterpret intent, miss required parameters, or hallucinate state. Treating agents as strict API endpoints with structured inputs/outputs dramatically reduces error rates. The tradeoff is slightly higher prompt complexity to enforce JSON output, but the reliability gain is mandatory for production systems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T12:21:46.438572+00:00— report_created — created