Skip to main content

Module schema_filter

Module schema_filter 

Source
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§

DependencyExclusion
Exclusion reason for a tool that was blocked by the dependency gate.
ToolDependencyGraph
Dependency graph for sequential tool availability (issue #2024).
ToolEmbedding
Cached embedding for a tool definition.
ToolFilterResult
Result of filtering tool schemas against a query.
ToolSchemaFilter
Core filter holding cached tool embeddings and config.

Enums§

InclusionReason
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).