Skip to content

fix: add write messages to Chat History#341

Merged
averikitsch merged 2 commits into
mainfrom
fix_chat_history
Feb 6, 2025
Merged

fix: add write messages to Chat History#341
averikitsch merged 2 commits into
mainfrom
fix_chat_history

Conversation

@vishwarajanand

@vishwarajanand vishwarajanand commented Feb 6, 2025

Copy link
Copy Markdown
Contributor

Unblocks lint failures in #339

Lint workflow is complaining:

src/langchain_google_alloydb_pg/chat_message_history.py:111: error: Cannot override writeable attribute with read-only property  [override]

This happens because we are only defining @property but not @messages.setter since the base class BaseChatMessageHistory defines messages as a writeable prop.

Adding definition and relevant test.

Note: this failure is only reported with latest mypy==1.15.0 version.

@product-auto-label product-auto-label Bot added the api: alloydb Issues related to the googleapis/langchain-google-alloydb-pg-python API. label Feb 6, 2025
@vishwarajanand vishwarajanand marked this pull request as ready for review February 6, 2025 10:23
@vishwarajanand vishwarajanand requested review from a team February 6, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: alloydb Issues related to the googleapis/langchain-google-alloydb-pg-python API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants