Class BigtableChatMessageHistory (0.2.3)

BigtableChatMessageHistory(
    instance_id: str,
    table_id: str,
    session_id: str,
    client: typing.Optional[google.cloud.bigtable.client.Client] = None,
)

Chat message history that stores history in Bigtable.

Properties

messages

Retrieve all session messages from DB

Methods

add_message

add_message(message: langchain_core.messages.base.BaseMessage) -> None

Write a message to the table

clear

clear() -> None

Clear session memory from DB