Part 2: hands-on console chat app (#499)#509
Merged
Merged
Conversation
Code-first console ChatApp on net10.0 teaching secrets-first config, IChatClient, chat loop with history, streaming, and a logging middleware pipeline. Includes step-by-step README. Adapted from Steve Sanderson's dotnet-ai-workshop.
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.
Summary
Adds the new Part 2: Build a Chat App — a hands-on, code-first console app that attendees build from scratch before ever seeing a template. Resolves #499.
This is the first part of the workshop rewrite.
What's included
Part 2 - Build Chat App/ChatApp/— anet10.0console projectIChatClientcreated fromAzureOpenAIClientvia.AsIChatClient()GetStreamingResponseAsync).AsBuilder().UseLogging(...))Part 2 - Build Chat App/README.md— step-by-step walkthroughTeaching flow
Attendees write the code themselves to learn the fundamentals, then meet the
template later (Part 4). RAG is added by hand in Part 3.
Models & provider
gpt-4.1-miniValidation
net10.0(dotnet build -c Release, 0 warnings, 0 errors)Notes
bin/andobj/are gitignored — only source is committed.