You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Duplicate message send to an agent for after initialize and get reply from one.
Here is the request generated by AutoGen and I observed via LM Studio logs.
2024-12-17 12:47:07 [INFO]
Received POST request to /v1/chat/completions with body: {
"messages": [
{
"role": "system",
"content": "You are a student that answer question from teacher",
"name": "student"
},
{
"role": "assistant",
"content": "Hey teacher, please create math question for me.",
"name": "student"
},
{
"role": "user",
"content": "Here's a simple addition problem for you:\n\nIf I have 2 blocks and my friend gives me 1 more block, how many blocks do I have now?\n\nWhat is your answer?",
"name": "teacher"
},
{
"role": "user",
"content": "Here's a simple addition problem for you:\n\nIf I have 2 blocks and my friend gives me 1 more block, how many blocks do I have now?\n\nWhat is your answer?",
"name": "teacher"
}
],
"model": "llama-3.2-3b-instruct"
}
What did you expect to happen?
There only should be 1 user role in the messages list.
How can we reproduce it (as minimally and precisely as possible)?
varconfig=newLMStudioConfig("localhost",1234);varteacher=newAssistantAgent(name:"teacher",systemMessage:@"You are a teacher that create pre-school math question for student and check answer.If the answer is correct, you stop the conversation by saying [COMPLETE].If the answer is wrong, you ask student to fix it.",llmConfig:newConversableAgentConfig{Temperature=0.0f,ConfigList=[config]}).RegisterPrintMessage();varstudent=newAssistantAgent(name:"student",systemMessage:"You are a student that answer question from teacher",llmConfig:newConversableAgentConfig{Temperature=0.0f,ConfigList=[config]}).RegisterPrintMessage();varconversation=awaitstudent.InitiateChatAsync(receiver:teacher,message:"Hey teacher, please create math question for me.",maxRound:10);
What happened?
Duplicate message send to an agent for after initialize and get reply from one.
Here is the request generated by AutoGen and I observed via LM Studio logs.
What did you expect to happen?
There only should be 1
user
role in the messages list.How can we reproduce it (as minimally and precisely as possible)?
Run Following C# code (from one of the examples).
AutoGen version
55e157c
Which package was this bug in
Other
Model used
llama-3.2-3b-instruct
Python version
N/A
Operating system
macOS
Any additional info you think would be helpful for fixing this bug
I found one possible solution, by update
GroupChatExtension.cs
line 64 inAutoGen.Core
package to avoid this duplication.Just a suggestion.
The text was updated successfully, but these errors were encountered: