Adds a new message to the chat history in the Redis database.
The message to be added to the chat history.
Promise resolving to void.
Deletes all messages from the chat history in the Redis database.
Promise resolving to void.
Retrieves the chat messages from the Redis database.
An array of BaseMessage instances representing the chat history.
Class used to store chat message history in Redis. It provides methods to add, get, and clear messages.