Ask a question to get started
Enter to send•Shift+Enter new line
InMemoryChatMessageHistory()
BaseChatMessageHistory
BaseModel
Convenience method for adding a human message string to the store.
Convenience method for adding an AIMessage string to the store.
AIMessage
Add a list of messages.
A list of messages stored in memory.
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.
In memory implementation of chat message history.
Stores messages in a memory list.