Skip to content
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

Changed internal representation of messages and added LLM required ordering of messages. #26

Closed
wants to merge 17 commits into from

Conversation

NanditaRao
Copy link
Contributor

Changed the Message Handlers to use message factory to create new message from a user. Added a parent message pointer to each message in a thread. Represented messages so that the order is always alternating between user message and bot message.

…sage from a user. Added a parent message pointer to each message in a thread. Represented messages so that the order is always alternating between user message and bot message.
@NanditaRao NanditaRao marked this pull request as draft January 17, 2024 03:23
@NanditaRao NanditaRao marked this pull request as ready for review February 12, 2024 17:40

package com.meta.cp4m.message;

public class MessageNode <T extends Message>{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just a record? Immutability is always to be strived for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants