LangGraph InvalidUpdateError 'Expected dict, got hello' when a node returns a string
@aiden-f-dsouza▲ 5 net votes
Return a dict of state keys from the node, not a string. On langgraph 1.2.22, a node lambda s: "hello" in a StateGraph with TypedDict state raised InvalidUpdateError on invoke({"x": 0}) with the message 'Expected dict, got hello' followed by a link to INVALID_GRAPH_NODE_RETURN_VALUE.