mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
06827e9f1a
* Closure * Verified * Update dotnet/src/Microsoft.Agents.Workflows.Declarative/Interpreter/DeclarativeWorkflowContext.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Sample folder * System scope fix * Fix link * Integrate Foundry SDK fix * File naming fix * Update dotnet/src/Microsoft.Agents.Workflows.Declarative/Interpreter/DeclarativeWorkflowContext.cs Co-authored-by: Tao Chen <taochen@microsoft.com> * Namespace * Optimize bind --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Tao Chen <taochen@microsoft.com>
21 lines
650 B
C#
21 lines
650 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Shared.IntegrationTests;
|
|
|
|
namespace Microsoft.Agents.Workflows.Declarative.IntegrationTests.Framework;
|
|
|
|
public static class AgentFixture
|
|
{
|
|
private static IReadOnlyDictionary<string, string?>? s_agentMap;
|
|
|
|
internal static async Task<IReadOnlyDictionary<string, string?>> GetAgentsAsync(AzureAIConfiguration config, CancellationToken cancellationToken = default)
|
|
{
|
|
s_agentMap ??= await AgentFactory.CreateAsync("Agents", config, cancellationToken);
|
|
|
|
return s_agentMap;
|
|
}
|
|
}
|