SelectServerToolsForPromptOptions
Defined in: src/lib/tools/serverTools.ts:1229
Options for selectServerToolsForPrompt.
Properties
baseUrl?
optionalbaseUrl:string
Defined in: src/lib/tools/serverTools.ts:1242
Base URL for the API.
cacheExpirationMs?
optionalcacheExpirationMs:number
Defined in: src/lib/tools/serverTools.ts:1246
Cache expiration in ms for the server-tools catalog fetch.
embeddingModel?
optionalembeddingModel:string
Defined in: src/lib/tools/serverTools.ts:1244
Embedding model override. Falls back to the SDK default.
getToken()
getToken: () =>
Promise<string|null>
Defined in: src/lib/tools/serverTools.ts:1240
Function that resolves an auth token (Bearer).
Returns
Promise<string | null>
prompt
prompt:
string
Defined in: src/lib/tools/serverTools.ts:1231
User prompt to match tools against.
serverToolsFilter?
optionalserverToolsFilter:string[] |ServerToolsFilterFunction
Defined in: src/lib/tools/serverTools.ts:1238
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.