From c64f2cafa604a02574e05319da8ae284d621da78 Mon Sep 17 00:00:00 2001 From: LuizFelipeVVAlves <158202066+LuizFelipeVVAlves@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:12:26 -0300 Subject: [PATCH 1/3] Comment out channels assignment in swarm.py Compatibility with LangGraph 1.0 --- langgraph_swarm/swarm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langgraph_swarm/swarm.py b/langgraph_swarm/swarm.py index d389d4b..d3917d3 100644 --- a/langgraph_swarm/swarm.py +++ b/langgraph_swarm/swarm.py @@ -127,7 +127,7 @@ def add(a: int, b: int) -> int: ``` """ - channels = builder.schemas[builder.state_schema] + #channels = builder.schemas[builder.state_schema] if "active_agent" not in channels: msg = "Missing required key 'active_agent' in in builder's state_schema" raise ValueError(msg) From c02f2ca1ee2465c36cba562e0a31908b527bed96 Mon Sep 17 00:00:00 2001 From: LuizFelipeVVAlves <158202066+LuizFelipeVVAlves@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:23:10 -0300 Subject: [PATCH 2/3] Update dependency version ranges in pyproject.toml --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a37af6b..099d696 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,8 +14,8 @@ license-files = ["LICENSE"] readme = "README.md" requires-python = ">=3.10" dependencies = [ - "langgraph>=0.6.0,<0.7.0", - "langchain-core>=0.3.40,<0.4.0" + "langgraph>=0.6.0,<2.0.0", + "langchain-core>=0.3.40,<2.0.0" ] [dependency-groups] From f87b4f75b83a81eb9cb287ff0a757f7d187e2a00 Mon Sep 17 00:00:00 2001 From: LuizFelipeVVAlves <158202066+LuizFelipeVVAlves@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:32:04 -0300 Subject: [PATCH 3/3] Fix channel key check for active_agent channels now is an attribute of builder --- langgraph_swarm/swarm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langgraph_swarm/swarm.py b/langgraph_swarm/swarm.py index d3917d3..8738b82 100644 --- a/langgraph_swarm/swarm.py +++ b/langgraph_swarm/swarm.py @@ -128,7 +128,7 @@ def add(a: int, b: int) -> int: """ #channels = builder.schemas[builder.state_schema] - if "active_agent" not in channels: + if "active_agent" not in builder.channels: msg = "Missing required key 'active_agent' in in builder's state_schema" raise ValueError(msg)