This repository contains the source code used in my Udemy course:
Agentic AI Development with Agent Framework, MCP and .NET
https://www.udemy.com/course/agent-development-microsoft-agent-framework-mcp-and-net/?couponCode=LAUNCH
Welcome to the definitive guide on building production-ready agentic AI systems in the .NET ecosystem. This course goes beyond theory and focuses on hands-on development of autonomous multi-agent orchestration for enterprise applications.
Using Microsoft Agent Framework, Microsoft Foundry, the Model Context Protocol (MCP), .NET Aspire, AG-UI, DevUI, and .NET, you will learn how to build robust AI workflows that solve complex business problems.
- Microsoft Agent Framework (MAF): Build sophisticated, stateful AI systems with Microsoft Foundry and Azure OpenAI.
- Multi-Agent Orchestration: Implement Sequential, Concurrent, Handoff, and Group Chat patterns.
- Agentic RAG Systems: Build intent-based retrieval using Qdrant vector databases and
TextSearchProvider. - Protocols & Interoperability: Implement A2A communication, MCP tool exposure, and AG-UI frontend streaming.
- Observability & Visual Testing: Track JSON payloads, token usage, handoff latencies, and tool calls with Aspire + DevUI.
- Enterprise Microservices Integration: Integrate AI agents into MinimalAgent-style microservices and existing APIs.
Learn core agent anatomy, Azure OpenAI connectivity, invocation lifecycle, custom function tools, and persistent conversational context with AgentSession.
Design and implement specialized swarms (triage, finance, compliance) with AgentWorkflowBuilder and production workflow topologies.
Build systems where agents decide when retrieval is needed. Integrate Qdrant, embeddings, and semantic search into enterprise-ready AI flows.
Expose agents through Web APIs for A2A architectures, connect to local/hosted MCP servers, and stream generative UI experiences with AG-UI.
The repository is organized by section, matching the course progression:
section4-setupHelloAgent
section5-getting-startedBasicAgentApp,MultiTurn,Streaming,StructuredOutputMinimalAgent(Aspire-style AppHost/WebApi/ServiceDefaults)
section6-tool-useFunctionCall,CodeInterpreter,ApproveRequiredFuncMinimalAgentWithTools(AppHost/WebApi/ServiceDefaults)
section7-memoryCustomContextProvider,MockCosmosDb
section8-workflowsFirstWorkflow,AgentsWorkflow
section9-workflow-patternsAgenticWorkflowPatternsMinimalAgentWithWorkflows(AppHost/WebApi/ServiceDefaults)
section11-agentic-ragBasicTextRAGExample,QdrantVectorStore
section13-a2aEnterpriseComplianceService
section14-mcpHostedMcpGovernanceExample,LocalGitHubMcpExample
section15-ag-uiServer,Client
Solution file:
src/develop-agents.slnx
- Languages & Frameworks: .NET 10, C#, ASP.NET Core, Blazor Server
- AI & Agents: Microsoft Agent Framework, Azure OpenAI (
gpt-5-mini,text-embedding-3-small) - Cloud & Deployment: Microsoft AI Foundry
- Frontend Protocol: AG-UI
- Orchestration: .NET Aspire
- Observability: Aspire OpenTelemetry, Application Insights
- Vector Data & Storage: Qdrant
- Architecture: Microservices, Clean Architecture, MCP
- Software Developers, Architects, and Tech Leads in enterprise environments transitioning into AI Engineering.
- Professionals integrating AI agents into backend microservices, legacy systems, and APIs.
- C#/.NET developers who want to build agentic AI systems without switching to Python.