@@ -146,13 +146,13 @@ def select_handoff(prev_best_aux: str, prev_best_main: str) -> Tuple[str, str]:
146146 print ("\n " + "=" * 60 )
147147 print ("EXTERNAL MODE PREVIEW: expert_edits" )
148148 print ("-" * 60 )
149- if int (num_agents ) == 2 :
149+ if int (num_agents ) > 1 :
150150 print ("AUX PROMPT:\n " + aux_prompt )
151151 print ("-" * 60 )
152152 print ("MAIN PROMPT:\n " + main_prompt )
153153 print ("=" * 60 + "\n " )
154154
155- return (aux_prompt , main_prompt ) if int (num_agents ) == 2 else [main_prompt ]
155+ return (aux_prompt , main_prompt ) if int (num_agents ) > 1 else [main_prompt ]
156156
157157 if mode == "level_feedback" :
158158 if int (num_agents ) == 1 :
@@ -178,12 +178,12 @@ def select_handoff(prev_best_aux: str, prev_best_main: str) -> Tuple[str, str]:
178178 print ("\n " + "=" * 60 )
179179 print ("EXTERNAL MODE PREVIEW: level_feedback" )
180180 print ("-" * 60 )
181- if int (num_agents ) == 2 :
181+ if int (num_agents ) > 1 :
182182 print ("AUX PROMPT:\n " + aux_prompt )
183183 print ("-" * 60 )
184184 print ("MAIN PROMPT:\n " + main_prompt )
185185 print ("=" * 60 + "\n " )
186- return (aux_prompt , main_prompt ) if int (num_agents ) == 2 else [main_prompt ]
186+ return (aux_prompt , main_prompt ) if int (num_agents ) > 1 else [main_prompt ]
187187
188188 if mode == "level_passed" :
189189 if int (num_agents ) == 1 :
@@ -209,12 +209,12 @@ def select_handoff(prev_best_aux: str, prev_best_main: str) -> Tuple[str, str]:
209209 print ("\n " + "=" * 60 )
210210 print ("EXTERNAL MODE PREVIEW: level_passed" )
211211 print ("-" * 60 )
212- if int (num_agents ) == 2 :
212+ if int (num_agents ) > 1 :
213213 print ("AUX PROMPT:\n " + aux_prompt )
214214 print ("-" * 60 )
215215 print ("MAIN PROMPT:\n " + main_prompt )
216216 print ("=" * 60 + "\n " )
217- return (aux_prompt , main_prompt ) if int (num_agents ) == 2 else [main_prompt ]
217+ return (aux_prompt , main_prompt ) if int (num_agents ) > 1 else [main_prompt ]
218218
219219 if mode == "passed" :
220220 if int (num_agents ) == 1 :
@@ -240,12 +240,12 @@ def select_handoff(prev_best_aux: str, prev_best_main: str) -> Tuple[str, str]:
240240 print ("\n " + "=" * 60 )
241241 print ("EXTERNAL MODE PREVIEW: passed" )
242242 print ("-" * 60 )
243- if int (num_agents ) == 2 :
243+ if int (num_agents ) > 1 :
244244 print ("AUX PROMPT:\n " + aux_prompt )
245245 print ("-" * 60 )
246246 print ("MAIN PROMPT:\n " + main_prompt )
247247 print ("=" * 60 + "\n " )
248- return (aux_prompt , main_prompt ) if int (num_agents ) == 2 else [main_prompt ]
248+ return (aux_prompt , main_prompt ) if int (num_agents ) > 1 else [main_prompt ]
249249
250250 if mode == "plain" :
251251 if int (num_agents ) == 1 :
@@ -271,12 +271,12 @@ def select_handoff(prev_best_aux: str, prev_best_main: str) -> Tuple[str, str]:
271271 print ("\n " + "=" * 60 )
272272 print ("EXTERNAL MODE PREVIEW: plain" )
273273 print ("-" * 60 )
274- if int (num_agents ) == 2 :
274+ if int (num_agents ) > 1 :
275275 print ("AUX PROMPT:\n " + aux_prompt )
276276 print ("-" * 60 )
277277 print ("MAIN PROMPT:\n " + main_prompt )
278278 print ("=" * 60 + "\n " )
279- return (aux_prompt , main_prompt ) if int (num_agents ) == 2 else [main_prompt ]
279+ return (aux_prompt , main_prompt ) if int (num_agents ) > 1 else [main_prompt ]
280280
281281 supported = ["expert_edits" , "level_feedback" , "level_passed" , "passed" , "plain" ]
282282 raise NotImplementedError (
0 commit comments