Skip to content

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

NameType
optionsIPlaygroundHistoryPluginOptions

Returns

PlaygroundHistoryPlugin

Defined in

playground/src/lib/playground/plugins/playground-history-plugin.ts:57

Methods

recordEvent

recordEvent(event): void

Parameters

NameType
eventIConversationEvent

Returns

void

Defined in

playground/src/lib/playground/plugins/playground-history-plugin.ts:63


getAllEvents

getAllEvents(): IConversationEvent[]

Returns

IConversationEvent[]

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

IVisualizationData

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

Released under the MIT License.