This commit is contained in:
Nuno Campos
2024-09-19 16:49:05 -07:00
parent ed27e54761
commit 7643c1171f
+1 -1
View File
@@ -320,7 +320,7 @@ class StateGraph(Graph):
)
if not isinstance(node, str):
action = node
node = getattr(action, "name", getattr(action, "__name__", None))
node = cast(str, getattr(action, "name", getattr(action, "__name__", None)))
if node is None:
raise ValueError(
"Node name must be provided if action is not a function"