AzurePromptAgentResource
Class net8.0
Represents a Microsoft Foundry prompt agent resource that is provisioned on Azure.
namespace Aspire.Hosting.Foundry;
public class AzurePromptAgentResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IExpressionValue, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithEnvironment, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} ResourceIExpressionValueIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithEnvironmentIValueProviderIValueWithReferences
9 members
Remarks
Section titled Remarks Unlike hosted agents (which run as containers), prompt agents are configuration-only agents defined by a model, system instructions, and optional tools. They are always deployed to Azure Foundry via the data plane API, even during local development (
aspire run). Local services communicate with the cloud-provisioned agent using the Foundry project endpoint and agent name. Constructors1
Section titled ConstructorsAzurePromptAgentResource(string, string, AzureCognitiveServicesProjectResource, string?) Creates a new instance of the
AzurePromptAgentResource class. Properties8
Section titled PropertiesConnectionStringExpressiongetReferenceExpressionDescriptionget; setstring Gets or sets a description of the agent.
Instructionsget; setstring? Gets or sets the system instructions for the agent.
Metadataget; initIDictionary<string, string> Gets the metadata to associate with the agent.
Modelget; setstring Gets or sets the model deployment name used by this agent.
Projectget Gets the parent Foundry project resource.
Toolsgetats ignored Gets the list of tool resources attached to this agent.
VersiongetStaticValueProvider<string> Once deployed, the version that is assigned to this prompt agent.