ToolRouter
getFilteredTools()- Get tools based on current strategysearchTools(query, topK?)- Search via BM25 + embeddingssearchToolsRegex(pattern, topK?)- Search via regex patternrefresh()- Re-index tools from all connected clientssetStrategy(strategy)- Change tool selection strategy at runtime
AIAdapter:
ToolIndex
Lightweight in-memory search index used internally by ToolRouter, or directly for specific custom discovery flows.