Skip to content

Conversation

JasonTheAdams
Copy link
Member

@JasonTheAdams JasonTheAdams commented Sep 2, 2025

Resolves #81

This introduces the MessageBuilder class — Fluent API for constructing messages, very similar to the PromptBuilder.

Note that I've intentionally moved structure validation to the moment of termination because I don't think we should be checking things against the role and such until the implementor considers the builder complete.

Copy link

github-actions bot commented Sep 2, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: JasonTheAdams <[email protected]>
Co-authored-by: felixarntz <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@JasonTheAdams JasonTheAdams mentioned this pull request Sep 2, 2025
20 tasks
@felixarntz felixarntz added the [Feature] New feature to highlight in changelogs. label Sep 2, 2025
@felixarntz felixarntz added this to the 0.2.0 milestone Sep 2, 2025
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

@JasonTheAdams Thanks for putting this together! Looks great, except one piece that needs to be revised to make it more flexible, especially as we already do it more flexibly in PromptBuilder.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

@JasonTheAdams Love it!

@felixarntz felixarntz merged commit 6d722de into trunk Sep 5, 2025
6 checks passed
@felixarntz felixarntz deleted the adds-message-builder branch September 5, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] New feature to highlight in changelogs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the MessageBuilder class
2 participants