langgraph/how-tos/subgraph-persistence/ #2759
Replies: 3 comments 6 replies
-
Hi guys I have a multi-agent architecture with a supervisor and several subgraphs. Subgraphs are compiled and added directly as parent nodes. When I run the graph for the first time, it works fine. But I want the subgraph‘s state to be present for upcoming runs, since the subgraphs don’t share all the keys with the parent state. When I run it again, the subgraph state is gone unfortunately. It only persists the parent‘s state. I use the MemorySaver as Checkpointer. What did I miss? Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
I was surprised with that we can have several STARTs (and ENDs). So every subgraph can have it's own START and END. |
Beta Was this translation helpful? Give feedback.
-
When a subgraph is invoked within a node as mentioned in add a node function that invokes the subgraph, does the state update/interrupts work the same way as mentioned in: how to view and update state in subgraphs |
Beta Was this translation helpful? Give feedback.
-
langgraph/how-tos/subgraph-persistence/
Build language agents as graphs
https://langchain-ai.github.io/langgraph/how-tos/subgraph-persistence/
Beta Was this translation helpful? Give feedback.
All reactions