Creates a new PostgresChatMessageHistory.
The input fields for the PostgresChatMessageHistory.
Type definition for the input parameters required when instantiating a PostgresChatMessageHistory object.
Optional
escapeTableName?: booleanIf true, the table name will be escaped. ('lAnGcHaIn' will be escaped to '"lAnGcHaIn"')
Optional
pool?: pg.PoolPostgres 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.PoolConfigConfiguration 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.
Session ID to use when storing and retrieving chat message history.
Optional
tableName?: stringName of the table to use when storing and retrieving chat message
Class for managing chat message history using a Postgres Database as a storage backend. Extends the BaseListChatMessageHistory class.
Example