Watch Aspire live streamsDocsTry Aspire

addPromptAgent

Method
📦 Aspire.Hosting.Foundry v13.6.0-preview.1.26478.8
interface AzureCognitiveServicesProjectResource {
// ... omitted for brevity
addPromptAgent(
name: string,
model: FoundryDeploymentResource,
instructions?: string): AzurePromptAgentResource;
}

Signature

methodaddPromptAgentbuilder
Adds a prompt agent to a Microsoft Foundry project with the specified tools.
addPromptAgent(
name: string,
model: FoundryDeploymentResource,
instructions?: string): AzurePromptAgentResource
namestring
modelFoundryDeploymentResource
instructionsstringoptional
AzurePromptAgentResource

Applies to

This method applies to the following types: