Open kmprasad4u opened 1 day ago
parentImage = parentGraph.get_graph(xray=2).draw_mermaid_png()
True is actually 1, since bool is a subclass of int. You can directly input the number representing the sublayer depth you want to expand.
Yes I did try it, Less than 3 it doesn't throw error. But that doesn't give the full depth in the image if there are over 3 levels and the create_react_agent is used in the 3rd level.
Since the default is False, I assumed True is to display all levels and I would expect an option to display all levels instead of hardcoding a number like that.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I am trying to create nested graphs and using create_react_agent in the third level. But when displaying the graph, i get error message. If I just use llm inside the method, I don't get the error. I have tried to simplify the code as much as possible to illustrate the problem.
System Info
langchain==0.3.7 langchain-core==0.3.18 langchain-community==0.3.7 langgraph==0.2.48