# mehmetozkaya/agents-on-enterprise architecture

> Architecture diagram of the GitHub repository mehmetozkaya/agents-on-enterprise, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mehmetozkaya/agents-on-enterprise
- Repository: https://github.com/mehmetozkaya/agents-on-enterprise

## Overview

This repository is a book’s collection of .NET enterprise-agent examples, not a single deployable application. Its principal user-to-result pattern is demonstrated by the agent examples: a user prompt reaches an agent, which may call tools or retrieve context, then returns a response. The graph groups the examples by capability rather than implying they run together. Several subsystems are documented in the README but their source was not sampled; those appear as directory-level nodes, with uncertain runtime links omitted.

Main entry points: [`part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/Program.cs`](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/Program.cs) (Qdrant RAG), [`part-07-advanced/18-middleware/FinanceAgentMiddleware/Program.cs`](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/18-middleware/FinanceAgentMiddleware/Program.cs) (Agent Middleware), [`part-03-core/07-getting-started/StructuredOutputStreaming/Program.cs`](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-03-core/07-getting-started/StructuredOutputStreaming/Program.cs) (Streaming Output), [`part-06-communications/15-mcp`](https://github.com/mehmetozkaya/agents-on-enterprise/tree/main/part-06-communications/15-mcp) (MCP Examples)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_agent["Agent Development"]
  node_basic["Basic Agent<br/>[Program.cs]"]
  node_streaming["Streaming Output<br/>[Program.cs]"]
  node_tooluse["Tool Use"]
  node_memory["Session Memory"]
  node_contextprovider["Context Provider<br/>[Program.cs]"]
end

subgraph group_workflow["Workflows and RAG"]
  node_orchestration["Workflow Orchestration<br/>[Program.cs]"]
  node_enterpriseorchestrator["Workflow Runner"]
  node_checkpoint["Human Checkpoints"]
  node_text_rag["Text RAG<br/>[Program.cs]"]
  node_qdrant_rag["Qdrant RAG<br/>[Program.cs]"]
  node_adr["Architecture Records"]
end

subgraph group_protocol["Protocols and UI"]
  node_a2a["A2A Service<br/>[Program.cs]"]
  node_forecast["Forecast Contract<br/>[WeatherForecast.cs]"]
  node_mcp["MCP Examples"]
  node_agui["AG-UI Client Server"]
  node_devui["Developer UI<br/>[Program.cs]"]
end

subgraph group_governance["Governance and Reasoning"]
  node_middleware["Agent Middleware<br/>[Program.cs]"]
  node_guardrail["Guardrails"]
  node_pii["PII Redaction"]
  node_ratelimit["Rate Limiting"]
  node_skills["Skills Architecture<br/>[Program.cs]"]
  node_reasoning["Agent Reasoning<br/>[Program.cs]"]
end

subgraph group_enterprise["Enterprise Operations"]
  node_observability["Observability Defaults<br/>[Extensions.cs]"]
  node_supplychain["Supply Chain API<br/>[Program.cs]"]
  node_weatherclient["Weather API Client"]
  node_evaluation["Agent Evaluation<br/>[Program.cs]"]
  node_security["Security Middleware"]
  node_securityapp["Security Example<br/>[Program.cs]"]
end

node_user(("User"))
node_qdrant[("Qdrant Store")]
node_mcpservice["Hosted MCP"]
node_azure["Azure OpenAI"]
node_answer["Agent Response"]
node_human(("Human Reviewer"))

node_user -->|"submits prompt"| node_streaming
node_streaming -->|"requests completion"| node_azure
node_streaming -->|"returns analysis"| node_answer
node_user -->|"provides context"| node_contextprovider
node_contextprovider -->|"extracts profile"| node_azure
node_user -->|"selects workflow"| node_orchestration
node_orchestration -->|"runs workflow"| node_enterpriseorchestrator
node_user -->|"asks question"| node_qdrant_rag
node_qdrant_rag -->|"stores records"| node_adr
node_qdrant_rag -->|"upserts and searches"| node_qdrant
node_qdrant_rag -->|"embeds and answers"| node_azure
node_mcp -->|"connects remotely"| node_mcpservice
node_user -->|"asks question"| node_mcp
node_human -->|"approves tool use"| node_mcp
node_middleware -->|"wraps client"| node_ratelimit
node_middleware -->|"wraps client"| node_pii
node_middleware -->|"wraps client"| node_guardrail
node_securityapp -->|"configures pipeline"| node_security
node_user -->|"submits query"| node_securityapp
node_user -->|"scenario input"| node_evaluation
node_evaluation -->|"runs target and judge"| node_azure
node_supplychain -->|"uses defaults"| node_observability
node_weatherclient -->|"deserializes data"| node_forecast
node_agui -.->|"serves agent UI"| node_user
node_a2a -.->|"uses contract"| node_forecast

click node_basic "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-03-core/07-getting-started/BasicAgentApp/Program.cs"
click node_streaming "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-03-core/07-getting-started/StructuredOutputStreaming/Program.cs"
click node_tooluse "https://github.com/mehmetozkaya/agents-on-enterprise/tree/main/part-03-core/08-tool-use"
click node_memory "https://github.com/mehmetozkaya/agents-on-enterprise/tree/main/part-03-core/09-memory"
click node_contextprovider "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-03-core/09-memory/CustomContextProvider/Program.cs"
click node_orchestration "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-04-multi-agent/10-workflows/AgenticWorkflowPatterns/Program.cs"
click node_enterpriseorchestrator "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-04-multi-agent/10-workflows/AgenticWorkflowPatterns/EnterpriseOrchestrator.cs"
click node_checkpoint "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-04-multi-agent/10-workflows/CheckpointHumanInTheLoop/SecOpsWorkflowFactory.cs"
click node_text_rag "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-05-agentic-rag/12-develop-agentic-rag/BasicTextRAGExample/Program.cs"
click node_qdrant_rag "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/Program.cs"
click node_adr "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/ArchitectureDecision.cs"
click node_a2a "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-06-communications/14-a2a/EnterpriseComplianceService/Program.cs"
click node_forecast "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-06-communications/14-a2a/EnterpriseComplianceService/WeatherForecast.cs"
click node_mcp "https://github.com/mehmetozkaya/agents-on-enterprise/tree/main/part-06-communications/15-mcp"
click node_agui "https://github.com/mehmetozkaya/agents-on-enterprise/tree/main/part-06-communications/16-ag-ui"
click node_devui "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-06-communications/17-devui/EnterpriseKycService/Program.cs"
click node_middleware "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/18-middleware/FinanceAgentMiddleware/Program.cs"
click node_guardrail "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/18-middleware/FinanceAgentMiddleware/Middleware/GuardrailMiddleware.cs"
click node_pii "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/18-middleware/FinanceAgentMiddleware/Middleware/PIIRedactionMiddleware.cs"
click node_ratelimit "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/18-middleware/FinanceAgentMiddleware/Middleware/RateLimitingMiddleware.cs"
click node_skills "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/19-skills/EnterpriseSkillsArchitecture/Program.cs"
click node_reasoning "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/20-reasoning/AgentReasoning/Program.cs"
click node_observability "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/22-observability/SupplyChain.ServiceDefaults/Extensions.cs"
click node_supplychain "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/22-observability/SupplyChain.ApiService/Program.cs"
click node_weatherclient "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/22-observability/SupplyChain.Web/WeatherApiClient.cs"
click node_evaluation "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/23-evaluation/AgentEvaluation/Program.cs"
click node_security "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/24-security/SecurityArchitecture/EnterpriseSecurityMiddleware.cs"
click node_securityapp "https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/24-security/SecurityArchitecture/Program.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_basic,node_streaming,node_tooluse,node_memory,node_contextprovider,node_user,node_human toneBlue
class node_orchestration,node_enterpriseorchestrator,node_checkpoint,node_text_rag,node_qdrant_rag,node_adr,node_qdrant toneAmber
class node_a2a,node_forecast,node_mcp,node_agui,node_devui toneMint
class node_middleware,node_guardrail,node_pii,node_ratelimit,node_skills,node_reasoning toneRose
class node_observability,node_supplychain,node_weatherclient,node_evaluation,node_security,node_securityapp,node_mcpservice,node_azure,node_answer toneIndigo
```

## Components

### Agent Development

- [Basic Agent](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-03-core/07-getting-started/BasicAgentApp/Program.cs): `part-03-core/07-getting-started/BasicAgentApp/Program.cs`
- [Streaming Output](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-03-core/07-getting-started/StructuredOutputStreaming/Program.cs): `part-03-core/07-getting-started/StructuredOutputStreaming/Program.cs`
- [Tool Use](https://github.com/mehmetozkaya/agents-on-enterprise/tree/main/part-03-core/08-tool-use): `part-03-core/08-tool-use`
- [Session Memory](https://github.com/mehmetozkaya/agents-on-enterprise/tree/main/part-03-core/09-memory): `part-03-core/09-memory`
- [Context Provider](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-03-core/09-memory/CustomContextProvider/Program.cs): `part-03-core/09-memory/CustomContextProvider/Program.cs`

### Workflows and RAG

- [Workflow Orchestration](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-04-multi-agent/10-workflows/AgenticWorkflowPatterns/Program.cs): `part-04-multi-agent/10-workflows/AgenticWorkflowPatterns/Program.cs`
- [Workflow Runner](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-04-multi-agent/10-workflows/AgenticWorkflowPatterns/EnterpriseOrchestrator.cs): `part-04-multi-agent/10-workflows/AgenticWorkflowPatterns/EnterpriseOrchestrator.cs`
- [Human Checkpoints](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-04-multi-agent/10-workflows/CheckpointHumanInTheLoop/SecOpsWorkflowFactory.cs): `part-04-multi-agent/10-workflows/CheckpointHumanInTheLoop/SecOpsWorkflowFactory.cs`
- [Text RAG](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-05-agentic-rag/12-develop-agentic-rag/BasicTextRAGExample/Program.cs): `part-05-agentic-rag/12-develop-agentic-rag/BasicTextRAGExample/Program.cs`
- [Qdrant RAG](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/Program.cs): `part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/Program.cs`
- [Architecture Records](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/ArchitectureDecision.cs): `part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/ArchitectureDecision.cs`

### Protocols and UI

- [A2A Service](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-06-communications/14-a2a/EnterpriseComplianceService/Program.cs): `part-06-communications/14-a2a/EnterpriseComplianceService/Program.cs`
- [Forecast Contract](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-06-communications/14-a2a/EnterpriseComplianceService/WeatherForecast.cs): `part-06-communications/14-a2a/EnterpriseComplianceService/WeatherForecast.cs`
- [MCP Examples](https://github.com/mehmetozkaya/agents-on-enterprise/tree/main/part-06-communications/15-mcp): `part-06-communications/15-mcp`
- [AG-UI Client Server](https://github.com/mehmetozkaya/agents-on-enterprise/tree/main/part-06-communications/16-ag-ui): `part-06-communications/16-ag-ui`
- [Developer UI](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-06-communications/17-devui/EnterpriseKycService/Program.cs): `part-06-communications/17-devui/EnterpriseKycService/Program.cs`

### Governance and Reasoning

- [Agent Middleware](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/18-middleware/FinanceAgentMiddleware/Program.cs): `part-07-advanced/18-middleware/FinanceAgentMiddleware/Program.cs`
- [Guardrails](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/18-middleware/FinanceAgentMiddleware/Middleware/GuardrailMiddleware.cs): `part-07-advanced/18-middleware/FinanceAgentMiddleware/Middleware/GuardrailMiddleware.cs`
- [PII Redaction](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/18-middleware/FinanceAgentMiddleware/Middleware/PIIRedactionMiddleware.cs): `part-07-advanced/18-middleware/FinanceAgentMiddleware/Middleware/PIIRedactionMiddleware.cs`
- [Rate Limiting](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/18-middleware/FinanceAgentMiddleware/Middleware/RateLimitingMiddleware.cs): `part-07-advanced/18-middleware/FinanceAgentMiddleware/Middleware/RateLimitingMiddleware.cs`
- [Skills Architecture](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/19-skills/EnterpriseSkillsArchitecture/Program.cs): `part-07-advanced/19-skills/EnterpriseSkillsArchitecture/Program.cs`
- [Agent Reasoning](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-07-advanced/20-reasoning/AgentReasoning/Program.cs): `part-07-advanced/20-reasoning/AgentReasoning/Program.cs`

### Enterprise Operations

- [Observability Defaults](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/22-observability/SupplyChain.ServiceDefaults/Extensions.cs): `part-08-enterprise/22-observability/SupplyChain.ServiceDefaults/Extensions.cs`
- [Supply Chain API](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/22-observability/SupplyChain.ApiService/Program.cs): `part-08-enterprise/22-observability/SupplyChain.ApiService/Program.cs`
- [Weather API Client](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/22-observability/SupplyChain.Web/WeatherApiClient.cs): `part-08-enterprise/22-observability/SupplyChain.Web/WeatherApiClient.cs`
- [Agent Evaluation](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/23-evaluation/AgentEvaluation/Program.cs): `part-08-enterprise/23-evaluation/AgentEvaluation/Program.cs`
- [Security Middleware](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/24-security/SecurityArchitecture/EnterpriseSecurityMiddleware.cs): `part-08-enterprise/24-security/SecurityArchitecture/EnterpriseSecurityMiddleware.cs`
- [Security Example](https://github.com/mehmetozkaya/agents-on-enterprise/blob/main/part-08-enterprise/24-security/SecurityArchitecture/Program.cs): `part-08-enterprise/24-security/SecurityArchitecture/Program.cs`

### Other components

- **User**
- **Qdrant Store**
- **Hosted MCP**
- **Azure OpenAI**
- **Agent Response**
- **Human Reviewer**

## Connections

- User → Streaming Output: submits prompt (evidence: `part-03-core/07-getting-started/StructuredOutputStreaming/Program.cs`)
- Streaming Output → Azure OpenAI: requests completion (evidence: `part-03-core/07-getting-started/StructuredOutputStreaming/Program.cs`)
- Streaming Output → Agent Response: returns analysis (evidence: `part-03-core/07-getting-started/StructuredOutputStreaming/Program.cs`)
- User → Context Provider: provides context (evidence: `part-03-core/09-memory/CustomContextProvider/Program.cs`)
- Context Provider → Azure OpenAI: extracts profile (evidence: `part-03-core/09-memory/CustomContextProvider/Program.cs`)
- User → Workflow Orchestration: selects workflow (evidence: `part-04-multi-agent/10-workflows/AgenticWorkflowPatterns/Program.cs`)
- Workflow Orchestration → Workflow Runner: runs workflow (evidence: `part-04-multi-agent/10-workflows/AgenticWorkflowPatterns/Program.cs`)
- User → Qdrant RAG: asks question (evidence: `part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/Program.cs`)
- Qdrant RAG → Architecture Records: stores records (evidence: `part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/Program.cs`)
- Qdrant RAG → Qdrant Store: upserts and searches (evidence: `part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/Program.cs`)
- Qdrant RAG → Azure OpenAI: embeds and answers (evidence: `part-05-agentic-rag/12-develop-agentic-rag/QdrantVectorStore/Program.cs`)
- MCP Examples → Hosted MCP: connects remotely (evidence: `part-06-communications/15-mcp/HostedMcpGovernanceExample/Program.cs`)
- User → MCP Examples: asks question (evidence: `part-06-communications/15-mcp/HostedMcpGovernanceExample/Program.cs`)
- Human Reviewer → MCP Examples: approves tool use (evidence: `part-06-communications/15-mcp/HostedMcpGovernanceExample/Program.cs`)
- Agent Middleware → Rate Limiting: wraps client (evidence: `part-07-advanced/18-middleware/FinanceAgentMiddleware/Program.cs`)
- Agent Middleware → PII Redaction: wraps client (evidence: `part-07-advanced/18-middleware/FinanceAgentMiddleware/Program.cs`)
- Agent Middleware → Guardrails: wraps client (evidence: `part-07-advanced/18-middleware/FinanceAgentMiddleware/Program.cs`)
- Security Example → Security Middleware: configures pipeline (evidence: `part-08-enterprise/24-security/SecurityArchitecture/Program.cs`)
- User → Security Example: submits query (evidence: `part-08-enterprise/24-security/SecurityArchitecture/Program.cs`)
- User → Agent Evaluation: scenario input (evidence: `part-08-enterprise/23-evaluation/AgentEvaluation/Program.cs`)
- Agent Evaluation → Azure OpenAI: runs target and judge (evidence: `part-08-enterprise/23-evaluation/AgentEvaluation/Program.cs`)
- Supply Chain API → Observability Defaults: uses defaults (evidence: `part-08-enterprise/22-observability/SupplyChain.ApiService/Program.cs`)
- Weather API Client → Forecast Contract: deserializes data (evidence: `part-08-enterprise/22-observability/SupplyChain.Web/WeatherApiClient.cs`)
- AG-UI Client Server → User: serves agent UI
- A2A Service → Forecast Contract: uses contract
