-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unexpected Behavior of State Reducer Function in Subgraph #3587
Comments
@iamolvr I tried to play around to fix it
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I am trying to update a state from a subgraph node. The
dialog_state
state key is annotated with theupdate_dialog_stack
reducer function, which is taken verbatim from the LangGraph Customer Support Bot tutorial.The expected behavior for the
dialog_state
key should be the following:[init_state]
→[init_state, a_parent_state]
→[init_state, a_parent_state, a_child_state]
→[init_state, a_parent_state, a_child_state, b_child_state]
→[init_state, a_parent_state, a_child_state]
.Below is the history of the actual state updates provided.
The text was updated successfully, but these errors were encountered: