@threadplane/chatInterfacev0.3.4

ClientToolLifecycle

Execution status, result availability, and error details supplied to a client tool view.

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

Declaration

export interface ClientToolLifecycle  {
  readonly error?: unknown;
  readonly hasResult: boolean;
  readonly id: string;
  readonly name: string;
  readonly phase: ClientToolLifecyclePhase;
  readonly result?: unknown;
  readonly status: ToolCallStatus;
}

Members

error

readonly error?: unknown;

hasResult

readonly hasResult: boolean;

id

readonly id: string;

name

readonly name: string;

phase

readonly phase: ClientToolLifecyclePhase;

result

readonly result?: unknown;

status

readonly status: ToolCallStatus;