With 3 agents and max_round=4, agent C never speaks. Appears to be an off-by-one error in the speaker selection loop. Tested on autogen-agentchat 0.4.x on Python 3.11. Steps to reproduce: 1) Create GroupChat with agents A, B, C. 2) Set max_round=4. 3) Observe agent C is never selected.
With 3 agents and max_round=4, agent C never speaks. Appears to be an off-by-one error in the speaker selection loop. Tested on autogen-agentchat 0.4.x on Python 3.11. Steps to reproduce: 1) Create GroupChat with agents A, B, C. 2) Set max_round=4. 3) Observe agent C is never selected.