You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the "AI Agents for Beginners" course! This course will give you fundamental knowledge and applied samples for building with AI Agents.
3
+
Welcome to the "AI Agents for Beginners" course! This course will give you fundamental knowledge and applied samples for building with AI Agents.
4
4
5
5
Join the Azure AI Discord Community to meet other learners, and AI Agent Builders and ask any questions you have on this course.
6
6
7
-
To start this course, we will begin by getting a better understanding of what AI Agents are and how we can use them in the applications and workflows we build.
7
+
To start this course, we will begin by getting a better understanding of what AI Agents are and how we can use them in the applications and workflows we build.
8
8
9
-
## Introduction
9
+
## Introduction
10
10
11
11
This lesson will cover:
12
+
12
13
- What are AI Agents and what are the different types of agents?
13
14
- What use cases are best for AI Agents and how they can help us?
14
15
- What are some of the basic building blocks when designing Agentic Solutions?
15
16
16
-
## Learning Goals
17
+
## Learning Goals
18
+
19
+
After completing this lesson you should have:
20
+
21
+
- Have a better understanding of AI Agents and how they differ from other AI solutions.
22
+
- Knowledge of where best to apply AI Agents most efficiently.
23
+
- How to design Agentic solutions productively for both users and customers.
24
+
25
+
## Defining AI Agents and Types of AI Agents
26
+
27
+
### What are AI Agents?
17
28
18
-
After completing this lesson you should have:
19
-
- Have a better understanding of AI Agents and how they differ from other AI solutions.
20
-
- Knowledge of where best to apply AI Agents most efficiently.
21
-
- How to design Agentic solutions productively for both users and customers.
29
+
AI Agents are **systems** that enable **Large Language Models(LLMs)** to **perform actions** by extending their capabilities by giving LLMs **access to tools** and **knowledge**.
22
30
23
-
## Defining AI Agents and Types of AI Agents
31
+
Let's break this definition into smaller parts:
24
32
25
-
### What are AI Agents?
26
-
AI Agents are **systems** that enable **Large Language Models(LLMs)** to **perform actions** by extending their capabilities by giving LLMs **access to tools** and **knowledge**.
33
+
**System** - It's important to think about agents not as just a single component but as a system of many components. At the basic level, the components of an AI Agent are:
27
34
28
-
Let's break this definition into smaller parts:
35
+
-**Environment** - this is the defined space where the AI Agent is operating. For example, if we had an AI Agent that handles travel booking, the environment could be the travel booking system that the AI Agent will use to complete tasks.
36
+
-**Sensors** - Environments have information and provide feedback. AI Agents use sensors to gather and interpret this information about the current state of the environment. In the example of the Travel Booking Agent, the travel booking system can provide information such as hotel availability or flight prices.
37
+
-**Actuators** - Once the AI Agent receives the current state of the environment, it needs to determine what action to perform to change the environment based on the task at hand. For the travel booking agent, it may be to book an available room for the user.
29
38
30
-
**System** - It's important to think about agents not as just a single component but as a system of many components. At the basic level, the components of an AI Agent are:
31
-
- **Environment** - this is the defined space where the AI Agent is operating. For example, if we had an AI Agent that handles travel booking, the environment could be the travel booking system that the AI Agent will use to complete tasks.
32
-
- **Sensors** - Environments have information and provide feedback. AI Agents use sensors to gather and interpret this information about the current state of the environment. In the example of the Travel Booking Agent, the travel booking system can provide information such as hotel availability or flight prices.
33
-
- **Actuators** - Once the AI Agent receives the current state of the environment, it needs to determine what action to perform to change the environment based on the task at hand. For the travel booking agent, it may be to book an available room for the user.
39
+
**Large Language Models** - The concept of agents existed before the creation of LLM's. The advantage of building AI Agents with LLMs is their ability to interpret human language and data. This enables LLMs to interpret environmental information and define a plan to change the environment.
34
40
35
-
**Large Language Models** - The concept of agents existed before the creation of LLM's. The advantage of building AI Agents with LLMs is their ability to interpret human language and data. This enables LLMs to interpret environmental information and define a plan to change the environment.
41
+
**Perform Actions** - Outside of AI Agent systems, LLMs are limited to situations where the action is generating content or information based on a user's prompt. Inside AI Agent systems, LLMs can accomplish tasks by interpreting the user's request and what tools are available in its environment.
36
42
37
-
**Perform Actions** - Outside of AI Agent systems, LLMs are limited to situations where the action is generating content or information based on a user's prompt. Inside AI Agent systems, LLMs can accomplish tasks by interpreting the user's request and what tools are available in its environment.
43
+
**Access To Tools** - What tools the LLM has access to is defined by 1) the environment it is operating in and 2) the developer of the AI Agent. Continuing with our travel agent example, the agent's tools can be limited both by the operations available in the booking system, and/or the developer can define the agent as being only for a certain type of travel such as flights.
38
44
39
-
**Access To Tools** - What tools the LLM has access to is defined by 1) the environment it is operating in and 2) the developer of the AI Agent. Continuing with our travel agent example, the agent's tools can be limited both by the operations available in the booking system, and/or the developer can define the agent as being only for a certain type of travel such as flights.
45
+
**Knowledge** - Outside of the information provided by the environment, AI Agents can also retrieve knowledge from other systems, services, tools, and even other agents. In the case of the travel agent, this could be the information on the user's travel preferences located in a customer database.
40
46
41
-
**Knowledge** - Outside of the information provided by the environment, AI Agents can also retrieve knowledge from other systems, services, tools, and even other agents. In the case of the travel agent, this could be the information on the user's travel preferences located in a customer database.
42
47
48
+
### The different types of agents
43
49
44
-
### The different types of agents
45
-
Now that we have covered a general definition of AI Agents, let us look at some specific agent types and how they would be applied to a travel booking AI agent.
50
+
Now that we have covered a general definition of AI Agents, let us look at some specific agent types and how they would be applied to a travel booking AI agent.
@@ -55,33 +60,38 @@ Now that we have covered a general definition of AI Agents, let us look at some
55
60
|**Multi-Agent Systems (MAS)**| Agents complete tasks independently, either cooperatively or competitively. | Cooperative: Multiple agents book specific travel services such as hotels, flights, and entertainment. Competitive: Multiple agents manage and compete over a shared hotel booking calendar to book customers into the hotel. |
56
61
57
62
58
-
## When to Use AI Agents
63
+
## When to Use AI Agents
59
64
60
-
In the earlier section, we use the Travel Agent use-case to explain how the different type of agents can be used in different scenarios of travel booking.
65
+
In the earlier section, we use the Travel Agent use-case to explain how the different type of agents can be used in different scenarios of travel booking.
66
+
67
+
Let's look at when to use AI Agents more generally:
61
68
62
-
Let's look at when to use AI Agents more generally:
63
69
-**Open-Ended Problems** - allowing the LLM to determine needed steps to complete a task because it cannot alway be hardcoded into a workflow.
64
70
-**Multi-Step Processes** - tasks that require a level of complexity in which the AI Agent will need to use tools or information over multiple turns vs single shot retrieval.
65
-
-**Improvement Over Time** - tasks where the agent can improve over time by receiving feedback from either its environment or users in order to provide better utility.
71
+
-**Improvement Over Time** - tasks where the agent can improve over time by receiving feedback from either its environment or users in order to provide better utility.
72
+
73
+
We will cover more considerations of using AI Agents in the Building Trustworthy AI Agents lesson.
74
+
75
+
## Basics of Agentic Solutions
66
76
67
-
We will cover more considerations of using AI Agents in the Building Trustworthy AI Agents lesson.
68
-
## Basics of Agentic Solutions
77
+
### Agent Development
69
78
70
-
### Agent Development
71
-
Defining the tools, actions, and behaviors is the first place to start when designing an AI Agent system. In this course, we will focus on using the **Azure AI Agent Service** to define our Agents. It offers features like
72
-
- Open Model Selection. - use of OpenAI, Mistral, and Llama
73
-
- Use of Licensed Data through providers such as Tripadvisor
74
-
- Use of standardized OpenAPI 3.0 tools
79
+
Defining the tools, actions, and behaviors is the first place to start when designing an AI Agent system. In this course, we will focus on using the **Azure AI Agent Service** to define our Agents. It offers features like:
80
+
81
+
- Open Model Selection. - use of OpenAI, Mistral, and Llama
82
+
- Use of Licensed Data through providers such as Tripadvisor
83
+
- Use of standardized OpenAPI 3.0 tools
75
84
76
85
### Agentic Patterns
77
-
Communication with LLMs is through prompts. Given the semi-autonomous nature of AI Agents, it is not always possible or required to manually re-prompt the LLM after a change in the environment. We use **Agentic Patterns** that allow us to prompt the LLM over multiple steps in a more scalable and way.
78
86
79
-
This course is divided into some of the current popular Agentic patterns.
87
+
Communication with LLMs is through prompts. Given the semi-autonomous nature of AI Agents, it is not always possible or required to manually re-prompt the LLM after a change in the environment. We use **Agentic Patterns** that allow us to prompt the LLM over multiple steps in a more scalable and way.
88
+
89
+
This course is divided into some of the current popular Agentic patterns.
80
90
81
-
### Agentic Frameworks
82
-
Agentic Frameworks allow developers to implement agentic patterns through code. These frameworks offer templates, plugins, and tools for better AI Agent collaboration. With these benefits comes the ability for better observability and troubleshooting of AI Agent systems.
91
+
### Agentic Frameworks
83
92
84
-
In this course, we will explore the research-driven Autogen framework and the production ready Agent framework from Semantic Kernel.
93
+
Agentic Frameworks allow developers to implement agentic patterns through code. These frameworks offer templates, plugins, and tools for better AI Agent collaboration. With these benefits comes the ability for better observability and troubleshooting of AI Agent systems.
85
94
86
-
Go to Lesson 2 where we will explore the differences between these AI Agent frameworks and tools.
95
+
In this course, we will explore the research-driven Autogen framework and the production ready Agent framework from Semantic Kernel.
87
96
97
+
Go to Lesson 2 where we will explore the differences between these AI Agent frameworks and tools.
0 commit comments