Report #51135
[frontier] Hardcoded tool routing logic breaks when tools are added or modified requiring prompt rewrites
Implement Semantic Tool Routing: embed tool descriptions and user intent into vectors, route to the top-k tools by cosine similarity rather than exact name matching, with fallback to code-based routing
Journey Context:
Exact-match routing requires updating agent configs when tool names change. LLM-based routing is slow and expensive. Semantic routing pre-computes embeddings of tool schemas and descriptions; at runtime, the user query \(or planner output\) is embedded and matched to tools via vector search. This enables zero-shot tool use \(agents use tools they weren't explicitly trained on\) and graceful degradation when tools are deprecated. This replaces rigid routing tables in production agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:18:59.617969+00:00— report_created — created