<!--
 ⚠️  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
-->

[agents](../../) / [Exports](../modules) / HistoryStorage

# Interface: HistoryStorage

Storage interface for conversation history

## Table of contents

### Methods

- [save](HistoryStorage#save)
- [load](HistoryStorage#load)
- [list](HistoryStorage#list)
- [delete](HistoryStorage#delete)
- [clear](HistoryStorage#clear)

## Methods

### save

▸ **save**(`conversationId`, `entry`): `Promise`\<`void`\>

#### Parameters

| Name             | Type                                                   |
| :--------------- | :----------------------------------------------------- |
| `conversationId` | `string`                                               |
| `entry`          | [`ConversationHistoryEntry`](ConversationHistoryEntry) |

#### Returns

`Promise`\<`void`\>

#### Defined in

[packages/agents/src/plugins/conversation-history/types.ts:44](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/conversation-history/types.ts#L44)

---

### load

▸ **load**(`conversationId`): `Promise`\<`undefined` \| [`ConversationHistoryEntry`](ConversationHistoryEntry)\>

#### Parameters

| Name             | Type     |
| :--------------- | :------- |
| `conversationId` | `string` |

#### Returns

`Promise`\<`undefined` \| [`ConversationHistoryEntry`](ConversationHistoryEntry)\>

#### Defined in

[packages/agents/src/plugins/conversation-history/types.ts:45](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/conversation-history/types.ts#L45)

---

### list

▸ **list**(): `Promise`\<`string`[]\>

#### Returns

`Promise`\<`string`[]\>

#### Defined in

[packages/agents/src/plugins/conversation-history/types.ts:46](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/conversation-history/types.ts#L46)

---

### delete

▸ **delete**(`conversationId`): `Promise`\<`boolean`\>

#### Parameters

| Name             | Type     |
| :--------------- | :------- |
| `conversationId` | `string` |

#### Returns

`Promise`\<`boolean`\>

#### Defined in

[packages/agents/src/plugins/conversation-history/types.ts:47](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/conversation-history/types.ts#L47)

---

### clear

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

#### Returns

`Promise`\<`void`\>

#### Defined in

[packages/agents/src/plugins/conversation-history/types.ts:48](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/conversation-history/types.ts#L48)
