From 1bee33db3af3c5937f6b3838197b7cf33668f38f Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Tue, 3 Dec 2024 15:52:41 -0800 Subject: [PATCH] Fix --- libs/langgraph/langgraph/graph/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/graph/state.py b/libs/langgraph/langgraph/graph/state.py index d1a503092..1a7208a2a 100644 --- a/libs/langgraph/langgraph/graph/state.py +++ b/libs/langgraph/langgraph/graph/state.py @@ -849,7 +849,7 @@ def _control_branch(value: Any) -> Sequence[Union[str, Send]]: async def _acontrol_branch(value: Any) -> Sequence[Union[str, Send]]: if isinstance(value, Send): return [value] - if not isinstance(value, GraphCommand): + if not isinstance(value, Command): return EMPTY_SEQ if value.graph == Command.PARENT: raise ParentCommand(value)