Skip to content

DynamoDBChatMessageHistory does not handle GSI keys. #485

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

Open
mlnrt opened this issue May 21, 2025 · 0 comments
Open

DynamoDBChatMessageHistory does not handle GSI keys. #485

mlnrt opened this issue May 21, 2025 · 0 comments

Comments

@mlnrt
Copy link

mlnrt commented May 21, 2025

Hello,
The documentation and code of DynamoDBChatMessageHistory, mentions that the "key" parameter can include both the composite key DynamoDB GSI LSI keys.
Reference: "This may also contain global and local secondary index keys"
But this doesn't work since the add_messages method simply expands the key parameter and passes everything into the key. But according to the boto3 update_item() documentation, the Key parameter can only include the primary and search key.
However, the ability to add additional attributes and GSI/LSI would definitely be a plus.
I might be able to help on this with instructions on how to participate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant