Watch Aspire live streamsDocsTry Aspire

withAISearchTool

Method
📦 Aspire.Hosting.Foundry v13.6.0-preview.1.26478.8
interface FoundryToolboxResource {
// ... omitted for brevity
withAISearchTool(
name: string,
search: AzureSearchResource,
indexName: string,
description?: string): FoundryToolboxResource;
}

Signature

methodwithAISearchToolbuilder
Adds an Azure AI Search tool definition to the Toolbox.
withAISearchTool(
name: string,
search: AzureSearchResource,
indexName: string,
description?: string): FoundryToolboxResource
namestring
searchAzureSearchResource
indexNamestring
descriptionstringoptional
FoundryToolboxResource

Applies to

This method applies to the following types: