<!--
 ⚠️  AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 This file is automatically generated by scripts/docs-generator.js
 To make changes, edit the source TypeScript files or update the generator script
-->

[playground](../../) / [Exports](../modules) / 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

- [constructor](PlaygroundHistoryPlugin#constructor)

### Methods

- [recordEvent](PlaygroundHistoryPlugin#recordevent)
- [getAllEvents](PlaygroundHistoryPlugin#getallevents)
- [clearEvents](PlaygroundHistoryPlugin#clearevents)
- [getVisualizationData](PlaygroundHistoryPlugin#getvisualizationdata)
- [dispose](PlaygroundHistoryPlugin#dispose)

## Constructors

### constructor

• **new PlaygroundHistoryPlugin**(`options?`): [`PlaygroundHistoryPlugin`](PlaygroundHistoryPlugin)

#### Parameters

| Name      | Type                                                                               |
| :-------- | :--------------------------------------------------------------------------------- |
| `options` | [`IPlaygroundHistoryPluginOptions`](../interfaces/IPlaygroundHistoryPluginOptions) |

#### Returns

[`PlaygroundHistoryPlugin`](PlaygroundHistoryPlugin)

#### Defined in

[playground/src/lib/playground/plugins/playground-history-plugin.ts:57](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/plugins/playground-history-plugin.ts#L57)

## Methods

### recordEvent

▸ **recordEvent**(`event`): `void`

#### Parameters

| Name    | Type                                                     |
| :------ | :------------------------------------------------------- |
| `event` | [`IConversationEvent`](../interfaces/IConversationEvent) |

#### Returns

`void`

#### Defined in

[playground/src/lib/playground/plugins/playground-history-plugin.ts:63](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/plugins/playground-history-plugin.ts#L63)

---

### getAllEvents

▸ **getAllEvents**(): [`IConversationEvent`](../interfaces/IConversationEvent)[]

#### Returns

[`IConversationEvent`](../interfaces/IConversationEvent)[]

#### Defined in

[playground/src/lib/playground/plugins/playground-history-plugin.ts:70](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/plugins/playground-history-plugin.ts#L70)

---

### clearEvents

▸ **clearEvents**(): `void`

#### Returns

`void`

#### Defined in

[playground/src/lib/playground/plugins/playground-history-plugin.ts:74](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/plugins/playground-history-plugin.ts#L74)

---

### getVisualizationData

▸ **getVisualizationData**(): [`IVisualizationData`](../interfaces/IVisualizationData)

#### Returns

[`IVisualizationData`](../interfaces/IVisualizationData)

#### Defined in

[playground/src/lib/playground/plugins/playground-history-plugin.ts:78](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/plugins/playground-history-plugin.ts#L78)

---

### dispose

▸ **dispose**(): `Promise`\<`void`\>

#### Returns

`Promise`\<`void`\>

#### Defined in

[playground/src/lib/playground/plugins/playground-history-plugin.ts:110](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/plugins/playground-history-plugin.ts#L110)
