langgraph/how-tos/subgraphs-manage-state/ #1728
Replies: 15 comments 18 replies
-
Is it possible to replay from a node within a subggraph like shown here for top level nodes? https://langchain-ai.github.io/langgraph/how-tos/human_in_the_loop/time-travel/#replay-a-state |
Beta Was this translation helpful? Give feedback.
-
Does the subgraph have to be pre-compiled to support being suspended and resumed,Can the subgraph as a node method support it? |
Beta Was this translation helpful? Give feedback.
-
Shouldn't there be a way to set a max_recursion limit to subgraphs? |
Beta Was this translation helpful? Give feedback.
-
I encountered the following error. How can I fix it?TypeError Traceback (most recent call last) TypeError: Pregel.get_state() got an unexpected keyword argument 'subgraphs' |
Beta Was this translation helpful? Give feedback.
-
below is the latest graph response:
And when i am getting graph state, in tasks i didn't get subgraph tasks even though i have mentioned subgraphs to True:
code:
|
Beta Was this translation helpful? Give feedback.
-
For, double nested subgraphs, let's say we have the following routes
How can we implement a graph such that it supports question that requires multiple routes e.g. both weather and other route. For example, questions like what is the weather in SF and show me 3 countries with highest sales. |
Beta Was this translation helpful? Give feedback.
-
How to display subgraphs within graphs, IPython.display does not show subgraphs the way you would want to visualise/ |
Beta Was this translation helpful? Give feedback.
-
Is there a way to stack & restore a subgraph's private state history? I'm developing a multi-agent system, where each agent is defined as a subgraph. A subgraph can be visited multiple times during a session, and I want it to keep all of its own state memory. In the earlier Langgraph version I tried to customize a "SubgraphStateManager" and use it as a context object in parent state. Since |
Beta Was this translation helpful? Give feedback.
-
For the second case "Add a node function that invokes the subgraph"
Parent graph fails to steam the events of subgraph. The output will be
May I know is there a way to stream subgraph when set config parameter when invoking subgraph? |
Beta Was this translation helpful? Give feedback.
-
Hi. When creating an edge from parent to the subgraph, the subgraph need to be compiled first. So this method does not appear to work, since it a circular logic. If I want to convert Customer support bot to a graph implementation, Any advice/thoughts ? |
Beta Was this translation helpful? Give feedback.
-
I was trying to get this to work where there are two subgraphs running in parallel with a breakpoint in one of them. It always throws a GraphInterrupt error though. Using the latest lang graph. Can’t share the code since it’s at work. |
Beta Was this translation helpful? Give feedback.
-
Use add interrupt
Yahoo Mail: Search, Organize, Conquer
On Sat, Nov 16, 2024 at 7:43 PM, ***@***.***> wrote:
I was trying to get this to work where there are two subgraphs running in parallel with a breakpoint in one of them. It always throws a GraphInterrupt error though. Using the latest lang graph. Can’t share the code since it’s at work.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to interrupt after a subgraph node by passing "interrupt_after" to CompiledGraph.stream()? This would be useful for testing, but it seems like it's not possible since the subgraph namespace includes a dynamic runtime UID (subgraph:UID.node_name). |
Beta Was this translation helpful? Give feedback.
-
Wont it be a better design if langgraph its self knows where to continue from, irrespective of graph being a subgraph or parent graph ..? |
Beta Was this translation helpful? Give feedback.
-
Hi after run
it raise
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
langgraph/how-tos/subgraphs-manage-state/
Build language agents as graphs
https://langchain-ai.github.io/langgraph/how-tos/subgraphs-manage-state/
Beta Was this translation helpful? Give feedback.
All reactions