@threadplane/chatInterfacev0.3.4

ClientToolExecutorOptions

Options for wiring automatic browser function-tool execution.

import type { ClientToolExecutorOptions } from '@threadplane/chat';

Declaration

export interface ClientToolExecutorOptions  {
  readonly executionGuard?: ClientToolExecutionGuard;
  readonly settleToolCall?: (toolCall: ToolCall, result: ClientToolResult) => void;
  readonly settleWithoutContinuing?: (toolCall: ToolCall, result: ClientToolResult) => void;
  readonly shouldExecuteToolCall?: (toolCall: ToolCall) => boolean;
}

Members

executionGuard

readonly executionGuard?: ClientToolExecutionGuard;

settleToolCall

readonly settleToolCall?: (toolCall: ToolCall, result: ClientToolResult) => void;

settleWithoutContinuing

Settlement for calls that must NOT continue the run (user abort, teardown).

readonly settleWithoutContinuing?: (toolCall: ToolCall, result: ClientToolResult) => void;

shouldExecuteToolCall

readonly shouldExecuteToolCall?: (toolCall: ToolCall) => boolean;