AskToolViewProps

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

What an ask tool's view receives for one pending call.

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

Declaration

export interface AskToolViewProps<A, R>  {
  readonly answer: (result: R) => boolean;
  readonly args: A;
  readonly name: string;
  readonly toolCallId: string;
}

Type parameters

A
R

Members

answer

Returns the person's answer as the tool result, and the run continues. Only the first answer counts; false means the call was already answered or stopped.

readonly answer: (result: R) => boolean;

args

The finalized arguments the tool was called with.

readonly args: A;

name

readonly name: string;

toolCallId

readonly toolCallId: string;