Interface: BaseChatStore<AdditionalMessageOptions>
Type parameters
Name | Type |
---|---|
AdditionalMessageOptions | extends object = object |
Implemented by
Methods
addMessage
▸ addMessage(key
, message
): void
Parameters
Name | Type |
---|---|
key | string |
message | ChatMessage <AdditionalMessageOptions > |
Returns
void
Defined in
packages/core/src/storage/chatStore/types.ts:11
deleteLastMessage
▸ deleteLastMessage(key
): null
| ChatMessage
<AdditionalMessageOptions
>
Parameters
Name | Type |
---|---|
key | string |
Returns
null
| ChatMessage
<AdditionalMessageOptions
>
Defined in
packages/core/src/storage/chatStore/types.ts:17
deleteMessage
▸ deleteMessage(key
, idx
): null
| ChatMessage
<AdditionalMessageOptions
>
Parameters
Name | Type |
---|---|
key | string |
idx | number |
Returns
null
| ChatMessage
<AdditionalMessageOptions
>
Defined in
packages/core/src/storage/chatStore/types.ts:13
deleteMessages
▸ deleteMessages(key
): null
| ChatMessage
<AdditionalMessageOptions
>[]
Parameters
Name | Type |
---|---|
key | string |
Returns
null
| ChatMessage
<AdditionalMessageOptions
>[]
Defined in
packages/core/src/storage/chatStore/types.ts:12
getKeys
▸ getKeys(): string
[]
Returns
string
[]
Defined in
packages/core/src/storage/chatStore/types.ts:18
getMessages
▸ getMessages(key
): ChatMessage
<AdditionalMessageOptions
>[]
Parameters
Name | Type |
---|---|
key | string |
Returns
ChatMessage
<AdditionalMessageOptions
>[]
Defined in
packages/core/src/storage/chatStore/types.ts:10
setMessages
▸ setMessages(key
, messages
): void
Parameters
Name | Type |
---|---|
key | string |
messages | ChatMessage <AdditionalMessageOptions >[] |
Returns
void