-
Notifications
You must be signed in to change notification settings - Fork 502
feat: ParallelAgentRunner #2143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
Codecov Report❌ Patch coverage is
... and 20 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Code Review for PR #2143: ParallelAgentRunnerThank you for this contribution! The ✅ Strengths
🐛 Critical Issues1. Incorrect API Usage (autogen/agentchat/run_parallel_agents.py:160)response = agent.run(message=task.prompt, max_turns=task.max_turns)
response.process()The
2. Timeout Not Enforced Per-Task (autogen/agentchat/run_parallel_agents.py:259)The future = executor.submit(self._execute_single_task, task)
result = future.result(timeout=self.timeout) # Per-task timeout3. Missing Cleanup on Failure (autogen/agentchat/run_parallel_agents.py:265-270)When 4. Agent Copy Logic Issue (autogen/agentchat/run_parallel_agents.py:123-129)When copying a
|
Why are these changes needed?
This PR introduces a new ParallelAgentRunner Class which let's you run your agents in parallel.
The ParallelAgentRunner adds native parallel execution capabilities to AG2, allowing multiple agents to run concurrently.
Basic Task Structure:
Related issue number
Checks