Skip to content

Commit d96094c

Browse files
committed
Added multi-agent content
1 parent 7dcb7b8 commit d96094c

File tree

14 files changed

+258
-0
lines changed

14 files changed

+258
-0
lines changed

learn-pr/paths/develop-ai-agents-on-azure/index.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ modules:
3030
- learn.wwl.build-agent-with-custom-tools
3131
- learn.wwl.develop-ai-agent-with-semantic-kernel
3232
- learn.wwl.orchestrate-sk-multi-agent-solution
33+
- learn.wwl.develop-multi-agent-azure-ai-foundry
3334
trophy:
3435
uid: learn.wwl.develop-ai-agent-on-azure.trophy
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.develop-multi-agent-azure-ai-foundry.introduction
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: "Get started with multi-agent systems using Azure AI Foundry Agent Service."
7+
ms.date: 06/13/2025
8+
author: buzahid
9+
ms.author: buzahid
10+
ms.topic: unit
11+
durationInMinutes: 2
12+
content: |
13+
[!include[](includes/1-introduction.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.develop-multi-agent-azure-ai-foundry.understand-connected-agents
3+
title: Understand connected agents
4+
metadata:
5+
title: Understand connected agents
6+
description: "Learn how connected agents work together in a cohesive multi-agent solution"
7+
ms.date: 06/13/2025
8+
author: buzahid
9+
ms.author: buzahid
10+
ms.topic: unit
11+
durationInMinutes: 5
12+
content: |
13+
[!include[](includes/2-understand-connected-agents.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.develop-multi-agent-azure-ai-foundry.design-multi-agent-solution
3+
title: Design a multi-agent solution with connected agents
4+
metadata:
5+
title: Design a multi-agent solution with connected agents
6+
description: "Learn how to create a multi-agent solution using Azure AI Foundry Agent Service."
7+
ms.date: 06/13/2025
8+
author: buzahid
9+
ms.author: buzahid
10+
ms.topic: unit
11+
durationInMinutes: 5
12+
content: |
13+
[!include[](includes/3-design-multi-agent-solution.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.develop-multi-agent-azure-ai-foundry.exercise
3+
title: Exercise - Develop a multi-agent app with Azure AI Foundry
4+
metadata:
5+
title: Exercise - Develop a multi-agent app with Azure AI Foundry
6+
description: "Build a multi-agent solution using connected agents in Azure AI Foundry Agent Service."
7+
ms.date: 06/13/2025
8+
author: buzahid
9+
ms.author: buzahid
10+
ms.topic: unit
11+
durationInMinutes: 30
12+
content: |
13+
[!include[](includes/4-exercise.md)]
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.develop-multi-agent-azure-ai-foundry.knowledge-check
3+
title: Module assessment
4+
metadata:
5+
title: Module assessment
6+
description: "Check your learning on connected agents in Azure AI Foundry Agent Service."
7+
ms.date: 06/13/2025
8+
author: buzahid
9+
ms.author: buzahid
10+
ms.topic: unit
11+
durationInMinutes: 3
12+
content: |
13+
quiz:
14+
questions:
15+
- content: "What is the role of the main agent in a connected agent system?"
16+
choices:
17+
- content: "To directly perform all tasks using tools"
18+
isCorrect: false
19+
explanation: "Incorrect. The main agent delegates tasks rather than performing them directly."
20+
- content: "To coordinate user input and route tasks to the appropriate connected agents"
21+
isCorrect: true
22+
explanation: "Correct. The main agent handles intent recognition and delegates work to connected agents."
23+
- content: "To monitor agent performance and generate logs"
24+
isCorrect: false
25+
explanation: "Incorrect. Logging is not the role of the main agent."
26+
- content: "How do you connect an agent to a main agent using the Azure AI Projects client library?"
27+
choices:
28+
- content: "Add the agent as a `ConnectedAgentTool` to the main agent's tool definition."
29+
isCorrect: true
30+
explanation: "Correct. You register the agent as a tool and include it when configuring the main agent."
31+
- content: "Use the `link_agents()` method to bind the sub-agent to the main agent."
32+
isCorrect: false
33+
explanation: "Incorrect. There is no such method; connected agents are registered as tools."
34+
- content: "Set the main agent's parent_id to the sub-agent's agent ID."
35+
isCorrect: false
36+
explanation: "Incorrect. Agent relationships are not configured through ID inheritance."
37+
- content: "How does the main agent decide which connected agent to use?"
38+
choices:
39+
- content: "It uses prompt instructions and natural language understanding."
40+
isCorrect: true
41+
explanation: "Correct. The main agent uses natural language prompts to determine task routing."
42+
- content: "It follows a fixed code-based decision tree."
43+
isCorrect: false
44+
explanation: "Incorrect. No hardcoded routing logic is needed."
45+
- content: "It randomly selects from available connected agents."
46+
isCorrect: false
47+
explanation: "Incorrect. Task routing is based on the user's intent and the prompt design."
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.develop-multi-agent-azure-ai-foundry.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: "Reflect on what you've learned about multi-agent systems."
7+
ms.date: 06/13/2025
8+
author: buzahid
9+
ms.author: buzahid
10+
ms.topic: unit
11+
durationInMinutes: 1
12+
content: |
13+
[!include[](includes/6-summary.md)]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Azure AI Foundry Agent Service can help you develop sophisticated, multi-agent systems that can break down complex tasks into smaller, specialized roles. Using connected agents, you can design intelligent solutions where a primary agent delegates work to sub-agents without the need for custom orchestration logic or hardcoded routing. This modular approach boosts efficiency and maintainability across a wide range of scenarios.
2+
3+
Imagine you're on an engineering team that receives a constant flow of support tickets including bugs, feature requests, and infrastructure issues. Manually reviewing and sorting each one takes time and slows down your team’s ability to respond quickly. With a multi-agent approach, you can build a triage assistant that assigns different tasks to specialized agents. The sub-agents might perform tasks such as classifying ticket type, setting priority, and suggesting the right team for the work. With a multi-agent approach, these specialized agents can work together to streamline the ticketing process.
4+
5+
In this module, you'll learn how to use connected agents in Azure AI Foundry. You'll also practice building an intelligent ticket triage system using a collaborative mutli-agent solution.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
As AI solutions become more advanced, managing complex workflows gets harder. A single agent can handle a wide range of tasks, but this approach can become unmanageable as the scope expands. That's why Azure AI Foundry Agent Service lets you connect multiple agents, each with a focused role, to work together in a cohesive system.
2+
3+
## What are connected agents?
4+
5+
Connected agents are a feature in the Azure AI Foundry Agent Service that allow you to break large tasks into smaller,specialized roles without building a custom orchestrator or hardcoding routing logic. Instead of relying on one agent to do everything, you can create multiple agents with clearly defined responsibilities that collaborate to accomplish tasks.
6+
7+
At the center of this system is a main agent that interprets user input and delegates tasks to connected sub-agents. Each sub-agent is purpose-built to perform a specific function, such as summarizing a document, validating a policy, or retrieving data from a knowledge source.
8+
9+
This division of labor helps you:
10+
11+
- Simplify complex workflows
12+
- Improve agent performance and accuracy
13+
- Make systems easier to maintain and extend over time
14+
15+
## Why use connected agents?
16+
17+
Rather than scaling a single agent to handle every user request or data interaction, using connected agents lets you:
18+
19+
- Build modular solutions that are easier to develop and debug
20+
- Assign specialized capabilities to agents that can be reused across solutions
21+
- Scale your system in a way that aligns with real-world business logic
22+
23+
This approach is especially useful in scenarios where agents need to perform sensitive tasks independently, such has handling private data or generating personalized content.
24+
25+
Using connected agents to automate workflows offers many benefits, for example:
26+
27+
- **No custom orchestration required** - The main agent uses natural language to route tasks, eliminating the need for hardcoded logic.
28+
- **Improved reliability and traceability** - The clear separation of responsibilities makes issues easier to debug since agents can be tested individually.
29+
- **Flexible and extensible** - Add or swap agents without reworking the entire system or modifying the main agent.
30+
31+
Connected agents make it easier to build modular, collaborative systems without complex orchestration. By assigning focused roles and using natural language delegation, you can simplify workflows, improve reliability, and scale your solutions more effectively.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
In a connected agent solution, success depends on clearly defining the responsibilities of each agent. The central agent is also responsible for how the agents will collaborate. Let's explore how to design a multi-agent program using Azure AI Foundry Agent Service.
2+
3+
**Main agent responsibilities**
4+
5+
The main agent acts as the orchestrator. It interprets the intent behind a request and determines which connected agent is best suited to handle it. The main agent is responsible for:
6+
7+
- Interpreting user input
8+
- Selecting the appropriate connected agent
9+
- Forwarding relevant context and instructions
10+
- Aggregating or summarize results
11+
12+
**Connected agent responsibilities**
13+
14+
Connected agents designed to focus on a single domain of responsibility. A connected agent is responsible for:
15+
16+
- Completing a specific action based on a clear prompt
17+
- Using tools (if needed) to complete their task
18+
- Returning the results to the main agent
19+
20+
Connected agents should be designed with a single responsibility in mind. This makes your system easier to debug, extend, and reuse.
21+
22+
## Set up a multi-agent solution with connected agents
23+
24+
1. **Initialize the agents client**
25+
26+
First, you create a client that will connect to your Azure AI Foundry project.
27+
28+
1. **Create an agent to connect to the main agent**
29+
30+
Define an agent that will be connected to the main agent. You can do this using the `create_agent` method on the `AgentsClient` object.
31+
32+
For example, your connected agent might retrieve stock prices, summarize documents, or validate compliance. Give the agent clear instructions that define its purpose.
33+
34+
1. **Initialize the connected agent tool**
35+
36+
Use your agent definition to create a `ConnectedAgentTool`. Assign it a name and description so the main agent knows when and how to use it.
37+
38+
1. **Create the main agent**
39+
40+
Create the main agent using the `create_agent` method. Add your connected agents using the `tools` property and assign the `ConnectedAgentTool` definitions to the main agent.
41+
42+
1. **Create a thread and send a message**
43+
44+
Create the agent thread that will be used to manage the conversation context. Then create a message on the thread that contains the request you want the agent to fulfill.
45+
46+
1. **Run the agent workflow**
47+
48+
Once the message is added, create a run to process the request. The main agent uses its tools to delegate tasks as needed and compile a final response for the user.
49+
50+
1. **Handle the results**
51+
52+
When the run completes, you can review the main agent's response. The final output may incorporate insights from one or more connected agents. Only the main agent's response is visible to the end user.
53+
54+
Designing a connected agent system involves defining focused agents, registering them as tools, and configuring a main agent to route tasks intelligently. This modular approach gives you a flexible foundation for building collaborative AI solution that scale as your needs grow.

0 commit comments

Comments
 (0)