From 15e897a4e0cff5625ee61d1c5396a5a6f36c7807 Mon Sep 17 00:00:00 2001 From: CI-DEV <154627941+IlumCI@users.noreply.github.com> Date: Mon, 1 Dec 2025 22:45:54 +0200 Subject: [PATCH] Update swarm_router.py --- swarms/structs/swarm_router.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/swarms/structs/swarm_router.py b/swarms/structs/swarm_router.py index 26ed4003..b81598b6 100644 --- a/swarms/structs/swarm_router.py +++ b/swarms/structs/swarm_router.py @@ -471,24 +471,6 @@ class SwarmRouter: chairman_model=self.chairman_model, ) - def _create_debate_with_judge(self, *args, **kwargs): - """Factory function for DebateWithJudge.""" - if len(self.agents) != 3: - raise SwarmRouterConfigError( - "DebateWithJudge requires exactly 3 agents: " - "pro_agent (arguing in favor), con_agent (arguing against), " - "and judge_agent (evaluating and synthesizing). " - f"Provided {len(self.agents)} agent(s)." - ) - - return DebateWithJudge( - pro_agent=self.agents[0], - con_agent=self.agents[1], - judge_agent=self.agents[2], - max_rounds=self.max_loops, - output_type=self.output_type, - verbose=self.verbose, - ) def _create_agent_rearrange(self, *args, **kwargs): """Factory function for AgentRearrange."""