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/agents/concepts/model-region-support.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ All deployments can perform the exact same inference operations, however the bil
25
25
Azure AI Foundry Agent Service supports the following Azure OpenAI models in the listed regions.
26
26
27
27
> [!NOTE]
28
-
> *[Hubbased projects](../../what-is-azure-ai-foundry.md#project-types) are limited to the following models: gpt-4o, gpt-4o-mini, gpt-4, gpt-35-turbo
28
+
> *[Hub-based projects](../../what-is-azure-ai-foundry.md#project-types) are limited to the following models: gpt-4o, gpt-4o-mini, gpt-4, gpt-35-turbo
29
29
> * For information on class A subnet support, see the setup guide on [GitHub](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/infrastructure-setup/15-private-network-standard-agent-setup).
30
30
> * The [file search tool](../how-to/tools/file-search.md) is currently unavailable in the following regions:
@@ -5,7 +5,7 @@ description: Find code samples to enable code interpreter for Azure AI Agents.
5
5
author: aahill
6
6
ms.author: aahi
7
7
manager: nitinme
8
-
ms.date: 06/30/2025
8
+
ms.date: 08/11/2025
9
9
ms.service: azure-ai-agent-service
10
10
ms.topic: how-to
11
11
ms.custom:
@@ -146,161 +146,112 @@ This ensures proper resource management and prevents unnecessary resource consum
146
146
147
147
:::zone pivot="csharp"
148
148
149
-
## Create a project client
149
+
## Create a client and agent
150
150
151
-
Create a client object, which will contain the project endpoint for connecting to your AI project and other resources.
151
+
First, set up the configuration using `appsettings.json`, create a `PersistentAgentsClient`, and then create a `PersistentAgent` with the Code Interpreter tool enabled.
## Create an Agent with the Grounding with Bing search tool enabled
167
-
168
-
To make the Grounding with Bing search tool available to your agent, use a connection to initialize the tool and attach it to the agent. You can find your connection in the **connected resources** section of your project in the [Azure AI Foundry portal](https://ai.azure.com/?cid=learnDocs).
"Hi, Agent! Draw a graph for a line with a slope of 4 and y-intercept of 9.");
199
189
```
200
190
201
-
## Wait for the agent to complete and print the output
191
+
## Create and monitor a run
202
192
203
-
First, wait for the agent to complete the run by polling its status. Observe that the model uses the Grounding with Bing Search tool to provide a response to the user's question.
193
+
Then, create a `ThreadRun` for the thread and agent. Poll the run's status until it completes or requires action.
204
194
205
195
```csharp
206
-
// Wait for the agent to finish running
196
+
ThreadRunrun=client.Runs.CreateRun(
197
+
thread.Id,
198
+
agent.Id,
199
+
additionalInstructions: "Please address the user as Jane Doe. The user has a premium account.");
200
+
207
201
do
208
202
{
209
203
Thread.Sleep(TimeSpan.FromMilliseconds(500));
210
-
run=agentClient.Runs.GetRun(thread.Id, run.Id);
204
+
run=client.Runs.GetRun(thread.Id, run.Id);
211
205
}
212
206
while (run.Status==RunStatus.Queued
213
-
||run.Status==RunStatus.InProgress);
214
-
215
-
// Confirm that the run completed successfully
216
-
if (run.Status!=RunStatus.Completed)
217
-
{
218
-
thrownewException("Run did not complete successfully, error: "+run.LastError?.Message);
219
-
}
207
+
||run.Status==RunStatus.InProgress
208
+
||run.Status==RunStatus.RequiresAction);
220
209
```
221
210
222
-
Then, retrieve and process the messages from the completed run.
211
+
## Process the results and handle files
212
+
213
+
Once the run is finished, retrieve all messages from the thread. Iterate through the messages to display text content and handle any generated image files by saving them locally and opening them.
Copy file name to clipboardExpand all lines: articles/ai-foundry/concepts/ai-resources.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: This article introduces concepts about Azure AI Foundry hubs for yo
5
5
ms.author: sgilley
6
6
author: sdgilley
7
7
ms.reviewer: deeikele
8
-
ms.date: 04/28/2025
8
+
ms.date: 08/11/2025
9
9
ms.service: azure-ai-foundry
10
10
ms.topic: concept-article
11
11
ms.custom:
@@ -20,9 +20,9 @@ ms.custom:
20
20
# Hub resources overview
21
21
22
22
> [!NOTE]
23
-
> You must use a **[!INCLUDE [hub](../includes/hub-project-name.md)]** for the features mentioned in this article. A **[!INCLUDE [fdp](../includes/fdp-project-name.md)]**is not supported. For more information, see [Project types](../what-is-azure-ai-foundry.md#which-type-of-project-do-i-need).
23
+
> You must use a **[!INCLUDE [hub](../includes/hub-project-name.md)]** for the features mentioned in this article. A **[!INCLUDE [fdp](../includes/fdp-project-name.md)]**isn't supported. For more information, see [Project types](../what-is-azure-ai-foundry.md#which-type-of-project-do-i-need).
24
24
25
-
Azure AI Hub is a resource type that is used in combination with Azure AI Foundry resource type, and is only required for selected use cases. Hub resources provides access to open-source model hosting and finetuning capabilities, as well as Azure Machine Learning capabilities, next to capabilities supported by its associated AI Foundry resource.
25
+
Azure AI Hub is a resource type that is used in combination with Azure AI Foundry resource type, and is only required for selected use cases. Hub resources provide access to open-source model hosting and fine-tuning capabilities, as well as Azure Machine Learning capabilities, next to capabilities supported by its associated AI Foundry resource.
26
26
27
27
When you create an AI Hub, an Azure AI Foundry resource is automatically provisioned. Hub resources can be used in [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs) and [Azure Machine Learning studio](https://ml.azure.com).
28
28
@@ -36,7 +36,7 @@ Hubs group one or more projects together with common settings including data acc
36
36
37
37
## Create a hub-based project
38
38
39
-
To start developing, [create a [!INCLUDE [hub-project-name](../includes/hub-project-name.md)]](../how-to/create-projects.md?pivots=hub-project). Hub-projects can be accessed in [AI Foundry Portal](https://ai.azure.com/?cid=learnDocs) to build with generative AI tools, and [ML Studio](https://ml.azure.com) to build with tools designed for custom machine learning model training.
39
+
To start developing, [create a [!INCLUDE [hub-project-name](../includes/hub-project-name.md)]](../how-to/create-projects.md?pivots=hub-project). Hub-based projects can be accessed in [AI Foundry Portal](https://ai.azure.com/?cid=learnDocs) to build with generative AI tools, and [ML Studio](https://ml.azure.com) to build with tools designed for custom machine learning model training.
40
40
41
41
## Project concepts
42
42
@@ -61,7 +61,7 @@ Projects also have specific settings that only hold for that project:
61
61
62
62
## Share configurations across projects using hub
63
63
64
-
A hub shares configurations for a group of projects. As a team lead, consider creating a hub for use cases that share the same security configurations or business domain to avoid repetitive setup and let developers create their own project against the pre-configured environment.
64
+
A hub shares configurations for a group of projects. All projects in the hub share the same security configurations or business domain.
65
65
66
66
Shared configurations managed on the hub include:
67
67
***Security** including public network access, customer-managed key encryption, and identity controls. Security settings configured on the hub automatically pass down to each project. A managed virtual network is shared between all projects that share the same hub.
@@ -74,7 +74,7 @@ Shared configurations managed on the hub include:
74
74
75
75
Hubs let you manage connections to existing Azure OpenAI or Azure AI Foundry resources, so you can use their models and selected customization capabilities in hub-based projects.
76
76
77
-
After a connection is created, model deployments are accessible via playground experiences. When you use Finetuning experiences in a hub-based project, your finetuning jobs are implicitly executed on the connected AI Foundry resource (default project context).
77
+
After a connection is created, model deployments are accessible via playground experiences. When you use Fine-tuning experiences in a hub-based project, your fine-tuning jobs are implicitly executed on the connected AI Foundry resource (default project context).
Copy file name to clipboardExpand all lines: articles/ai-foundry/concepts/fine-tuning-overview.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,11 +96,11 @@ To find steps to fine-tuning a model in AI Foundry, see [Fine-tune Models in AI
96
96
97
97
Now that you know when to use fine-tuning for your use case, you can go to Azure AI Foundry to find models available to fine-tune.
98
98
99
-
**To fine-tune an AI Foundry model using Serverless** you must have a hub/project in the region where the model is available for fine tuning. See [Region availability for models in serverless API deployment](../how-to/deploy-models-serverless-availability.md) for detailed information on model and region availability, and [How to Create a Hubbased project](../how-to/create-projects.md) to create your project.
99
+
**To fine-tune an AI Foundry model using Serverless** you must have a hub/project in the region where the model is available for fine tuning. See [Region availability for models in serverless API deployment](../how-to/deploy-models-serverless-availability.md) for detailed information on model and region availability, and [How to Create a Hub-based project](../how-to/create-projects.md) to create your project.
100
100
101
101
**To fine-tune an OpenAI model** you can use an Azure OpenAI Resource, a Foundry resource or default project, or a hub/project. GPT 4.1, 4.1-mini and 4.1-nano are available in all regions with Global Training. For regional availability, see [Regional Availability and Limits for Azure OpenAI Fine Tuning](../openai/concepts/models.md). See [Create a project for Azure AI Foundry](../how-to/create-projects.md) for instructions on creating a new project.
102
102
103
-
**To fine-tune a model using Managed Compute** you must have a hub/project and available VM quota for training and inferencing. See [Fine-tune models using managed compute (preview)](../how-to/fine-tune-managed-compute.md) for more details on how to use managed compute fine tuning, and [How to Create a Hubbased project](../how-to/create-projects.md) to create your project.
103
+
**To fine-tune a model using Managed Compute** you must have a hub/project and available VM quota for training and inferencing. See [Fine-tune models using managed compute (preview)](../how-to/fine-tune-managed-compute.md) for more details on how to use managed compute fine tuning, and [How to Create a Hub-based project](../how-to/create-projects.md) to create your project.
Copy file name to clipboardExpand all lines: articles/ai-foundry/concepts/management-center.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Use the management center to create and configure [!INCLUDE [FDP](../includes/fd
38
38
For more information, see [Create a [!INCLUDE [fdp-project-name](../includes/fdp-project-name.md)]](../how-to/create-projects.md?pivots=fdp-project)
39
39
40
40
41
-
### Manage Azure AI Foundry hubs and hubbased projects
41
+
### Manage Azure AI Foundry hubs and hub-based projects
42
42
43
43
You can also manage [!INCLUDE [hub](../includes/hub-project-name.md)]s from the management center. They're listed in the __All resources__ section, and when selected are displayed in the left menu.
Copy file name to clipboardExpand all lines: articles/ai-foundry/how-to/azure-policy.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ To control who can access your Azure AI Foundry hubs and projects, use [Microsof
70
70
|---|---|---|
71
71
| Azure AI Foundry App | cb2ff863-7f30-4ced-ab89-a00194bcf6d9 | Use to control access to the Azure AI Foundry portal. |
72
72
| Azure Machine Learning Web App | d7304df8-741f-47d3-9bc2-df0e24e2071f | Use to control access to Azure Machine Learning studio. |
73
-
| Azure Machine Learning | 0736f41a-0425-bdb5-1563eff02385 | Use to control direct access to the Azure Machine Learning API. For example, when using the SDK or REST API. Azure AI Foundry hubbased projects rely on the Azure Machine Learning API. |
73
+
| Azure Machine Learning | 0736f41a-0425-bdb5-1563eff02385 | Use to control direct access to the Azure Machine Learning API. For example, when using the SDK or REST API. Azure AI Foundry hub-based projects rely on the Azure Machine Learning API. |
These steps explain how to add an existing file, folder, or table data resource from Azure Storage to your hubbased project workspace in the Azure AI Foundry portal:
81
+
These steps explain how to add an existing file, folder, or table data resource from Azure Storage to your hub-based project workspace in the Azure AI Foundry portal:
82
82
83
83
1. Navigate to the [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs).
84
84
85
-
1. Select the hubbased project where you want to add the data.
85
+
1. Select the hub-based project where you want to add the data.
86
86
87
87
1. From the collapsible **My assets** menu on the left, select **Data + indexes**, then select **New data** as shown in this screenshot:
88
88
@@ -99,7 +99,7 @@ These steps explain how to add an existing file, folder, or table data resource
99
99
100
100
## Manage data
101
101
102
-
After you add data to your hubbased project, you can you can delete, archive, restore, tag, archive, and preview the data in the Azure AI Foundry.
102
+
After you add data to your hub-based project, you can you can delete, archive, restore, tag, archive, and preview the data in the Azure AI Foundry.
0 commit comments