langgraph/how-tos/subgraph-persistence/ #2759
Replies: 5 comments 16 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.
-
When printing the state either in get_state or get_state_history i cannot see the checkpoint_id. Can anyone help me understand why? I would like to use them elsewhere.. |
Beta Was this translation helpful? Give feedback.
-
I a question about the subgraph persistence. I am writing a multi-agent system with three ReAct-style agents, each of which has its own internal state, including a private message list, search history, etc., and a tool to hand off to other agents using I thought that with the However, when I check the state of I am not sure whether the |
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