Skip to content

mehmetozkaya/agents-on-enterprise

Repository files navigation

πŸ€– Agents for Enterprise

Complete Enterprise Agentic AI Architectures with .NET

Book Cover

Build Production-Grade AI Systems for Senior .NET Architects & Tech Leads

Get the Book

πŸš€ Quick Start β€’ πŸ“š Table of Contents β€’ πŸ—οΈ Architecture β€’ πŸ’¬ Community


🎯 Why This Book?

"You're a Senior Architect, but AI makes you feel like a Junior again."

You've tried to learn Agentic AI, but everything is in Python or focused on simple scripts that crumble in a real enterprise environment. You don't need another "Hello World" tutorial. You need to handle latency, security, and state management in a distributed C# system.

πŸ“‹ This Book is For You If...
  • βœ… You're a Software Developer, Architect, or Tech Lead working in enterprise environments
  • βœ… You need to integrate AI agents into existing microservices and backend systems
  • βœ… You want to build with .NET and C#β€”not switch to Python
  • βœ… You require production-grade patterns for security, observability, and scalability
  • βœ… You're adding AI features to legacy systems and need enterprise-ready solutions

πŸ—οΈ What You'll Master

Capability Description
Microsoft Agent Framework Deep dive into Microsoft's official agent framework for building sophisticated AI systems
Multi-Agent Orchestration Design and implement complex workflows with multiple cooperating agents
Agentic RAG Systems Build retrieval-augmented generation systems that go beyond simple Q&A
Enterprise Security Implement guardrails, PII redaction, rate limiting, and compliance controls
Observability & Tracing Full OpenTelemetry integration with .NET Aspire for production monitoring
Azure Foundry Deployment Deploy and scale your agent systems on Azure with confidence

πŸ“š What's Inside

This comprehensive guide takes you from foundational concepts to production-ready enterprise deployments across 8 parts and 26 chapters:

Part Title Description
I Foundations Understanding AI agentsβ€”why they matter, what they are, and their core components
II Explore & Setup Navigate the AI landscape and configure your .NET development environment
III Core Development Build agents with tools, memory, streaming, and structured outputs
IV Multi-Agent Design workflows with multiple cooperating agents and orchestration
V Agentic RAG Retrieval-augmented generation systems for enterprise knowledge
VI Communications A2A, MCP, AG-UI protocols for agent interoperability
VII Advanced Middleware, skills architecture, and advanced reasoning patterns
VIII Enterprise ADLC, observability, security, deployment, and cost management
πŸ“– View All 26 Chapters

Part I: Foundations of AI Agents

Chapter Topic Description
01 Why Agents Understanding the motivation and strategic value of AI agents in enterprise
02 AI Agents What AI agents are and how they differ from traditional software systems
03 Components Core architectural components that make up a production AI agent

Part II: Explore AI Landscape and Setup Agent Environment

Chapter Topic Description
04 Frameworks Overview of agent frameworksβ€”Microsoft Agent Framework, Semantic Kernel, and more
05 Ecosystem The broader AI agent ecosystem, tools, and enterprise integrations
06 Setup Setting up your .NET development environment for building agents

Part III: Core Agent Developmentβ€”Mechanics, Tools, and Memory

Chapter Topic Description
07 Getting Started Hands-on guide to building your first AI agent with streaming and structured outputs
08 Tool Use Function calling, code interpretation, file search, and web search capabilities
09 Memory Session management, context providers, and persistent memory with Cosmos DB

Part IV: Multi-Agent Workflows and Orchestration

Chapter Topic Description
10 Workflows Agentic workflow patterns, checkpoints, and human-in-the-loop orchestration

Part V: Agentic RAG (Retrieval-Augmented Generation)

Chapter Topic Description
11 Agentic RAG Concepts Understanding agentic RAG architecture and design patterns
12 Develop Agentic RAG Building RAG systems with Qdrant vector stores and enterprise data sources

Part VI: Agent Communications and Protocols

Chapter Topic Description
13 Communications Agent communication strategies and protocol design
14 Agent-to-Agent (A2A) Building enterprise compliance services with agent-to-agent protocols
15 Model Context Protocol (MCP) Implementing MCP with GitHub integration and governance examples
16 AG-UI Protocol Agent-to-UI communication patterns with client-server architecture
17 Developer UI Building enterprise KYC services with developer-friendly interfaces

Part VII: Advanced Agent Developmentβ€”Middleware, Skills, and Reasoning

Chapter Topic Description
18 Middleware Enterprise middleware patternsβ€”guardrails, PII redaction, rate limiting
19 Skills Enterprise skills architecture for composable agent capabilities
20 Reasoning Advanced reasoning patterns for complex decision-making agents

Part VIII: Enterprise Considerationsβ€”ADLC, Observability, Evaluations, and Security

Chapter Topic Description
21 ADLC Agent Development Lifecycleβ€”from design to production
22 Observability Full observability with .NET Aspire and OpenTelemetry
23 Evaluation Testing, evaluation frameworks, and quality assurance for AI agents
24 Security Enterprise security architecture and compliance patterns
25 Deployment Azure Foundry deployment strategies and cloud-native patterns
26 Cost Management Cost optimization strategies for enterprise AI systems

πŸ› οΈ Technology Stack

Category Technologies
Languages & Frameworks .NET 10 β€’ C# β€’ ASP.NET Core
AI & Agents Microsoft Agent Framework β€’ Semantic Kernel β€’ Azure OpenAI
Cloud & Deployment Azure Foundry β€’ Azure Container Apps β€’ Azure Kubernetes Service
Observability .NET Aspire β€’ OpenTelemetry β€’ Application Insights
Data & Storage Cosmos DB β€’ Qdrant β€’ Azure Blob Storage
Architecture Microservices β€’ Clean Architecture β€’ Domain-Driven Design

πŸš€ Quick Start

Prerequisites

Clone and Run

# Clone the repository
git clone https://github.com/mehmetozkaya/agents-on-enterprise.git
cd agents-on-enterprise

# Navigate to your first agent
cd part-02-explore/06-setup/HelloAgent

# Set environment variables (PowerShell)
$env:AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com/"  # Replace with your Azure OpenAI resource endpoint
$env:AZURE_OPENAI_DEPLOYMENT_NAME="gpt-5-mini"  # Optional, defaults to gpt-5-mini

# Run the agent
dotnet run

πŸ“ Architecture Patterns

This repository demonstrates enterprise-grade architectural patterns including:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    Enterprise Agent Architecture                β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”‚
β”‚  β”‚   Agent 1   β”‚  β”‚   Agent 2   β”‚  β”‚   Agent N   β”‚   Agents     β”‚
β”‚  β”‚  (Planner)  β”‚  β”‚ (Executor)  β”‚  β”‚  (Expert)   β”‚              β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜              β”‚
β”‚         β”‚                β”‚                β”‚                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”              β”‚
β”‚  β”‚              Orchestration Layer              β”‚   Workflow   β”‚
β”‚  β”‚     (Multi-Agent Coordination & Routing)      β”‚              β”‚
β”‚  └──────────────────────┬───────────────────────-β”˜              β”‚
β”‚                         β”‚                                       β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”               β”‚
β”‚  β”‚              Middleware Pipeline             β”‚   Security    β”‚
β”‚  β”‚  (Guardrails β€’ PII β€’ Rate Limiting β€’ Auth)   β”‚               β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜               β”‚
β”‚                         β”‚                                       β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”               β”‚
β”‚  β”‚            Enterprise Services               β”‚   Backend     β”‚
β”‚  β”‚    (RAG β€’ Memory β€’ Tools β€’ Integrations)     β”‚               β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜               β”‚
β”‚                         β”‚                                       β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”               β”‚
β”‚  β”‚              Observability Layer             β”‚   Ops         β”‚
β”‚  β”‚   (OpenTelemetry β€’ Tracing β€’ Metrics)        β”‚               β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ’¬ Community

  • 🌐 Website: agentsonenterprise.com
  • πŸ“§ Contact: Questions? Reach out through the website
  • ⭐ Star this repo if you find it valuable!

πŸ“„ License

This repository contains code samples and examples from the Agents for Enterprise book. The code is provided for educational purposes.

For the complete learning experience including detailed explanations, architectural diagrams, and enterprise patterns, get the full book.


Ready to Build Production-Grade AI Agent Systems?

Get the Book

Stop translating Python scripts. Start building enterprise AI with .NET.


About

Complete Enterprise Agentic AI Architectures with .NET, Build Production-Grade AI Systems for Senior .NET Architects & Tech Leads

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors