Interface: BaseChatStore
Implemented by
Methods
addMessage
▸ addMessage(key
, message
): void
Parameters
Name | Type |
---|---|
key | string |
message | ChatMessage |
Returns
void
Defined in
packages/core/src/storage/chatStore/types.ts:6
deleteLastMessage
▸ deleteLastMessage(key
): null
| ChatMessage
Parameters
Name | Type |
---|---|
key | string |
Returns
null
| ChatMessage
Defined in
packages/core/src/storage/chatStore/types.ts:9
deleteMessage
▸ deleteMessage(key
, idx
): null
| ChatMessage
Parameters
Name | Type |
---|---|
key | string |
idx | number |
Returns
null
| ChatMessage
Defined in
packages/core/src/storage/chatStore/types.ts:8
deleteMessages
▸ deleteMessages(key
): null
| ChatMessage
[]
Parameters
Name | Type |
---|---|
key | string |
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
Name | Type |
---|---|
key | string |
Returns
Defined in
packages/core/src/storage/chatStore/types.ts:5
setMessages
▸ setMessages(key
, messages
): void
Parameters
Name | Type |
---|---|
key | string |
messages | ChatMessage [] |
Returns
void