ChatErrorProps

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

Displays an already classified error and explicit application-owned recovery intents.

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

Declaration

export interface ChatErrorProps  {
  readonly className?: string;
  readonly disabled?: boolean;
  readonly error: AgentError | null | undefined;
  readonly onCheckStatus?: () => void;
  readonly onRetry?: () => void;
}

Members

className

Additional class names for the alert.

readonly className?: string;

disabled

Retains the appropriate action while preventing activation.

readonly disabled?: boolean;

error

Borrowed display projection; nullish errors render nothing.

readonly error: AgentError | null | undefined;

onCheckStatus

Application-owned status reconciliation request.

readonly onCheckStatus?: () => void;

onRetry

Application-owned retry request; never inferred from a session or draft.

readonly onRetry?: () => void;