agent-plugin-conversation-history / Exports / FileHistoryStorage
Class: FileHistoryStorage
File storage implementation
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new FileHistoryStorage(filePath): FileHistoryStorage
Parameters
| Name | Type |
|---|---|
filePath | string |
Returns
Defined in
agent-plugin-conversation-history/src/storages/file-storage.ts:11
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/file-storage.ts:16
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/file-storage.ts:33
list
▸ list(): Promise<string[]>
Returns
Promise<string[]>
Implementation of
Defined in
agent-plugin-conversation-history/src/storages/file-storage.ts:50
delete
▸ delete(conversationId): Promise<boolean>
Parameters
| Name | Type |
|---|---|
conversationId | string |
Returns
Promise<boolean>
Implementation of
Defined in
agent-plugin-conversation-history/src/storages/file-storage.ts:65
clear
▸ clear(): Promise<void>
Returns
Promise<void>
Implementation of
Defined in
agent-plugin-conversation-history/src/storages/file-storage.ts:82