mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
74879489a4
* Checkpoint * Update workflows/DeepResearch.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Comment * Fix comment * Update package version * Fix nuget haxx * Checkpoint * Code complete * Testing * Message content workaround * Add sequential flow * Checkpoint * Integration test project * Checkpoint * Checkpoint cleanup * Complete * Update package --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
27 lines
747 B
C#
27 lines
747 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System;
|
|
using System.Collections.Immutable;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Shared.IntegrationTests;
|
|
|
|
namespace Microsoft.Agents.Workflows.Declarative.IntegrationTests.Framework;
|
|
|
|
public sealed class AgentFixture : IDisposable
|
|
{
|
|
private static ImmutableDictionary<string, string?>? s_agentMap;
|
|
|
|
internal async Task<ImmutableDictionary<string, string?>> GetAgentsAsync(AzureAIConfiguration config, CancellationToken cancellationToken = default)
|
|
{
|
|
s_agentMap ??= await AgentFactory.CreateAsync("Agents", config, cancellationToken);
|
|
|
|
return s_agentMap;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
}
|