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
# How to use Grounding with Bing Custom Search (preview)
18
18
19
+
Use this article to find step-by-step instructions and code samples for using the Grounding with Bing Custom Search tool in the Azure AI Foundry Agent Service.
Save this endpoint to an environment variable named `PROJECT_ENDPOINT`.
49
+
50
+
* The name of your Grounding with Bing Custom Search resource name. You can find it in the Azure AI Foundry portal by selecting **Management center** from the left navigation menu. Then selecting **Connected resources**.
51
+
52
+
:::image type="content" source="../../media/tools/bing/custom-resource-name.png" alt-text="A screenshot showing the Grounding with Bing Custom Search resource name. " lightbox="../../media/tools/bing/custom-resource-name.png":::
53
+
54
+
Save this resource name to an environment variable named `BING_CUSTOM_CONNECTION_NAME`.
55
+
56
+
* The name of your Grounding with Bing Custom Search configuration, which contains the URLs you want to allow or disallow. You can find it by navigating to the overview page for your resource in the [Azure portal](https://portal.azure.com/). Select **Configurations**, then select your configuration.
57
+
58
+
:::image type="content" source="../../media/tools/bing/custom-connection-name.png" alt-text="A screenshot showing the Grounding with Bing Custom Search connection name. " lightbox="../../media/tools/bing/custom-connection-name.png":::
59
+
60
+
Save this connection name to an environment variable named `BING_CUSTOM_CONNECTION_NAME`.
61
+
62
+
* The names of your model's deployment name. You can find it in **Models + Endpoints** in the left navigation menu.
63
+
64
+
:::image type="content" source="../../media/tools/model-deployment-portal.png" alt-text="A screenshot showing the model deployment screen the AI Foundry portal." lightbox="../../media/tools/model-deployment-portal.png":::
65
+
66
+
Save the name of your model deployment name as an environment variable named `MODEL_DEPLOYMENT_NAME`.
67
+
42
68
## Create a project client
43
69
44
70
Create a client object, which will contain the connection string for connecting to your AI project and other resources.
45
71
46
72
```python
47
73
import os
48
74
from azure.ai.projects import AIProjectClient
49
-
from azure.ai.projects.models import MessageRole, BingCustomSearchTool
50
75
from azure.identity import DefaultAzureCredential
76
+
from azure.ai.agents.models import BingCustomSearchTool
51
77
52
78
53
79
# Create an Azure AI Client from an endpoint, copied from your Azure AI Foundry project.
credential=DefaultAzureCredential(), # Use Azure Default Credential for authentication
61
-
api_version="latest",
86
+
credential=DefaultAzureCredential(),
62
87
)
63
88
```
64
89
65
90
66
91
## Create an Agent with the Grounding with Bing Custom Search tool enabled
67
92
68
-
To make the Grounding with Bing Custom 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).
93
+
To make the Grounding with Bing Custom Search tool available to your agent, use a connection to initialize the tool and attach it to the agent.
Copy file name to clipboardExpand all lines: articles/ai-foundry/agents/how-to/tools/deep-research-samples.md
+17-8Lines changed: 17 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,32 +6,41 @@ services: cognitive-services
6
6
manager: nitinme
7
7
ms.service: azure-ai-agent-service
8
8
ms.topic: how-to
9
-
ms.date: 06/30/2025
9
+
ms.date: 07/10/2025
10
10
author: aahill
11
11
ms.author: aahi
12
+
ms.custom: references_regions
12
13
---
13
14
14
15
# How to use the Deep Research tool
15
16
17
+
> [!NOTE]
18
+
> * The `o3-deep-research` model is available for use **only with the Deep Research tool**. It is **not** available in the Azure OpenAI Chat Completions and Responses APIs.
19
+
> * The **parent** AI Foundry project resource and the contained `o3-deep-research` model and GPT models **must exist** in the same Azure subscription and region. Supported regions are **West US** and **Norway East**.
20
+
16
21
Use this article to learn how to use the Deep Research tool with the Azure AI Projects SDK, including code examples and setup instructions.
17
22
18
23
## Prerequisites
19
24
20
-
> [!NOTE]
21
-
> * The `o3-deep-research` model and the GPT model deployments should be part of your AI Foundry project resulting in all three resources in the same Azure subscription and same region. Supported regions are **West US** and **Norway East**.
22
-
23
25
* The requirements in the [Deep Research overview](./deep-research.md).
24
-
* The Deep Research tool requires the latest prerelease versions of the `azure-ai-projects` library. You can install it with the following command:
26
+
* The Deep Research tool requires the latest prerelease versions of the `azure-ai-projects` library. First we recommend creating a [virtual environment](https://docs.python.org/3/library/venv.html) to work in:
27
+
28
+
```console
29
+
python -m venv env
30
+
# after creating the virtual environment, activate it with:
31
+
.\env\Scripts\activate
32
+
```
33
+
34
+
You can install the package with the following command:
25
35
26
36
```console
27
37
pip install --pre azure-ai-projects
28
38
```
29
39
30
40
* Your Azure AI Foundry Project endpoint.
31
41
32
-
You can find your endpoint in the main project **overview** for your project in the [Azure AI Foundry portal](https://ai.azure.com/?cid=learnDocs), under **Endpoint and keys** > **Libraries** > **Azure AI Foundry**.
33
-
34
-
:::image type="content" source="../../media/quickstart/portal-endpoint-string.png" alt-text="A screenshot showing the endpoint in the Azure AI Foundry portal." lightbox="../../media/quickstart/portal-endpoint-string.png":::
0 commit comments