agent-plugin-conversation-history / Exports / MemoryHistoryStorage
Class: MemoryHistoryStorage
Memory storage implementation
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new MemoryHistoryStorage(maxConversations?): MemoryHistoryStorage
Parameters
| Name | Type | Default value |
|---|---|---|
maxConversations | number | 100 |
Returns
Defined in
agent-plugin-conversation-history/src/storages/memory-storage.ts:10
Methods
save
▸ save(conversationId, entry): Promise<void>
Parameters
| Name | Type |
|---|---|
conversationId | string |
entry | IConversationHistoryEntry |
Returns
Promise<void>
Implementation of
Defined in
agent-plugin-conversation-history/src/storages/memory-storage.ts:14
load
▸ load(conversationId): Promise<undefined | IConversationHistoryEntry>
Parameters
| Name | Type |
|---|---|
conversationId | string |
Returns
Promise<undefined | IConversationHistoryEntry>
Implementation of
Defined in
agent-plugin-conversation-history/src/storages/memory-storage.ts:29
list
▸ list(): Promise<string[]>
Returns
Promise<string[]>
Implementation of
Defined in
agent-plugin-conversation-history/src/storages/memory-storage.ts:33
delete
▸ delete(conversationId): Promise<boolean>
Parameters
| Name | Type |
|---|---|
conversationId | string |
Returns
Promise<boolean>
Implementation of
Defined in
agent-plugin-conversation-history/src/storages/memory-storage.ts:37
clear
▸ clear(): Promise<void>
Returns
Promise<void>
Implementation of
Defined in
agent-plugin-conversation-history/src/storages/memory-storage.ts:41