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
Copy file name to clipboardExpand all lines: articles/ai-foundry/how-to/develop/get-started-projects-vs-code.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,7 +176,7 @@ The **Model Catalog** is also available in the **Resources** section of the Azur
176
176
177
177
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.
178
178
179
-
####Deploy a model from the model catalog
179
+
### Deploy a model from the model catalog
180
180
181
181
Deploy a selected model in the model catalog using the following steps:
182
182
@@ -208,7 +208,7 @@ Deploy a selected model in the model catalog using the following steps:
208
208
209
209
:::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":::
210
210
211
-
####View deployed models
211
+
### View deployed models
212
212
213
213
In the Azure Resources Extension view, select the **caret** icon in front of the **Models** section to view the list of deployed models.
Copy file name to clipboardExpand all lines: articles/ai-foundry/how-to/develop/vs-code-agents.md
+41-20Lines changed: 41 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: azure-ai-foundry
7
7
content_well_notification:
8
8
- AI-contribution
9
9
ms.topic: how-to
10
-
ms.date: 04/03/2025
10
+
ms.date: 04/23/2025
11
11
ms.reviewer: erichen
12
12
ms.author: johalexander
13
13
author: ms-johnalex
@@ -31,11 +31,9 @@ Follow these steps to create an Azure AI Agent:
31
31
32
32
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.
33
33
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.
35
35
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.
39
37
40
38
1. Select the **+** (plus) icon next to the **Agents** subsection to create a new AI Agent.
41
39
@@ -49,7 +47,7 @@ Follow these steps to create an Azure AI Agent:
49
47
50
48
### Interact with your agent in the designer
51
49
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.
53
51
54
52
1. Perform the following tasks in the agent designer:
55
53
@@ -69,24 +67,27 @@ After you choose your save location, the Designer view will open to edit your AI
69
67
70
68
:::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":::
71
69
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.
75
71
76
-
### Show the Azure AI Agent YAML definition
72
+
### Explore the Azure AI Agent YAML definition
77
73
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:
@@ -128,7 +129,7 @@ Create a tool configuration .yaml file using the following steps:
128
129
- Azure AI Foundry Project name
129
130
- Bing connection name
130
131
131
-
1. Save the .yaml file.
132
+
1. To save the .yaml file, select **File** > **Save** in the VS Code menu bar.
132
133
133
134
#### Add the tool to the AI Agent
134
135
@@ -146,7 +147,8 @@ Add a tool to the AI Agent with the following steps:
146
147
147
148
:::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":::
148
149
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
+
150
152
151
153
### Deploy Azure AI Agents to the Azure AI Foundry Studio
152
154
@@ -177,14 +179,33 @@ Open the **Agents Playground** using the following steps:
177
179
178
180
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.
179
181
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
-
182
182
1. The **Playground** page is displayed.
183
183
184
184
:::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":::
185
185
186
186
1. Type your prompt and see the outputs.
187
187
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
+
188
209
## Cleanup resources
189
210
190
211
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.
0 commit comments