# BingGroundingToolResource

- Module: [Aspire.Hosting.Foundry](/reference/api/go/aspire.hosting.foundry.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

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

## Definition

```go
type BingGroundingToolResource interface {
    Resource
}
```

## Embeds

- `Resource`

## Methods

- [WithReference](/reference/api/go/aspire.hosting.foundry/binggroundingtoolresource/withreference.md) -- `method` -- Links a Bing Grounding tool to a Bing Search resource or connection.
  ```go
  WithReference(bingReference any) BingGroundingToolResource
  ```
