-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue]: TransformMessages not working with GroupChatManager speaker selection prompts #2499
Comments
@WaelKarkoub @ekzhu Created as discussed |
Let's start this after #2304 is merged |
@Nathan-Intergral we are discussing a solution in this issue #2583. Once the solution is merged we can close this issue. |
I am sorry, but TransformMessages is not working in group chat. Was it not working all the time or is there a version it works?? |
@WebsheetPlugin we are working on a solution. cc @marklysze |
@WaelKarkoub I got it. Thanks a lot. I am not sure if it is related but I created this report: #2638 (comment) For me transform works in group chat, but the transform results are not chained. |
I'll have a look at this and start working on it... (adding the TransformMessages ability to the select speaker) |
Just an update that we have started this and I'm working with @WaelKarkoub on some tweaks to the TransformMessages around filtering messages so that we can allow the user to target specific messages for transforms, which is key for the select speaker messages. |
Hey @Nathan-Intergral, just a note that I've created a branch under AutoGen which will be for the addition of the speaker selection transforms functionality: At this stage it's functional, in that you can add transforms to the group chat by setting the E.g.
I'll create a PR based on this branch, but please note that some of the filtering functionality (shown in the sample code above) is dependent on another PR being merged, #2661. |
Okie dokie, #2719 has been created! |
@marklysze Great thank you for that! |
I am getting this error: Any suggestions? |
@gvijqb your installed package and version? |
Output for: pip list | grep autogen autogen 0.3.2 |
Uninstall both and install: See read me for further info. |
Thanks. I am not sure if I am doing anything wrong here but it is still not working for me. Error:
Pip list output: pip list | grep autogen autogen-agentchat 0.2.38 |
I checked again, @gvijqb the argument is |
Thanks @ekzhu. This one's correct and it worked. But now I randomly get this error:
That could possibly mean that the tool call sequence might be getting disrupted. How can I handle this scenario? I have tried implementing a custom handler for preserving the tool call flow but that doesn't seem to be helpful so far. It still results in the above error at times. |
@WaelKarkoub can message transform automatically handle tool call pairs? |
Describe the issue
When
GroupChat
speaker_selection_method
is set to'auto'
the speaker selection prompt used to determine the next agent contains all the messages in the conversation history. Attempting to addTransformMessages
to theGroupChatManager
should allow you to limit the length of each speaker selection prompt but it does not.This is due to the
select_speaker
function ingroupchat.py
usesconversable_agent.py
'sgenerate_oai_reply
. Which unlikegenerate_reply
does not callprocess_all_messages_before_reply
so the hook for transform messages is never run.Steps to reproduce
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: