-
Notifications
You must be signed in to change notification settings - Fork 28
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
Merged
Merged
Changes from 24 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
5604d1d
feat: first draft of PromptBuilder
JasonTheAdams 3e436ee
feat: adds Prompts utility class
JasonTheAdams 73c2a09
feat: expands builder message handling
JasonTheAdams c91e520
feat: improves model requirement system
JasonTheAdams 7654608
feat: adds DTO::isArrayShape
JasonTheAdams c996c45
test: adds isArrayShape tests
JasonTheAdams 8f390d6
test: adds some isArrayShape tests
JasonTheAdams e8ac1c2
refactor: cleans up file type checking
JasonTheAdams 9638c41
feat: adds type checking methods to File DTO
JasonTheAdams 0da377e
refactor: uses new file type checking
JasonTheAdams eb9f197
refactor: removes inferred property in favor of late checking
JasonTheAdams 88242f6
feat: adds means of converting ModelConfig to requirements
JasonTheAdams 2a65902
refactor: cleans up how system instructions work
JasonTheAdams f480ce1
refactor: switches validating to getting a model
JasonTheAdams 59cc9df
fix: always sets the model config
JasonTheAdams 01f294b
feat: adds generate methods
JasonTheAdams 3fd1fc2
refactor: tweaks enum comparison
JasonTheAdams c56bf85
test: adds includeOutputModality tests
JasonTheAdams 539a278
refactor: uses system instructions instead of message
JasonTheAdams e86190e
test: adds a lot of Prompt Builder tests
JasonTheAdams 29b59fe
test: fixes failing builder tests
JasonTheAdams 0fd756e
refactor: removes the need for the Prompts utility class
JasonTheAdams 78fa2aa
feat: improves methods for checking if prompt is supported
JasonTheAdams 4d91dc4
test: fixes a bajillion linting errors
JasonTheAdams d976ccf
fix: uses output schema as require option value
JasonTheAdams bba08dd
refactor: moves includeOutputModalities to PromptBuilder
JasonTheAdams 9281c54
refactor: improves handling of message arrays
JasonTheAdams d7320ce
refactor: consolidates builder file methods
JasonTheAdams cb54e0b
feat: adds file isInline and isRemote methods
JasonTheAdams f324b96
refactor: removes usingRegistry method for now
JasonTheAdams a07c242
feat: validates message parts
JasonTheAdams 0d39e74
fix: prepends message in withHistory
JasonTheAdams 7d25a03
feat: turns OptionEnum into a superset of ModelConfig
JasonTheAdams 3c6d641
refactor: switches required and supports options to use enum as name
JasonTheAdams 3396da6
refactor: tightens AbstractEnum cache scope
JasonTheAdams 5d081b4
fix: corrects isSupported to use capabilities
JasonTheAdams cb7fb19
refactor: corrects input modality collection
JasonTheAdams 2c7b443
feat: adds function call checking to requirements
JasonTheAdams b1a3f44
refactor: goes back to checking if model meets requirements in suppor…
JasonTheAdams f366cdd
refactor: adjusts generateResult to use capability
JasonTheAdams 4f4779c
refactor: improves variable naming
JasonTheAdams 5d9a2a9
refactor: cleans up generate methods big time
JasonTheAdams e7ffc3c
refactor: uses consistent to- naming convention
JasonTheAdams 98dd0a2
chore: corrects array types as lists
JasonTheAdams d5d782e
refactor: adjusts isSupported to work more like generateResults
JasonTheAdams b8dcc95
chore: provides Prompt type
JasonTheAdams 32e1fb8
refactor: renames output modalities method to use as- prefix
JasonTheAdams File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.