Skip to content

Commit 4cfc14a

Browse files
committed
Updated agents article
1 parent 23227a7 commit 4cfc14a

14 files changed

+43
-22
lines changed

articles/ai-foundry/how-to/develop/get-started-projects-vs-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ The **Model Catalog** is also available in the **Resources** section of the Azur
176176

177177
The **Model Catalog** is also available in the **Tools** section of the Azure AI Foundry Extension view. Double-click on the **Model Catalog** link to open the Model Catalog.
178178

179-
#### Deploy a model from the model catalog
179+
### Deploy a model from the model catalog
180180

181181
Deploy a selected model in the model catalog using the following steps:
182182

@@ -208,7 +208,7 @@ Deploy a selected model in the model catalog using the following steps:
208208

209209
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/deployed-model.png" alt-text="Screenshot of the newly deployed model under the Models section." lightbox="../../media/how-to/get-started-projects-vs-code/deployed-model.png":::
210210

211-
#### View deployed models
211+
### View deployed models
212212

213213
In the Azure Resources Extension view, select the **caret** icon in front of the **Models** section to view the list of deployed models.
214214

articles/ai-foundry/how-to/develop/vs-code-agents.md

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: azure-ai-foundry
77
content_well_notification:
88
- AI-contribution
99
ms.topic: how-to
10-
ms.date: 04/03/2025
10+
ms.date: 04/23/2025
1111
ms.reviewer: erichen
1212
ms.author: johalexander
1313
author: ms-johnalex
@@ -31,11 +31,9 @@ Follow these steps to create an Azure AI Agent:
3131

3232
1. First, finish the [Get Started](./get-started-projects-vs-code.md#get-started) section to sign in to your Azure resources and set your default project.
3333

34-
1. [Deploy a model](./get-started-projects-vs-code.md#deploy-a-model) to use with your agent.
34+
1. [Deploy a model](./get-started-projects-vs-code.md#deploy-a-model-from-the-model-catalog) to use with your agent.
3535

36-
1. Select your AI Foundry project in the Azure Resources sidebar.
37-
38-
1. Under your project, find the **Agents** section.
36+
1. In the Azure AI Foundry Extension view, find the **Resources** ection.
3937

4038
1. Select the **+** (plus) icon next to the **Agents** subsection to create a new AI Agent.
4139

@@ -49,7 +47,7 @@ Follow these steps to create an Azure AI Agent:
4947

5048
### Interact with your agent in the designer
5149

52-
After you choose your save location, the Designer view will open to edit your AI Agent.
50+
After you choose your save location, both the agent .yaml file and the Designer view will open to edit your AI Agent.
5351

5452
1. Perform the following tasks in the agent designer:
5553

@@ -69,24 +67,27 @@ After you choose your save location, the Designer view will open to edit your AI
6967

7068
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/agent-designer.png" alt-text="Screenshot of the Agent designer that enables you to edit and interact with your AI Agent." lightbox="../../media/how-to/get-started-projects-vs-code/agent-designer.png":::
7169

72-
1. Select the **Save locally** button in the bottom-center of the **Agent Preferences** screen to store your agent configuration.
73-
74-
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/save-agent-locally.png" alt-text="Screenshot of the Agent designer with the 'Save locally' button highlighted." lightbox="../../media/how-to/get-started-projects-vs-code/save-agent-locally.png":::
70+
1. To save the .yaml file, select **File** > **Save** in the VS Code menu bar.
7571

76-
### Show the Azure AI Agent YAML definition
72+
### Explore the Azure AI Agent YAML definition
7773

78-
Select the **Open Yaml File** on the top-right of the designer to open your AI Agent .yaml file. This file contains the details and setup information for your agent, similar to the following .yaml file example:
74+
Your AI Agent .yaml file was opened at the same time the designer was. This file contains the details and setup information for your agent, similar to the following .yaml file example:
7975

8076
```yml
77+
# yaml-language-server: $schema=https://aka.ms/ai-foundry-vsc/agent/1.0.0
8178
version: 1.0.0
82-
name: BingAgent
79+
name: my-agent
8380
description: Description of the agent
84-
metadata:
85-
author: Author Name
86-
tag: basic
8781
id: ''
82+
metadata:
83+
authors:
84+
- author1
85+
- author2
86+
tags:
87+
- tag1
88+
- tag2
8889
model:
89-
id: ''
90+
id: 'gpt-4o-1'
9091
options:
9192
temperature: 1
9293
top_p: 1
@@ -128,7 +129,7 @@ Create a tool configuration .yaml file using the following steps:
128129
- Azure AI Foundry Project name
129130
- Bing connection name
130131

131-
1. Save the .yaml file.
132+
1. To save the .yaml file, select **File** > **Save** in the VS Code menu bar.
132133

133134
#### Add the tool to the AI Agent
134135

@@ -146,7 +147,8 @@ Add a tool to the AI Agent with the following steps:
146147

147148
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/agent-added-tool.png" alt-text="Screenshot of the Agent designer TOOL section with the new tool highlighted." lightbox="../../media/how-to/get-started-projects-vs-code/agent-added-tool.png":::
148149

149-
1. Select the **Save locally** button in the bottom-center of the **Agent Preferences** screen to store your agent configuration.
150+
1. To save the .yaml file, select **File** > **Save** in the VS Code menu bar.
151+
150152

151153
### Deploy Azure AI Agents to the Azure AI Foundry Studio
152154

@@ -177,14 +179,33 @@ Open the **Agents Playground** using the following steps:
177179

178180
1. Right-click on your deployed agent and select the **Open Playground** option This action starts a thread with your agent and let you send messages.
179181

180-
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/agent-open-playground.png" alt-text="Screenshot of the agent context menu with the 'Open Playground' option highlighted." lightbox="../../media/how-to/get-started-projects-vs-code/agent-open-playground.png":::
181-
182182
1. The **Playground** page is displayed.
183183

184184
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/agent-display-playground.png" alt-text="Screenshot of the **Agents Playground** page in VS Code." lightbox="../../media/how-to/get-started-projects-vs-code/agent-display-playground.png":::
185185

186186
1. Type your prompt and see the outputs.
187187

188+
## Explore Threads
189+
190+
The **Threads** subsection displays the threads created a during a run with your agent. In the Azure Resources Extension view, select the **caret** icon in front of the **Threads** subsection to view the list of threads.
191+
192+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/thread-list.png" alt-text="Screenshot of the threads in the Threads subsection." lightbox="../../media/how-to/get-started-projects-vs-code/thread-list.png":::
193+
194+
195+
196+
### View thread details
197+
198+
Select a thread to view its details. The **Thread Details** page is displayed.
199+
200+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/thread-view.png" alt-text="Screenshot of the threads in the Threads subsection." lightbox="../../media/how-to/get-started-projects-vs-code/thread-view.png":::
201+
202+
- A **Thread** is a conversation session between an agent and a user. Threads store **Messages** and automatically handle truncation to fit content into a model’s context.
203+
204+
- A **Message** is a single interaction between the agent and the user. Messages can include text, images, and other files. Messages are stored as a list on the Thread.
205+
206+
- A **Run** is a single execution of an agent. Each run can have multiple threads, and each thread can have multiple messages. The agent uses its configuration and Thread’s Messages to perform tasks by calling models and tools. As part of a Run, the agent appends Messages to the Thread.
207+
208+
188209
## Cleanup resources
189210

190211
The Azure resources that you created in this article are billed to your Azure subscription. If you don't expect to need these resources in the future, delete them to avoid incurring more charges.
34.3 KB
Loading
-4.77 KB
Loading
-8.94 KB
Loading
-1.16 KB
Loading
95.3 KB
Loading
19.9 KB
Loading
70.9 KB
Loading
-1.96 KB
Loading

0 commit comments

Comments
 (0)