Class BigtableChatMessageHistory (0.4.0)

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

add_messages

add_messages(
    messages: typing.Sequence[langchain_core.messages.base.BaseMessage],
) -> None

Write messages to the table

clear

clear() -> None

Clear session memory from DB