Skip to content

Commit 80a4e54

Browse files
committed
fix: fix nit
1 parent aedd41f commit 80a4e54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/strands/multiagent/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ def build(self) -> "Graph":
371371
self._validate_graph()
372372

373373
return Graph(
374-
id=self._id,
375374
nodes=self.nodes.copy(),
376375
edges=self.edges.copy(),
377376
entry_points=self.entry_points.copy(),
@@ -381,6 +380,7 @@ def build(self) -> "Graph":
381380
reset_on_revisit=self._reset_on_revisit,
382381
session_manager=self._session_manager,
383382
hooks=self._hooks,
383+
id=self._id,
384384
)
385385

386386
def _validate_graph(self) -> None:

src/strands/multiagent/swarm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ class Swarm(MultiAgentBase):
212212
def __init__(
213213
self,
214214
nodes: list[Agent],
215-
id: str = _DEFAULT_SWARM_ID,
216215
*,
217216
entry_point: Agent | None = None,
218217
max_handoffs: int = 20,
@@ -223,6 +222,7 @@ def __init__(
223222
repetitive_handoff_min_unique_agents: int = 0,
224223
session_manager: Optional[SessionManager] = None,
225224
hooks: Optional[list[HookProvider]] = None,
225+
id: str = _DEFAULT_SWARM_ID,
226226
) -> None:
227227
"""Initialize Swarm with agents and configuration.
228228

0 commit comments

Comments
 (0)