mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-22 07:32:25 +02:00
Fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user