From 9ee5699f9a3a43d1c679042aa18f7f455bb58ddb Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Wed, 24 Apr 2024 11:22:53 -0700 Subject: [PATCH] Fix --- langgraph/graph/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langgraph/graph/graph.py b/langgraph/graph/graph.py index 15e0cc3da..4c06de11b 100644 --- a/langgraph/graph/graph.py +++ b/langgraph/graph/graph.py @@ -113,7 +113,7 @@ class Graph: ) if key in self.nodes: raise ValueError(f"Node `{key}` already present.") - if key == END: + if key == END or key == START: raise ValueError(f"Node `{key}` is reserved.") self.nodes[key] = coerce_to_runnable(action)