[Feature Request] add Parallel running agent mode in workforce
Required prerequisites
- [x] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
- [ ] Consider asking first in a Discussion.
Motivation
currently,the workforce run agent step by step,but in some tasks like research,reproduce paper,may need serveral agent run parallelly to make better effect
Solution
No response
Alternatives
No response
Additional context
No response
Could you describe the requirement further?
hello @fengju0213 ,for example,when we do research task, we can let the serveral search agent search google\bing\baidu in the meantime
for TaksAgent, when decomposing tasks (_decompose_task), it could identify which sub-tasks can be run in parallel
_post_ready_tasks should identify all tasks whose dependencies are met, not just the "first" one. once multiple tasks are ready, _listen_to_channel should be able to dispatch them concurrently to available workers. Instead of processing one returned task at a time in the main loop
also add a mechanism to limit the maximum number of concurrent tasks for dynamic resource management