Skip to content

Commit f3626a8

Browse files
authored
Merge pull request #2326 from MicrosoftDocs/main
1/15/2025 PM Publish
2 parents c08ed94 + ec903c3 commit f3626a8

34 files changed

+252
-252
lines changed

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/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/ai-services-and-ecosystem.md

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

articles/ai-services/content-understanding/audio/overview.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: lajanuar
77
manager: nitinme
88
ms.service: azure-ai-content-understanding
99
ms.topic: overview
10-
ms.date: 11/19/2024
10+
ms.date: 01/14/2025
1111
ms.custom: ignite-2024-understanding-release
1212
---
1313

@@ -17,7 +17,7 @@ ms.custom: ignite-2024-understanding-release
1717
> [!IMPORTANT]
1818
>
1919
> * Azure AI Content Understanding is available in preview. Public preview releases provide early access to features that are in active development.
20-
> * Features, approaches, and processes may change or have constrained capabilities, prior to General Availability (GA).
20+
> * Features, approaches, and processes can change or have limited capabilities, before General Availability (GA).
2121
> * For more information, *see* [**Supplemental Terms of Use for Microsoft Azure Previews**](https://azure.microsoft.com/support/legal/preview-supplemental-terms).
2222
2323
Content Understanding audio analyzers enable transcription and diarization of conversational audio, extracting structured fields such as summaries, sentiments, and key topics. Customize an audio analyzer template to your business needs using [Azure AI Foundry portal](https://ai.azure.com/) to start generating results.
@@ -82,5 +82,7 @@ Developers using Content Understanding should review Microsoft's policies on cus
8282

8383
## Next steps
8484

85-
* Try processing your audio content using Content Understanding in [Azure AI Foundry portal](https://ai.azure.com/).
86-
* Learn more about audio [**analyzer templates**](../quickstart/use-ai-foundry.md).
85+
* Try processing your audio content using Content Understanding in [**Azure AI Foundry portal**](https://ai.azure.com/).
86+
* Learn how to analyze audio content [**analyzer templates**](../quickstart/use-ai-foundry.md).
87+
* Review code sample: [**audio content extraction**](https://github.com/Azure-Samples/azure-ai-content-understanding-python/blob/main/notebooks/content_extraction.ipynb).
88+
* Review code sample: [**analyzer templates**](https://github.com/Azure-Samples/azure-ai-content-understanding-python/tree/main/analyzer_templates).

articles/ai-services/content-understanding/document/overview.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: lajanuar
77
manager: nitinme
88
ms.service: azure-ai-content-understanding
99
ms.topic: overview
10-
ms.date: 11/19/2024
10+
ms.date: 01/14/2025
1111
ms.custom: ignite-2024-understanding-release
1212
---
1313

@@ -16,7 +16,7 @@ ms.custom: ignite-2024-understanding-release
1616
> [!IMPORTANT]
1717
>
1818
> * Azure AI Content Understanding is available in preview. Public preview releases provide early access to features that are in active development.
19-
> * Features, approaches, and processes may change or have constrained capabilities, prior to General Availability (GA).
19+
> * Features, approaches, and processes can change or have limited capabilities, before General Availability (GA).
2020
> * For more information, *see* [**Supplemental Terms of Use for Microsoft Azure Previews**](https://azure.microsoft.com/support/legal/preview-supplemental-terms).
2121
2222
Content Understanding is a cloud-based [Azure AI Service](../../what-are-ai-services.md) designed to efficiently extract content and structured fields from documents and forms. It provides a comprehensive suite of APIs and an intuitive UX experience for optimal efficiency.
@@ -71,4 +71,6 @@ Developers using Content Understanding should review Microsoft's policies on cus
7171

7272
## Next step
7373
* Try processing your document content using Content Understanding in [Azure ](https://ai.azure.com/).
74-
* Learn more about document [**analyzer templates**](../quickstart/use-ai-foundry.md).
74+
* Learn to analyze document content [**analyzer templates**](../quickstart/use-ai-foundry.md).
75+
* Review code samples: [**visual document search**](https://github.com/Azure-Samples/azure-ai-search-with-content-understanding-python/blob/main/notebooks/search_with_visual_document.ipynb).
76+
* Review code sample: [**analyzer templates**](https://github.com/Azure-Samples/azure-ai-content-understanding-python/tree/main/analyzer_templates).

0 commit comments

Comments
 (0)