Hierarchy

  • BaseChatMessageHistory
    • PostgresChatMessageHistory

Constructors

Properties

schemaName: string
sessionId: string
tableName: string

Methods

  • Returns Serialized

  • Create a new PostgresChatMessageHistory instance.

    Parameters

    • engine: PostgresEngine

      Postgres engine instance to use.

    • sessionId: string

      Retrieve the table content with this session ID.

    • tableName: string

      Table name that stores that chat message history. Parameter is not escaped. Do not use with end user input.

    • schemaName: string = "public"

      Schema name for the chat message history table. Default: "public". Parameter is not escaped. Do not use with end user input.

    Returns Promise<PostgresChatMessageHistory>

    PostgresChatMessageHistory instance.

""