autogen icon indicating copy to clipboard operation
autogen copied to clipboard

[Issue]: order agents within a groupchat for round_robin to work

Open filippopirri opened this issue 1 year ago • 1 comments

Describe the issue

At the moment, agents added to a groupchat container are retrieved ordered by created date (descending). This clearly causes an issue with round_robin. The fix will be to keep track of the ordering (as agents are added to a groupchat container) and use that detail in ordering the agents before they are created.

Steps to reproduce

  1. Create user_proxy agent
  2. Create assistant agent
  3. Create groupchat, and add assistant agent first, user_proxy second
  4. The user_proxy agent will always be consider first in the groupchat because of current ordering logic: agent desc created date
  5. Test the groupchat with selection_method: round_robin. user_proxy will run first, and chat terminates immediately

Screenshots and logs

Screenshot_2024-07-17_at_18 23 20

Additional Information

No response

filippopirri avatar Jul 23 '24 07:07 filippopirri

@filippopirri we'd greatly appreciate it if you could create a pull request. thanks

cc @victordibia

Hk669 avatar Jul 25 '24 13:07 Hk669

Consider upgrading to the new version of AutoGen Studio. This should address the ordering issue above.

In the new version of AutoGen, all behaviours are standardized on the AutoGen AgentChat api, see documentation below.

  • AutoGen Studio documentation - https://microsoft.github.io/autogen/dev/user-guide/autogenstudio-user-guide/index.html
  • To learn about how code executors work ... https://microsoft.github.io/autogen/dev/user-guide/core-user-guide/design-patterns/code-execution-groupchat.html
  • How to convert any agentchat python code and use it in autogen studio - https://microsoft.github.io/autogen/dev/user-guide/autogenstudio-user-guide/usage.html#declarative-specification-of-componenents

victordibia avatar Feb 24 '25 17:02 victordibia