Skip to content

Commit 5818be8

Browse files
committed
Ran the pre-commit before commit the changes
1 parent 5607dc1 commit 5818be8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scenarios/Agents/samples/bing-search/bing-python.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,19 @@
2626
import os
2727
from azure.ai.projects import AIProjectClient
2828
from azure.identity import DefaultAzureCredential
29-
from azure.ai.projects.models import BingGroundingTool
29+
from azure.ai.projects import BingGroundingTool
3030

3131

3232
# Create an Azure AI Client from a connection string, copied from your AI Studio project.
3333
# At the moment, it should be in the format "<HostName>;<AzureSubscriptionId>;<ResourceGroup>;<HubName>"
3434
# Customer needs to login to Azure subscription via Azure CLI and set the environment variables
35-
35+
# connection string should be copied from the project in AI Studio
3636
project_client = AIProjectClient.from_connection_string(
3737
credential=DefaultAzureCredential(),
3838
conn_str=os.environ["PROJECT_CONNECTION_STRING"],
3939
)
4040

41-
bing_connection = project_client.connections.get(
42-
connection_name=os.environ["CONNECTION_NAME"]
43-
)
41+
bing_connection = project_client.connections.get(connection_name=os.environ["CONNECTION_NAME"])
4442
conn_id = bing_connection.id
4543

4644
print(conn_id)
@@ -55,7 +53,7 @@
5553
name="my-assistant",
5654
instructions="You are a helpful assistant",
5755
tools=bing.definitions,
58-
headers={"x-ms-enable-preview": "true"}
56+
headers={"x-ms-enable-preview": "true"},
5957
)
6058
print(f"Created agent, ID: {agent.id}")
6159

0 commit comments

Comments
 (0)