You have a Microsoft Foundry project that contains an agent. The agent uses two tools to perform the following actions:
Use Azure AI Search to retrieve answers from a private product documentation index.
Use the web search tool to retrieve public information on the internet.
You need to ensure that for a specific run, the agent deterministically retrieves information only from the internet. To what should you set tool_choice?
Set tool_choice to the named Grounding with Bing Search tool:
{'type': 'bing_grounding'}
A named tool choice directs the model to invoke a specific tool rather than allowing it to select from all tools attached to the agent. Microsoft's SDK specification describes AgentsNamedToolChoice as the mechanism used to force the model to call a particular tool and lists bing_grounding and azure_ai_search as supported named tool types.
Grounding with Bing Search retrieves current public information from the internet and supplies the results to the model for response generation. Selecting bing_grounding therefore directs the run to the public web source rather than the private Azure AI Search index.
Setting tool_choice to 'required' only establishes that a tool must be invoked; when multiple tools are available, it does not identify which one must be selected. 'auto' delegates the decision entirely to the model. Selecting {'type': 'azure_ai_search'} would force retrieval from the private product-documentation index, which is the opposite of the requirement.
Study Guide alignment: configure agent tools, control tool selection, integrate web grounding, and connect agents to enterprise knowledge sources.
====================
Currently there are no comments in this discussion, be the first to comment!