Skip to content

Part 2: hands-on console chat app (#499)#509

Merged
jongalloway merged 1 commit into
mainfrom
feature/499-part2-console-chat
Jul 3, 2026
Merged

Part 2: hands-on console chat app (#499)#509
jongalloway merged 1 commit into
mainfrom
feature/499-part2-console-chat

Conversation

@jongalloway

Copy link
Copy Markdown
Contributor

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/ — a net10.0 console project
    • Secrets-first configuration (user-secrets; no hardcoded keys)
    • IChatClient created from AzureOpenAIClient via .AsIChatClient()
    • Chat loop with conversation history
    • Streaming responses (GetStreamingResponseAsync)
    • A middleware pipeline (.AsBuilder().UseLogging(...))
  • Part 2 - Build Chat App/README.md — step-by-step walkthrough

Teaching 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

  • Provider: Azure AI Foundry (Azure OpenAI)
  • Chat model: gpt-4.1-mini

Validation

Notes

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.
@jongalloway jongalloway merged commit 172b465 into main Jul 3, 2026
1 of 2 checks passed
@jongalloway jongalloway deleted the feature/499-part2-console-chat branch July 3, 2026 02:19
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.

Part 2 - Build a chat app by hand (console, MEAI)

1 participant