playground / Exports / PlaygroundHistoryPlugin
Class: PlaygroundHistoryPlugin
PlaygroundHistoryPlugin
Standalone recorder for Playground UI state. This is intentionally not coupled to the SDK plugin system; it just stores events for visualization.
Table of contents
Constructors
Methods
Constructors
constructor
• new PlaygroundHistoryPlugin(options?): PlaygroundHistoryPlugin
Parameters
| Name | Type |
|---|---|
options | IPlaygroundHistoryPluginOptions |
Returns
Defined in
playground/src/lib/playground/plugins/playground-history-plugin.ts:57
Methods
recordEvent
▸ recordEvent(event): void
Parameters
| Name | Type |
|---|---|
event | IConversationEvent |
Returns
void
Defined in
playground/src/lib/playground/plugins/playground-history-plugin.ts:63
getAllEvents
▸ getAllEvents(): IConversationEvent[]
Returns
Defined in
playground/src/lib/playground/plugins/playground-history-plugin.ts:70
clearEvents
▸ clearEvents(): void
Returns
void
Defined in
playground/src/lib/playground/plugins/playground-history-plugin.ts:74
getVisualizationData
▸ getVisualizationData(): IVisualizationData
Returns
Defined in
playground/src/lib/playground/plugins/playground-history-plugin.ts:78
dispose
▸ dispose(): Promise<void>
Returns
Promise<void>
Defined in
playground/src/lib/playground/plugins/playground-history-plugin.ts:110