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