Skip to content

Commit e58dc6e

Browse files
authored
Merge branch 'main' into phi-4-maas-support
2 parents 4d55c3c + 4f27b8e commit e58dc6e

File tree

145 files changed

+4030
-892
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+4030
-892
lines changed

.openpublishing.publish.config.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,6 @@
110110
"branch": "main",
111111
"branch_mapping": {}
112112
},
113-
{
114-
"path_to_root": "azureai-samples-temp",
115-
"url": "https://github.com/sdgilley/azureai-samples",
116-
"branch": "sdg-add-quickstart",
117-
"branch_mapping": {}
118-
},
119113
{
120114
"path_to_root": "azureai-samples-csharp",
121115
"url": "https://github.com/Azure-Samples/azureai-samples",

articles/ai-services/.openpublishing.redirection.ai-services.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
},
108108
{
109109
"source_path_from_root": "/articles/ai-services/cognitive-services-development-options.md",
110-
"redirect_url": "/azure/ai-services/ai-services-and-ecosystem",
110+
"redirect_url": "/azure/ai-services/what-are-ai-services",
111111
"redirect_document_id": false
112112
},
113113
{
@@ -192,7 +192,7 @@
192192
},
193193
{
194194
"source_path_from_root": "/articles/ai-services/cognitive-services-and-machine-learning.md",
195-
"redirect_url": "/azure/ai-services/ai-services-and-ecosystem",
195+
"redirect_url": "/azure/ai-services/what-are-ai-services",
196196
"redirect_document_id": true
197197
},
198198
{
@@ -809,6 +809,11 @@
809809
"source_path_from_root": "/articles/ai-services/openai/how-to/integrate-synapseml.md",
810810
"redirect_url": "/azure/ai-services/openai/overview",
811811
"redirect_document_id": true
812+
},
813+
{
814+
"source_path_from_root": "/articles/ai-services/ai-services-and-ecosystem.md",
815+
"redirect_url": "/azure/ai-services/what-are-ai-services",
816+
"redirect_document_id": false
812817
}
813818
]
814819
}

articles/ai-services/agents/faq.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
manager: nitinme
88
ms.service: azure-ai-agent-service
99
ms.topic: faq
10-
ms.date: 12/20/2024
10+
ms.date: 01/15/2025
1111
ms.author: aahi
1212
author: aahill
1313
title: Azure AI Agent Service frequently asked questions
@@ -49,7 +49,7 @@ sections:
4949
* If you've enabled the Code Interpreter tool - for example your agent calls Code Interpreter simultaneously in two different threads, this would create two Code Interpreter sessions, each of which would be charged. Each session is active by default for one hour, which means that you would only pay this fee once if your user keeps giving instructions to Code Interpreter in the same thread for up to one hour.
5050
* File search is billed based on the vector storage used.
5151
52-
For more information, see the [pricing page](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/).
52+
For more information, see the [pricing page](https://azure.microsoft.com/pricing/details/ai-foundry/).
5353
- question: |
5454
Is there any additional pricing or quota for using AI Agent Service?
5555
answer: |

articles/ai-services/agents/how-to/use-your-own-resources.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-agent-service
88
ms.topic: how-to
9-
ms.date: 12/11/2024
9+
ms.date: 01/15/2025
1010
author: fosteramanda
1111
ms.author: fosteramanda
1212
ms.custom: azure-ai-agents
@@ -17,7 +17,8 @@ ms.custom: azure-ai-agents
1717
Use this article if you want to use the Azure Agent Service with resources you already have.
1818

1919
> [!NOTE]
20-
> If you use an existing AI Services / Azure OpenAI Service resource, no model will be deployed. You can deploy a model to the resource after the agent setup is complete.
20+
> * If you use an existing AI Services / Azure OpenAI Service resource, no model will be deployed. You can deploy a model to the resource after the agent setup is complete.
21+
> * Make sure your Azure OpenAI resource and Azure AI Foundry project are in the same region.
2122
2223
## Choose basic or standard agent setup
2324

articles/ai-services/agents/includes/quickstart-csharp.md

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: aahill
44
ms.author: aahi
55
ms.service: azure-ai-agent-service
66
ms.topic: include
7-
ms.date: 11/13/2024
7+
ms.date: 01/15/2025
88
---
99

1010
| [Reference documentation](/dotnet/api/overview/azure/ai.projects-readme) | [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Projects/tests/Samples) | [Library source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Projects) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.Projects/) |
@@ -16,6 +16,8 @@ ms.date: 11/13/2024
1616
* Make sure you have the **Azure AI Developer** [RBAC role](../../../ai-studio/concepts/rbac-ai-studio.md) assigned at the appropriate level.
1717
* Install [the Azure CLI and the machine learning extension](/azure/machine-learning/how-to-configure-cli). If you have the CLI already installed, make sure it's updated to the latest version.
1818

19+
[!INCLUDE [rbac-roles](rbac-roles.md)]
20+
1921
[!INCLUDE [bicep-setup](bicep-setup.md)]
2022

2123
## Configure and run an agent
@@ -32,7 +34,8 @@ ms.date: 11/13/2024
3234
Install the .NET package to your project. For example if you're using the .NET CLI, run the following command.
3335

3436
```console
35-
dotnet add package Azure.AI.Projects --version 1.0.0-beta.1
37+
dotnet add package Azure.AI.Projects
38+
dotnet add package Azure.Identity
3639
```
3740

3841
Use the following code to create and run an agent. To run this code, you will need to create a connection string using information from your project. This string is in the format:
@@ -59,79 +62,62 @@ Set this connection string as an environment variable named `PROJECT_CONNECTION_
5962
6063
#nullable disable
6164

62-
using System;
63-
using System.Collections.Generic;
64-
using System.Threading.Tasks;
65-
using Azure.Core.TestFramework;
66-
using NUnit.Framework;
65+
using Azure.Identity;
6766

6867
namespace Azure.AI.Projects.Tests;
6968

70-
public partial class Sample_Agent_Basics : SamplesBase<AIProjectsTestEnvironment>
69+
public class Sample_Agent
7170
{
72-
[Test]
73-
public async Task BasicExample()
71+
static async Task Main()
7472
{
7573
var connectionString = Environment.GetEnvironmentVariable("AZURE_AI_CONNECTION_STRING");
7674

7775
AgentsClient client = new AgentsClient(connectionString, new DefaultAzureCredential());
78-
#endregion
7976

8077
// Step 1: Create an agent
81-
#region Snippet:OverviewCreateAgent
8278
Response<Agent> agentResponse = await client.CreateAgentAsync(
83-
model: "gpt-4o",
84-
name: "Math Tutor",
85-
instructions: "You are a personal math tutor. Write and run code to answer math questions.",
79+
model: "gpt-4o-mini",
80+
name: "My Agent",
81+
instructions: "You are a helpful agent.",
8682
tools: new List<ToolDefinition> { new CodeInterpreterToolDefinition() });
8783
Agent agent = agentResponse.Value;
88-
#endregion
8984

9085
// Intermission: agent should now be listed
9186
9287
Response<PageableList<Agent>> agentListResponse = await client.GetAgentsAsync();
9388

9489
//// Step 2: Create a thread
95-
#region Snippet:OverviewCreateThread
9690
Response<AgentThread> threadResponse = await client.CreateThreadAsync();
9791
AgentThread thread = threadResponse.Value;
98-
#endregion
9992

10093
// Step 3: Add a message to a thread
101-
#region Snippet:OverviewCreateMessage
10294
Response<ThreadMessage> messageResponse = await client.CreateMessageAsync(
10395
thread.Id,
10496
MessageRole.User,
10597
"I need to solve the equation `3x + 11 = 14`. Can you help me?");
10698
ThreadMessage message = messageResponse.Value;
107-
#endregion
10899

109100
// Intermission: message is now correlated with thread
110101
// Intermission: listing messages will retrieve the message just added
111102
112103
Response<PageableList<ThreadMessage>> messagesListResponse = await client.GetMessagesAsync(thread.Id);
113-
Assert.That(messagesListResponse.Value.Data[0].Id == message.Id);
104+
//Assert.That(messagesListResponse.Value.Data[0].Id == message.Id);
114105
115106
// Step 4: Run the agent
116-
#region Snippet:OverviewCreateRun
117107
Response<ThreadRun> runResponse = await client.CreateRunAsync(
118108
thread.Id,
119109
agent.Id,
120-
additionalInstructions: "Please address the user as Jane Doe. The user has a premium account.");
110+
additionalInstructions: "");
121111
ThreadRun run = runResponse.Value;
122-
#endregion
123112

124-
#region Snippet:OverviewWaitForRun
125113
do
126114
{
127115
await Task.Delay(TimeSpan.FromMilliseconds(500));
128116
runResponse = await client.GetRunAsync(thread.Id, runResponse.Value.Id);
129117
}
130118
while (runResponse.Value.Status == RunStatus.Queued
131119
|| runResponse.Value.Status == RunStatus.InProgress);
132-
#endregion
133120

134-
#region Snippet:OverviewListUpdatedMessages
135121
Response<PageableList<ThreadMessage>> afterRunMessagesResponse
136122
= await client.GetMessagesAsync(thread.Id);
137123
IReadOnlyList<ThreadMessage> messages = afterRunMessagesResponse.Value.Data;
@@ -153,7 +139,6 @@ public partial class Sample_Agent_Basics : SamplesBase<AIProjectsTestEnvironment
153139
Console.WriteLine();
154140
}
155141
}
156-
#endregion
157142
}
158143
}
159144
```

articles/ai-services/agents/includes/quickstart-python-openai.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ ms.date: 11/13/2024
1818
* You need the **Cognitive Services OpenAI User** role assigned to use the Azure AI Services resource.
1919
* Install [the Azure CLI and the machine learning extension](/azure/machine-learning/how-to-configure-cli). If you have the CLI already installed, make sure it's updated to the latest version.
2020

21+
[!INCLUDE [rbac-roles](rbac-roles.md)]
22+
2123
[!INCLUDE [bicep-setup](bicep-setup.md)]
2224

2325
## Configure and run an agent

articles/ai-services/agents/includes/quickstart-python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ ms.date: 11/13/2024
1717
* Make sure you have the **Azure AI Developer** [RBAC role](../../../ai-studio/concepts/rbac-ai-studio.md) assigned at the appropriate level.
1818
* Install [the Azure CLI and the machine learning extension](/azure/machine-learning/how-to-configure-cli). If you have the CLI already installed, make sure it's updated to the latest version.
1919

20+
[!INCLUDE [rbac-roles](rbac-roles.md)]
21+
2022
[!INCLUDE [bicep-setup](bicep-setup.md)]
2123

2224
## Configure and run an agent
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
manager: nitinme
3+
author: aahill
4+
ms.author: aahi
5+
ms.service: azure-ai-agent-service
6+
ms.topic: include
7+
ms.date: 11/13/2024
8+
---
9+
10+
### RBAC roles
11+
12+
Make sure both developers and end users have the following permissions:
13+
14+
* `Microsoft.MachineLearningServices/workspaces/agents/read`
15+
* `Microsoft.MachineLearningServices/workspaces/agents/action`
16+
* `Microsoft.MachineLearningServices/workspaces/agents/delete`
17+
18+
If you want to create custom permissions, make sure they have:
19+
20+
* `agents/*/read`
21+
* `agents/*/action`
22+
* `agents/*/delete`

articles/ai-services/agents/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: aahill
77
ms.author: aahi
88
ms.service: azure-ai-agent-service
99
ms.topic: overview
10-
ms.date: 12/11/2024
10+
ms.date: 01/10/2025
1111
ms.custom: azure-ai-agents
1212
---
1313

@@ -69,7 +69,7 @@ Both services enable you to build agents using the same API and SDKs, but if you
6969

7070
**Flexible model selection** - Create agents that use Azure OpenAI models, or others such as Llama 3, Mistral and Cohere. Choose the most suitable model to meet your business needs.
7171

72-
**Extensive data integrations** - Ground your AI agents with relevant, secure enterprise knowledge from various data sources, such as Microsoft Bing, Microsoft SharePoint, Microsoft Fabric, Azure AI Search, and other APIs.
72+
**Extensive data integrations** - Ground your AI agents with relevant, secure enterprise knowledge from various data sources, such as Microsoft Bing, Azure AI Search, and other APIs.
7373

7474
**Enterprise grade security** - Ensure data privacy and compliance with secure data handling, keyless authentication, and no public egress.
7575

articles/ai-services/ai-services-and-ecosystem.md

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)