mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
1dde57981e
* WIP * WIP * Simple call working * Update Thinking sample * Non-Streaming Function calling working * Update Anthropic Impl * Public Preps * UT + IT working * Update documentation + samples * Update variable * Revert nuget.config * Add IT for BetaService implementation * Remove polyfill + enable IT to run for netstandard 2.0 * Skipping Anthropic IT's for manual execution and avoid pipeline execution * Fix compilation error * Address error in UT * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix warning * Net 10 update * Update for NET 10, remove Anthropic.Foundry due to vulnerability * Final missing adjustments for NET 10 * Address PR comments * Remove unused code * Address feedback --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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 ThreadMaintainsHistoryAsync() => base.ThreadMaintainsHistoryAsync();
|
|
}
|
|
|
|
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));
|