1 write to Project
Aspire.Hosting.Foundry (1)
PromptAgent\AzurePromptAgentResource.cs (1)
58Project = project;
13 references to Project
Aspire.Hosting.Foundry (12)
PromptAgent\AzurePromptAgentResource.cs (11)
88var version = await DeployAsync(Project, stepCtx, logRetry: null, stepCtx.CancellationToken).ConfigureAwait(false); 152if (tool.Project != Project) 156$"belongs to project '{Project.Name}'. All tools must belong to the same project as the agent."); 164ReferenceExpression.Create($"{Project.Endpoint}/agents/{Name}"); 169yield return new("ProjectEndpoint", ReferenceExpression.Create($"{Project.Endpoint}")); 349logger.LogInformation("Deploying prompt agent '{AgentName}' to Foundry project '{ProjectName}'...", Name, Project.Name); 351var version = await DeployAsync(Project, context, message => logger.LogWarning("{Message}", message), cancellationToken).ConfigureAwait(false); 389if (Project is IAzureResource { ProvisioningTaskCompletionSource: { } projectProvisioning }) 396Project.Name, 422var foundryAccountName = await Project.Parent.NameOutputReference.GetValueAsync(cancellationToken).ConfigureAwait(false); 423var projectNameOutput = await Project.NameOutputReference.GetValueAsync(cancellationToken).ConfigureAwait(false);
PromptAgent\PromptAgentBuilderExtensions.cs (1)
84var endpoint = await agent.Project.Endpoint.GetValueAsync(ctx.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Foundry.Tests (1)
PromptAgentTests.cs (1)
61Assert.Same(project.Resource, agent.Resource.Project);