forked from microsoft/semantic-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAgentFixture.cs
33 lines (22 loc) · 986 Bytes
/
AgentFixture.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) Microsoft. All rights reserved.
using System.Threading.Tasks;
using Microsoft.SemanticKernel.Agents;
using Microsoft.SemanticKernel.ChatCompletion;
using Xunit;
namespace SemanticKernel.IntegrationTests.Agents.CommonInterfaceConformance;
/// <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 KernelAgent Agent { get; }
public abstract AgentThread AgentThread { get; }
public abstract AgentThread CreatedAgentThread { get; }
public abstract AgentThread ServiceFailingAgentThread { get; }
public abstract AgentThread CreatedServiceFailingAgentThread { get; }
public abstract Task<ChatHistory> GetChatHistory();
public abstract Task DeleteThread(AgentThread thread);
public abstract Task DisposeAsync();
public abstract Task InitializeAsync();
}