A2uiMessageContent

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

The A2UI content of one assistant message. MessageA2uiContent from @threadplane/react/chat, which renderA2ui receives, fits as it is.

import type { A2uiMessageContent } from '@threadplane/react/a2ui';

Declaration

export interface A2uiMessageContent  {
  readonly messageId?: string;
  readonly skeleton?: ReactNode;
  readonly source: string;
  readonly streaming: boolean;
}

Members

messageId

Identifies the message. A different ID starts over with empty surfaces.

readonly messageId?: string;

skeleton

Shown while the message streams and no surface is live yet.

readonly skeleton?: ReactNode;

source

Newline-delimited A2UI envelopes: the message content after its ---a2ui_JSON--- marker. It may grow while the message streams.

readonly source: string;

streaming

True while the message is still streaming, when the last line may be incomplete.

readonly streaming: boolean;