SelectServerToolsForPromptOptions
Defined in: src/lib/tools/serverTools.ts:1131
Options for selectServerToolsForPrompt.
Properties
baseUrl?
optionalbaseUrl:string
Defined in: src/lib/tools/serverTools.ts:1144
Base URL for the API.
cacheExpirationMs?
optionalcacheExpirationMs:number
Defined in: src/lib/tools/serverTools.ts:1148
Cache expiration in ms for the server-tools catalog fetch.
embeddingModel?
optionalembeddingModel:string
Defined in: src/lib/tools/serverTools.ts:1146
Embedding model override. Falls back to the SDK default.
getToken()
getToken: () =>
Promise<string|null>
Defined in: src/lib/tools/serverTools.ts:1142
Function that resolves an auth token (Bearer).
Returns
Promise<string | null>
prompt
prompt:
string
Defined in: src/lib/tools/serverTools.ts:1133
User prompt to match tools against.
serverToolsFilter?
optionalserverToolsFilter:string[] |ServerToolsFilterFunction
Defined in: src/lib/tools/serverTools.ts:1140
Filter to apply: either a function (called with the prompt embedding +
full catalog) or a static list of tool names. Same shape useChatStorage
accepts on its serverTools option. Pass defaultServerToolsFilter to
mirror the default chat-flow selection.