# AzureAISearchToolResource

- 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 data from an Azure AI Search index.

## Definition

```go
type AzureAISearchToolResource interface {
    Resource
}
```

## Embeds

- `Resource`

## Methods

- [WithReference](/reference/api/go/aspire.hosting.foundry/azureaisearchtoolresource/withreference.md) -- `method` -- Links an Azure AI Search tool to a backing search resource.
  ```go
  WithReference(search AzureSearchResource) AzureAISearchToolResource
  ```
