Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft Agent Framework in .NET

Code samples for the book:

Microsoft Agent Framework in .NET: Build production-grade AI agents and multi-agent systems in C#

📘 Get the book on Leanpub
⭐ Star this repository

The book was previously developed as Microsoft Semantic Kernel in Action and Building AI Agents in .NET with Manning. It is now independently published and updated for the GA release of Microsoft Agent Framework.

Book status

The Leanpub edition currently includes 12 of 16 chapters.

The remaining four chapters, along with all future book updates, are included at no additional cost for Leanpub readers.

Want to support the project? Buy the book to receive the complete and continuously updated edition. If these samples are useful, please give this repository a ⭐.

All code changes, new examples, and notes for upcoming chapters are published here. To receive repository notifications, use GitHub’s Watch control in the upper-right corner.

Follow me on LinkedIn for announcements and behind-the-scenes updates.

Current chapters

  • Chapter 1 — From conventional code to agents
  • Chapter 2 — Building your first agent step by step
  • Chapter 3 — Building chat clients for model providers
  • Chapter 4 — Building responses and self-hosted clients
  • Chapter 5 — Crafting agents from scratch
  • Chapter 6 — Equipping agents with tools
  • Chapter 7 — Adding agent memory with context and chat message history
  • Chapter 8 — Standardizing tools using MCP (Model Context Protocol)
  • Chapter 9 — Building enterprise-ready agents with ChatClient middleware
  • Chapter 10 — Building enterprise-ready agents with Agent middleware
  • Chapter 11 — Preparing reliable agents with observability and evaluation
  • Chapter 12 — Orchestrating agents using sequential and concurrent patterns

Upcoming chapters

  • Chapter 13 — Iterative reasoning using the group chat pattern
  • Chapter 14 — Conditional routing using the handoff pattern
  • Chapter 15 — Orchestrating agents dynamically using AI skills
  • Chapter 16 — Building custom orchestration using workflows

About Robby

The book follows Robby, a robot car, as it evolves from a simple chatbot into an advanced multi-agent system.

Robby’s journey continues—chapter by chapter and commit by commit.

About

This is the code repository for the book "Microsoft Agent Framework in .NET: Build production-ready AI agents and multi-agent systems in C#", former "Building AI Agents in .NET" (Manning)

Topics

Resources

Stars

34 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages