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/app-service/tutorial-ai-agentic-web-app-semantic-kernel-foundry-dotnet.md
+21-22Lines changed: 21 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,17 +21,31 @@ If your web application already has useful features, like shopping, hotel bookin
21
21
### [Semantic Kernel](#tab/semantickernel)
22
22
23
23
24
-
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry/semantic-kernel-agent.png" alt-text="Screenshot of a chat completion session with a semantic kernel agent.":::
24
+
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry-dotnet/semantic-kernel-agent.png" alt-text="Screenshot of a chat completion session with a semantic kernel agent.":::
25
25
26
26
### [Azure AI Foundry Agent Service](#tab/aifoundry)
27
27
28
-
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry/ai-foundry-agent.png" alt-text="Screenshot of a chat completion session with an Azure AI Foundry agent.":::
28
+
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry-dotnet/ai-foundry-agent.png" alt-text="Screenshot of a chat completion session with an Azure AI Foundry agent.":::
29
29
30
30
-----
31
31
32
+
Both Semantic Kernel and Azure AI Foundry Agent Service enable you to build agentic web applications with AI-driven capabilities. The following table shows some of the some of the considerations and trade-offs:
33
+
34
+
| Consideration | Semantic Kernel | Azure AI Foundry Agent Service |
> * Convert existing app functionality into a plugin for Semantic Kernel.
45
+
> * Add the plugin to a Semantic Kernel agent and use it in a web app.
46
+
> * Convert existing app functionaltiy into an OpenAPI endpoint for Azure AI Foundry Agent Service.
47
+
> * Call an Azure AI Foundry agent in a web app.
48
+
- Assign the required permissions for managed identity connectivity.
35
49
36
50
## Prerequisites
37
51
@@ -139,13 +153,13 @@ The OpenAPI code is defined in *Program.cs*. For example, the "get tasks" API de
139
153
140
154
1. Select **Azure OpenAI** and copy the URL in **Azure OpenAI endpoint** for later.
141
155
142
-
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry/foundry-project-endpoints.png" alt-text="Screenshot showing how to copy the OpenAI endpoint and the foundry project endpoint in the foundry portal.":::
156
+
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry-dotnet/foundry-project-endpoints.png" alt-text="Screenshot showing how to copy the OpenAI endpoint and the foundry project endpoint in the foundry portal.":::
143
157
144
158
1. From the left menu, select **Agents**, then select the default agent.
145
159
146
160
1. From the **Setup** pane, copy **Agent ID**, as well as the model name in **Deployment**.
147
161
148
-
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry/foundry-agent-id-model.png" alt-text="Screenshot showing how to copy the agent ID and the model deployment name in the foundry portal.":::
162
+
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry-dotnet/foundry-agent-id-model.png" alt-text="Screenshot showing how to copy the agent ID and the model deployment name in the foundry portal.":::
149
163
150
164
1. In the **Setup** pane, add an action with the OpenAPI spec tool. Use the OpenAPI schema that you get from the deployed web app and **anonymous** authentication. For detailed steps, see [How to use the OpenAPI spec tool](/azure/ai-foundry/agents/how-to/tools/openapi-spec-samples?pivots=portal).
151
165
@@ -159,7 +173,7 @@ The OpenAPI code is defined in *Program.cs*. For example, the "get tasks" API de
159
173
160
174
1. At the upper right corner of the foundry portal, select the name of the resource, then select **Resource Group** to open it in the Azure portal.
161
175
162
-
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry/go-to-azure-portal.png" alt-text="Screenshot showing how to quickly go to the resource group view for the foundry resource in the Azure portal.":::
176
+
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry-dotnet/go-to-azure-portal.png" alt-text="Screenshot showing how to quickly go to the resource group view for the foundry resource in the Azure portal.":::
163
177
164
178
1. Add a role for each of the two resources for the App Service app's manage identity using the following table:
165
179
@@ -213,11 +227,11 @@ The OpenAPI code is defined in *Program.cs*. For example, the "get tasks" API de
213
227
### [Semantic Kernel](#tab/semantickernel)
214
228
215
229
216
-
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry/semantic-kernel-agent.png" alt-text="Screenshot of a chat completion session with a semantic kernel agent.":::
230
+
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry-dotnet/semantic-kernel-agent.png" alt-text="Screenshot of a chat completion session with a semantic kernel agent.":::
217
231
218
232
### [Azure AI Foundry Agent Service](#tab/aifoundry)
219
233
220
-
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry/ai-foundry-agent.png" alt-text="Screenshot of a chat completion session with an Azure AI Foundry agent.":::
234
+
:::image type="content" source="media/tutorial-ai-agentic-web-app-semantic-kernel-foundry-dotnet/ai-foundry-agent.png" alt-text="Screenshot of a chat completion session with an Azure AI Foundry agent.":::
221
235
222
236
-----
223
237
@@ -231,21 +245,6 @@ azd down --purge
231
245
232
246
Sind the AZD template doesn't include the Azure AI Foundry resources, you need to delete them manually if you want.
233
247
234
-
## Frequently asked questions
235
-
236
-
---
237
-
238
-
### How to choose between Semantic Kernel and Azure AI Foundry Agent Service?
239
-
240
-
Both Semantic Kernel and Azure AI Foundry Agent Service enable you to build agentic web applications with AI-driven capabilities. The following table shows some of the some of the considerations and trade-offs:
241
-
242
-
| Consideration | Semantic Kernel | Azure AI Foundry Agent Service |
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-ai-integrate-azure-ai-agent-dotnet.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@ ms.custom:
10
10
ms.collection: ce-skilling-ai-copilot
11
11
---
12
12
13
-
# Add an App Service app as a OpenAPI tool in Azure AI Foundry Agent Service (.NET)
13
+
# Add an App Service app as a tool in Azure AI Foundry Agent Service (.NET)
14
14
15
15
In this tutorial, you'll learn how to expose your app's functionality through OpenAPI, add it as a tool to Azure AI Foundry Agent Service, and interact with your app using natural language in the agents playground.
16
16
17
17
If your web application already has useful features, like shopping, hotel booking, or data management, it's easy to make those capabilities available to an AI agent in Azure AI Foundry Agent Service. By simply adding an OpenAPI schema to your app, you enable the agent to understand and use your app's capabilities when it responds to users' prompts. This means anything your app can do, your AI agent can do too, with minimal effort beyond creating an OpenAPI endpoint for your app. In this tutorial, you start with a simple to-do list app. By the end, you'll be able to create, update, and manage tasks with an agent through conversational AI.
18
18
19
-
:::image type="content" source="media/tutorial-ai-integrate-azure-ai-agent-openapi-dotnet/agents-playground.png" alt-text="Screenshot showing the agents playground in the middle of a conversation that takes actions by using the OpenAPI tool.":::
19
+
:::image type="content" source="media/tutorial-ai-integrate-azure-ai-agent-dotnet/agents-playground.png" alt-text="Screenshot showing the agents playground in the middle of a conversation that takes actions by using the OpenAPI tool.":::
20
20
21
21
> [!div class="checklist"]
22
22
> * Add OpenAPI functionality to your web app.
@@ -191,7 +191,7 @@ At a minimum, open the [sample application](https://github.com/Azure-Samples/msd
191
191
- Create a task called "Come up with three lettuce jokes."
192
192
- Change that to "Come up with three knock-knock jokes."
193
193
194
-
:::image type="content" source="media/tutorial-ai-integrate-azure-ai-agent-openapi-dotnet/agents-playground.png" alt-text="Screenshot showing the agents playground in the middle of a conversation that takes actions by using the OpenAPI tool.":::
194
+
:::image type="content" source="media/tutorial-ai-integrate-azure-ai-agent-dotnet/agents-playground.png" alt-text="Screenshot showing the agents playground in the middle of a conversation that takes actions by using the OpenAPI tool.":::
0 commit comments