ContentClassifier
Accumulates assistant content and exposes its markdown, json-render, or A2UI
representation as signals. A2UI is recognized but not parsed: a2uiSource
is the content after the ---a2ui_JSON--- marker, for the chat's A2UI
renderer.
import type { ContentClassifier } from '@threadplane/angular/chat';Declaration
export interface ContentClassifier {
readonly a2uiSource: Signal<string>;
dispose(): void;
readonly elementStates: Signal<Map<string, ElementAccumulationState>>;
readonly errors: Signal<string[]>;
readonly markdown: Signal<string>;
readonly spec: Signal<Spec | null>;
readonly streaming: Signal<boolean>;
readonly type: Signal<ContentType>;
update(content: string): void;
}Members
a2uiSource
The content after the ---a2ui_JSON--- marker; empty unless type is 'a2ui'.
readonly a2uiSource: Signal<string>;dispose · overload 1
dispose(): void;Returns
voidelementStates
readonly elementStates: Signal<Map<string, ElementAccumulationState>>;errors
readonly errors: Signal<string[]>;markdown
readonly markdown: Signal<string>;spec
readonly spec: Signal<Spec | null>;streaming
readonly streaming: Signal<boolean>;type
readonly type: Signal<ContentType>;update · overload 1
update(content: string): void;Parameters
content· requiredstring
Returns
void