-
Notifications
You must be signed in to change notification settings - Fork 679
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
Removed all derived classes of BaseMessage and its role field #177
Conversation
4f38336
to
971fd5e
Compare
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.
Looks good overall.
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.
Great PR, @Obs01ete ! I totally agree with the replacement of Asst and Usr classes with make_asst
and make_usr
methods.
On the other hand one thing confuses me. Why are _critic_
renamings introduced in this PR (or update_messages
altered)? they're not related to the base message logic, but globally to the camel pipeline.
NB I haven't run tests locally.
Maybe this rename is out of the scope of this PR. It was a bit natural to these renames. I do not want to make too thin salami slicing of changes at this stage. |
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.
Seems good to me. @Obs01ete could you still answer the user/assistant comment? Just for me to better understand the thing.
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 love the submit/reduce naming !
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.
Looks good. Left some comments
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.
LGTM! Thanks!!
Description
role
field ofBaseMessage
must go. Instead it should be managed by ChatAgent internally.This is manifestation of KISS: Keep it short, simple. The tests pass meaning all that was removed was not needed in the first place.
Motivation and Context
This started from #163 and somewhat exploded.
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Checklist