File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sdk/ai/azure-ai-agents/samples/agents_tools Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 30
30
Set this environment variables with your own values:
31
31
PROJECT_ENDPOINT - The Azure AI Project endpoint, as found in the Overview
32
32
page of your Azure AI Foundry portal.
33
- OPENAPI_CONNECTION_ID - the connection ID for the OpenAPI connection, taken from Azure AI Foundry.
33
+ PROJECT_OPENAPI_CONNECTION_NAME - the connection name for the OpenAPI connection, taken from Azure AI Foundry.
34
34
MODEL_DEPLOYMENT_NAME - name of the model deployment in the project to use Agents against
35
35
"""
36
36
48
48
)
49
49
50
50
model_name = os .environ ["MODEL_DEPLOYMENT_NAME" ]
51
- connection_id = os .environ ["OPENAPI_CONNECTION_ID" ]
51
+ connection_id = project_client . connections . get ( os .environ ["PROJECT_OPENAPI_CONNECTION_NAME" ]). id
52
52
53
53
print (connection_id )
54
54
You can’t perform that action at this time.
0 commit comments