Repository navigation
Conversation
Keep the native full-request builders as an explicit legacy choice. Preserve sections and repair behavior; route program grammar, API definitions and sample instructions separately from requests and history. Exercise the layout with offline native recorders. Independent .NET alignment with the conversation layout discussed in microsoft/TypeChat#241. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
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.
This maintainer-sponsored draft implements the .NET side of the one-time behavior proposed in microsoft/TypeChat#539. It leaves review, release timing, patch numbers, and NuGet publishing with this project. Please hold merge pending the policy decision and normal .NET review. The separate language candidates are microsoft/TypeChat#241 (Python) and microsoft/TypeChat#540 (TypeScript).
A fresh chat translation sends application-owned schema and instructions as
system, then the request once asuser. Caller history retains its roles.JsonTranslatorPrompts.Legacypreserves the old wrapped request. Text-only Semantic Kernel no longer silently flattens role-bearing prompts; legacy flattening is explicit. Math, calendar, health-data and shared example code are updated. Existing package identities remain unchanged, and the candidate remains a preview (0.3.0-pre).Verified offline: Release solution and examples built with zero warnings or errors; 235 unit tests passed, including 15 new recorder cases. A separately installed NuGet consumer passed the same message check as the Python wheel and npm tarball: fresh request, follow-up with history, parseable schema-invalid output, raw assistant reply followed by a user-role repair diagnostic, and validated final result. No live model calls or registry publication.
For coordination: microsoft/typechat.net#334 and microsoft/typechat.net#336 overlap in prompt helpers/adapters or tests. This PR is based on
main; it neither depends on nor supersedes either contribution.