Skip to content
\n

Currently, the agents process each task sequentially, but this approach becomes time-consuming as the number of tasks increases. I want to parallelize the execution so that agents can work on multiple tasks simultaneously.

\n

Does the autogen.GroupChatManager support parallel execution natively? If not, are there any recommended patterns or libraries for implementing parallelism in this context?

\n

I’d love to hear your thoughts and suggestions!

\n

Thanks!

","upvoteCount":1,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"
\n

Does the autogen.GroupChatManager support parallel execution natively? If not, are there any recommended patterns or libraries for implementing parallelism in this context?

\n
\n

The v0.2 group chat does not support parallel speakers. You would need to upgrade to v0.4 and use the Core API. Though at this point you need to do a bit more work to set this up. You can follow the example patterns, especially Mixture of Agents, for how to create parallel agents.

\n

The Group Chat pattern is by design a sequential execution pattern. For parallel execution I think mixture of agents is a good starting point.

\n

UPDATE: you can now use GraphFlow API in AgentChat and it supports parallel flows. See https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/graph-flow.html

","upvoteCount":2,"url":"https://github.com/microsoft/autogen/discussions/4215#discussioncomment-11272636"}}}

How to Parallelize Agents in a GroupChat Workflow #4215

Answered by ekzhu
anusonawane asked this question in Q&A
Discussion options

You must be logged in to vote

Does the autogen.GroupChatManager support parallel execution natively? If not, are there any recommended patterns or libraries for implementing parallelism in this context?

The v0.2 group chat does not support parallel speakers. You would need to upgrade to v0.4 and use the Core API. Though at this point you need to do a bit more work to set this up. You can follow the example patterns, especially Mixture of Agents, for how to create parallel agents.

The Group Chat pattern is by design a sequential execution pattern. For parallel execution I think mixture of agents is a good starting point.

UPDATE: you can now use GraphFlow API in AgentChat and it supports parallel flows. See https://mi…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jackgerrits
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ekzhu
Comment options

@ekzhu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants