From 33e024ad102866155dd176b74492e83cfcc92e5c Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Tue, 26 Dec 2023 11:43:14 -0800 Subject: [PATCH] [core] print ascii (#15179) --- libs/core/langchain_core/runnables/graph.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/core/langchain_core/runnables/graph.py b/libs/core/langchain_core/runnables/graph.py index c1906b55155..b172b71239c 100644 --- a/libs/core/langchain_core/runnables/graph.py +++ b/libs/core/langchain_core/runnables/graph.py @@ -135,3 +135,6 @@ class Graph: {node.id: node_data(node) for node in self.nodes.values()}, [(edge.source, edge.target) for edge in self.edges], ) + + def print_ascii(self) -> None: + print(self.draw_ascii())