A programming framework for agentic AI
rysweet-4677-rename-agents-project-to-core-trim-dependencies (#4696)
Ryan Sweeta19c848622ff
diff --git a/README.md b/README.mdindex b3e5f8124..caaf3052d 100644--- a/README.md+++ b/README.md@@ -164,14 +164,14 @@ git switch staging-dev# Build the projectcd dotnet && dotnet build AutoGen.sln# In your source code, add AutoGen to your project-dotnet add <your.csproj> reference <path to your checkout of autogen>/dotnet/src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj+dotnet add <your.csproj> reference <path to your checkout of autogen>/dotnet/src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj```Then, define and run your first agent:```csharpusing Microsoft.AutoGen.Contracts;-using Microsoft.AutoGen.Agents;+using Microsoft.AutoGen.Core;using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.Hosting;diff --git a/dotnet/AutoGen.sln b/dotnet/AutoGen.slnindex e16b89f37..98548d512 100644--- a/dotnet/AutoGen.sln+++ b/dotnet/AutoGen.sln@@ -78,9 +78,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solutionspelling.dic = spelling.dicEndProjectSectionEndProject-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents", "src\Microsoft.AutoGen\Agents\Microsoft.AutoGen.Agents.csproj", "{FD87BD33-4616-460B-AC85-A412BA08BB78}"-EndProject-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Contracts", "src\Microsoft.AutoGen\Contracts\Microsoft.AutoGen.Contracts.csproj", "{E0C991D9-0DB8-471C-ADC9-5FB16E2A0106}"+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Core", "src\Microsoft.AutoGen\Core\Microsoft.AutoGen.Core.csproj", "{FD87BD33-4616-460B-AC85-A412BA08BB78}"EndProjectProject("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Extensions.SemanticKernel", "src\Microsoft.AutoGen\Extensions\SemanticKernel\Microsoft.AutoGen.Extensions.SemanticKernel.csproj", "{952827D4-8D4C-4327-AE4D-E8D25811EF35}"EndProject@@ -142,6 +140,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Core.GrpcEndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Runtime.Grpc", "src\Microsoft.AutoGen\Runtime.Grpc\Microsoft.AutoGen.Runtime.Grpc.csproj", "{8457B68C-CC86-4A3F-8559-C1AE199EC366}"EndProject+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents", "src\Microsoft.AutoGen\Agents\Microsoft.AutoGen.Agents.csproj", "{3892C83E-7F5D-41DF-A88C-4854EAD38856}"+EndProjectGlobalGlobalSection(SolutionConfigurationPlatforms) = preSolutionDebug|Any CPU = Debug|Any CPU@@ -368,6 +368,10 @@ Global{8457B68C-CC86-4A3F-8559-C1AE199EC366}.Debug|Any CPU.Build.0 = Debug|Any CPU{8457B68C-CC86-4A3F-8559-C1AE199EC366}.Release|Any CPU.ActiveCfg = Release|Any CPU{8457B68C-CC86-4A3F-8559-C1AE199EC366}.Release|Any CPU.Build.0 = Release|Any CPU+ {3892C83E-7F5D-41DF-A88C-4854EAD38856}.Debug|Any CPU.ActiveCfg = Debug|Any CPU+ {3892C83E-7F5D-41DF-A88C-4854EAD38856}.Debug|Any CPU.Build.0 = Debug|Any CPU+ {3892C83E-7F5D-41DF-A88C-4854EAD38856}.Release|Any CPU.ActiveCfg = Release|Any CPU+ {3892C83E-7F5D-41DF-A88C-4854EAD38856}.Release|Any CPU.Build.0 = Release|Any CPUEndGlobalSectionGlobalSection(SolutionProperties) = preSolutionHideSolutionNode = FALSE@@ -432,6 +436,7 @@ Global{7F60934B-3E59-48D0-B26D-04A39FEC13EF} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}{9653676C-147D-4CBE-BB53-A30FD3634F4C} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}{8457B68C-CC86-4A3F-8559-C1AE199EC366} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}+ {3892C83E-7F5D-41DF-A88C-4854EAD38856} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}EndGlobalSectionGlobalSection(ExtensibilityGlobals) = postSolutionSolutionGuid = {93384647-528D-46C8-922C-8DB36A382F0B}diff --git a/dotnet/samples/Hello/HelloAIAgents/HelloAIAgent.cs b/dotnet/samples/Hello/HelloAIAgents/HelloAIAgent.csindex 743156f0b..7261ee45d 100644--- a/dotnet/samples/Hello/HelloAIAgents/HelloAIAgent.cs+++ b/dotnet/samples/Hello/HelloAIAgents/HelloAIAgent.cs@@ -1,8 +1,8 @@// Copyright (c) Microsoft Corporation. All rights reserved.// HelloAIAgent.cs-using Microsoft.AutoGen.Agents;using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;using Microsoft.Extensions.AI;namespace Hello;diff --git a/dotnet/samples/Hello/HelloAIAgents/HelloAIAgents.csproj b/dotnet/samples/Hello/HelloAIAgents/HelloAIAgents.csprojindex 003b88a8c..f557ce91a 100644--- a/dotnet/samples/Hello/HelloAIAgents/HelloAIAgents.csproj+++ b/dotnet/samples/Hello/HelloAIAgents/HelloAIAgents.csproj@@ -11,8 +11,9 @@</ItemGroup><ItemGroup>- <ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Contracts\Microsoft.AutoGen.Contracts.csproj" /><ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Agents\Microsoft.AutoGen.Agents.csproj" />+ <ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Contracts\Microsoft.AutoGen.Contracts.csproj" />+ <ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Core\Microsoft.AutoGen.Core.csproj" /><ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Extensions\MEAI\Microsoft.AutoGen.Extensions.MEAI.csproj" /></ItemGroup></Project>diff --git a/dotnet/samples/Hello/HelloAIAgents/Program.cs b/dotnet/samples/Hello/HelloAIAgents/Program.csindex 650c463a1..a15effa5a 100644--- a/dotnet/samples/Hello/HelloAIAgents/Program.cs+++ b/dotnet/samples/Hello/HelloAIAgents/Program.cs@@ -4,6 +4,7 @@using Hello;using Microsoft.AutoGen.Agents;using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;// send a message to the agentvar builder = WebApplication.CreateBuilder();diff --git a/dotnet/samples/Hello/HelloAgent/HelloAgent.csproj b/dotnet/samples/Hello/HelloAgent/HelloAgent.csprojindex 279ef8b4a..5067a673d 100644--- a/dotnet/samples/Hello/HelloAgent/HelloAgent.csproj+++ b/dotnet/samples/Hello/HelloAgent/HelloAgent.csproj@@ -15,7 +15,8 @@</ItemGroup><ItemGroup>- <ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Contracts\Microsoft.AutoGen.Contracts.csproj" /><ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Agents\Microsoft.AutoGen.Agents.csproj" />+ <ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Contracts\Microsoft.AutoGen.Contracts.csproj" />+ <ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Core\Microsoft.AutoGen.Core.csproj" /></ItemGroup></Project>diff --git a/dotnet/samples/Hello/HelloAgent/Program.cs b/dotnet/samples/Hello/HelloAgent/Program.csindex 4d259130a..7da454774 100644--- a/dotnet/samples/Hello/HelloAgent/Program.cs+++ b/dotnet/samples/Hello/HelloAgent/Program.cs@@ -1,8 +1,8 @@// Copyright (c) Microsoft Corporation. All rights reserved.// Program.cs-using Microsoft.AutoGen.Agents;using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.Hosting;diff --git a/dotnet/samples/Hello/HelloAgentState/HelloAgentState.csproj b/dotnet/samples/Hello/HelloAgentState/HelloAgentState.csprojindex 63c30f71b..5dc534a4e 100644--- a/dotnet/samples/Hello/HelloAgentState/HelloAgentState.csproj+++ b/dotnet/samples/Hello/HelloAgentState/HelloAgentState.csproj@@ -12,7 +12,8 @@</ItemGroup><ItemGroup>- <ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Contracts\Microsoft.AutoGen.Contracts.csproj" /><ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Agents\Microsoft.AutoGen.Agents.csproj" />+ <ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Contracts\Microsoft.AutoGen.Contracts.csproj" />+ <ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Core\Microsoft.AutoGen.Core.csproj" /></ItemGroup></Project>diff --git a/dotnet/samples/Hello/HelloAgentState/Program.cs b/dotnet/samples/Hello/HelloAgentState/Program.csindex 62c40e54f..f22ad8089 100644--- a/dotnet/samples/Hello/HelloAgentState/Program.cs+++ b/dotnet/samples/Hello/HelloAgentState/Program.cs@@ -4,6 +4,7 @@using System.Text.Json;using Microsoft.AutoGen.Agents;using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;// send a message to the agentvar app = await AgentsApp.PublishMessageAsync("HelloAgents", new NewMessageReceiveddiff --git a/dotnet/samples/dev-team/DevTeam.AgentHost/DevTeam.AgentHost.csproj b/dotnet/samples/dev-team/DevTeam.AgentHost/DevTeam.AgentHost.csprojindex c38531515..4da4bfd8d 100644--- a/dotnet/samples/dev-team/DevTeam.AgentHost/DevTeam.AgentHost.csproj+++ b/dotnet/samples/dev-team/DevTeam.AgentHost/DevTeam.AgentHost.csproj@@ -9,7 +9,7 @@</PropertyGroup><ItemGroup>- <ProjectReference Include="../../../src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj" />+ <ProjectReference Include="../../../src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj" /><ProjectReference Include="../../../src/Microsoft.AutoGen/Runtime.Grpc/Microsoft.AutoGen.Runtime.Grpc.csproj" /><ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Extensions\Aspire\Microsoft.AutoGen.Extensions.Aspire.csproj" /></ItemGroup>diff --git a/dotnet/samples/dev-team/DevTeam.Agents/DevTeam.Agents.csproj b/dotnet/samples/dev-team/DevTeam.Agents/DevTeam.Agents.csprojindex 46a20c650..bc7054581 100644--- a/dotnet/samples/dev-team/DevTeam.Agents/DevTeam.Agents.csproj+++ b/dotnet/samples/dev-team/DevTeam.Agents/DevTeam.Agents.csproj@@ -8,8 +8,8 @@<ItemGroup>- <ProjectReference Include="../../../src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj" />-+ <ProjectReference Include="../../../src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj" />+ <ProjectReference Include="../../../src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj" /><ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Extensions\Aspire\Microsoft.AutoGen.Extensions.Aspire.csproj" /><ProjectReference Include="..\DevTeam.Shared\DevTeam.Shared.csproj" /><ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Extensions\SemanticKernel\Microsoft.AutoGen.Extensions.SemanticKernel.csproj" />diff --git a/dotnet/samples/dev-team/DevTeam.Agents/Developer/Developer.cs b/dotnet/samples/dev-team/DevTeam.Agents/Developer/Developer.csindex 86f5c29bd..afddc34f0 100644--- a/dotnet/samples/dev-team/DevTeam.Agents/Developer/Developer.cs+++ b/dotnet/samples/dev-team/DevTeam.Agents/Developer/Developer.cs@@ -4,6 +4,7 @@using DevTeam.Shared;using Microsoft.AutoGen.Agents;using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;using Microsoft.SemanticKernel;using Microsoft.SemanticKernel.Memory;diff --git a/dotnet/samples/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLead.cs b/dotnet/samples/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLead.csindex ba37255a6..bda70ebe8 100644--- a/dotnet/samples/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLead.cs+++ b/dotnet/samples/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLead.cs@@ -4,6 +4,7 @@using DevTeam.Shared;using Microsoft.AutoGen.Agents;using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;using Microsoft.SemanticKernel;using Microsoft.SemanticKernel.Connectors.OpenAI;using Microsoft.SemanticKernel.Memory;diff --git a/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs b/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/ProductManager.csindex 8c14675f6..5a89536d0 100644--- a/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs+++ b/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs@@ -4,6 +4,7 @@using DevTeam.Shared;using Microsoft.AutoGen.Agents;using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;using Microsoft.SemanticKernel;using Microsoft.SemanticKernel.Memory;diff --git a/dotnet/samples/dev-team/DevTeam.Agents/Program.cs b/dotnet/samples/dev-team/DevTeam.Agents/Program.csindex 6d9937889..bd9e4ad24 100644--- a/dotnet/samples/dev-team/DevTeam.Agents/Program.cs+++ b/dotnet/samples/dev-team/DevTeam.Agents/Program.cs@@ -2,7 +2,7 @@// Program.csusing DevTeam.Agents;-using Microsoft.AutoGen.Agents;+using Microsoft.AutoGen.Core;using Microsoft.AutoGen.Extensions.SemanticKernel;var builder = WebApplication.CreateBuilder(args);diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.cs b/dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.csindex 78a5e2614..c23a62377 100644--- a/dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.cs+++ b/dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.cs@@ -4,6 +4,7 @@using DevTeam.Backend;using DevTeam.Shared;using Microsoft.AutoGen.Agents;+using Microsoft.AutoGen.Core;using Microsoft.SemanticKernel;using Microsoft.SemanticKernel.Memory;namespace Microsoft.AI.DevTeam;diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs b/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.csindex 8d1ec4d54..3dc9b2a1a 100644--- a/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs+++ b/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs@@ -6,6 +6,7 @@ using DevTeam;using DevTeam.Backend;using DevTeam.Shared;using Microsoft.AutoGen.Agents;+using Microsoft.AutoGen.Core;using Microsoft.SemanticKernel;using Microsoft.SemanticKernel.Memory;diff --git a/dotnet/samples/dev-team/DevTeam.Backend/DevTeam.Backend.csproj b/dotnet/samples/dev-team/DevTeam.Backend/DevTeam.Backend.csprojindex 10e05cfb2..f13c0cbe4 100644--- a/dotnet/samples/dev-team/DevTeam.Backend/DevTeam.Backend.csproj+++ b/dotnet/samples/dev-team/DevTeam.Backend/DevTeam.Backend.csproj@@ -1,7 +1,7 @@<Project Sdk="Microsoft.NET.Sdk.Web"><ItemGroup>- <ProjectReference Include="../../../src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj" />+ <ProjectReference Include="../../../src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj" /></ItemGroup><PropertyGroup>@@ -29,6 +29,7 @@</ItemGroup><ItemGroup>+ <ProjectReference Include="../../../src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj" /><ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Extensions\Aspire\Microsoft.AutoGen.Extensions.Aspire.csproj" /><ProjectReference Include="..\DevTeam.Shared\DevTeam.Shared.csproj" /><ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Extensions\SemanticKernel\Microsoft.AutoGen.Extensions.SemanticKernel.csproj" />diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Program.cs b/dotnet/samples/dev-team/DevTeam.Backend/Program.csindex 7f4404f8e..abc37cf12 100644--- a/dotnet/samples/dev-team/DevTeam.Backend/Program.cs+++ b/dotnet/samples/dev-team/DevTeam.Backend/Program.cs@@ -5,7 +5,7 @@ using Azure.Identity;using DevTeam.Backend;using DevTeam.Options;using Microsoft.AI.DevTeam;-using Microsoft.AutoGen.Agents;+using Microsoft.AutoGen.Core;using Microsoft.AutoGen.Extensions.SemanticKernel;using Microsoft.Extensions.Azure;using Microsoft.Extensions.Options;diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs b/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.csindex 30a936f44..80660328e 100644--- a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs+++ b/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs@@ -3,8 +3,8 @@using System.Globalization;using DevTeam.Shared;-using Microsoft.AutoGen.Agents;using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;using Octokit.Webhooks;using Octokit.Webhooks.Events;using Octokit.Webhooks.Events.IssueComment;diff --git a/dotnet/samples/dev-team/DevTeam.Shared/DevTeam.Shared.csproj b/dotnet/samples/dev-team/DevTeam.Shared/DevTeam.Shared.csprojindex 18fcb9745..674bba3b1 100644--- a/dotnet/samples/dev-team/DevTeam.Shared/DevTeam.Shared.csproj+++ b/dotnet/samples/dev-team/DevTeam.Shared/DevTeam.Shared.csproj@@ -1,7 +1,7 @@<Project Sdk="Microsoft.NET.Sdk"><ItemGroup>- <ProjectReference Include="../../../src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj" />+ <ProjectReference Include="../../../src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj" /></ItemGroup><PropertyGroup>diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Agents/AIAgent/InferenceAgent.cs b/dotnet/src/Microsoft.AutoGen/Agents/AIAgent/InferenceAgent.cssimilarity index 97%rename from dotnet/src/Microsoft.AutoGen/Agents/Agents/AIAgent/InferenceAgent.csrename to dotnet/src/Microsoft.AutoGen/Agents/AIAgent/InferenceAgent.csindex ea37f0aba..f4f06db40 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/Agents/AIAgent/InferenceAgent.cs+++ b/dotnet/src/Microsoft.AutoGen/Agents/AIAgent/InferenceAgent.cs@@ -1,7 +1,7 @@// Copyright (c) Microsoft Corporation. All rights reserved.// InferenceAgent.cs-using Google.Protobuf;+using Microsoft.AutoGen.Core;using Microsoft.Extensions.AI;namespace Microsoft.AutoGen.Agents;public abstract class InferenceAgent<T>(diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Agents/AIAgent/SKAiAgent.cs b/dotnet/src/Microsoft.AutoGen/Agents/AIAgent/SKAiAgent.cssimilarity index 99%rename from dotnet/src/Microsoft.AutoGen/Agents/Agents/AIAgent/SKAiAgent.csrename to dotnet/src/Microsoft.AutoGen/Agents/AIAgent/SKAiAgent.csindex 4d5c79d8f..0aec9a493 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/Agents/AIAgent/SKAiAgent.cs+++ b/dotnet/src/Microsoft.AutoGen/Agents/AIAgent/SKAiAgent.cs@@ -1,8 +1,8 @@// Copyright (c) Microsoft Corporation. All rights reserved.// SKAiAgent.cs-using System.Globalization;using System.Text;+using Microsoft.AutoGen.Core;using Microsoft.SemanticKernel;using Microsoft.SemanticKernel.Connectors.OpenAI;using Microsoft.SemanticKernel.Memory;diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/ConsoleAgent/ConsoleAgent.cs b/dotnet/src/Microsoft.AutoGen/Agents/IOAgent/ConsoleAgent/ConsoleAgent.cssimilarity index 98%rename from dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/ConsoleAgent/ConsoleAgent.csrename to dotnet/src/Microsoft.AutoGen/Agents/IOAgent/ConsoleAgent/ConsoleAgent.csindex c86f35749..082d55e7f 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/ConsoleAgent/ConsoleAgent.cs+++ b/dotnet/src/Microsoft.AutoGen/Agents/IOAgent/ConsoleAgent/ConsoleAgent.cs@@ -1,7 +1,7 @@// Copyright (c) Microsoft Corporation. All rights reserved.// ConsoleAgent.cs-using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;using Microsoft.Extensions.DependencyInjection;namespace Microsoft.AutoGen.Agents;diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/ConsoleAgent/IHandleConsole.cs b/dotnet/src/Microsoft.AutoGen/Agents/IOAgent/ConsoleAgent/IHandleConsole.cssimilarity index 97%rename from dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/ConsoleAgent/IHandleConsole.csrename to dotnet/src/Microsoft.AutoGen/Agents/IOAgent/ConsoleAgent/IHandleConsole.csindex 23176d109..31b89453a 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/ConsoleAgent/IHandleConsole.cs+++ b/dotnet/src/Microsoft.AutoGen/Agents/IOAgent/ConsoleAgent/IHandleConsole.cs@@ -3,6 +3,7 @@using Google.Protobuf;using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;namespace Microsoft.AutoGen.Agents;diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/FileAgent/FileAgent.cs b/dotnet/src/Microsoft.AutoGen/Agents/IOAgent/FileAgent/FileAgent.cssimilarity index 98%rename from dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/FileAgent/FileAgent.csrename to dotnet/src/Microsoft.AutoGen/Agents/IOAgent/FileAgent/FileAgent.csindex 50b76fa2f..7e37a1f0c 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/FileAgent/FileAgent.cs+++ b/dotnet/src/Microsoft.AutoGen/Agents/IOAgent/FileAgent/FileAgent.cs@@ -1,7 +1,7 @@// Copyright (c) Microsoft Corporation. All rights reserved.// FileAgent.cs-using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.Logging;diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/IOAgent.cs b/dotnet/src/Microsoft.AutoGen/Agents/IOAgent/IOAgent.cssimilarity index 96%rename from dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/IOAgent.csrename to dotnet/src/Microsoft.AutoGen/Agents/IOAgent/IOAgent.csindex ade5dde2f..16dcd9598 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/IOAgent.cs+++ b/dotnet/src/Microsoft.AutoGen/Agents/IOAgent/IOAgent.cs@@ -2,7 +2,7 @@// IOAgent.csusing Microsoft.AutoGen.Contracts;-+using Microsoft.AutoGen.Core;namespace Microsoft.AutoGen.Agents;public abstract class IOAgent : Agentdiff --git a/dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/WebAPIAgent/WebAPIAgent.cs b/dotnet/src/Microsoft.AutoGen/Agents/IOAgent/WebAPIAgent/WebAPIAgent.cssimilarity index 98%rename from dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/WebAPIAgent/WebAPIAgent.csrename to dotnet/src/Microsoft.AutoGen/Agents/IOAgent/WebAPIAgent/WebAPIAgent.csindex f445271d4..fe79279eb 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/Agents/IOAgent/WebAPIAgent/WebAPIAgent.cs+++ b/dotnet/src/Microsoft.AutoGen/Agents/IOAgent/WebAPIAgent/WebAPIAgent.cs@@ -1,9 +1,9 @@// Copyright (c) Microsoft Corporation. All rights reserved.// WebAPIAgent.cs-using Microsoft.AspNetCore.Builder;using Microsoft.AspNetCore.Http;using Microsoft.AutoGen.Contracts;+using Microsoft.AutoGen.Core;using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.Logging;diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj b/dotnet/src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csprojindex 6bbb238bb..8a00f4cfb 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj+++ b/dotnet/src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj@@ -1,22 +1,21 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>net8.0</TargetFramework>- <ImplicitUsings>enable</ImplicitUsings>- <Nullable>enable</Nullable>+ <TargetFramework>net8.0</TargetFramework>+ <ImplicitUsings>enable</ImplicitUsings>+ <Nullable>enable</Nullable></PropertyGroup><Import Project="$(RepoRoot)/nuget/nuget-package.props" />-- <ItemGroup>+ <ItemGroup><ProjectReference Include="..\Contracts\Microsoft.AutoGen.Contracts.csproj" />+ <ProjectReference Include="..\Core\Microsoft.AutoGen.Core.csproj" /><ProjectReference Include="..\Extensions\Aspire\Microsoft.AutoGen.Extensions.Aspire.csproj" />- </ItemGroup>+ </ItemGroup>- <ItemGroup>- <PackageReference Include="Microsoft.Extensions.AI.Abstractions" />- <PackageReference Include="Microsoft.Extensions.DependencyInjection" />- <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />- </ItemGroup>+ <ItemGroup>+ <PackageReference Include="Microsoft.SemanticKernel" />+ <PackageReference Include="Microsoft.Extensions.AI.Abstractions" />+ </ItemGroup></Project>diff --git a/dotnet/src/Microsoft.AutoGen/Contracts/Microsoft.AutoGen.Contracts.csproj b/dotnet/src/Microsoft.AutoGen/Contracts/Microsoft.AutoGen.Contracts.csprojindex 39a906640..6a8f6bbf2 100644--- a/dotnet/src/Microsoft.AutoGen/Contracts/Microsoft.AutoGen.Contracts.csproj+++ b/dotnet/src/Microsoft.AutoGen/Contracts/Microsoft.AutoGen.Contracts.csproj@@ -18,6 +18,5 @@<PackageReference Include="Grpc.AspNetCore" /><PackageReference Include="Grpc.Net.ClientFactory" /><PackageReference Include="Grpc.Tools" PrivateAssets="All" />- <PackageReference Include="Microsoft.SemanticKernel" /></ItemGroup></Project>diff --git a/dotnet/src/Microsoft.AutoGen/Core.Grpc/App.cs b/dotnet/src/Microsoft.AutoGen/Core.Grpc/App.csindex 20e9dbca3..922ef8a59 100644--- a/dotnet/src/Microsoft.AutoGen/Core.Grpc/App.cs+++ b/dotnet/src/Microsoft.AutoGen/Core.Grpc/App.cs@@ -4,7 +4,6 @@ using System.Diagnostics;using System.Diagnostics.CodeAnalysis;using Google.Protobuf;using Microsoft.AspNetCore.Builder;-using Microsoft.AutoGen.Agents;using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.DependencyInjection.Extensions;using Microsoft.Extensions.Hosting;diff --git a/dotnet/src/Microsoft.AutoGen/Core.Grpc/GrpcAgentWorker.cs b/dotnet/src/Microsoft.AutoGen/Core.Grpc/GrpcAgentWorker.csindex 6be24963e..2d86ebd30 100644--- a/dotnet/src/Microsoft.AutoGen/Core.Grpc/GrpcAgentWorker.cs+++ b/dotnet/src/Microsoft.AutoGen/Core.Grpc/GrpcAgentWorker.cs@@ -11,7 +11,7 @@ using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.Hosting;using Microsoft.Extensions.Logging;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public sealed class GrpcAgentWorker(AgentRpc.AgentRpcClient client,diff --git a/dotnet/src/Microsoft.AutoGen/Core.Grpc/GrpcAgentWorkerHostBuilderExtension.cs b/dotnet/src/Microsoft.AutoGen/Core.Grpc/GrpcAgentWorkerHostBuilderExtension.csindex 04eaca08a..34e6276b5 100644--- a/dotnet/src/Microsoft.AutoGen/Core.Grpc/GrpcAgentWorkerHostBuilderExtension.cs+++ b/dotnet/src/Microsoft.AutoGen/Core.Grpc/GrpcAgentWorkerHostBuilderExtension.cs@@ -2,7 +2,6 @@// GrpcAgentWorkerHostBuilderExtension.csusing Grpc.Core;using Grpc.Net.Client.Configuration;-using Microsoft.AutoGen.Agents;using Microsoft.AutoGen.Contracts;using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.Hosting;diff --git a/dotnet/src/Microsoft.AutoGen/Core.Grpc/Microsoft.AutoGen.Core.Grpc.csproj b/dotnet/src/Microsoft.AutoGen/Core.Grpc/Microsoft.AutoGen.Core.Grpc.csprojindex efb7e9c24..a56f306d0 100644--- a/dotnet/src/Microsoft.AutoGen/Core.Grpc/Microsoft.AutoGen.Core.Grpc.csproj+++ b/dotnet/src/Microsoft.AutoGen/Core.Grpc/Microsoft.AutoGen.Core.Grpc.csproj@@ -7,7 +7,7 @@</PropertyGroup><ItemGroup>- <ProjectReference Include="..\Agents\Microsoft.AutoGen.Agents.csproj" />+ <ProjectReference Include="..\Core\Microsoft.AutoGen.Core.csproj" /><ProjectReference Include="..\Contracts\Microsoft.AutoGen.Contracts.csproj" /></ItemGroup>diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Agent.cs b/dotnet/src/Microsoft.AutoGen/Core/Agent.cssimilarity index 99%rename from dotnet/src/Microsoft.AutoGen/Agents/Agent.csrename to dotnet/src/Microsoft.AutoGen/Core/Agent.csindex d02ad9aad..f7a2ac8f7 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/Agent.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/Agent.cs@@ -12,7 +12,7 @@ using Google.Protobuf;using Microsoft.AutoGen.Contracts;using Microsoft.Extensions.Logging;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public abstract class Agent : IDisposable, IHandle{diff --git a/dotnet/src/Microsoft.AutoGen/Agents/AgentExtensions.cs b/dotnet/src/Microsoft.AutoGen/Core/AgentExtensions.cssimilarity index 99%rename from dotnet/src/Microsoft.AutoGen/Agents/AgentExtensions.csrename to dotnet/src/Microsoft.AutoGen/Core/AgentExtensions.csindex e3e408aea..49efcb50e 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/AgentExtensions.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/AgentExtensions.cs@@ -5,7 +5,7 @@ using System.Diagnostics;using Google.Protobuf.Collections;using static Microsoft.AutoGen.Contracts.CloudEvent.Types;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;/// <summary>/// Provides extension methods for the <see cref="Agent"/> class.diff --git a/dotnet/src/Microsoft.AutoGen/Agents/AgentRuntime.cs b/dotnet/src/Microsoft.AutoGen/Core/AgentRuntime.cssimilarity index 99%rename from dotnet/src/Microsoft.AutoGen/Agents/AgentRuntime.csrename to dotnet/src/Microsoft.AutoGen/Core/AgentRuntime.csindex 89a5e2423..63290927a 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/AgentRuntime.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/AgentRuntime.cs@@ -7,7 +7,7 @@ using Microsoft.AutoGen.Contracts;using Microsoft.Extensions.Logging;using static Microsoft.AutoGen.Contracts.CloudEvent.Types;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public sealed class AgentRuntime(AgentId agentId, IAgentWorker worker, ILogger<Agent> logger, DistributedContextPropagator distributedContextPropagator) : IAgentRuntime{diff --git a/dotnet/src/Microsoft.AutoGen/Agents/AgentTypes.cs b/dotnet/src/Microsoft.AutoGen/Core/AgentTypes.cssimilarity index 95%rename from dotnet/src/Microsoft.AutoGen/Agents/AgentTypes.csrename to dotnet/src/Microsoft.AutoGen/Core/AgentTypes.csindex 8ccb88c16..d1a67678c 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/AgentTypes.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/AgentTypes.cs@@ -1,7 +1,7 @@// Copyright (c) Microsoft Corporation. All rights reserved.// AgentTypes.cs-namespace Microsoft.AutoGen.Agents+namespace Microsoft.AutoGen.Core;public sealed class AgentTypes(Dictionary<string, Type> types){diff --git a/dotnet/src/Microsoft.AutoGen/Agents/AgentWorker.cs b/dotnet/src/Microsoft.AutoGen/Core/AgentWorker.cssimilarity index 99%rename from dotnet/src/Microsoft.AutoGen/Agents/AgentWorker.csrename to dotnet/src/Microsoft.AutoGen/Core/AgentWorker.csindex 256cf83d7..d88b61e39 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/AgentWorker.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/AgentWorker.cs@@ -9,7 +9,7 @@ using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.Hosting;using Microsoft.Extensions.Logging;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public class AgentWorker :IHostedService,diff --git a/dotnet/src/Microsoft.AutoGen/Agents/App.cs b/dotnet/src/Microsoft.AutoGen/Core/App.cssimilarity index 98%rename from dotnet/src/Microsoft.AutoGen/Agents/App.csrename to dotnet/src/Microsoft.AutoGen/Core/App.csindex 5cc2f7dfb..f0850e29e 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/App.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/App.cs@@ -8,7 +8,7 @@ using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.DependencyInjection.Extensions;using Microsoft.Extensions.Hosting;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public static class AgentsApp{diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Client.cs b/dotnet/src/Microsoft.AutoGen/Core/Client.cssimilarity index 93%rename from dotnet/src/Microsoft.AutoGen/Agents/Client.csrename to dotnet/src/Microsoft.AutoGen/Core/Client.csindex 8827de8fd..274154afa 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/Client.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/Client.cs@@ -6,7 +6,7 @@ using Microsoft.AutoGen.Contracts;using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.Logging;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public sealed class Client(IAgentWorker runtime, DistributedContextPropagator distributedContextPropagator,[FromKeyedServices("EventTypes")] EventTypes eventTypes, ILogger<Client> logger): Agent(new AgentRuntime(new AgentId("client", Guid.NewGuid().ToString()), runtime, logger, distributedContextPropagator), eventTypes)diff --git a/dotnet/src/Microsoft.AutoGen/Agents/EventTypes.cs b/dotnet/src/Microsoft.AutoGen/Core/EventTypes.cssimilarity index 92%rename from dotnet/src/Microsoft.AutoGen/Agents/EventTypes.csrename to dotnet/src/Microsoft.AutoGen/Core/EventTypes.csindex c569d1d0b..7b99f4ef8 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/EventTypes.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/EventTypes.cs@@ -2,7 +2,7 @@// EventTypes.csusing Google.Protobuf.Reflection;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public sealed class EventTypes(TypeRegistry typeRegistry, Dictionary<string, Type> types, Dictionary<Type, HashSet<string>> eventsMap){public TypeRegistry TypeRegistry { get; } = typeRegistry;diff --git a/dotnet/src/Microsoft.AutoGen/Agents/HostBuilderExtensions.cs b/dotnet/src/Microsoft.AutoGen/Core/HostBuilderExtensions.cssimilarity index 99%rename from dotnet/src/Microsoft.AutoGen/Agents/HostBuilderExtensions.csrename to dotnet/src/Microsoft.AutoGen/Core/HostBuilderExtensions.csindex a6960a075..95d4d7ce7 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/HostBuilderExtensions.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/HostBuilderExtensions.cs@@ -10,7 +10,7 @@ using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.DependencyInjection.Extensions;using Microsoft.Extensions.Hosting;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public static class HostBuilderExtensions{diff --git a/dotnet/src/Microsoft.AutoGen/Agents/IAgentRuntime.cs b/dotnet/src/Microsoft.AutoGen/Core/IAgentRuntime.cssimilarity index 96%rename from dotnet/src/Microsoft.AutoGen/Agents/IAgentRuntime.csrename to dotnet/src/Microsoft.AutoGen/Core/IAgentRuntime.csindex 343e6c6ec..fd2b71d43 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/IAgentRuntime.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/IAgentRuntime.cs@@ -4,7 +4,7 @@using System.Diagnostics;using Microsoft.AutoGen.Contracts;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public interface IAgentRuntime{diff --git a/dotnet/src/Microsoft.AutoGen/Agents/IAgentWorker.cs b/dotnet/src/Microsoft.AutoGen/Core/IAgentWorker.cssimilarity index 95%rename from dotnet/src/Microsoft.AutoGen/Agents/IAgentWorker.csrename to dotnet/src/Microsoft.AutoGen/Core/IAgentWorker.csindex e663c0504..f26e30584 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/IAgentWorker.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/IAgentWorker.cs@@ -1,7 +1,7 @@// Copyright (c) Microsoft Corporation. All rights reserved.// IAgentWorker.csusing Microsoft.AutoGen.Contracts;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public interface IAgentWorker{diff --git a/dotnet/src/Microsoft.AutoGen/Agents/IHandle.cs b/dotnet/src/Microsoft.AutoGen/Core/IHandle.cssimilarity index 85%rename from dotnet/src/Microsoft.AutoGen/Agents/IHandle.csrename to dotnet/src/Microsoft.AutoGen/Core/IHandle.csindex 3e9f313ae..025ea8a51 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/IHandle.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/IHandle.cs@@ -1,6 +1,6 @@// Copyright (c) Microsoft Corporation. All rights reserved.// IHandle.cs-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public interface IHandle{Task HandleObject(object item);diff --git a/dotnet/src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj b/dotnet/src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csprojnew file mode 100644index 000000000..0dc3cba17--- /dev/null+++ b/dotnet/src/Microsoft.AutoGen/Core/Microsoft.AutoGen.Core.csproj@@ -0,0 +1,21 @@+<Project Sdk="Microsoft.NET.Sdk">++ <PropertyGroup>+ <TargetFramework>net8.0</TargetFramework>+ <ImplicitUsings>enable</ImplicitUsings>+ <Nullable>enable</Nullable>+ </PropertyGroup>++ <Import Project="$(RepoRoot)/nuget/nuget-package.props" />+++ <ItemGroup>+ <ProjectReference Include="..\Contracts\Microsoft.AutoGen.Contracts.csproj" />+ <ProjectReference Include="..\Extensions\Aspire\Microsoft.AutoGen.Extensions.Aspire.csproj" />+ </ItemGroup>++ <ItemGroup>+ <PackageReference Include="Microsoft.Extensions.DependencyInjection" />+ <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />+ </ItemGroup>+</Project>diff --git a/dotnet/src/Microsoft.AutoGen/Agents/ReflectionHelper.cs b/dotnet/src/Microsoft.AutoGen/Core/ReflectionHelper.cssimilarity index 98%rename from dotnet/src/Microsoft.AutoGen/Agents/ReflectionHelper.csrename to dotnet/src/Microsoft.AutoGen/Core/ReflectionHelper.csindex 295197ab9..41b27ffee 100644--- a/dotnet/src/Microsoft.AutoGen/Agents/ReflectionHelper.cs+++ b/dotnet/src/Microsoft.AutoGen/Core/ReflectionHelper.cs@@ -4,7 +4,7 @@ using System.Reflection;using Google.Protobuf;using Google.Protobuf.Reflection;-namespace Microsoft.AutoGen.Agents;+namespace Microsoft.AutoGen.Core;public sealed class ReflectionHelper{public static bool IsSubclassOfGeneric(Type type, Type genericBaseType)diff --git a/dotnet/src/Microsoft.AutoGen/Extensions/SemanticKernel/Microsoft.AutoGen.Extensions.SemanticKernel.csproj b/dotnet/src/Microsoft.AutoGen/Extensions/SemanticKernel/Microsoft.AutoGen.Extensions.SemanticKernel.csprojindex c4ac5536e..dc57a068c 100644--- a/dotnet/src/Microsoft.AutoGen/Extensions/SemanticKernel/Microsoft.AutoGen.Extensions.SemanticKernel.csproj+++ b/dotnet/src/Microsoft.AutoGen/Extensions/SemanticKernel/Microsoft.AutoGen.Extensions.SemanticKernel.csproj@@ -16,7 +16,7 @@<ItemGroup>- <ProjectReference Include="../../Agents/Microsoft.AutoGen.Agents.csproj" />+ <ProjectReference Include="../../Core/Microsoft.AutoGen.Core.csproj" /><ProjectReference Include="../MEAI/Microsoft.AutoGen.Extensions.MEAI.csproj" /></ItemGroup>diff --git a/dotnet/test/Microsoft.AutoGen.Agents.Tests/AgentTests.cs b/dotnet/test/Microsoft.AutoGen.Agents.Tests/AgentTests.csindex a3daa009b..bd169d644 100644--- a/dotnet/test/Microsoft.AutoGen.Agents.Tests/AgentTests.cs+++ b/dotnet/test/Microsoft.AutoGen.Agents.Tests/AgentTests.cs@@ -11,9 +11,9 @@ using Microsoft.Extensions.Hosting;using Microsoft.Extensions.Logging;using Moq;using Xunit;-using static Microsoft.AutoGen.Agents.Tests.AgentTests;+using static Microsoft.AutoGen.Core.Tests.AgentTests;-namespace Microsoft.AutoGen.Agents.Tests;+namespace Microsoft.AutoGen.Core.Tests;[Collection(ClusterFixtureCollection.Name)]public class AgentTests(InMemoryAgentRuntimeFixture fixture)diff --git a/dotnet/test/Microsoft.AutoGen.Agents.Tests/Microsoft.AutoGen.Agents.Tests.csproj b/dotnet/test/Microsoft.AutoGen.Agents.Tests/Microsoft.AutoGen.Agents.Tests.csprojindex 4abf1dc83..29165739b 100644--- a/dotnet/test/Microsoft.AutoGen.Agents.Tests/Microsoft.AutoGen.Agents.Tests.csproj+++ b/dotnet/test/Microsoft.AutoGen.Agents.Tests/Microsoft.AutoGen.Agents.Tests.csproj@@ -8,7 +8,7 @@</PropertyGroup><ItemGroup>- <ProjectReference Include="..\..\src\Microsoft.AutoGen\Agents\Microsoft.AutoGen.Agents.csproj" />+ <ProjectReference Include="..\..\src\Microsoft.AutoGen\Core\Microsoft.AutoGen.Core.csproj" /><PackageReference Include="Microsoft.Extensions.Hosting" /></ItemGroup>