agents / Exports / HistoryStorage
Interface: HistoryStorage
Storage interface for conversation history
Table of contents
Methods
Methods
save
▸ save(conversationId, entry): Promise<void>
Parameters
| Name | Type |
|---|---|
conversationId | string |
entry | ConversationHistoryEntry |
Returns
Promise<void>
Defined in
packages/agents/src/plugins/conversation-history/types.ts:44
load
▸ load(conversationId): Promise<undefined | ConversationHistoryEntry>
Parameters
| Name | Type |
|---|---|
conversationId | string |
Returns
Promise<undefined | ConversationHistoryEntry>
Defined in
packages/agents/src/plugins/conversation-history/types.ts:45
list
▸ list(): Promise<string[]>
Returns
Promise<string[]>
Defined in
packages/agents/src/plugins/conversation-history/types.ts:46
delete
▸ delete(conversationId): Promise<boolean>
Parameters
| Name | Type |
|---|---|
conversationId | string |
Returns
Promise<boolean>
Defined in
packages/agents/src/plugins/conversation-history/types.ts:47
clear
▸ clear(): Promise<void>
Returns
Promise<void>
Defined in
packages/agents/src/plugins/conversation-history/types.ts:48