Skip to content

Commit 92d65b4

Browse files
Merge pull request #5953 from ms-johnalex/aif-vsc-upd-070925
AI Foundry VS Code extension July 3 update
2 parents 359feac + 055d39e commit 92d65b4

19 files changed

+46
-23
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ content_well_notification:
88
- AI-contribution
99
ai-usage: ai-assisted
1010
ms.topic: how-to
11-
ms.date: 05/20/2025
11+
ms.date: 07/10/2025
1212
ms.reviewer: erichen
1313
ms.author: johalexander
1414
author: ms-johnalex

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

Lines changed: 45 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ content_well_notification:
88
- AI-contribution
99
ai-usage: ai-assisted
1010
ms.topic: how-to
11-
ms.date: 05/07/2025
11+
ms.date: 07/10/2025
1212
ms.reviewer: erichen
1313
ms.author: johalexander
1414
author: ms-johnalex
@@ -42,12 +42,6 @@ Follow these steps to create an Azure AI Agent:
4242

4343
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/select-agent-plus.png" alt-text="Screenshot of the plus sign next to the Agents subsection.":::
4444

45-
1. In the **Save As** dialog box, select a directory and enter a name for your new AI Agent .yaml file.
46-
47-
1. Select the **Save Agent File** button to save your AI Agent file.
48-
49-
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/enter-agent-name.png" alt-text="Screenshot of the VS Code Save As dialog to save the agent yaml file." lightbox="../../media/how-to/get-started-projects-vs-code/enter-agent-name.png":::
50-
5145
### Interact with your agent in the designer
5246

5347
After you choose your save location, both the agent .yaml file and the Designer view will open to edit your AI Agent.
@@ -56,11 +50,7 @@ After you choose your save location, both the agent .yaml file and the Designer
5650

5751
1. Enter a name for your agent in the prompt.
5852

59-
1. Enter your model deployment name. The deployment name you chose when you deployed an existing model.
60-
61-
> [!TIP]
62-
> The model deployment name must be the exact name you chose for the model you deployed in your Azure AI Foundry project. In the following image, `gpt-4o-1` is the model deployment name you chose at deployment. `gpt-4o` is the model name.
63-
> :::image type="content" source="../../media/how-to/get-started-projects-vs-code/deployment-model-name.png" alt-text="Screenshot of the highlighted deployment model names, an arrow between them, and the model name highlighted in a different color." lightbox="../../media/how-to/get-started-projects-vs-code/deployment-model-name.png":::
53+
1. Select your model deployment name from the dropdown. The deployment name is what you chose when you deployed an existing model.
6454

6555
1. Configure the following fields. The **ID** is generated by the extension:
6656

@@ -115,7 +105,7 @@ The following tools are available:
115105
- [Microsoft Fabric](/azure/ai-services/agents/how-to/tools/fabric?pivots=portal)
116106
117107
- Action tools:
118-
- [Azure AI Agents function calling](/azure/ai-services/agents/how-to/tools/function-calling?pivots=python)
108+
- [Azure AI Agents function calling](/azure/ai-services/agents/how-to/tools/function-calling?pivots=python)
119109
120110
Azure AI Foundry Agent Service has a set of knowledge and action tools that you can use to interact with your data sources, such as:
121111
- [Grounding with Bing search](/azure/ai-services/agents/how-to/tools/bing-grounding?tabs=python&pivots=overview)
@@ -156,7 +146,7 @@ Create a tool configuration .yaml file using the following steps:
156146

157147
Add a tool to the AI Agent with the following steps:
158148

159-
1. Select the **+** (plus) icon next to the **TOOL** section in the designer.
149+
1. Select the **Add tool** button in the top-right corner of the **TOOL** section in the designer to show the dropdown. Choose the tool you want to add.
160150

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

@@ -168,14 +158,14 @@ Add a tool to the AI Agent with the following steps:
168158

169159
:::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":::
170160

171-
1. To save the .yaml file, select **File** > **Save** in the VS Code menu bar.
161+
1. To save the tool .yaml file, select **File** > **Save** in the VS Code menu bar.
172162

173163

174-
### Deploy Azure AI Agents to the Azure AI Foundry Studio
164+
### Create Azure AI Agents on the Azure AI Foundry Studio
175165

176-
Deploy your agent directly to Azure AI Foundry with the following steps:
166+
Create your agent directly on Azure AI Foundry with the following steps:
177167

178-
1. Select the **Deploy to Azure AI Foundry** button in the bottom-left of the designer.
168+
1. Select the **Create on Azure AI Foundry** button in the bottom-left of the designer.
179169

180170
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/agent-deploy.png" alt-text="Screenshot of the Agent designer with the 'Deploy to Azure AI Foundry' button highlighted." lightbox="../../media/how-to/get-started-projects-vs-code/agent-deploy.png":::
181171

@@ -187,11 +177,44 @@ Deploy your agent directly to Azure AI Foundry with the following steps:
187177

188178
Selecting the deployed agent opens the **Agent Preferences** page in a view only mode.
189179

190-
- Select the **Open Yaml File** to view the yaml definition of the agent.
191-
180+
- Select the **Edit Agent** button to view the Agent designer and yaml definition of the agent for editing.
181+
- Select the **Open Code File** button to create a sample code file that uses the agent.
192182
- Select the **Open Playground** button to open the **Agent Playground**.
193183

194-
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/deployed-agent-view.png" alt-text="Screenshot of the Agent Preferences page with the 'Open Yaml File' and 'Open Playground' buttons highlighted." lightbox="../../media/how-to/get-started-projects-vs-code/deployed-agent-view.png":::
184+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/deployed-agent-view.png" alt-text="Screenshot of the Agent Preferences page with the 'Edit Agent', 'Open Code File', and 'Open Playground' buttons highlighted." lightbox="../../media/how-to/get-started-projects-vs-code/deployed-agent-view.png":::
185+
186+
### Edit and update the deployed AI Agent
187+
188+
To edit the deployed agent, select the **Edit Agent** button in the **Agent Preferences** page. The agent designer opens with the agent .yaml file.
189+
Edit the agent's configuration, such as the model, tools, and instructions. After you finish editing, select the **Update on Azure AI Foundry** button in the lower left corner to save your changes.
190+
191+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/update-agent.png" alt-text="Screenshot of the Agent Preferences page with the 'Update on Azure AI Foundry' button highlighted." lightbox="../../media/how-to/get-started-projects-vs-code/update-agent.png":::
192+
193+
### Explore the agent sample code
194+
195+
Create a sample code file using the following steps.
196+
197+
1. Right-click on your deployed agent and select the **Open Code File** option or select the **Open Code File** button in the **Agent Preferences** page.
198+
199+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/open-agent-code-file.png" alt-text="Screenshot of the agent context menu with the Open Code file option highlighted." lightbox="../../media/how-to/get-started-projects-vs-code/open-agent-code-file.png":::
200+
201+
1. In the top center, select your preferred SDK to use in the **Choose preferred SDK** dropdown and press Enter.
202+
203+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/choose-agent-preferred-sdk.png" alt-text="Screenshot of the Choose preferred SDK dropdown for agent code file selection." lightbox="../../media/how-to/get-started-projects-vs-code/choose-agent-preferred-sdk.png":::
204+
205+
1. In the top center, select your preferred language to use in the **Choose language** dropdown and press Enter.
206+
207+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/choose-agent-language.png" alt-text="Screenshot of the Choose language dropdown for agent code file selection." lightbox="../../media/how-to/get-started-projects-vs-code/choose-agent-language.png":::
208+
209+
1. In the top center, select your preferred authentication method to use in the **Choose auth method** dropdown and press Enter.
210+
211+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/choose-agent-authn-method.png" alt-text="Screenshot of the Choose authentication method dropdown for agent code file selection." lightbox="../../media/how-to/get-started-projects-vs-code/choose-agent-authn-method.png":::
212+
213+
#### Explore the sample code file
214+
215+
This Python sample code file that demonstrates a basic call to interact with the agent through the AI Foundry projects API:
216+
217+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/sample-agent-code-file.png" alt-text="Screenshot of generated agent sample code file." lightbox="../../media/how-to/get-started-projects-vs-code/sample-agent-code-file.png":::
195218

196219

197220
### Interact with Agents using agents playground
@@ -204,7 +227,7 @@ Open the **Agents Playground** using the following steps:
204227

205228
1. The **Playground** page is displayed.
206229

207-
:::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":::
230+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/agent-display-playground.png" alt-text="Screenshot of the **Agents Playground** VS Code page." lightbox="../../media/how-to/get-started-projects-vs-code/agent-display-playground.png":::
208231

209232
1. Type your prompt and see the outputs. The **Grounding with Bing search** tool is used to search the web for information. The agent uses the model and tools you configured in the agent designer. The source of the information is displayed in the **Agent Annotations** section, highlighted in the following image.
210233

86.2 KB
Loading
7.08 KB
Loading
-32.5 KB
Loading
30.8 KB
Loading
144 KB
Loading
6.31 KB
Loading
6.93 KB
Loading
7.77 KB
Loading

0 commit comments

Comments
 (0)