AskToolDefinition

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

Storage constraint for a catalog of ask tools with different argument and result types.

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

Declaration

export interface AskToolDefinition  {
  readonly description: string;
  readonly followUp?: boolean;
  readonly kind: 'ask';
  readonly parameters?: PlainValue;
  readonly render: (props: never) => ReactNode;
}

Members

description

readonly description: string;

followUp

readonly followUp?: boolean;

kind

readonly kind: 'ask';

parameters

readonly parameters?: PlainValue;

render

readonly render: (props: never) => ReactNode;