mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
a3a9147e61
* Rename AgentThread to AgentSession * Add more renames * Update readme files * Revert nullable variable change and further fixes. * Revert change in header name * Fix some comments and tests * Update changelog. * Address PR feedback. * Fixing code review comments. * Fix new errors after merging latest code.
19 lines
604 B
C#
19 lines
604 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Agents.AI;
|
|
|
|
namespace AgentConformance.IntegrationTests.Support;
|
|
|
|
/// <summary>
|
|
/// Helper class to delete sessions after tests.
|
|
/// </summary>
|
|
/// <param name="session">The session to delete.</param>
|
|
/// <param name="fixture">The fixture that provides agent specific capabilities.</param>
|
|
internal sealed class SessionCleanup(AgentSession session, IAgentFixture fixture) : IAsyncDisposable
|
|
{
|
|
public async ValueTask DisposeAsync() =>
|
|
await fixture.DeleteSessionAsync(session);
|
|
}
|