Replies: 1 comment 3 replies
-
the update from the node should contain one of the state keys -- "pending" or "finish", it looks like there is no key "state" in the schema. so depending on your schema, it can look something like class State(TypedDict):
pending: bool
finish: bool
def node_a(state):
...
return {"pending": True} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two nodes, A and B. In Node A, I return {'state': 'pending'}, and I want Node B to return {'state': 'finish'}. However, I'm encountering an issue.
langgraph.errors.InvalidUpdateError: Invalid update for channel state with values ['pending', 'finish']
I tried changing the structure like this, but I still have the same issue.
{"state": "pending=finish"}
Beta Was this translation helpful? Give feedback.
All reactions