Implement support for versioned prompt files#13
Merged
Conversation
- Updated core and test project dependencies: Fluid.Core to 2.25.0, JsonSchema.Net to 7.4.0, OpenAI to 2.3.0, Microsoft.NET.Test.Sdk to 17.14.1, and xUnit packages to their latest versions. - Refactored internal schema property access in OpenAi options tests to use a helper method for better maintainability. - Introduced a private helper method `GetInternalProperty` for consistent property access logic.
- Introduced a `Version` property to `PromptFile` with validation for negative values. - Updated `PromptManager` to uniquely identify prompt files by name and version using the new `PromptFileIdentifier` record. - Added `GetPromptFile` overload for version-specific retrieval and a method to list prompt filenames with versions. - Updated tests to cover new functionalities, ensuring proper behavior and version management.
- Added `multiple-version-prompts` directory with sample prompt versions. - Updated project file to include new directory in the build output. - Introduced `PromptManager_WithDifferentVersions_LoadsSuccessfully` test to validate version handling.
… exceptions - Added tests verifying PromptManager retrieves correct prompt file when requested by name and version. - Introduced tests confirming exceptions are thrown for invalid versions in PromptManager and PromptFile.
…` property values
- Added explanation of the optional `version` property in configuration. - Included examples of version-specific prompt file loading in code snippets.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13 +/- ##
==========================================
- Coverage 99.65% 99.35% -0.30%
==========================================
Files 10 10
Lines 288 310 +22
Branches 46 49 +3
==========================================
+ Hits 287 308 +21
- Partials 1 2 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Introduced `codecov.yml` to manage Codecov project and patch thresholds, set at 3% for both.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds support for version numbers to the prompt file allowing for handling of different versions of the prompt
Added codecov.yml file to stop the builds from being so aggressive in their coverage evaluation