These docs are for the v1.0 alpha release of LangGraph. For the latest stable docs, please see the old sites: LangGraph Python | LangGraph JavaScript
StateGraph
received a non-object return type from a node. Here’s an example:
Troubleshooting
The following may help resolve this error:- If you have complex logic in your node, make sure all code paths return an appropriate object for your defined state.