The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
core[patch]: Remove `print` statement on missing `grandalf` dependency in favor of more explicit ImportError (#16326)
James Brazae1c59779ad50
diff --git a/libs/core/langchain_core/runnables/graph_draw.py b/libs/core/langchain_core/runnables/graph_draw.pyindex be78c9c540..87facfb92e 100644--- a/libs/core/langchain_core/runnables/graph_draw.py+++ b/libs/core/langchain_core/runnables/graph_draw.py@@ -165,9 +165,11 @@ def _build_sugiyama_layout(EdgeViewer,route_with_lines,)- except ImportError:- print("Install grandalf to draw graphs. `pip install grandalf`")- raise+ except ImportError as exc:+ raise ImportError(+ "Install grandalf to draw graphs: `pip install grandalf`."+ ) from exc+## Just a reminder about naming conventions:# +------------X