Skip to content
DocsTry Aspire
DocsTry

AzureAISearchToolResource Properties

ClassProperties2 members
A Foundry tool resource that grounds an agent's responses using data from an Azure AI Search index.
IndexNameSection titled IndexNamenullablestring?
Gets or sets the optional search index name to query. If not set, the tool will use a default or prompt-specified index at runtime.
public string? IndexName { get; set; }
SearchResourceSection titled SearchResourcenullableAzureSearchResource?
Gets or sets the Azure AI Search resource backing this tool. Set by PromptAgentBuilderExtensions.WithReference.
public AzureSearchResource? SearchResource { get; }