Skip to content

Feat messages builder #427

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

Closed

Conversation

youngmoneee
Copy link
Contributor

@youngmoneee youngmoneee commented Mar 11, 2024

The complex constructor in AbstractMessage has been simplified and the AbstractMessageBuilder class has been added for flexible extension.

  • Added AbstractMessageBuilder
  • Applied AbstractMessageBuilder for
    • ChatMessage
    • SystemMessage
    • FunctionMessage
    • UserMessage
    • AssistantMessage
  • Modified files that have a dependency relationship with Message

#408

youngmoneee and others added 13 commits March 11, 2024 05:11
Improved readability using String.format
The complex constructor in AbstractMessage has been simplified and
the AbstractMessageBuilder class has been added for flexible extension.
apply Builder Pattern
apply Builder pattern
apply Builder Pattern
apply Builder pattern
apply Builder Pattern
Modify files that have a dependency relationship with Message.
Modify files that have a dependency relationship with Message
Modify files that have a dependency relationship with Message
Reflecting changes to the Message Interface
@markpollack markpollack added this to the 1.0.0-RC1 milestone Jul 22, 2024
@markpollack markpollack modified the milestones: 1.0.0-RC1, 1.0.0-M4 Oct 23, 2024
@markpollack
Copy link
Member

With 3 arguments, not sure how much value there is to having the builder. Also, the design pattern to follow that is consistent with the spring ecosystem is to have the Builder class be internal to the product class itself. I'm going to create an issue, in a way related to the similar options PR you made to discuss how to approach.

@markpollack
Copy link
Member

Closing the PR as we got to it late and needs more design discussion. opened #1594

@markpollack markpollack removed this from the 1.0.0-M4 milestone Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants