The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
core[patch]: fix edge labels for mermaid graphs (#26201)
Vadym Barda1b3bd52e0e9b
diff --git a/libs/core/langchain_core/runnables/graph_mermaid.py b/libs/core/langchain_core/runnables/graph_mermaid.pyindex a471ffe26f..1d06095b7b 100644--- a/libs/core/langchain_core/runnables/graph_mermaid.py+++ b/libs/core/langchain_core/runnables/graph_mermaid.py@@ -119,9 +119,9 @@ def draw_mermaid(for i in range(0, len(words), wrap_label_n_words))if edge.conditional:- edge_label = f" -.  {edge_data}  .-> "+ edge_label = f" -. {edge_data} .-> "else:- edge_label = f" --  {edge_data}  --> "+ edge_label = f" -- {edge_data} --> "else:if edge.conditional:edge_label = " -.-> "