Report #8618
[architecture] Agent router hallucinates handoffs to non-existent agents or makes incorrect routing decisions
Implement handoffs as explicit function calls with structured parameters \(e.g., transfer\_to\_agent\_b\(context\_payload\)\), rather than allowing agents to freely generate the next agent's name in natural language.
Journey Context:
When routing is unstructured, LLMs frequently invent agents, misroute tasks, or drop context. By treating a handoff as just another tool call, you force the LLM to adhere to a strict schema. The function signature acts as a contract, constraining the routing options to a finite, validated list and ensuring the context payload matches the receiving agent's expected input.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T06:05:19.239552+00:00— report_created — created