
Explanation:
Box 1: BingGroundingTool
Grounding with Bing Search allows your Azure AI Agents to incorporate real-time public web data when generating responses. You need to create a Grounding with Bing Search resource, and then connect this resource to your Azure AI Agents. When a user sends a query, Azure AI Agents decide if Grounding with Bing Search should be leveraged or not. If so, it will leverage Bing to search over public web data and return relevant chunks. Lastly, Azure AI Agents will use returned chunks to generate a response.
Box 2: tools=
Create an Agent with the Grounding with Bing search tool enabled
To make the Grounding with Bing search tool available to your agent, use a connection to initialize the tool and attach it to the agent.
Reference:
https://learn.microsoft.com/en-us/azure/ai-services/agents/how-to/tools/bing-grounding
https://learn.microsoft.com/en-us/azure/ai-services/agents/how-to/tools/bing-code- samples?pivots=python