@threadplane/ag-uiInterfacev0.3.4

CustomStreamEvent

A custom event surfaced to consumers via the agent's customEvents signal. Mirrors the LangGraph adapter's CustomStreamEvent shape so the chat a2ui partial-args bridge consumes both transports identically.

import type { CustomStreamEvent } from '@threadplane/ag-ui';

Declaration

export interface CustomStreamEvent  {
  data: unknown;
  name: string;
}

Members

data

Arbitrary payload from the backend (JSON-string values are parsed).

data: unknown;

name

Event name set by the backend (e.g. 'a2ui-partial', 'state_update').

name: string;