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· requiredstring
Returns
voidspec
readonly spec: Signal<Spec | null>;