Skip to content

Commit 7c64a38

Browse files
Add intro to agents doc (#48781)
* Add intro to agents doc * Add direct link to Semantic Kernel Frameworks * Fix linting errors * Add workflow orchestration * Add media * Add workflow observations * Add Agent Framework * Add link to Microsoft Agent Framework * Fix markdown lint errors * Add topic * Update pub date * Remove agents redirect * Add workflow diagrams * Add intro * Apply suggestions from code review Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> * Trim sequential image * Apply suggestions from code review Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> * Fix lint errors --------- Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
1 parent 93516a6 commit 7c64a38

File tree

9 files changed

+103
-7
lines changed

9 files changed

+103
-7
lines changed

.openpublishing.redirection.ai.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
"redirect_url": "/dotnet/ai/microsoft-extensions-ai",
1010
"redirect_document_id": true
1111
},
12-
{
13-
"source_path_from_root": "/docs/ai/conceptual/agents.md",
14-
"redirect_url": "/dotnet/ai"
15-
},
1612
{
1713
"source_path_from_root": "/docs/ai/conceptual/evaluation-libraries.md",
1814
"redirect_url": "/dotnet/ai/evaluation/libraries",

docs/ai/conceptual/agents.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
title: Agents
3+
description: Introduction to agents
4+
author: luisquintanilla
5+
ms.author: luquinta
6+
ms.date: 10/01/2025
7+
ms.topic: concept-article
8+
---
9+
10+
# Agents
11+
12+
This article introduces the core concepts behind agents, why they matter, and how they fit into workflows, setting you up to get started building agents in .NET.
13+
14+
## What are agents?
15+
16+
**Agents are systems that accomplish objectives.**
17+
18+
![Components of an agent](../media/agents/agent-components.png)
19+
20+
Agents become more capable when equipped with the following:
21+
22+
- **Reasoning and decision-making**: Powered by LLMs, search algorithms, or planning and decision-making systems.
23+
- **Tool usage**: Access to Model Context Protocol (MCP) servers, code execution, and external APIs.
24+
- **Context awareness**: Informed by chat history, threads, vector stores, enterprise data, or knowledge graphs.
25+
26+
These capabilities allow agents to operate more autonomously, adaptively, and intelligently.
27+
28+
## What are workflows?
29+
30+
As objectives grow in complexity, they need to be broken down into manageable steps. That's where workflows come in.
31+
32+
**Workflows define the sequence of steps required to achieve an objective.**
33+
34+
Imagine you're launching a new feature on your business website. If it's a simple update, you might go from idea to production in a few hours. But for more complex initiatives, the process might include:
35+
36+
- Requirement gathering
37+
- Design and architecture
38+
- Implementation
39+
- Testing
40+
- Deployment
41+
42+
A few important observations:
43+
44+
- Each step might contain subtasks.
45+
- Different specialists might own different phases.
46+
- Progress isn’t always linear. Bugs found during testing might send you back to implementation.
47+
- Success depends on planning, orchestration, and communication across stakeholders.
48+
49+
### Agents + workflows = agentic workflows
50+
51+
Workflows don't require agents, but agents can supercharge them.
52+
53+
When agents are equipped with reasoning, tools, and context, they can optimize workflows.
54+
55+
This is the foundation of multi-agent systems, where agents collaborate within workflows to achieve complex goals.
56+
57+
### Workflow orchestration
58+
59+
Agentic workflows can be orchestrated in a variety of ways. The following are a few of the most common:
60+
61+
- [Sequential](#sequential)
62+
- [Concurrent](#concurrent)
63+
- [Handoff](#handoff)
64+
- [Group chat](#group-chat)
65+
66+
#### Sequential
67+
68+
Agents process tasks one after another, passing results forward.
69+
70+
![Sequential agent orchestration: Task Input → Agent A → Agent B → Agent C → Final Output](../media/agents/sequential-workflow.png)
71+
72+
#### Concurrent
73+
74+
Agents work in parallel, each handling different aspects of the task.
75+
76+
![Concurrent agent orchestration: Task Input → Agents A, B, C → Aggregate Results → Final Output](../media/agents/concurrent-workflow.png)
77+
78+
#### Handoff
79+
80+
Responsibility shifts from one agent to another based on conditions or outcomes.
81+
82+
![Handoff orchestration: Task Input → Agent A Decision → Agent B or Agent A → Agent B Decision → Agent C or Agent B → Final Output](../media/agents/handoff-workflow.png)
83+
84+
#### Group chat
85+
86+
Agents collaborate in a shared conversation, exchanging insights in real-time.
87+
88+
![Group chat orchestration: User and Agents A, B, C collaborate via GroupChat to produce final output](../media/agents/groupchat-workflow.png)
89+
90+
## How can I get started building agents in .NET?
91+
92+
The building blocks in <xref:Microsoft.Extensions.AI> and <xref:Microsoft.Extensions.VectorData> supply the foundations for agents by providing modular components for AI models, tools, and data.
93+
94+
These components serve as the foundation for Microsoft Agent Framework.
95+
96+
For more information, see [Microsoft Agent Framework](/agent-framework/overview/agent-framework-overview).

docs/ai/index.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ landingContent:
2727
url: overview.md
2828
- text: Microsoft.Extensions.AI libraries
2929
url: microsoft-extensions-ai.md
30+
- text: Microsoft Agent Framework
31+
url: /agent-framework/overview/agent-framework-overview?toc=/dotnet/ai/toc.json&bc=/dotnet/ai/toc.json
3032
- linkListType: get-started
3133
links:
3234
- text: Connect to and prompt an AI model
948 KB
Loading
90.5 KB
Loading
102 KB
Loading
92.9 KB
Loading
35.1 KB
Loading

docs/ai/toc.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ items:
1010
- name: Overview
1111
href: dotnet-ai-ecosystem.md
1212
- name: Microsoft.Extensions.AI
13-
href: microsoft-extensions-ai.md
14-
- name: Semantic Kernel
15-
href: semantic-kernel-dotnet-overview.md
13+
href: microsoft-extensions-ai.md
14+
- name: Microsoft Agent Framework
15+
href: /agent-framework/overview/agent-framework-overview?toc=/dotnet/ai/toc.json&bc=/dotnet/ai/toc.json
1616
- name: C# SDK for MCP
1717
href: get-started-mcp.md
1818
- name: Quickstarts
@@ -41,6 +41,8 @@ items:
4141
items:
4242
- name: How generative AI and LLMs work
4343
href: conceptual/how-genai-and-llms-work.md
44+
- name: Building agents in .NET
45+
href: conceptual/agents.md
4446
- name: Tokens
4547
href: conceptual/understanding-tokens.md
4648
- name: Embeddings

0 commit comments

Comments
 (0)