Skip to main content

Interface: BaseChatStore

Implemented by

Methods

addMessage

addMessage(key, message): void

Parameters

NameType
keystring
messageChatMessage

Returns

void

Defined in

packages/core/src/storage/chatStore/types.ts:6


deleteLastMessage

deleteLastMessage(key): null | ChatMessage

Parameters

NameType
keystring

Returns

null | ChatMessage

Defined in

packages/core/src/storage/chatStore/types.ts:9


deleteMessage

deleteMessage(key, idx): null | ChatMessage

Parameters

NameType
keystring
idxnumber

Returns

null | ChatMessage

Defined in

packages/core/src/storage/chatStore/types.ts:8


deleteMessages

deleteMessages(key): null | ChatMessage[]

Parameters

NameType
keystring

Returns

null | ChatMessage[]

Defined in

packages/core/src/storage/chatStore/types.ts:7


getKeys

getKeys(): string[]

Returns

string[]

Defined in

packages/core/src/storage/chatStore/types.ts:10


getMessages

getMessages(key): ChatMessage[]

Parameters

NameType
keystring

Returns

ChatMessage[]

Defined in

packages/core/src/storage/chatStore/types.ts:5


setMessages

setMessages(key, messages): void

Parameters

NameType
keystring
messagesChatMessage[]

Returns

void

Defined in

packages/core/src/storage/chatStore/types.ts:4