PostgresChatMessageHistory(
self,
session_id: str,
connection_string: str = DEFAULT_CONNECTION_STRING,
table_name: strChat message history stored in a Postgres database.
DEPRECATED: This class is deprecated and will be removed in a future version.
Use the PostgresChatMessageHistory implementation in langchain_postgres.
Retrieve the messages from PostgreSQL
Append the message to the record in PostgreSQL
Clear session memory from PostgreSQL