langchain_community.chat_message_histories.singlestoredb.SingleStoreDBChatMessageHistory¶
class langchain_community.chat_message_histories.singlestoredb.SingleStoreDBChatMessageHistory(session_id: str, *, table_name: str = 'message_store', id_field: str = 'id', session_id_field: str = 'session_id', message_field: str = 'message', pool_size: int = 5, max_overflow: int = 10, timeout: float = 30, **kwargs: Any)[source]¶
Chat message history stored in a SingleStoreDB database.
Initialize with necessary components.
Parameters
table_name (str, optional) – Specifies the name of the table in use.
Defaults to “message_store”.
id_field (str, optional) – Specifies the name of the id field in the table.
Defaults to “id”.
session_id_field (str, optional) – Specifies the name of the session_id
field in the table. Defaults to “session_id”.
message_field (str, optional) – Specifies the name of the message field
in the table. Defaults to “message”.
pool (Following arguments pertain to the connection) – 
pool_size (int, optional) – Determines the number of active connections in
the pool. Defaults to 5.
max_overflow (int, optional) – Determines the maximum number of connections
allowed beyond the pool_size. Defaults to 10.
timeout (float, optional) – Specifies the maximum wait time in seconds for
establishing a connection. Defaults to 30.
connection (database) – 
host (str, optional) – Specifies the hostname, IP address, or URL for the
database connection. The default scheme is “mysql”.
user (str, optional) – Database username.
password (str, optional) – Database password.