mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Fix Anthropic unit test mocks for SDK 12.20.0 interface changes
Add missing interface members: IAnthropicClient.WebhookKey, IBetaService.MemoryStores, IBetaService.Webhooks, IBetaService.UserProfiles Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+8
@@ -451,6 +451,8 @@ public sealed class AnthropicBetaServiceExtensionsTests
|
||||
|
||||
public IBetaService Beta => this.BetaService;
|
||||
|
||||
public string? WebhookKey { get => throw new NotImplementedException(); init => throw new NotImplementedException(); }
|
||||
|
||||
public IBetaService BetaService { get; }
|
||||
|
||||
IMessageService IAnthropicClient.Messages => new Mock<IMessageService>().Object;
|
||||
@@ -491,6 +493,12 @@ public sealed class AnthropicBetaServiceExtensionsTests
|
||||
|
||||
public global::Anthropic.Services.Beta.IVaultService Vaults => throw new NotImplementedException();
|
||||
|
||||
public global::Anthropic.Services.Beta.IMemoryStoreService MemoryStores => throw new NotImplementedException();
|
||||
|
||||
public global::Anthropic.Services.Beta.IWebhookService Webhooks => throw new NotImplementedException();
|
||||
|
||||
public global::Anthropic.Services.Beta.IUserProfileService UserProfiles => throw new NotImplementedException();
|
||||
|
||||
public IBetaService WithOptions(Func<ClientOptions, ClientOptions> modifier)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
+2
@@ -81,6 +81,8 @@ public sealed class AnthropicClientExtensionsTests
|
||||
|
||||
public IBetaService Beta => throw new NotImplementedException();
|
||||
|
||||
public string? WebhookKey { get => throw new NotImplementedException(); init => throw new NotImplementedException(); }
|
||||
|
||||
public IAnthropicClient WithOptions(Func<ClientOptions, ClientOptions> modifier)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
Reference in New Issue
Block a user