Class used to store chat message history in Redis. It provides methods to add, get, and clear messages.

Hierarchy

  • BaseListChatMessageHistory
    • UpstashRedisChatMessageHistory

Constructors

Properties

Methods

Constructors

Properties

client: Redis

Methods

  • Adds a new message to the chat history in the Redis database.

    Parameters

    • message: BaseMessage

      The message to be added to the chat history.

    Returns Promise<void>

    Promise resolving to void.

Generated using TypeDoc