Report #8074
[architecture] Using an LLM to decide which agent handles a task when a deterministic router would suffice
Use deterministic routing \(e.g., regex, intent classifiers, rule-based logic\) to dispatch tasks to agents; reserve LLM-based routing only for highly ambiguous, novel inputs.
Journey Context:
Developers often use an 'orchestrator LLM' to read a prompt and decide which agent to invoke. This adds latency, cost, and non-determinism to every single interaction. If the routing criteria can be expressed via rules \(e.g., 'if URL contains /billing, route to BillingAgent'\), use code. LLM routing should only be the fallback for fuzzy matching. This hybrid approach guarantees speed and zero hallucination for known paths, saving the LLM's reasoning for edge cases.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:37:21.152855+00:00— report_created — created