Skip to content

Commit 3e72503

Browse files
make compatible with langgraph 0.5 (#87)
* Update swarm.py * Update lock file and min constraint --------- Co-authored-by: Jonas dos Santos <[email protected]>
1 parent 8879cd9 commit 3e72503

File tree

3 files changed

+674
-560
lines changed

3 files changed

+674
-560
lines changed

langgraph_swarm/swarm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def add(a: int, b: int) -> int:
121121
)
122122
```
123123
"""
124-
channels = builder.schemas[builder.schema]
124+
channels = builder.schemas[builder.state_schema]
125125
if "active_agent" not in channels:
126126
raise ValueError("Missing required key 'active_agent' in in builder's state_schema")
127127

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ license-files = ["LICENSE"]
1414
readme = "README.md"
1515
requires-python = ">=3.10"
1616
dependencies = [
17-
"langgraph>=0.3.5",
17+
"langgraph>=0.5",
1818
"langchain-core>=0.3.40,<0.4.0"
1919
]
2020

0 commit comments

Comments
 (0)