Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzurePromptAgentResource

Handle
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2

Represents a Microsoft Foundry prompt agent resource that is provisioned on Azure.

type AzurePromptAgentResource interface {
ExpressionValue
Resource
ResourceWithConnectionString
ResourceWithEnvironment
}

Properties

propertyConnectionStringExpression*ReferenceExpressionget
Gets the ConnectionStringExpression property
ConnectionStringExpression() *ReferenceExpression
propertyDescriptionstringget · set
Gets or sets a description of the agent.
Description() (string, error)
SetDescription(value string) AzurePromptAgentResource
propertyInstructions*stringget · set
Gets or sets the system instructions for the agent.
Instructions() (*string, error)
SetInstructions(value *string) AzurePromptAgentResource
propertyMetadata*Dict[string, string]get
Gets the metadata to associate with the agent.
Metadata() *Dict[string, string]
propertyModelstringget · set
Gets or sets the model deployment name used by this agent.
Model() (string, error)
SetModel(value string) AzurePromptAgentResource

Methods

methodWithToolbuilder
Adds a tool to a prompt agent.
WithTool(tool FoundryToolResource) AzurePromptAgentResource
toolFoundryToolResourceThe tool resource to attach to this agent.
AzurePromptAgentResource

The resource builder.

Returns a handle; failures surface later via Err().