mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-06 17:57:49 +02:00
Update graph.py
This commit is contained in:
@@ -194,7 +194,7 @@ class Graph:
|
||||
"Node name must be provided if action is not a function"
|
||||
)
|
||||
if action is None:
|
||||
raise RuntimeError(f"Expected a function or Runnable action in add_node. Received None.")
|
||||
raise RuntimeError("Expected a function or Runnable action in add_node. Received None.")
|
||||
if node in self.nodes:
|
||||
raise ValueError(f"Node `{node}` already present.")
|
||||
if node == END or node == START:
|
||||
|
||||
Reference in New Issue
Block a user