Watch Aspire live streamsDocsTry Aspire

AzureAISearchToolResource

Classnet10.0
📦 Aspire.Hosting.Foundry v13.6.0-preview.1.26478.8
A Foundry tool resource that grounds an agent's responses using data from an Azure AI Search index.
namespace Aspire.Hosting.Foundry;
public class AzureAISearchToolResource
: Aspire.Hosting.Foundry.FoundryToolResource
{
// ...
}
After creating this tool with PromptAgentBuilderExtensions.AddAISearchTool, link it to an Azure.AzureSearchResource using PromptAgentBuilderExtensions.WithReference. The connection identifier is resolved at deploy time when the agent definition is created.
View all constructors
View all properties
View all methods