Hierarchy

  • BaseChatMessageHistory
    • FakeChatMessageHistory

Constructors

Properties

messages: BaseMessage[]

Methods

  • Parameters

    • message: string

    Returns Promise<void>

  • Parameters

    • message: BaseMessage

    Returns Promise<void>

  • Add a list of messages.

    Implementations should override this method to handle bulk addition of messages in an efficient manner to avoid unnecessary round-trips to the underlying store.

    Parameters

    • messages: BaseMessage[]

      A list of BaseMessage objects to store.

    Returns Promise<void>

  • Parameters

    • message: string

    Returns Promise<void>

  • Returns Promise<void>

  • Returns Promise<BaseMessage[]>

  • Returns Serialized