Bing WebSearchEnginePlugin for AzureAssistantAgent #12651
Replies: 2 comments 4 replies
-
@CristinaStn Unfortunately, Bing Search and Bing Custom Search APIs will be retired on 11th August 2025. Have you tried to look at https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat? |
Beta Was this translation helpful? Give feedback.
-
Hi @CristinaStn, as @arafattehsin pointed out, there is a move to retire those Bing APIs. AzureAI Agents support the Bing Grounding tool. Their API is built on top of the Assistants v2 API, so although it's a bit different, you'll notice similarities while working it compared to the Assistant agent. Using the AzureAI Agent does require one to set up a project in Foundry. You can review the getting started items here. We do have some Bing Ground tool samples, like this one or one that uses streaming responses. I know this doesn't help in the near term because it's not available yet, but keep an eye out for:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We are using ### AzureAssistantAgent to provide specialised agents and we need to use the Web Search Engine Plugin with BingConnector as proposed https://github.com/microsoft/semantic-kernel/blob/main/python/semantic_kernel/core_plugins/web_search_engine_plugin.py.
However, I see the Bing API is transitioning to Grounding with Bing Search. We are able to create such resource and get the api key.
Adding the WebSearchEnginePlugin as plugin to our agent and asking the agent with something that requires web search, we get: "statusCode": 401, "message": "Unauthorized. Invalid or expired token."
More details:
packages\semantic_kernel\connectors\search_engine\bing_connector.py", line 92, in search
raise ServiceInvalidRequestError("Failed to get search results.") from ex
semantic_kernel.exceptions.service_exceptions.ServiceInvalidRequestError: Failed to get search results.
Q: is it because of using AzureAssistantAgent and not AzureAIAgents? if yes, what other web search plugins do you recommend?
Beta Was this translation helpful? Give feedback.
All reactions