-
Notifications
You must be signed in to change notification settings - Fork 261
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
langgraph.errors.InvalidUpdateError: Expected dict, got conversational #37
Comments
Hey @TechKemon, just from a quick glance, I have a feeling the error has something to do with
I would look into formatting conditional edges, your second conditional edge is correct. if you prefer to use lambda, you need some way for the generally, routing is done like this example in cell 3 ( and also I would direct you to join the community slack for general langgraph questions. |
Thanks Shiv for prompt answer. Will try this and let you know |
Hey I'm getting these two errors repeatedly: Code:
Add nodesworkflow.add_node("router", route_query) |
the unhasable dict could be due to a return value giving a dict but the conditional expects just a value. And the InvalidUpdateError:
here is the adjusted code without any errors. things I changed:
that should fix all the errors and set you up for flexibility for future iterations with a LangGraphy approach, I didn't use lambda since it adds complexities and is harder to read/follow. I recommend looking into all the links I referenced. They will help you semantically understand the reasoning behind the changes with accepted paradigm approaches. |
Getting this error repeatedly:
InvalidUpdateError: Expected dict, got conversational
full code from
https://github.com/PeoplePlusAI/Sukoon
The text was updated successfully, but these errors were encountered: