AzurePromptAgentResource
Class net8.0
A Microsoft Foundry prompt agent resource.
namespace Aspire.Hosting.Foundry;
public class AzurePromptAgentResource : Aspire.Hosting.ApplicationModel.ExecutableResource, Aspire.Hosting.ApplicationModel.IComputeResource, Aspire.Hosting.ApplicationModel.IResource{ // ...} ExecutableResourceIComputeResourceIResource
8 members
Constructors1
Section titled ConstructorsAzurePromptAgentResource(string, string, string?) Creates a new instance of the
AzurePromptAgentResource class. Properties5
Section titled PropertiesDescriptionget; setstring The internal description of the prompt agent.
Instructionsget; setstring The "system prompt" instructions for the prompt agent.
Metadataget; initIDictionary<string, string> Additional metadata to associate with the agent.
Modelget; setstring The model to use for the prompt agent. This should generally correspond to the Deployment Name.
VersiongetStaticValueProvider<string> Once deployed, the version that is assigned to this agent.
Methods2
Section titled MethodsDeployAsync(PipelineStepContext, AzureCognitiveServicesProjectResource)Task<AgentVersion> Deploys the specified agent to the given Microsoft Foundry project.
PublishAsync(ManifestPublishingContext)Task Publishes the agent during the manifest publishing phase.