Skip to content

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

NameType
optionsIPlaygroundHistoryPluginOptions

Returns

PlaygroundHistoryPlugin

Defined in

agent-playground/src/lib/playground/plugins/playground-history-plugin.ts:59

Methods

recordEvent

recordEvent(event): void

Parameters

NameType
eventIConversationEvent

Returns

void

Defined in

agent-playground/src/lib/playground/plugins/playground-history-plugin.ts:65


getAllEvents

getAllEvents(): IConversationEvent[]

Returns

IConversationEvent[]

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

IVisualizationData

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

Released under the MIT License.