-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix duplicate sys msg & consecutive user in ass agent memory #424
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
Conversation
camel/societies/role_playing.py
Outdated
| "Now start to give me instructions one by one. " | ||
| "Only reply with Instruction and Input.")) | ||
| role_name=self.assistant_sys_msg.role_name, content=first_msg) | ||
| user_msg = BaseMessage.make_user_message( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems we are still repeating the system message for the assistant agent, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems we are still repeating the system message for the assistant agent, right?
No, actually only the content here matters. assistant_sys_msg.role_name is more of a placeholder since during step each agent knows how to recode the role of incoming message correctly. I just keep the originally code of this part (well it could be confusing I should say).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant this PR seems to be not yet solving the consecutive user msg bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant this PR seems to be not yet solving the consecutive user msg bug.
I'm so sorry about my mistake. It should be fixed now after deleting the .step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ocss884. I renamed some of the variables and fixed some docstrings in passing.
…l-ai/camel into fix/init-chat-duplicate-msg
…i#424) Co-authored-by: lig <guohao.li@kaust.edu.sa> Co-authored-by: Guohao Li <lightaime@gmail.com>
Description
Pls read #421 for description
Motivation and Context
close #421
Types of changes
What types of changes does your code introduce? Put an
xin all the boxes that apply:Implemented Tasks
Checklist
Go over all the following points, and put an
xin all the boxes that apply.If you are unsure about any of these, don't hesitate to ask. We are here to help!