Skip to content
1 min read · 60 words

Type Alias: ToolsRetrievalFn

ts
type ToolsRetrievalFn = (ctx: TurnContext) => Tool[] | Promise<Tool[]>;

A function that retrieves the tools available for the current turn.

Parameters

ParameterType
ctxTurnContext

Returns

| Tool[] | Promise<Tool[]>

Remarks

Receives the active TurnContext so implementations can apply turn-aware filtering (e.g. RBAC scopes, feature flags). May be synchronous or asynchronous.