MockChatClient Prototype - #21
Closed
jeffhandley wants to merge 7 commits into
Closed
Conversation
…aybooks - Add startup stage-tree overview and per-stage progress rail to the agent's operating rules so each session opens with a process snapshot. - Require concrete next-step guidance after every stage so the user always knows the exact prompt or command needed to advance. - Add explicit run-location discipline: privileged and auth-sensitive commands use an editor-in-wait prompt for API keys and a terminal handoff block for AzDO/artifact/publish operations. - Add conditional Stage 7 (support-page) policy: skip for servicing releases that touch only existing packages; release-manager authors the dotnet/website PR when new packages are introduced; monthly releases review a partner-team PR. - Prefer the source main PR over the bot-authored backport PR in servicing release notes, with correct human author attribution. - Require a tag preflight check before creating a draft GitHub release. - Add Step 2 to the servicing preparation flow: survey the release branch and open PRs for existing backport activity; inform the user that the release-manager agent can efficiently cherry-pick from main as part of the servicing release process; pre-highlight identified source PRs as candidates in the selection table; classify already-released backports separately and surface them in a grounding table rather than omitting them. - Add release wrap-up rule: present a celebratory closing message with per-stage wall-clock timing and an estimate of active user-interaction time. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: dc263661-1b95-4f80-a7f4-3a4d3cd275ff
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: dc263661-1b95-4f80-a7f4-3a4d3cd275ff
adamsitnik
reviewed
Jul 24, 2026
adamsitnik
left a comment
There was a problem hiding this comment.
I've looked only at selected files and they LGTM. PTAL at my comments
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: dc263661-1b95-4f80-a7f4-3a4d3cd275ff
Introduces the 'mock' provider option (--provider mock) to the aichatweb project template. The mock provider uses Microsoft.Extensions.AI.Testing's MockChatClient seeded with ~20 canned responses about the TrailMaster X4 GPS Watch, allowing the template to be used without any external AI provider credentials while still demonstrating the full chat experience with citations, suggestions, and vector-based semantic search. Also updates the Aspire test scenario to use --provider=mock instead of --provider=openai, and adds a test for the plain --provider=openai scenario. Updates the TemplateSnapshotTestBase to resolve template package paths using file timestamps rather than wildcard paths, improving cross-platform reliability. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: dc263661-1b95-4f80-a7f4-3a4d3cd275ff
Introduces the 'mock' provider option (--provider mock) to the aiagent-webapi project template. The mock provider uses Microsoft.Extensions.AI.Testing's MockChatClient seeded with 3 canned responses for the story writer/editor workflow (generate a story, edit for tone, format as HTML), allowing the template to be explored without any external AI provider credentials while still demonstrating the multi-agent pipeline with writer and editor stages. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: dc263661-1b95-4f80-a7f4-3a4d3cd275ff
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: dc263661-1b95-4f80-a7f4-3a4d3cd275ff
jeffhandley
force-pushed
the
jeffhandley/mockchatclient-prototype
branch
from
July 24, 2026 22:16
408b2da to
52ae066
Compare
Owner
Author
|
Replaced by dotnet#7657 |
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.
Replaced by dotnet#7657 after addressing all feedback here.
Summary
Adds deterministic mock AI providers for the project templates and introduces
Microsoft.Extensions.AI.Testingfor applications and test harnesses that need controlled chat and embedding responses.aichatwebandaiagent-webapi;--provideris now required with no default.Microsoft.Extensions.AI.Testing:MockChatClientsupports seeded non-streaming and streaming responses, exceptions, request predicates, single-use responses, and captured request history.MockEmbeddingGeneratorprovides repeatable lexical vector behavior for deterministic search scenarios.--provider mocktoaichatwebwith an offline conversational experience demonstrating suggestions, tool invocation, citations, and semantic search without external credentials.--provider mocktoaiagent-webapiwith seeded writer, editor, and formatter responses for the multi-agent workflow.Commit structure
aichatweband require an explicit provider.aiagent-webapiand require an explicit provider.Microsoft.Extensions.AI.Testing.aichatwebmock provider and remove survey UI.aiagent-webapimock provider.Validation
MockChatClientTests: 18 passed.aichatwebsnapshots: 6 passed.aichatwebexecution matrix: 51 passed, 8 intentionally skipped.aiagent-webapisnapshots: 5 passed.aiagent-webapiexecution matrix: 15 passed.aichatweb --provider mockbrowser validation confirmed the seeded greeting and suggestions render without the survey prompt; product/detail questions retain their document citations.aiagent-webapi --provider mockfunctional validation completed the seeded writer/editor/formatter flow without external credentials.