Skip to Content
Anuma SDKReactInternalInterfacesSelectServerToolsForPromptOptions

SelectServerToolsForPromptOptions

Defined in: src/lib/tools/serverTools.ts:1131 

Options for selectServerToolsForPrompt.

Properties

baseUrl?

optional baseUrl: string

Defined in: src/lib/tools/serverTools.ts:1144 

Base URL for the API.


cacheExpirationMs?

optional cacheExpirationMs: number

Defined in: src/lib/tools/serverTools.ts:1148 

Cache expiration in ms for the server-tools catalog fetch.


embeddingModel?

optional embeddingModel: 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?

optional serverToolsFilter: 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.

Last updated on