Interface: BaseChatStore<AdditionalMessageOptions>
Type parameters
Name | Type |
---|---|
AdditionalMessageOptions | extends Record <string , unknown > = Record <string , unknown > |
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:14
deleteLastMessage
▸ deleteLastMessage(key
): null
| ChatMessage
<AdditionalMessageOptions
>
Parameters
Name | Type |
---|---|
key | string |
Returns
null
| ChatMessage
<AdditionalMessageOptions
>
Defined in
packages/core/src/storage/chatStore/types.ts:20
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:16
deleteMessages
▸ deleteMessages(key
): null
| ChatMessage
<AdditionalMessageOptions
>[]
Parameters
Name | Type |
---|---|
key | string |