withAISearchTool

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26567.5
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
namestringThe tool name.
searchAzureSearchResourceThe Azure AI Search resource backing the tool.
indexNamestringThe search index name.
descriptionstringoptionalAn optional description of the Azure AI Search tool.
FoundryToolboxResource

Applies to

This method applies to the following types: