Resuming a subgraph with breakpoints in Langgraph #27780
Closed
jleonelion
started this conversation in
General
Replies: 2 comments 1 reply
-
I will move this to the langgraph project |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey, I am facing the same issue. I didn't see you raising it on the langgraph repo discussion. Did you find a way to figure this out? Let's discuss more about this |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to encapsulate two existing graphs to assemble a larger workflow. At this point, I am defining the nodes in the parent graph passing output of StateGraph.compile() from each of the subgraphs; then I have edges between those two nodes to define the overall parent graph:
Problem is subgraph1 has breakpoints (to solicit human input) and I can't figure out how to resume execution of the subgraph after the input is received. When I am directly testing subgraph1, I can directly update state with something like the following:
but in this case,
subgraph1.get_state(thread)
does not seem to return a valid state (ex. .next is empty{}
)Is there any example handling subgraphs with dynamic breakpoints?
Beta Was this translation helpful? Give feedback.
All reactions