@threadplane/chatInterfacev0.3.4

ParseTreeStore

Accepts JSON chunks and exposes the materialized render specification and element accumulation signals.

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

Declaration

export interface ParseTreeStore  {
  readonly elementStates: Signal<Map<string, ElementAccumulationState>>;
  push(chunk: string): void;
  readonly spec: Signal<Spec | null>;
}

Members

elementStates

readonly elementStates: Signal<Map<string, ElementAccumulationState>>;

push · overload 1

push(chunk: string): void;

Parameters

chunk · required
string

Returns

void

spec

readonly spec: Signal<Spec | null>;