camel icon indicating copy to clipboard operation
camel copied to clipboard

[Feature Request] add Parallel running agent mode in workforce

Open zjrwtx opened this issue 8 months ago • 2 comments

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

zjrwtx avatar Apr 04 '25 06:04 zjrwtx

Could you describe the requirement further?

fengju0213 avatar Apr 04 '25 12:04 fengju0213

hello @fengju0213 ,for example,when we do research task, we can let the serveral search agent search google\bing\baidu in the meantime

zjrwtx avatar Apr 04 '25 14:04 zjrwtx

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

Wendong-Fan avatar May 23 '25 10:05 Wendong-Fan