Skip to content
Docs Try Aspire
Docs Try

BingGroundingToolResource

Class net8.0
📦 Aspire.Hosting.Foundry v13.4.0-preview.1.26281.18
A Foundry tool resource that grounds an agent's responses using Bing Search.
namespace Aspire.Hosting.Foundry;
public class BingGroundingToolResource
: Aspire.Hosting.Foundry.FoundryToolResource
{
// ...
}

The Bing Search resource ( Microsoft.Bing/accounts) must be created manually in the Azure portal before using this tool.

After creating the tool with PromptAgentBuilderExtensions.AddBingGroundingTool, link it using one of the WithReference overloads on PromptAgentBuilderExtensions with one of the following: