跳转到内容

SimpleChatStore

定义于:.build/typescript/packages/core/src/storage/chat-store/simple-chat-store.ts:4

AdditionalMessageOptions extends object = object

新建 SimpleChatStore<AdditionalMessageOptions>(): SimpleChatStore<AdditionalMessageOptions>

SimpleChatStore<AdditionalMessageOptions>

BaseChatStore.constructor

setMessages(key, messages): void

定义于:.build/typescript/packages/core/src/storage/chat-store/simple-chat-store.ts:8

string

ChatMessage<AdditionalMessageOptions>[]

void

BaseChatStore.setMessages


getMessages(key): ChatMessage<AdditionalMessageOptions>[]

定义于:.build/typescript/packages/core/src/storage/chat-store/simple-chat-store.ts:12

string

ChatMessage<AdditionalMessageOptions>[]

BaseChatStore.getMessages


addMessage(key, message, idx?): void

定义于:.build/typescript/packages/core/src/storage/chat-store/simple-chat-store.ts:16

string

ChatMessage<AdditionalMessageOptions>

number

void

BaseChatStore.addMessage


deleteMessages(key): void

定义于:.build/typescript/packages/core/src/storage/chat-store/simple-chat-store.ts:30

string

void

BaseChatStore.deleteMessages


deleteMessage(key, idx): void

定义于:.build/typescript/packages/core/src/storage/chat-store/simple-chat-store.ts:34

string

number

void

BaseChatStore.deleteMessage


getKeys(): MapIterator<string>

定义于:.build/typescript/packages/core/src/storage/chat-store/simple-chat-store.ts:40

MapIterator<string>

BaseChatStore.getKeys