-
Notifications
You must be signed in to change notification settings - Fork 15
Add the Prompt Builder #49
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
Conversation
6e6e849
to
1cbbd0f
Compare
165be6a
to
c56bf85
Compare
@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 💯 |
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.
@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 |
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 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?
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.
Maybe generateSpeechFile
and generateSpeechFiles
?
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.
@felixarntz decided to we'll keep it, but preserve this gripe for posterity. 😄
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.
@JasonTheAdams LGTM! 🎉
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.