Files
agent-framework/dotnet/tests/AgentConformance.IntegrationTests/AgentFixture.cs
T
westey 293cdb1846 Add test infrastructure for agent conformance tests (#77)
* Add test infrastructure for agent conformance tests

* Address PR comments.

* Switch TargetFrameworks to have inline condition
2025-06-16 11:32:20 +01:00

26 lines
668 B
C#

// Copyright (c) Microsoft. All rights reserved.
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Agents;
using Microsoft.Extensions.AI;
namespace AgentConformanceTests;
/// <summary>
/// Base class for setting up and tearing down agents, to be used in tests.
/// Each agent type should have its own derived class.
/// </summary>
public abstract class AgentFixture : IAsyncLifetime
{
public abstract Agent Agent { get; }
public abstract AgentThread AgentThread { get; }
public abstract Task<List<ChatMessage>> GetChatHistory();
public abstract Task DisposeAsync();
public abstract Task InitializeAsync();
}