PostgresChatMessageHistoryInput: {
    sessionId: string;
    escapeTableName?: boolean;
    pool?: pg.Pool;
    poolConfig?: pg.PoolConfig;
    tableName?: string;
}

Type definition for the input parameters required when instantiating a PostgresChatMessageHistory object.

Type declaration

  • sessionId: string

    Session ID to use when storing and retrieving chat message history.

  • Optional escapeTableName?: boolean

    If true, the table name will be escaped. ('lAnGcHaIn' will be escaped to '"lAnGcHaIn"')

  • Optional pool?: pg.Pool

    Postgres pool to use. If provided the PostgresChatMessageHistory object will use the provided pool. Otherwise it will create a new pool using the provided configuration.

  • Optional poolConfig?: pg.PoolConfig

    Configuration object for the Postgres pool. If provided the PostgresChatMessageHistory object will create a new pool using the provided configuration. Otherwise it will use the provided pool.

  • Optional tableName?: string

    Name of the table to use when storing and retrieving chat message

Generated using TypeDoc