Skip to content

Conversation

JasonTheAdams
Copy link
Member

@JasonTheAdams JasonTheAdams commented Aug 14, 2025

This introduces the Prompt Builder, which is intended to be the primary face for Implementors to construct and execute prompts. See the "Fluent API" examples in the code examples in the Architecture doc.

@JasonTheAdams JasonTheAdams self-assigned this Aug 14, 2025
Base automatically changed from add-http-client-and-auth to trunk August 15, 2025 18:19
@JasonTheAdams JasonTheAdams mentioned this pull request Aug 15, 2025
13 tasks
@felixarntz felixarntz added the [Feature] New feature to highlight in changelogs. label Aug 15, 2025
@felixarntz felixarntz added this to the Complete Implementor API milestone Aug 15, 2025
@JasonTheAdams JasonTheAdams marked this pull request as ready for review August 22, 2025 18:44
@JasonTheAdams JasonTheAdams changed the base branch from trunk to no-more-system-messages August 22, 2025 19:14
@Ref34t
Copy link

Ref34t commented Aug 24, 2025

@JasonTheAdams Thank you for your great work here. You accomplished the intended goal of this PR. I've some thoughts that may have some improvements in return will share over the files. Well Done 💯

@felixarntz felixarntz changed the base branch from no-more-system-messages to trunk August 26, 2025 00:33
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 This is very close. No other feedback on my end than what's left from the previous reviews.

* @throws InvalidArgumentException If the prompt or model validation fails.
* @throws RuntimeException If no audio is generated.
*/
public function generateSpeeches(?int $candidateCount = null): array
Copy link
Member

Choose a reason for hiding this comment

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

I don't love this name - to me this sounds like multiple speeches as in "delivering a speech". But maybe it's what we need to do because the term "speech" like it's meant here doesn't really have a plural?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe generateSpeechFile and generateSpeechFiles?

Copy link
Member Author

Choose a reason for hiding this comment

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

@felixarntz decided to we'll keep it, but preserve this gripe for posterity. 😄

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 LGTM! 🎉

@JasonTheAdams JasonTheAdams merged commit e5e1f18 into trunk Aug 26, 2025
4 checks passed
@JasonTheAdams JasonTheAdams deleted the prompt-builder branch August 26, 2025 21:09
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.

3 participants