Skip to content

agent-plugin-conversation-history / Exports / IHistoryStorage

Interface: IHistoryStorage

Storage interface for conversation history

Implemented by

Table of contents

Methods

Methods

save

save(conversationId, entry): Promise<void>

Parameters

NameType
conversationIdstring
entryIConversationHistoryEntry

Returns

Promise<void>

Defined in

agent-plugin-conversation-history/src/types.ts:43


load

load(conversationId): Promise<undefined | IConversationHistoryEntry>

Parameters

NameType
conversationIdstring

Returns

Promise<undefined | IConversationHistoryEntry>

Defined in

agent-plugin-conversation-history/src/types.ts:44


list

list(): Promise<string[]>

Returns

Promise<string[]>

Defined in

agent-plugin-conversation-history/src/types.ts:45


delete

delete(conversationId): Promise<boolean>

Parameters

NameType
conversationIdstring

Returns

Promise<boolean>

Defined in

agent-plugin-conversation-history/src/types.ts:46


clear

clear(): Promise<void>

Returns

Promise<void>

Defined in

agent-plugin-conversation-history/src/types.ts:47

Released under the MIT License.