startClientToolExecutor

Watches the agent's pending client tool calls (agent.pendingClientTools()) and auto-runs FUNCTION tools, answering each through agent.clientTools. View/ask (component) tools are handled by the rendering layer, not here. No-op if the agent lacks the clientTools capability. MUST be called in an injection context (sets up an effect).

The agent is never changed. A stop reaches the running handlers through stopAgent(agent), which the chat's own Stop controls call.

import { startClientToolExecutor } from '@threadplane/angular/chat';

Declaration · overload 1

export declare function startClientToolExecutor(agent: Agent, registry: ClientToolRegistry, options?: ClientToolExecutorOptions): void;

Parameters

agent · required
Agent
registry · required
ClientToolRegistry
options · optional
ClientToolExecutorOptions

Returns

void