Skip to content

What is needed as a connection ID for using AI Agents with BING GROUNDING? #41486

Closed
@Arturo-Quiroga-MSFT

Description

@Arturo-Quiroga-MSFT

There is a discrepancy between the MS LEARN DOCS and the samples ion the SDK for AI AGENTS using Bing Grounding:

The MS LEARN DOCS say this:

https://learn.microsoft.com/en-us/azure/ai-services/agents/how-to/tools/bing-code-samples?pivots=python

Your connection ID needs to be in this format:

/subscriptions/<subscription_id>/resourceGroups/<resource_group_name>/providers/Microsoft.CognitiveServices/accounts/<ai_service_name>/projects/<project_name>/connections/<connection_name>

The sample code in the SDK says this:

https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-agents/samples/agents_tools/sample_agents_bing_grounding.py

The ID of the Bing connection, in the format of:

/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.MachineLearningServices/workspaces/{workspace-name}/connections/{connection-name}

Which one is correct?..

Also, can you please provide an example as to how one would go about obtaining the correct connection ID in the format required?

Thank you.

Metadata

Metadata

Assignees

Labels

AIAI ProjectsClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions