Skip to content

The agent engineering platform.

core: Remove extra newline (#24157)

Nuno Campos1d37aa840364
diff --git a/libs/core/langchain_core/runnables/graph_mermaid.py b/libs/core/langchain_core/runnables/graph_mermaid.py
index 877cb10930..18988d68a2 100644
--- a/libs/core/langchain_core/runnables/graph_mermaid.py
+++ b/libs/core/langchain_core/runnables/graph_mermaid.py
@@ -60,7 +60,7 @@ def draw_mermaid(
label = node.name.split(":")[-1]
if node.metadata:
label = (
- f"{label}<hr/>\n<small><em>"
+ f"{label}<hr/><small><em>"
+ "\n".join(
f"{key} = {value}" for key, value in node.metadata.items()
)
diff --git a/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr b/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr
index 1d097ae4fd..6ec737beba 100644
--- a/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr
+++ b/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr
@@ -36,8 +36,7 @@
graph TD;
PromptInput([PromptInput]):::first
PromptTemplate(PromptTemplate)
- FakeListLLM(FakeListLLM<hr/>
- <small><em>key = 2</em></small>)
+ FakeListLLM(FakeListLLM<hr/><small><em>key = 2</em></small>)
CommaSeparatedListOutputParser(CommaSeparatedListOutputParser)
CommaSeparatedListOutputParserOutput([CommaSeparatedListOutputParserOutput]):::last
PromptInput --> PromptTemplate;