Building AI Agents in .NET

you own this product
A code-first approach using Microsoft Agent Framework
  • MEAP began January 2025
  • Last updated April 2026
  • This book is in development
  • ISBN 9781633435568
  • 450 pages (estimated)
  • printed in black & white

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside
AI Agents are rapidly moving from side projects to an integral part of modern application architecture. Building AI Agents in .NET teaches you to develop effective, reliable, and enterprise-ready AI agents using Microsoft Agent Framework. You’ll learn how to design and deliver agents that are testable, observable, and deployable inside existing systems, scaling from local prototypes to production. Working with hands-on code, you’ll define agents, attach tools and memory providers, and orchestrate interactions, all integrated with dependency injection, logging, and middleware.

You’ll work to assemble Robby, a robot car assistant, evolving it from a minimal agent, then deepening our understanding of chat clients and model providers. From there, you’ll build complete agents from scratch, extend them with tools, memory, and Model Context Protocol, and harden them with middleware, observability, and evaluation. Finally, you’ll put Robby into multi-agent scenarios using sequential, concurrent, collaborative, and hierarchical patterns, finishing with custom workflows for long-running, stateful journeys.

what's inside

  • Integrate agents into your .NET applications
  • Work with chat clients for proprietary, open-source, and self-hosted models
  • Connect to external systems via tools and Model Context Protocol
  • Add memory for longer conversations and processes
  • Apply middleware, observability, and evaluation for production-grade agents (for example: logging, validation, auditing, and measurement)
  • Orchestrate multiple agents using high-level orchestration patterns and low-level custom workflows

about the reader

This book is for .NET developers, software architects, and technical leads building practical agentic AI systems in C# with Microsoft.Extensions.AI (MEAI) and Microsoft Agent Framework

about the author

Daniel Costea is a software engineer with more than 20 years of experience in enterprise systems, product development, and developer training. He has been a Microsoft Most Valuable Professional (MVP) since 2019, recognized by Microsoft for his contributions in AI and .NET technologies. Daniel speaks frequently at technology conferences, has trained hundreds of developers, and created multiple courses on the practical, production-ready use of the modern .NET ecosystem.
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Building AI Agents in .NET ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Building AI Agents in .NET ebook for free