Alpha Notice: These docs cover the v1-alpha release. Content is incomplete and subject to change.For the latest stable version, see the current LangGraph Python or LangGraph JavaScript docs.
StateGraph
received a non-dict 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 dict for your defined state.