<!--
 ⚠️  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) / ConversationHistoryPluginOptions

# Interface: ConversationHistoryPluginOptions

Configuration options for conversation history plugin

## Hierarchy

- [`IPluginOptions`](IPluginOptions)

  ↳ **`ConversationHistoryPluginOptions`**

## Table of contents

### Properties

- [enabled](ConversationHistoryPluginOptions#enabled)
- [category](ConversationHistoryPluginOptions#category)
- [priority](ConversationHistoryPluginOptions#priority)
- [moduleEvents](ConversationHistoryPluginOptions#moduleevents)
- [subscribeToAllModuleEvents](ConversationHistoryPluginOptions#subscribetoallmoduleevents)
- [storage](ConversationHistoryPluginOptions#storage)
- [maxConversations](ConversationHistoryPluginOptions#maxconversations)
- [maxMessagesPerConversation](ConversationHistoryPluginOptions#maxmessagesperconversation)
- [filePath](ConversationHistoryPluginOptions#filepath)
- [connectionString](ConversationHistoryPluginOptions#connectionstring)
- [autoSave](ConversationHistoryPluginOptions#autosave)
- [saveInterval](ConversationHistoryPluginOptions#saveinterval)

## Properties

### enabled

• `Optional` **enabled**: `boolean`

Whether the plugin is enabled

#### Inherited from

[IPluginOptions](IPluginOptions).[enabled](IPluginOptions#enabled)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:126](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L126)

---

### category

• `Optional` **category**: [`PluginCategory`](../enums/PluginCategory)

Plugin category for classification

#### Inherited from

[IPluginOptions](IPluginOptions).[category](IPluginOptions#category)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:128](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L128)

---

### priority

• `Optional` **priority**: `number`

Plugin priority for execution order

#### Inherited from

[IPluginOptions](IPluginOptions).[priority](IPluginOptions#priority)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:130](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L130)

---

### moduleEvents

• `Optional` **moduleEvents**: [`EventType`](../modules#eventtype)[]

Events to subscribe to from modules

#### Inherited from

[IPluginOptions](IPluginOptions).[moduleEvents](IPluginOptions#moduleevents)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:132](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L132)

---

### subscribeToAllModuleEvents

• `Optional` **subscribeToAllModuleEvents**: `boolean`

Whether to subscribe to all module events

#### Inherited from

[IPluginOptions](IPluginOptions).[subscribeToAllModuleEvents](IPluginOptions#subscribetoallmoduleevents)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:134](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L134)

---

### storage

• **storage**: [`HistoryStorageStrategy`](../modules#historystoragestrategy)

Storage strategy to use

#### Defined in

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

---

### maxConversations

• `Optional` **maxConversations**: `number`

Maximum number of conversations to store

#### Defined in

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

---

### maxMessagesPerConversation

• `Optional` **maxMessagesPerConversation**: `number`

Maximum messages per conversation

#### Defined in

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

---

### filePath

• `Optional` **filePath**: `string`

File path for file storage strategy

#### Defined in

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

---

### connectionString

• `Optional` **connectionString**: `string`

Database connection string for database storage

#### Defined in

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

---

### autoSave

• `Optional` **autoSave**: `boolean`

Whether to auto-save after each message

#### Defined in

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

---

### saveInterval

• `Optional` **saveInterval**: `number`

Save interval in milliseconds for batch saving

#### Defined in

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