Skip to content
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

fix(langgraph): Dedupe input (right-side) messages in messageStateReducer #846

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

jacoblee93
Copy link
Collaborator

@jacoblee93 jacoblee93 commented Feb 6, 2025

There are some cases where duplicate messages (with the same id) can accumulate in a result in before they are returned by a node and passed into a reducer

This change dedupes in new messages

FYI @benjamincburns @nfcampos

Copy link

@vanb vanb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@jacoblee93 jacoblee93 merged commit ae6e5b2 into main Feb 6, 2025
19 checks passed
@jacoblee93 jacoblee93 deleted the jacob/reducer branch February 6, 2025 19:28
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

Successfully merging this pull request may close these issues.

2 participants