Skip to content
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

Merged

Conversation

YusakuNo1
Copy link
Member

The first commit is from branch csharp, the 2nd commit adds Mustache support and unit tests

@YusakuNo1 YusakuNo1 requested a review from Copilot March 5, 2025 17:43
Copy link
Contributor

@Copilot Copilot AI left a 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.

@YusakuNo1 YusakuNo1 merged commit 20c3313 into microsoft:main Mar 5, 2025
7 checks passed
@YusakuNo1 YusakuNo1 deleted the users/daviwu/update-branch-csharp branch March 5, 2025 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant