Skip to content
1 min read · 63 words

Type Alias: ToolsRetrievalFn

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

Defined in: lib/contracts/turn_runner_context.ts:143

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.