withActiveToolSetServerTools
withActiveToolSetServerTools(
selected:ServerTool[],allServerTools:ServerTool[],serverToolsFilter:ServerToolsFilterFunction,activeToolSets: readonlystring[],extraToolSets: readonlyToolSet[]):ServerTool[]
Defined in: src/lib/tools/serverTools.ts:1323
Add the server-tool members of every set named in activeToolSets to a
semantic server-tool selection.
A semantic filter ranks only the latest prompt, so a terse follow-up inside a
flow (“okay”, “retry”) drops the flow’s server tools. This is the server-side
half of what autoFilterClientTools does for client tools: an active set’s
members that are in the catalog are kept whatever the prompt scored, even
below the short-prompt gate, where selected is empty. Exclusions tagged on
the filter still win.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
|
|
|
What the semantic filter picked ( | |
|
|
|
The full server-tool catalog. | |
|
|
|
The filter function, read only for its | |
|
|
readonly |
|
Set names that are sticky for this conversation. |
|
|
readonly |
|
The caller’s sets beyond BUILT_IN_TOOL_SETS. |
Returns
selected, followed by any active-set members it was missing.