Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Conversion of Anthropic Extension to M.E.AI interface [WIP] #4463

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dotnet/AutoGen.sln
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgentState", "samples\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Extensions.Aspire", "src\Microsoft.AutoGen\Extensions\Aspire\Microsoft.AutoGen.Extensions.Aspire.csproj", "{65059914-5527-4A00-9308-9FAF23D5E85A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Extensions.Anthropic", "src\Microsoft.AutoGen\Extensions\Anthropic\Microsoft.AutoGen.Extensions.Anthropic.csproj", "{5ED47D4C-19D7-4684-B6F8-A4AA77F37E21}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents.Tests", "test\Microsoft.AutoGen.Agents.Tests\Microsoft.AutoGen.Agents.Tests.csproj", "{394FDAF8-74F9-4977-94A5-3371737EB774}"
EndProject
Global
Expand Down Expand Up @@ -338,6 +340,10 @@ Global
{65059914-5527-4A00-9308-9FAF23D5E85A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{65059914-5527-4A00-9308-9FAF23D5E85A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{65059914-5527-4A00-9308-9FAF23D5E85A}.Release|Any CPU.Build.0 = Release|Any CPU
{5ED47D4C-19D7-4684-B6F8-A4AA77F37E21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5ED47D4C-19D7-4684-B6F8-A4AA77F37E21}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5ED47D4C-19D7-4684-B6F8-A4AA77F37E21}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5ED47D4C-19D7-4684-B6F8-A4AA77F37E21}.Release|Any CPU.Build.0 = Release|Any CPU
{394FDAF8-74F9-4977-94A5-3371737EB774}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{394FDAF8-74F9-4977-94A5-3371737EB774}.Debug|Any CPU.Build.0 = Debug|Any CPU
{394FDAF8-74F9-4977-94A5-3371737EB774}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -401,6 +407,7 @@ Global
{97550E87-48C6-4EBF-85E1-413ABAE9DBFD} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{64EF61E7-00A6-4E5E-9808-62E10993A0E5} = {7EB336C2-7C0A-4BC8-80C6-A3173AB8DC45}
{65059914-5527-4A00-9308-9FAF23D5E85A} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{5ED47D4C-19D7-4684-B6F8-A4AA77F37E21} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{394FDAF8-74F9-4977-94A5-3371737EB774} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
Expand Down
1 change: 1 addition & 0 deletions dotnet/src/AutoGen.Anthropic/Agent/AnthropicClientAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Threading;
using System.Threading.Tasks;
using AutoGen.Anthropic.DTO;

using AutoGen.Core;

namespace AutoGen.Anthropic;
Expand Down
1 change: 1 addition & 0 deletions dotnet/src/AutoGen.Anthropic/AutoGen.Anthropic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

<ItemGroup>
<ProjectReference Include="..\AutoGen.Core\AutoGen.Core.csproj" />
<ProjectReference Include="..\Microsoft.AutoGen\Extensions\Anthropic\Microsoft.AutoGen.Extensions.Anthropic.csproj" />
</ItemGroup>

</Project>
95 changes: 0 additions & 95 deletions dotnet/src/AutoGen.Anthropic/DTO/Content.cs

This file was deleted.

43 changes: 0 additions & 43 deletions dotnet/src/AutoGen.Anthropic/DTO/Tool.cs

This file was deleted.

32 changes: 32 additions & 0 deletions dotnet/src/AutoGen.Anthropic/TypeForwarding.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// TypeForwarding.cs

using System.Runtime.CompilerServices;

[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.Converters.ContentBaseConverter))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.Converters.SystemMessageConverter))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.AIContentExtensions))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.CacheControl))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.CacheControlType))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ChatCompletionRequest))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ChatCompletionResponse))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ChatMessage))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ContentBase))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.Delta))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.Error))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ErrorResponse))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ImageContent))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ImageSource))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.InputSchema))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.SchemaProperty))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.StreamingMessage))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.SystemMessage))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.TextContent))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.Tool))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ToolChoice))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ToolChoiceType))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ToolResultContent))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.ToolUseContent))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.DTO.Usage))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.Utils.AnthropicConstants))]
[assembly: TypeForwardedTo(typeof(AutoGen.Anthropic.AnthropicClient))]
15 changes: 0 additions & 15 deletions dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.cs

This file was deleted.

Loading
Loading