ClientTools

Unpublished development API. This package is under development and is not available as a published release.

Ask tools as session function tools, plus the views Chat shows while they wait.

import type { ClientTools } from '@threadplane/react/chat';

Declaration

export interface ClientTools<T extends Record<string, AskToolDefinition>> extends ChatClientTools  {
  readonly tools: {
        readonly [K in keyof T]: AskFunctionTool<T[K]>;
    };
}

Type parameters

T
Record<string, AskToolDefinition>

Members

tools

Pass to the session that runs the conversation, alone or spread beside other function tools.

readonly tools: {
        readonly [K in keyof T]: AskFunctionTool<T[K]>;
    };