Skip to content
Docs Try Aspire
Docs Try

AzurePromptAgentResource Constructors

Class Constructors 1 member
Represents a Microsoft Foundry prompt agent resource that is provisioned on Azure.
Constructor(string, string, AzureCognitiveServicesProjectResource, string?) Section titled Constructor(string, string, AzureCognitiveServicesProjectResource, string?)
Creates a new instance of the AzurePromptAgentResource class.
public class AzurePromptAgentResource
{
public AzurePromptAgentResource(
string name,
string model,
AzureCognitiveServicesProjectResource project,
string? instructions = null)
{
// ...
}
}
name string The name of the agent. This will also be used as the agent name in Foundry.
model string The model deployment name to use for this agent.
project AzureCognitiveServicesProjectResource The parent Foundry project resource.
instructions string? optional Optional system instructions for the agent.