Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddPromptAgent

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (AzureCognitiveServicesProjectResource) AddPromptAgent(
name string,
model FoundryDeploymentResource,
options ...*AddPromptAgentOptions,
) AzurePromptAgentResource

Signature

methodAddPromptAgentbuilder
Adds a prompt agent to a Microsoft Foundry project with the specified tools.
AddPromptAgent(
name string,
model FoundryDeploymentResource,
options ...*AddPromptAgentOptions,
) AzurePromptAgentResource
namestringThe name of the prompt agent. This will be the agent name in Foundry.
modelFoundryDeploymentResourceThe model deployment to use for this agent.
options...*AddPromptAgentOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddPromptAgentOptions argument.

Instructions*stringOptional system instructions for the agent.
AzurePromptAgentResource

The resource builder.

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

Applies to

This method applies to the following types: