autogen icon indicating copy to clipboard operation
autogen copied to clipboard

fix: SocietyOfMindAgent should save its response into context

Open dason8 opened this issue 6 months ago • 4 comments

Why are these changes needed?

Currently SocietyOfMindAgent doesn't save its own response message into context, so in a multi round chat scenario, when this SocietyOfMindAgent is picked by upstream orchestrator (e.g. another GroupChat), its last response message shows in neither task messages nor inner context. This results in message lose. Then its inner team won't get same context as other agents in the upper team.

Related issue number

Checks

dason8 avatar Jun 10 '25 08:06 dason8

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.77%. Comparing base (892492f) to head (7848659).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6659      +/-   ##
==========================================
- Coverage   79.78%   79.77%   -0.01%     
==========================================
  Files         228      228              
  Lines       17054    17057       +3     
==========================================
+ Hits        13606    13608       +2     
- Misses       3448     3449       +1     
Flag Coverage Δ
unittests 79.77% <100.00%> (-0.01%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Jun 10 '25 08:06 codecov[bot]

@microsoft-github-policy-service agree company="Microsoft"

dason8 avatar Jun 10 '25 10:06 dason8

@ekzhu please have a review. While I was using this SocietyOfMindAgent, I found the inner team couldn't get its last response (or a summarized version by this SocietyOfMindAgent), which not meet my expection. maybe this is bug.

dason8 avatar Jun 11 '25 03:06 dason8

I believe this could be an important improvement for SoMA. However, since there is no linked issue for this bug, it’s difficult to assess its severity.

It would be helpful if you could open a clear issue describing the problem and providing steps to reproduce it. While I agree with your bug report in principle, I feel it’s a bit hard to fully validate without a minimal reproducible example.

Thanks for sharing this — just leaving a small suggestion here.

SongChiYoung avatar Jul 19 '25 01:07 SongChiYoung