agent-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
agent-playground/src/lib/playground/plugins/playground-history-plugin.ts:59
Methods
recordEvent
▸ recordEvent(event): void
Parameters
| Name | Type |
|---|---|
event | IConversationEvent |
Returns
void
Defined in
agent-playground/src/lib/playground/plugins/playground-history-plugin.ts:65
getAllEvents
▸ getAllEvents(): IConversationEvent[]
Returns
Defined in
agent-playground/src/lib/playground/plugins/playground-history-plugin.ts:72
clearEvents
▸ clearEvents(): void
Returns
void
Defined in
agent-playground/src/lib/playground/plugins/playground-history-plugin.ts:76
getVisualizationData
▸ getVisualizationData(): IVisualizationData
Returns
Defined in
agent-playground/src/lib/playground/plugins/playground-history-plugin.ts:80
dispose
▸ dispose(): Promise<void>
Returns
Promise<void>
Defined in
agent-playground/src/lib/playground/plugins/playground-history-plugin.ts:112