-
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
Extending Graph Group Chat - Prioritise choosing an executor from eligible_speakers when the previous_speaker produced code #778
Comments
And to do this, we better follow the trigger-match mechanism in conversableagent https://github.com/microsoft/autogen/blob/main/autogen/agentchat/conversable_agent.py#L954 There we trigger a reply func if the condition is satisfied, and reply funcs are checked in order |
Maybe we don't want to prioritise executors if the previous message contains code. @ragyabraham can you tell us a little more about the use case? Under what circumstances did you generate code in the previous talk turn and did not want to execute it in the current talkturn? |
yeah, the way I see it is that at present, Autogen is very much geared towards performing tasks with code, which is why this bias exists of "if there's code, then execute code". However, if Autogen is to extend its utility beyond that to become a generalised LLM framework, the user should be able to dictate "code behaviour". If I want to chat with an agent or group of agents and I do not want any code to be executed but rather purely from an education/knowledge perspective, I should, in theory, have the ability to do that. |
Perhaps there should be a flag somewhere where a user can set their code preference.
|
yes, in this case, the user can:
|
Yeah, interesting the user is trying to learn Rust without wanting to run code. I guess for now, we have to remove the executor abilities for the User Proxy agent in your use-case @ragyabraham. |
During the review of #753, @JieyuZ2 suggested prioritising choosing an executor from
eligible_speakers
when the previous_speaker produced code inGraphGroupChat
.Couple of considerations:
Agent
class, along with its attributes like able to execute code to be passed into the NetworkXGraph
class instead of strings.Please feel free to add considerations if anyone can think of any.
The text was updated successfully, but these errors were encountered: