-
Notifications
You must be signed in to change notification settings - Fork 76
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
Users/daviwu/update branch csharp #200
Users/daviwu/update branch csharp #200
Conversation
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.
PR Overview
This PR updates the C# branch by introducing Mustache support and unit tests while refactoring model properties and template handling for improved consistency. Key changes include the addition of a new Property model, updates to unit tests to verify renderer and parser functionality, and refactoring of the Template and Prompty classes to use more descriptive naming and proper configurations.
Reviewed Changes
File | Description |
---|---|
runtime/promptycs/Prompty.Core/Model/Property.cs | New model classes and property conversion logic supporting various property types |
runtime/promptycs/Prompty.Core.Tests/RenderererTests.cs | Tests for synchronous and asynchronous renderers with updated inline data |
runtime/promptycs/Prompty.Core.Tests/ParserTests.cs | Additional tests for the new parser method with argument parsing |
runtime/promptycs/Prompty.Core.Tests/LoadTests.cs | New tests for sample parameters and merged sample preparation with updated method parameters |
runtime/promptycs/Prompty.Core/Model/Template.cs | Renaming of the Type property to Format and addition of a Strict flag |
runtime/promptycs/Prompty.Core/Normalizer.cs | Update to ProcessFile to use the directory name and throw an exception for missing files |
runtime/promptycs/Prompty.Core/InvokerFactory.cs | Update to use the Format property when creating renderer instances |
runtime/promptycs/Prompty.Core.Tests/PrepareTests.cs | Updated prepare calls to include the mergeSample parameter |
runtime/promptycs/Prompty.Core/Model/Prompty.cs | Changed Inputs and Outputs from arrays to dictionaries for clarity in property mapping |
Copilot reviewed 26 out of 26 changed files in this pull request and generated 4 comments.
Update as Copilot suggests Co-authored-by: Copilot <[email protected]>
Update as Copilot suggests Co-authored-by: Copilot <[email protected]>
Update as Copilot suggests Co-authored-by: Copilot <[email protected]>
Update as Copilot suggests Co-authored-by: Copilot <[email protected]>
The first commit is from branch
csharp
, the 2nd commit adds Mustache support and unit tests