Module chat_message_history (0.2.1)

API documentation for chat_message_history module.

Classes

MSSQLChatMessageHistory

MSSQLChatMessageHistory(
    engine: langchain_google_cloud_sql_mssql.engine.MSSQLEngine,
    session_id: str,
    table_name: str,
)

Chat message history stored in a Cloud SQL MSSQL database.

Parameters
Name Description
engine MSSQLEngine

SQLAlchemy connection pool engine for managing connections to Cloud SQL for SQL Server.

session_id str

Arbitrary key that is used to store the messages of a single chat session.

table_name str

The name of the table to use for storing/retrieving the chat message history.