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.
38 lines
1.8 KiB
C#
38 lines
1.8 KiB
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using AgentConformance.IntegrationTests;
|
|
|
|
namespace AnthropicChatCompletion.IntegrationTests;
|
|
|
|
public abstract class SkipAllRunStreaming(Func<AnthropicChatCompletionFixture> func) : RunStreamingTests<AnthropicChatCompletionFixture>(func)
|
|
{
|
|
[Fact(Skip = AnthropicChatCompletionFixture.SkipReason)]
|
|
public override Task RunWithChatMessageReturnsExpectedResultAsync() => base.RunWithChatMessageReturnsExpectedResultAsync();
|
|
|
|
[Fact(Skip = AnthropicChatCompletionFixture.SkipReason)]
|
|
public override Task RunWithNoMessageDoesNotFailAsync() => base.RunWithNoMessageDoesNotFailAsync();
|
|
|
|
[Fact(Skip = AnthropicChatCompletionFixture.SkipReason)]
|
|
public override Task RunWithChatMessagesReturnsExpectedResultAsync() => base.RunWithChatMessagesReturnsExpectedResultAsync();
|
|
|
|
[Fact(Skip = AnthropicChatCompletionFixture.SkipReason)]
|
|
public override Task RunWithStringReturnsExpectedResultAsync() => base.RunWithStringReturnsExpectedResultAsync();
|
|
|
|
[Fact(Skip = AnthropicChatCompletionFixture.SkipReason)]
|
|
public override Task SessionMaintainsHistoryAsync() => base.SessionMaintainsHistoryAsync();
|
|
}
|
|
|
|
public class AnthropicBetaChatCompletionRunStreamingTests()
|
|
: SkipAllRunStreaming(() => new(useReasoningChatModel: false, useBeta: true));
|
|
|
|
public class AnthropicBetaChatCompletionReasoningRunStreamingTests()
|
|
: SkipAllRunStreaming(() => new(useReasoningChatModel: true, useBeta: true));
|
|
|
|
public class AnthropicChatCompletionRunStreamingTests()
|
|
: SkipAllRunStreaming(() => new(useReasoningChatModel: false, useBeta: false));
|
|
|
|
public class AnthropicChatCompletionReasoningRunStreamingTests()
|
|
: SkipAllRunStreaming(() => new(useReasoningChatModel: true, useBeta: false));
|