Module alloydb_chat_message_history (0.4.0)

API documentation for alloydb_chat_message_history module.

Classes

AlloyDBChatMessageHistory

AlloyDBChatMessageHistory(
    key: object,
    engine: langchain_google_alloydb_pg.alloydb_engine.AlloyDBEngine,
    session_id: str,
    table_name: str,
    messages: typing.List[langchain_core.messages.base.BaseMessage],
)

Chat message history stored in an AlloyDB.

Modules Functions

_aget_messages

_aget_messages(
    engine: langchain_google_alloydb_pg.alloydb_engine.AlloyDBEngine,
    session_id: str,
    table_name: str,
) -> typing.List[langchain_core.messages.base.BaseMessage]

Retrieve the messages from AlloyDB