In memory implementation of chat message history.
Stores messages in a memory list.
InMemoryChatMessageHistory()Async version of getting messages.
Can over-ride this method to provide an efficient async implementation.
In general, fetching messages may involve IO to the underlying persistence layer.
Add a self-created message to the store.
Async add messages to the store.
Clear all messages from the store.
Async clear all messages from the store.