Skip to content

Commit ddb8b2d

Browse files
committed
[FIX][ReasoningAgentRouter] [IREAgent] [Attribute error] [Improvement][Improve batch run method]
1 parent 526f410 commit ddb8b2d

2 files changed

Lines changed: 1059 additions & 5 deletions

File tree

swarms/agents/reasoning_agents.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ def _create_ire_agent(self):
237237
description=self.description,
238238
model_name=self.model_name,
239239
system_prompt=self.system_prompt,
240-
max_loops=self.max_loops,
241240
max_iterations=self.num_samples,
242241
output_type=self.output_type,
243242
)
@@ -338,7 +337,4 @@ def batched_run(self, tasks: List[str], *args, **kwargs):
338337
Returns:
339338
A list of reasoning process results for each task.
340339
"""
341-
results = []
342-
for task in tasks:
343-
results.append(self.run(task, *args, **kwargs))
344-
return results
340+
return [self.run(task) for task in tasks]

0 commit comments

Comments
 (0)