Module chat_message_history (0.4.1)
Stay organized with collections
Save and categorize content based on your preferences.
API documentation for chat_message_history
module.
Classes
PostgresChatMessageHistory(
key,
engine: langchain_google_cloud_sql_pg.engine.PostgresEngine,
session_id: str,
table_name: str,
messages: typing.List[langchain_core.messages.base.BaseMessage],
)
Chat message history stored in an Cloud SQL for PostgreSQL database.
Modules
Functions
_aget_messages
_aget_messages(
engine: langchain_google_cloud_sql_pg.engine.PostgresEngine,
session_id: str,
table_name: str,
) -> typing.List[langchain_core.messages.base.BaseMessage]
Retrieve the messages from PostgreSQL
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-01 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]