Expand description
Dynamic tool schema filtering based on query-tool embedding similarity (#2020).
Filters the set of tool definitions sent to the LLM on each turn, selecting only the most relevant tools based on cosine similarity between the user query embedding and pre-computed tool description embeddings.
Structs§
- Dependency
Exclusion - Exclusion reason for a tool that was blocked by the dependency gate.
- Tool
Dependency Graph - Dependency graph for sequential tool availability (issue #2024).
- Tool
Embedding - Cached embedding for a tool definition.
- Tool
Filter Result - Result of filtering tool schemas against a query.
- Tool
Schema Filter - Core filter holding cached tool embeddings and config.
Enums§
- Inclusion
Reason - Reason a tool was included in the filtered set.
Functions§
- find_
mentioned_ tool_ ids - Find tool IDs explicitly mentioned in the query (case-insensitive, word-boundary aware).