# BingGroundingToolResource Constructors

- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Type: [BingGroundingToolResource](/reference/api/csharp/aspire.hosting.foundry/binggroundingtoolresource.md)
- Kind: `Constructors`
- Members: `1`

A Foundry tool resource that grounds an agent's responses using Bing Search.

## BingGroundingToolResource(string, AzureCognitiveServicesProjectResource)

- Name: `Constructor(string, AzureCognitiveServicesProjectResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/ToolResources/BingGroundingToolResource.cs#L44-L46)

Creates a new instance of the [BingGroundingToolResource](/reference/api/csharp/aspire.hosting.foundry/binggroundingtoolresource.md) class.

```csharp
public class BingGroundingToolResource
{
    public BingGroundingToolResource(
        string name,
        AzureCognitiveServicesProjectResource project)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the tool resource.
- `project` ([AzureCognitiveServicesProjectResource](/reference/api/csharp/aspire.hosting.foundry/azurecognitiveservicesprojectresource.md))
  The parent Foundry project resource.
