-
Notifications
You must be signed in to change notification settings - Fork 78
feat: Adding PGChatMessageHistory #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
feat: Add PGChatMessageHistory
chore(docs): Add documentation for PGChatMessageHistory
else: | ||
return f"""SELECT data, type FROM "{self.schema_name}"."{self.table_name}" WHERE session_id = :session_id ORDER BY id;""" | ||
|
||
def _convert_to_messages(self, rows: Sequence[RowMapping]) -> list[BaseMessage]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: make private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left some functions to be semi private so we can override them in the google integrations. These are mostly related to how the data is to be pulled from the db or added in depending on the schema
feat: Adding PGChatMessageHistory along with it's documentation
Not deprecating the PostgresChatMessageHistory for now (as the deprcation for PGVector has been removed).