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/vs-code-agents.md
+36-3Lines changed: 36 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,11 +177,44 @@ Create your agent directly on Azure AI Foundry with the following steps:
177
177
178
178
Selecting the deployed agent opens the **Agent Preferences** page in a view only mode.
179
179
180
-
- Select the **Open Yaml File** to view the yaml definition of the agent.
181
-
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.
182
182
- Select the **Open Playground** button to open the **Agent Playground**.
183
183
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 '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 authentication method** dropdown and press Enter.
210
+
211
+
:::image type="content" source="../../media/how-to/get-started-projects-vs-code/choose-agent-auth-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-auth-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:
0 commit comments