-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Langgraph studio the subgraph part is not shown when we invoke the subgraphs in the parent graph's node #3372
Comments
I got same situation after bumped up langgraph to 0.2.70ish(not sure exactly which version broken), 0.2.71 also same. |
No, still facing the same issue |
I mean, I got also same issue, I was asking to langgraph team for the any updates. |
@arya18mak thanks for reporting -- we will look into better support, in the meantime you can add an explicit edge w/ END to your subgraph. let me know if this resolves the issue for you from langgraph.graph import START, END
...
subgraph_builder.add_edge(START, "subgraph_node_1")
subgraph_builder.add_edge("subgraph_node_1", "subgraph_node_2")
subgraph_builder.add_edge("subgraph_node_2", END)
... |
Also getting the same issue |
@affanshahid does the above suggestion resolve the issue? |
Can't put explicitly since it is conditional edge using "Command"
and when I display on image, it draws correctly.
|
@vbarda I already have an explicit end: Sub-graph: builder = StateGraph(WritingTeamState)
retry = RetryPolicy(max_attempts=5)
builder.add_node(PLAN, plan, retry=retry)
builder.add_node(WRITE, write, retry=retry)
builder.add_node(REVIEW, review, retry=retry)
builder.add_node(ADD_DIAGRAMS, add_diagrams, retry=retry)
builder.add_node(REMOVE_DUPLICATES, remove_duplicate_images, retry=retry)
builder.add_edge(START, PLAN)
builder.add_edge(PLAN, WRITE)
builder.add_conditional_edges(
WRITE, should_review, {REVIEW: REVIEW, ADD_DIAGRAMS: ADD_DIAGRAMS}
)
builder.add_edge(REVIEW, PLAN)
builder.add_edge(ADD_DIAGRAMS, REMOVE_DUPLICATES)
builder.add_edge(REMOVE_DUPLICATES, END) Main Graph: builder = StateGraph(RaModelNoteGenerationState)
retry = RetryPolicy(max_attempts=5)
builder.add_node("research", research, retry=retry)
builder.add_node("perform_conversations", perform_conversations, retry=retry)
builder.add_node("refine_outline", refine_outline, retry=retry)
builder.add_node("write", write, retry=retry) # sub-graph
builder.add_node("combine", combine, retry=retry)
builder.add_edge(START, "research")
builder.add_edge("research", "perform_conversations")
builder.add_edge("perform_conversations", "refine_outline")
builder.add_edge("refine_outline", "write")
builder.add_edge("write", "combine")
builder.add_edge("combine", END) |
same issue |
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I am using langgraph cli and langsmith to visual the graph using studio but when invoking a subgraph from parent node. The UI does'nt expand to subgraph level.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: