Skip to content

A programming framework for agentic AI

fix: Various fixes and cleanups to dotnet autogen core (#5242)

Griffin Bassman850377c74a10
diff --git a/dotnet/AutoGen.sln b/dotnet/AutoGen.sln
index 303f86b88..f8e2e57a9 100644
--- a/dotnet/AutoGen.sln
+++ b/dotnet/AutoGen.sln
@@ -84,24 +84,22 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Extension
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AgentChat", "AgentChat", "{668726B9-77BC-45CF-B576-0F0773BF1615}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Anthropic.Samples", "samples\AutoGen.Anthropic.Samples\AutoGen.Anthropic.Samples.csproj", "{84020C4A-933A-4693-9889-1B99304A7D76}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Anthropic.Sample", "samples\AgentChat\AutoGen.Anthropic.Sample\AutoGen.Anthropic.Sample.csproj", "{84020C4A-933A-4693-9889-1B99304A7D76}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.BasicSample", "samples\AutoGen.BasicSamples\AutoGen.BasicSample.csproj", "{5777515F-4053-42F9-AF2B-95D8D0F5384A}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Basic.Sample", "samples\AgentChat\AutoGen.Basic.Sample\AutoGen.Basic.Sample.csproj", "{5777515F-4053-42F9-AF2B-95D8D0F5384A}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Gemini.Sample", "samples\AutoGen.Gemini.Sample\AutoGen.Gemini.Sample.csproj", "{2E895A70-DF17-4C6C-BB84-F83B07C75AAD}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Gemini.Sample", "samples\AgentChat\AutoGen.Gemini.Sample\AutoGen.Gemini.Sample.csproj", "{2E895A70-DF17-4C6C-BB84-F83B07C75AAD}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Ollama.Sample", "samples\AutoGen.Ollama.Sample\AutoGen.Ollama.Sample.csproj", "{20DA47F2-F6C4-4503-B9D4-420994E28EF0}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Ollama.Sample", "samples\AgentChat\AutoGen.Ollama.Sample\AutoGen.Ollama.Sample.csproj", "{20DA47F2-F6C4-4503-B9D4-420994E28EF0}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.OpenAI.Sample", "samples\AutoGen.OpenAI.Sample\AutoGen.OpenAI.Sample.csproj", "{1F86E48B-8674-4C20-A3BE-9431049A5BEC}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.OpenAI.Sample", "samples\AgentChat\AutoGen.OpenAI.Sample\AutoGen.OpenAI.Sample.csproj", "{1F86E48B-8674-4C20-A3BE-9431049A5BEC}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.SemanticKernel.Sample", "samples\AutoGen.SemanticKernel.Sample\AutoGen.SemanticKernel.Sample.csproj", "{CB8824F5-9475-451F-87E8-F2AEF2490A12}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.SemanticKernel.Sample", "samples\AgentChat\AutoGen.SemanticKernel.Sample\AutoGen.SemanticKernel.Sample.csproj", "{CB8824F5-9475-451F-87E8-F2AEF2490A12}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.WebAPI.Sample", "samples\AutoGen.WebAPI.Sample\AutoGen.WebAPI.Sample.csproj", "{4385AFCF-AB4A-49B2-BEBA-D33C950E1EE6}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.WebAPI.Sample", "samples\AgentChat\AutoGen.WebAPI.Sample\AutoGen.WebAPI.Sample.csproj", "{4385AFCF-AB4A-49B2-BEBA-D33C950E1EE6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Extensions.MEAI", "src\Microsoft.AutoGen\Extensions\MEAI\Microsoft.AutoGen.Extensions.MEAI.csproj", "{97550E87-48C6-4EBF-85E1-413ABAE9DBFD}"
EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sample", "sample", "{686480D7-8FEC-4ED3-9C5D-CEBE1057A7ED}"
-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("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Contracts", "src\Microsoft.AutoGen\Contracts\Microsoft.AutoGen.Contracts.csproj", "{7F60934B-3E59-48D0-B26D-04A39FEC13EF}"
@@ -112,235 +110,194 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Tests.Sha
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{CE0AA8D5-12B8-4628-9589-DAD8CB0DDCF6}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "getting-started", "samples\getting-started\getting-started.csproj", "{70A8D4B5-D0A6-4098-A6F3-6ED274B65E7D}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GettingStarted", "samples\GettingStarted\GettingStarted.csproj", "{70A8D4B5-D0A6-4098-A6F3-6ED274B65E7D}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloAgent", "samples\Hello\HelloAgent\HelloAgent.csproj", "{AAD593FE-A49B-425E-A9FE-A0022CD25E3D}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Hello", "Hello", "{F42F9C8E-7BD9-4687-9B63-AFFA461AF5C1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
- CoreOnly|Any CPU = CoreOnly|Any CPU
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {B2B27ACB-AA50-4FED-A06C-3AD6B4218188}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{B2B27ACB-AA50-4FED-A06C-3AD6B4218188}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B2B27ACB-AA50-4FED-A06C-3AD6B4218188}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B2B27ACB-AA50-4FED-A06C-3AD6B4218188}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B2B27ACB-AA50-4FED-A06C-3AD6B4218188}.Release|Any CPU.Build.0 = Release|Any CPU
- {FDD99AEC-4C57-4020-B23F-650612856102}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{FDD99AEC-4C57-4020-B23F-650612856102}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FDD99AEC-4C57-4020-B23F-650612856102}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FDD99AEC-4C57-4020-B23F-650612856102}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FDD99AEC-4C57-4020-B23F-650612856102}.Release|Any CPU.Build.0 = Release|Any CPU
- {3FFD14E3-D6BC-4EA7-97A2-D21733060FD6}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{3FFD14E3-D6BC-4EA7-97A2-D21733060FD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3FFD14E3-D6BC-4EA7-97A2-D21733060FD6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3FFD14E3-D6BC-4EA7-97A2-D21733060FD6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3FFD14E3-D6BC-4EA7-97A2-D21733060FD6}.Release|Any CPU.Build.0 = Release|Any CPU
- {05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5}.Release|Any CPU.Build.0 = Release|Any CPU
- {B61D8008-7FB7-4C0E-8044-3A74AA63A596}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{B61D8008-7FB7-4C0E-8044-3A74AA63A596}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B61D8008-7FB7-4C0E-8044-3A74AA63A596}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B61D8008-7FB7-4C0E-8044-3A74AA63A596}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B61D8008-7FB7-4C0E-8044-3A74AA63A596}.Release|Any CPU.Build.0 = Release|Any CPU
- {F98BDA9B-8657-4BA8-9B03-BAEA454CAE60}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{F98BDA9B-8657-4BA8-9B03-BAEA454CAE60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F98BDA9B-8657-4BA8-9B03-BAEA454CAE60}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F98BDA9B-8657-4BA8-9B03-BAEA454CAE60}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F98BDA9B-8657-4BA8-9B03-BAEA454CAE60}.Release|Any CPU.Build.0 = Release|Any CPU
- {45D6FC80-36F3-4967-9663-E20B63824621}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{45D6FC80-36F3-4967-9663-E20B63824621}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{45D6FC80-36F3-4967-9663-E20B63824621}.Debug|Any CPU.Build.0 = Debug|Any CPU
{45D6FC80-36F3-4967-9663-E20B63824621}.Release|Any CPU.ActiveCfg = Release|Any CPU
{45D6FC80-36F3-4967-9663-E20B63824621}.Release|Any CPU.Build.0 = Release|Any CPU
- {D58D43D1-0617-4A3D-9932-C773E6398535}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{D58D43D1-0617-4A3D-9932-C773E6398535}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D58D43D1-0617-4A3D-9932-C773E6398535}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D58D43D1-0617-4A3D-9932-C773E6398535}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D58D43D1-0617-4A3D-9932-C773E6398535}.Release|Any CPU.Build.0 = Release|Any CPU
- {63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC}.Release|Any CPU.Build.0 = Release|Any CPU
- {6585D1A4-3D97-4D76-A688-1933B61AEB19}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{6585D1A4-3D97-4D76-A688-1933B61AEB19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6585D1A4-3D97-4D76-A688-1933B61AEB19}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6585D1A4-3D97-4D76-A688-1933B61AEB19}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6585D1A4-3D97-4D76-A688-1933B61AEB19}.Release|Any CPU.Build.0 = Release|Any CPU
- {15441693-3659-4868-B6C1-B106F52FF3BA}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{15441693-3659-4868-B6C1-B106F52FF3BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{15441693-3659-4868-B6C1-B106F52FF3BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{15441693-3659-4868-B6C1-B106F52FF3BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{15441693-3659-4868-B6C1-B106F52FF3BA}.Release|Any CPU.Build.0 = Release|Any CPU
- {257FFD71-08E5-40C7-AB04-6A81A78EB410}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{257FFD71-08E5-40C7-AB04-6A81A78EB410}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{257FFD71-08E5-40C7-AB04-6A81A78EB410}.Debug|Any CPU.Build.0 = Debug|Any CPU
{257FFD71-08E5-40C7-AB04-6A81A78EB410}.Release|Any CPU.ActiveCfg = Release|Any CPU
{257FFD71-08E5-40C7-AB04-6A81A78EB410}.Release|Any CPU.Build.0 = Release|Any CPU
- {E2EF5E66-683C-4DDC-8ADA-5F676502B9BA}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{E2EF5E66-683C-4DDC-8ADA-5F676502B9BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E2EF5E66-683C-4DDC-8ADA-5F676502B9BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E2EF5E66-683C-4DDC-8ADA-5F676502B9BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E2EF5E66-683C-4DDC-8ADA-5F676502B9BA}.Release|Any CPU.Build.0 = Release|Any CPU
- {1DFABC4A-8458-4875-8DCB-59F3802DAC65}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{1DFABC4A-8458-4875-8DCB-59F3802DAC65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1DFABC4A-8458-4875-8DCB-59F3802DAC65}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1DFABC4A-8458-4875-8DCB-59F3802DAC65}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1DFABC4A-8458-4875-8DCB-59F3802DAC65}.Release|Any CPU.Build.0 = Release|Any CPU
- {D36A85F9-C172-487D-8192-6BFE5D05B4A7}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{D36A85F9-C172-487D-8192-6BFE5D05B4A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D36A85F9-C172-487D-8192-6BFE5D05B4A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D36A85F9-C172-487D-8192-6BFE5D05B4A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D36A85F9-C172-487D-8192-6BFE5D05B4A7}.Release|Any CPU.Build.0 = Release|Any CPU
- {B61388CA-DC73-4B7F-A7B2-7B9A86C9229E}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{B61388CA-DC73-4B7F-A7B2-7B9A86C9229E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B61388CA-DC73-4B7F-A7B2-7B9A86C9229E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B61388CA-DC73-4B7F-A7B2-7B9A86C9229E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B61388CA-DC73-4B7F-A7B2-7B9A86C9229E}.Release|Any CPU.Build.0 = Release|Any CPU
- {9F9E6DED-3D92-4970-909A-70FC11F1A665}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{9F9E6DED-3D92-4970-909A-70FC11F1A665}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9F9E6DED-3D92-4970-909A-70FC11F1A665}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9F9E6DED-3D92-4970-909A-70FC11F1A665}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9F9E6DED-3D92-4970-909A-70FC11F1A665}.Release|Any CPU.Build.0 = Release|Any CPU
- {03E31CAA-3728-48D3-B936-9F11CF6C18FE}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{03E31CAA-3728-48D3-B936-9F11CF6C18FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{03E31CAA-3728-48D3-B936-9F11CF6C18FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{03E31CAA-3728-48D3-B936-9F11CF6C18FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{03E31CAA-3728-48D3-B936-9F11CF6C18FE}.Release|Any CPU.Build.0 = Release|Any CPU
- {6A95E113-B824-4524-8F13-CD0C3E1C8804}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{6A95E113-B824-4524-8F13-CD0C3E1C8804}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6A95E113-B824-4524-8F13-CD0C3E1C8804}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A95E113-B824-4524-8F13-CD0C3E1C8804}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A95E113-B824-4524-8F13-CD0C3E1C8804}.Release|Any CPU.Build.0 = Release|Any CPU
- {815E937E-86D6-4476-9EC6-B7FBCBBB5DB6}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{815E937E-86D6-4476-9EC6-B7FBCBBB5DB6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{815E937E-86D6-4476-9EC6-B7FBCBBB5DB6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{815E937E-86D6-4476-9EC6-B7FBCBBB5DB6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{815E937E-86D6-4476-9EC6-B7FBCBBB5DB6}.Release|Any CPU.Build.0 = Release|Any CPU
- {EFE0DC86-80FC-4D52-95B7-07654BA1A769}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{EFE0DC86-80FC-4D52-95B7-07654BA1A769}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EFE0DC86-80FC-4D52-95B7-07654BA1A769}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EFE0DC86-80FC-4D52-95B7-07654BA1A769}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EFE0DC86-80FC-4D52-95B7-07654BA1A769}.Release|Any CPU.Build.0 = Release|Any CPU
- {8EA16BAB-465A-4C07-ABC4-1070D40067E9}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{8EA16BAB-465A-4C07-ABC4-1070D40067E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8EA16BAB-465A-4C07-ABC4-1070D40067E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8EA16BAB-465A-4C07-ABC4-1070D40067E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8EA16BAB-465A-4C07-ABC4-1070D40067E9}.Release|Any CPU.Build.0 = Release|Any CPU
- {6B82F26D-5040-4453-B21B-C8D1F913CE4C}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{6B82F26D-5040-4453-B21B-C8D1F913CE4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B82F26D-5040-4453-B21B-C8D1F913CE4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6B82F26D-5040-4453-B21B-C8D1F913CE4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B82F26D-5040-4453-B21B-C8D1F913CE4C}.Release|Any CPU.Build.0 = Release|Any CPU
- {5C45981D-1319-4C25-935C-83D411CB28DF}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{5C45981D-1319-4C25-935C-83D411CB28DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5C45981D-1319-4C25-935C-83D411CB28DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5C45981D-1319-4C25-935C-83D411CB28DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5C45981D-1319-4C25-935C-83D411CB28DF}.Release|Any CPU.Build.0 = Release|Any CPU
- {5970868F-831E-418F-89A9-4EC599563E16}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{5970868F-831E-418F-89A9-4EC599563E16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5970868F-831E-418F-89A9-4EC599563E16}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5970868F-831E-418F-89A9-4EC599563E16}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5970868F-831E-418F-89A9-4EC599563E16}.Release|Any CPU.Build.0 = Release|Any CPU
- {143725E2-206C-4D37-93E4-9EDF699826B2}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{143725E2-206C-4D37-93E4-9EDF699826B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{143725E2-206C-4D37-93E4-9EDF699826B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{143725E2-206C-4D37-93E4-9EDF699826B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{143725E2-206C-4D37-93E4-9EDF699826B2}.Release|Any CPU.Build.0 = Release|Any CPU
- {3AF1CBEC-2877-41E9-92AE-3A391B2AA9E8}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{3AF1CBEC-2877-41E9-92AE-3A391B2AA9E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3AF1CBEC-2877-41E9-92AE-3A391B2AA9E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3AF1CBEC-2877-41E9-92AE-3A391B2AA9E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3AF1CBEC-2877-41E9-92AE-3A391B2AA9E8}.Release|Any CPU.Build.0 = Release|Any CPU
- {42A8251C-E7B3-47BB-A82E-459952EBE132}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{42A8251C-E7B3-47BB-A82E-459952EBE132}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{42A8251C-E7B3-47BB-A82E-459952EBE132}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42A8251C-E7B3-47BB-A82E-459952EBE132}.Release|Any CPU.ActiveCfg = Release|Any CPU
{42A8251C-E7B3-47BB-A82E-459952EBE132}.Release|Any CPU.Build.0 = Release|Any CPU
- {FD87BD33-4616-460B-AC85-A412BA08BB78}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
- {FD87BD33-4616-460B-AC85-A412BA08BB78}.CoreOnly|Any CPU.Build.0 = Debug|Any CPU
{FD87BD33-4616-460B-AC85-A412BA08BB78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FD87BD33-4616-460B-AC85-A412BA08BB78}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FD87BD33-4616-460B-AC85-A412BA08BB78}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FD87BD33-4616-460B-AC85-A412BA08BB78}.Release|Any CPU.Build.0 = Release|Any CPU
- {952827D4-8D4C-4327-AE4D-E8D25811EF35}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{952827D4-8D4C-4327-AE4D-E8D25811EF35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{952827D4-8D4C-4327-AE4D-E8D25811EF35}.Debug|Any CPU.Build.0 = Debug|Any CPU
{952827D4-8D4C-4327-AE4D-E8D25811EF35}.Release|Any CPU.ActiveCfg = Release|Any CPU
{952827D4-8D4C-4327-AE4D-E8D25811EF35}.Release|Any CPU.Build.0 = Release|Any CPU
- {84020C4A-933A-4693-9889-1B99304A7D76}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{84020C4A-933A-4693-9889-1B99304A7D76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{84020C4A-933A-4693-9889-1B99304A7D76}.Debug|Any CPU.Build.0 = Debug|Any CPU
{84020C4A-933A-4693-9889-1B99304A7D76}.Release|Any CPU.ActiveCfg = Release|Any CPU
{84020C4A-933A-4693-9889-1B99304A7D76}.Release|Any CPU.Build.0 = Release|Any CPU
- {5777515F-4053-42F9-AF2B-95D8D0F5384A}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{5777515F-4053-42F9-AF2B-95D8D0F5384A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5777515F-4053-42F9-AF2B-95D8D0F5384A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5777515F-4053-42F9-AF2B-95D8D0F5384A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5777515F-4053-42F9-AF2B-95D8D0F5384A}.Release|Any CPU.Build.0 = Release|Any CPU
- {2E895A70-DF17-4C6C-BB84-F83B07C75AAD}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{2E895A70-DF17-4C6C-BB84-F83B07C75AAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2E895A70-DF17-4C6C-BB84-F83B07C75AAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2E895A70-DF17-4C6C-BB84-F83B07C75AAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2E895A70-DF17-4C6C-BB84-F83B07C75AAD}.Release|Any CPU.Build.0 = Release|Any CPU
- {20DA47F2-F6C4-4503-B9D4-420994E28EF0}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{20DA47F2-F6C4-4503-B9D4-420994E28EF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{20DA47F2-F6C4-4503-B9D4-420994E28EF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{20DA47F2-F6C4-4503-B9D4-420994E28EF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{20DA47F2-F6C4-4503-B9D4-420994E28EF0}.Release|Any CPU.Build.0 = Release|Any CPU
- {1F86E48B-8674-4C20-A3BE-9431049A5BEC}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{1F86E48B-8674-4C20-A3BE-9431049A5BEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F86E48B-8674-4C20-A3BE-9431049A5BEC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F86E48B-8674-4C20-A3BE-9431049A5BEC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F86E48B-8674-4C20-A3BE-9431049A5BEC}.Release|Any CPU.Build.0 = Release|Any CPU
- {CB8824F5-9475-451F-87E8-F2AEF2490A12}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{CB8824F5-9475-451F-87E8-F2AEF2490A12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CB8824F5-9475-451F-87E8-F2AEF2490A12}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CB8824F5-9475-451F-87E8-F2AEF2490A12}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CB8824F5-9475-451F-87E8-F2AEF2490A12}.Release|Any CPU.Build.0 = Release|Any CPU
- {4385AFCF-AB4A-49B2-BEBA-D33C950E1EE6}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{4385AFCF-AB4A-49B2-BEBA-D33C950E1EE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4385AFCF-AB4A-49B2-BEBA-D33C950E1EE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4385AFCF-AB4A-49B2-BEBA-D33C950E1EE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4385AFCF-AB4A-49B2-BEBA-D33C950E1EE6}.Release|Any CPU.Build.0 = Release|Any CPU
- {97550E87-48C6-4EBF-85E1-413ABAE9DBFD}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{97550E87-48C6-4EBF-85E1-413ABAE9DBFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{97550E87-48C6-4EBF-85E1-413ABAE9DBFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{97550E87-48C6-4EBF-85E1-413ABAE9DBFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{97550E87-48C6-4EBF-85E1-413ABAE9DBFD}.Release|Any CPU.Build.0 = Release|Any CPU
- {65059914-5527-4A00-9308-9FAF23D5E85A}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
{65059914-5527-4A00-9308-9FAF23D5E85A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{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
- {7F60934B-3E59-48D0-B26D-04A39FEC13EF}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
- {7F60934B-3E59-48D0-B26D-04A39FEC13EF}.CoreOnly|Any CPU.Build.0 = Debug|Any CPU
{7F60934B-3E59-48D0-B26D-04A39FEC13EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7F60934B-3E59-48D0-B26D-04A39FEC13EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F60934B-3E59-48D0-B26D-04A39FEC13EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F60934B-3E59-48D0-B26D-04A39FEC13EF}.Release|Any CPU.Build.0 = Release|Any CPU
- {EAFFE339-26CB-4019-991D-BCCE8E7D33A1}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
- {EAFFE339-26CB-4019-991D-BCCE8E7D33A1}.CoreOnly|Any CPU.Build.0 = Debug|Any CPU
{EAFFE339-26CB-4019-991D-BCCE8E7D33A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EAFFE339-26CB-4019-991D-BCCE8E7D33A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EAFFE339-26CB-4019-991D-BCCE8E7D33A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EAFFE339-26CB-4019-991D-BCCE8E7D33A1}.Release|Any CPU.Build.0 = Release|Any CPU
- {58AD8E1D-83BD-4950-A324-1A20677D78D9}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
- {58AD8E1D-83BD-4950-A324-1A20677D78D9}.CoreOnly|Any CPU.Build.0 = Debug|Any CPU
{58AD8E1D-83BD-4950-A324-1A20677D78D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{58AD8E1D-83BD-4950-A324-1A20677D78D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58AD8E1D-83BD-4950-A324-1A20677D78D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58AD8E1D-83BD-4950-A324-1A20677D78D9}.Release|Any CPU.Build.0 = Release|Any CPU
- {70A8D4B5-D0A6-4098-A6F3-6ED274B65E7D}.CoreOnly|Any CPU.ActiveCfg = Debug|Any CPU
- {70A8D4B5-D0A6-4098-A6F3-6ED274B65E7D}.CoreOnly|Any CPU.Build.0 = Debug|Any CPU
{70A8D4B5-D0A6-4098-A6F3-6ED274B65E7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{70A8D4B5-D0A6-4098-A6F3-6ED274B65E7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{70A8D4B5-D0A6-4098-A6F3-6ED274B65E7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{70A8D4B5-D0A6-4098-A6F3-6ED274B65E7D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {AAD593FE-A49B-425E-A9FE-A0022CD25E3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AAD593FE-A49B-425E-A9FE-A0022CD25E3D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {AAD593FE-A49B-425E-A9FE-A0022CD25E3D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AAD593FE-A49B-425E-A9FE-A0022CD25E3D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -377,7 +334,7 @@ Global
{4BB66E06-37D8-45A0-9B97-DE590AFBA340} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{FD87BD33-4616-460B-AC85-A412BA08BB78} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
{952827D4-8D4C-4327-AE4D-E8D25811EF35} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
- {668726B9-77BC-45CF-B576-0F0773BF1615} = {686480D7-8FEC-4ED3-9C5D-CEBE1057A7ED}
+ {668726B9-77BC-45CF-B576-0F0773BF1615} = {CE0AA8D5-12B8-4628-9589-DAD8CB0DDCF6}
{84020C4A-933A-4693-9889-1B99304A7D76} = {668726B9-77BC-45CF-B576-0F0773BF1615}
{5777515F-4053-42F9-AF2B-95D8D0F5384A} = {668726B9-77BC-45CF-B576-0F0773BF1615}
{2E895A70-DF17-4C6C-BB84-F83B07C75AAD} = {668726B9-77BC-45CF-B576-0F0773BF1615}
@@ -391,6 +348,8 @@ Global
{EAFFE339-26CB-4019-991D-BCCE8E7D33A1} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
{58AD8E1D-83BD-4950-A324-1A20677D78D9} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
{70A8D4B5-D0A6-4098-A6F3-6ED274B65E7D} = {CE0AA8D5-12B8-4628-9589-DAD8CB0DDCF6}
+ {AAD593FE-A49B-425E-A9FE-A0022CD25E3D} = {F42F9C8E-7BD9-4687-9B63-AFFA461AF5C1}
+ {F42F9C8E-7BD9-4687-9B63-AFFA461AF5C1} = {CE0AA8D5-12B8-4628-9589-DAD8CB0DDCF6}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {93384647-528D-46C8-922C-8DB36A382F0B}
diff --git a/dotnet/README.md b/dotnet/README.md
index c34679389..7647d227a 100644
--- a/dotnet/README.md
+++ b/dotnet/README.md
@@ -52,7 +52,7 @@ await userProxyAgent.InitiateChatAsync(
## Samples
-You can find more examples under the [sample project](https://github.com/microsoft/autogen/tree/dotnet/samples/AutoGen.BasicSamples).
+You can find more examples under the [sample project](https://github.com/microsoft/autogen/tree/dotnet/samples/AgentChat/Autogen.Basic.Sample).
## Functionality
diff --git a/dotnet/samples/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs b/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Anthropic_Agent_With_Prompt_Caching.cs
similarity index 99%
rename from dotnet/samples/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs
rename to dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Anthropic_Agent_With_Prompt_Caching.cs
index d0b447512..6115223b5 100644
--- a/dotnet/samples/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Anthropic_Agent_With_Prompt_Caching.cs
@@ -6,7 +6,7 @@ using AutoGen.Anthropic.Extensions;
using AutoGen.Anthropic.Utils;
using AutoGen.Core;
-namespace AutoGen.Anthropic.Samples;
+namespace AutoGen.Anthropic.Sample;
public class Anthropic_Agent_With_Prompt_Caching
{
diff --git a/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/AutoGen.Anthropic.Sample.csproj b/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/AutoGen.Anthropic.Sample.csproj
new file mode 100644
index 000000000..7e819fab0
--- /dev/null
+++ b/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/AutoGen.Anthropic.Sample.csproj
@@ -0,0 +1,19 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
+ <ImplicitUsings>enable</ImplicitUsings>
+ <Nullable>enable</Nullable>
+ <GenerateDocumentationFile>True</GenerateDocumentationFile>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <ProjectReference Include="..\..\..\src\AutoGen.Anthropic\AutoGen.Anthropic.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.DotnetInteractive\AutoGen.DotnetInteractive.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
+ <ProjectReference Include="..\..\..\src\AutoGen\AutoGen.csproj" />
+ <PackageReference Include="FluentAssertions" />
+ </ItemGroup>
+
+</Project>
diff --git a/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs b/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Create_Anthropic_Agent.cs
similarity index 96%
rename from dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs
rename to dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Create_Anthropic_Agent.cs
index 397e24b1c..9b124304d 100644
--- a/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Create_Anthropic_Agent.cs
@@ -5,7 +5,7 @@ using AutoGen.Anthropic.Extensions;
using AutoGen.Anthropic.Utils;
using AutoGen.Core;
-namespace AutoGen.Anthropic.Samples;
+namespace AutoGen.Anthropic.Sample;
public static class Create_Anthropic_Agent
{
diff --git a/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs b/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Create_Anthropic_Agent_With_Tool.cs
similarity index 98%
rename from dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs
rename to dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Create_Anthropic_Agent_With_Tool.cs
index f699bc9e1..8f82faea6 100644
--- a/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Create_Anthropic_Agent_With_Tool.cs
@@ -7,7 +7,7 @@ using AutoGen.Anthropic.Utils;
using AutoGen.Core;
using FluentAssertions;
-namespace AutoGen.Anthropic.Samples;
+namespace AutoGen.Anthropic.Sample;
#region WeatherFunction
diff --git a/dotnet/samples/AutoGen.Anthropic.Samples/Program.cs b/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Program.cs
similarity index 86%
rename from dotnet/samples/AutoGen.Anthropic.Samples/Program.cs
rename to dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Program.cs
index 39e85d48e..e03f9ccd9 100644
--- a/dotnet/samples/AutoGen.Anthropic.Samples/Program.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Anthropic.Sample/Program.cs
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Program.cs
-namespace AutoGen.Anthropic.Samples;
+namespace AutoGen.Anthropic.Sample;
internal static class Program
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/AutoGen.BasicSample.csproj b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/AutoGen.Basic.Sample.csproj
similarity index 67%
rename from dotnet/samples/AutoGen.BasicSamples/AutoGen.BasicSample.csproj
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/AutoGen.Basic.Sample.csproj
index 9e510ffa2..549b19bbf 100644
--- a/dotnet/samples/AutoGen.BasicSamples/AutoGen.BasicSample.csproj
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/AutoGen.Basic.Sample.csproj
@@ -10,9 +10,9 @@
</PropertyGroup>
<ItemGroup>
- <ProjectReference Include="..\..\src\AutoGen.DotnetInteractive\AutoGen.DotnetInteractive.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
- <ProjectReference Include="..\..\src\AutoGen\AutoGen.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.DotnetInteractive\AutoGen.DotnetInteractive.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
+ <ProjectReference Include="..\..\..\src\AutoGen\AutoGen.csproj" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Web" />
<PackageReference Include="Microsoft.Extensions.AI" />
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/AgentCodeSnippet.cs
similarity index 95%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/AgentCodeSnippet.cs
index b97f30229..fc52873d4 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/AgentCodeSnippet.cs
@@ -3,7 +3,7 @@
using AutoGen.Core;
-namespace AutoGen.BasicSample.CodeSnippet;
+namespace AutoGen.Basic.Sample.CodeSnippet;
internal class AgentCodeSnippet
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/BuildInMessageCodeSnippet.cs
similarity index 96%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/BuildInMessageCodeSnippet.cs
index 2fac8fee8..35b13c126 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/BuildInMessageCodeSnippet.cs
@@ -2,7 +2,7 @@
// BuildInMessageCodeSnippet.cs
using AutoGen.Core;
-namespace AutoGen.BasicSample.CodeSnippet;
+namespace AutoGen.Basic.Sample.CodeSnippet;
internal class BuildInMessageCodeSnippet
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/CreateAnAgent.cs
similarity index 100%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/CreateAnAgent.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/FunctionCallCodeSnippet.cs
similarity index 100%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/FunctionCallCodeSnippet.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/GetStartCodeSnippet.cs
similarity index 100%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/GetStartCodeSnippet.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/MiddlewareAgentCodeSnippet.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/MiddlewareAgentCodeSnippet.cs
index 1f0a7f179..ea3021905 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/MiddlewareAgentCodeSnippet.cs
@@ -6,7 +6,7 @@ using AutoGen.Core;
using AutoGen.OpenAI;
using FluentAssertions;
-namespace AutoGen.BasicSample.CodeSnippet;
+namespace AutoGen.Basic.Sample.CodeSnippet;
public class MiddlewareAgentCodeSnippet
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs
index 77a248282..71b8c5de7 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs
@@ -8,7 +8,7 @@ using AutoGen.Mistral.Extension;
using FluentAssertions;
#endregion using_statement
-namespace AutoGen.BasicSample.CodeSnippet;
+namespace AutoGen.Basic.Sample.CodeSnippet;
#region weather_function
public partial class MistralAgentFunction
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs
index cd77fa81f..b4e4f26c1 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs
@@ -10,7 +10,7 @@ using FluentAssertions;
using OpenAI;
using OpenAI.Chat;
-namespace AutoGen.BasicSample.CodeSnippet;
+namespace AutoGen.Basic.Sample.CodeSnippet;
#region weather_function
public partial class Functions
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs
similarity index 96%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs
index c3c92fbcc..8e3a469bc 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs
@@ -5,7 +5,7 @@ using AutoGen.Core;
using AutoGen.OpenAI;
using AutoGen.OpenAI.Extension;
-namespace AutoGen.BasicSample.CodeSnippet;
+namespace AutoGen.Basic.Sample.CodeSnippet;
internal class PrintMessageMiddlewareCodeSnippet
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/RunCodeSnippetCodeSnippet.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/RunCodeSnippetCodeSnippet.cs
index a3ac22cc5..47f91a16f 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/RunCodeSnippetCodeSnippet.cs
@@ -7,7 +7,7 @@ using AutoGen.DotnetInteractive;
using AutoGen.DotnetInteractive.Extension;
#endregion code_snippet_0_1
-namespace AutoGen.BasicSample.CodeSnippet;
+namespace AutoGen.Basic.Sample.CodeSnippet;
public class RunCodeSnippetCodeSnippet
{
public async Task CodeSnippet1()
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/SemanticKernelCodeSnippet.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/SemanticKernelCodeSnippet.cs
index 1d6b592ee..93f1d6146 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/SemanticKernelCodeSnippet.cs
@@ -8,7 +8,7 @@ using FluentAssertions;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.ChatCompletion;
-namespace AutoGen.BasicSample.CodeSnippet;
+namespace AutoGen.Basic.Sample.CodeSnippet;
public class SemanticKernelCodeSnippet
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs
similarity index 100%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/UserProxyAgentCodeSnippet.cs
similarity index 91%
rename from dotnet/samples/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/UserProxyAgentCodeSnippet.cs
index a04685be9..83e0570cf 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/CodeSnippet/UserProxyAgentCodeSnippet.cs
@@ -3,7 +3,7 @@
using AutoGen.Core;
-namespace AutoGen.BasicSample.CodeSnippet;
+namespace AutoGen.Basic.Sample.CodeSnippet;
public class UserProxyAgentCodeSnippet
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example01_AssistantAgent.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example01_AssistantAgent.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/Example01_AssistantAgent.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example01_AssistantAgent.cs
index 61d9e3c67..05ee0951a 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example01_AssistantAgent.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example01_AssistantAgent.cs
@@ -2,7 +2,7 @@
// Example01_AssistantAgent.cs
using AutoGen;
-using AutoGen.BasicSample;
+using AutoGen.Basic.Sample;
using AutoGen.Core;
using AutoGen.OpenAI;
using AutoGen.OpenAI.Extension;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example02_TwoAgent_MathChat.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example02_TwoAgent_MathChat.cs
index 559decb03..80c66f820 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example02_TwoAgent_MathChat.cs
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Example02_TwoAgent_MathChat.cs
-using AutoGen.BasicSample;
+using AutoGen.Basic.Sample;
using AutoGen.Core;
using AutoGen.OpenAI;
using AutoGen.OpenAI.Extension;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example03_Agent_FunctionCall.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example03_Agent_FunctionCall.cs
index c10870803..06d91418b 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example03_Agent_FunctionCall.cs
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Example03_Agent_FunctionCall.cs
-using AutoGen.BasicSample;
+using AutoGen.Basic.Sample;
using AutoGen.Core;
using AutoGen.OpenAI;
using AutoGen.OpenAI.Extension;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example04_Dynamic_GroupChat_Coding_Task.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example04_Dynamic_GroupChat_Coding_Task.cs
index efc8d9aa3..b6b799f80 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example04_Dynamic_GroupChat_Coding_Task.cs
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Example04_Dynamic_GroupChat_Coding_Task.cs
-using AutoGen.BasicSample;
+using AutoGen.Basic.Sample;
using AutoGen.Core;
using AutoGen.DotnetInteractive;
using AutoGen.DotnetInteractive.Extension;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example05_Dalle_And_GPT4V.cs
similarity index 100%
rename from dotnet/samples/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example05_Dalle_And_GPT4V.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example06_UserProxyAgent.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example06_UserProxyAgent.cs
similarity index 97%
rename from dotnet/samples/AutoGen.BasicSamples/Example06_UserProxyAgent.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example06_UserProxyAgent.cs
index 655121f96..20ca951c0 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example06_UserProxyAgent.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example06_UserProxyAgent.cs
@@ -5,7 +5,7 @@ using AutoGen.Core;
using AutoGen.OpenAI;
using AutoGen.OpenAI.Extension;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public static class Example06_UserProxyAgent
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs
index b5c4b2b53..3a53e33ed 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs
@@ -3,7 +3,7 @@
using System.Text;
using System.Text.Json;
-using AutoGen.BasicSample;
+using AutoGen.Basic.Sample;
using AutoGen.Core;
using AutoGen.DotnetInteractive;
using AutoGen.DotnetInteractive.Extension;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example08_LMStudio.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example08_LMStudio.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/Example08_LMStudio.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example08_LMStudio.cs
index 499588b46..4290c2dc7 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example08_LMStudio.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example08_LMStudio.cs
@@ -9,7 +9,7 @@ using AutoGen.OpenAI.Extension;
using OpenAI;
#endregion lmstudio_using_statements
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public class Example08_LMStudio
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example10_SemanticKernel.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example10_SemanticKernel.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/Example10_SemanticKernel.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example10_SemanticKernel.cs
index 8b08d8a1d..209b3dc58 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example10_SemanticKernel.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example10_SemanticKernel.cs
@@ -8,7 +8,7 @@ using FluentAssertions;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.ChatCompletion;
using Microsoft.SemanticKernel.Connectors.OpenAI;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public class LightPlugin
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example11_Sequential_GroupChat_Example.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example11_Sequential_GroupChat_Example.cs
index 3298cfdb9..b32dff3db 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example11_Sequential_GroupChat_Example.cs
@@ -12,7 +12,7 @@ using Microsoft.SemanticKernel.Plugins.Web;
using Microsoft.SemanticKernel.Plugins.Web.Bing;
#endregion using_statement
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public partial class Sequential_GroupChat_Example
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example12_TwoAgent_Fill_Application.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example12_TwoAgent_Fill_Application.cs
index 0908bddca..6ce0cbde7 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example12_TwoAgent_Fill_Application.cs
@@ -6,7 +6,7 @@ using AutoGen.Core;
using AutoGen.OpenAI;
using AutoGen.OpenAI.Extension;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public partial class TwoAgent_Fill_Application
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example13_OpenAIAgent_JsonMode.cs
similarity index 100%
rename from dotnet/samples/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example13_OpenAIAgent_JsonMode.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example14_MistralClientAgent_TokenCount.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example14_MistralClientAgent_TokenCount.cs
index 536279be6..30f4967d3 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example14_MistralClientAgent_TokenCount.cs
@@ -7,7 +7,7 @@ using AutoGen.Mistral;
#endregion using_statements
using FluentAssertions;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public class Example14_MistralClientAgent_TokenCount
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example15_GPT4V_BinaryDataImageMessage.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example15_GPT4V_BinaryDataImageMessage.cs
index 69faea25f..9705522cc 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example15_GPT4V_BinaryDataImageMessage.cs
@@ -5,7 +5,7 @@ using AutoGen.Core;
using AutoGen.OpenAI;
using AutoGen.OpenAI.Extension;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
/// <summary>
/// This example shows usage of ImageMessage. The image is loaded as BinaryData and sent to GPT-4V
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs
similarity index 100%
rename from dotnet/samples/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example17_ReActAgent.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example17_ReActAgent.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/Example17_ReActAgent.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example17_ReActAgent.cs
index 63886c567..f7bfb5544 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example17_ReActAgent.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Example17_ReActAgent.cs
@@ -7,7 +7,7 @@ using AutoGen.OpenAI.Extension;
using OpenAI;
using OpenAI.Chat;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public class OpenAIReActAgent : IAgent
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Agent_Middleware.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Agent_Middleware.cs
index 5942e83d0..e8fc04cdd 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Agent_Middleware.cs
@@ -9,7 +9,7 @@ using AutoGen.OpenAI.Extension;
using FluentAssertions;
using OpenAI.Chat;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public class Agent_Middleware
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Chat_With_Agent.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Chat_With_Agent.cs
index cc253abd4..0432aa475 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Chat_With_Agent.cs
@@ -9,7 +9,7 @@ using AutoGen.OpenAI.Extension;
using FluentAssertions;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public class Chat_With_Agent
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Dynamic_Group_Chat.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Dynamic_Group_Chat.cs
index 421b68989..35cc57ea4 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Dynamic_Group_Chat.cs
@@ -9,7 +9,7 @@ using AutoGen.SemanticKernel.Extension;
using Microsoft.SemanticKernel;
using OpenAI;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public class Dynamic_Group_Chat
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/FSM_Group_Chat.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/FSM_Group_Chat.cs
index 6f9842eab..327fa9355 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/FSM_Group_Chat.cs
@@ -10,7 +10,7 @@ using OpenAI;
using OpenAI.Chat;
#endregion Using
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
#region FillFormTool
public partial class FillFormTool
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Image_Chat_With_Agent.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Image_Chat_With_Agent.cs
index 453b54ff6..04bcb2122 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Image_Chat_With_Agent.cs
@@ -8,7 +8,7 @@ using AutoGen.OpenAI.Extension;
#endregion Using
using FluentAssertions;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
public class Image_Chat_With_Agent
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Streaming_Tool_Call.cs
similarity index 97%
rename from dotnet/samples/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Streaming_Tool_Call.cs
index c265ed6c8..a68d2ac6c 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Streaming_Tool_Call.cs
@@ -7,7 +7,7 @@ using AutoGen.OpenAI.Extension;
using FluentAssertions;
using OpenAI;
-namespace AutoGen.BasicSample.GettingStart;
+namespace AutoGen.Basic.Sample.GettingStart;
internal class Streaming_Tool_Call
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs
similarity index 99%
rename from dotnet/samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs
index d50b5a3ee..5d045ff63 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs
@@ -9,7 +9,7 @@ using AutoGen.OpenAI.Extension;
using FluentAssertions;
using OpenAI;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
#region Tools
public partial class Tools
diff --git a/dotnet/samples/AutoGen.BasicSamples/GlobalUsing.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/GlobalUsing.cs
similarity index 100%
rename from dotnet/samples/AutoGen.BasicSamples/GlobalUsing.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/GlobalUsing.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/LLMConfiguration.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/LLMConfiguration.cs
similarity index 97%
rename from dotnet/samples/AutoGen.BasicSamples/LLMConfiguration.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/LLMConfiguration.cs
index 7618f3dbf..22334c4b9 100644
--- a/dotnet/samples/AutoGen.BasicSamples/LLMConfiguration.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/LLMConfiguration.cs
@@ -4,7 +4,7 @@
using OpenAI;
using OpenAI.Chat;
-namespace AutoGen.BasicSample;
+namespace AutoGen.Basic.Sample;
internal static class LLMConfiguration
{
diff --git a/dotnet/samples/AutoGen.BasicSamples/Program.cs b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Program.cs
similarity index 98%
rename from dotnet/samples/AutoGen.BasicSamples/Program.cs
rename to dotnet/samples/AgentChat/AutoGen.Basic.Sample/Program.cs
index 16a79e75c..658108b2f 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Program.cs
+++ b/dotnet/samples/AgentChat/AutoGen.Basic.Sample/Program.cs
@@ -3,7 +3,7 @@
//await Example07_Dynamic_GroupChat_Calculate_Fibonacci.RunAsync();
-using AutoGen.BasicSample;
+using AutoGen.Basic.Sample;
//Define allSamples collection for all examples
var allSamples = new List<(string, Func<Task>)>
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/AutoGen.Gemini.Sample.csproj b/dotnet/samples/AgentChat/AutoGen.Gemini.Sample/AutoGen.Gemini.Sample.csproj
similarity index 59%
rename from dotnet/samples/AutoGen.Gemini.Sample/AutoGen.Gemini.Sample.csproj
rename to dotnet/samples/AgentChat/AutoGen.Gemini.Sample/AutoGen.Gemini.Sample.csproj
index 211c79b8c..22053fb56 100644
--- a/dotnet/samples/AutoGen.Gemini.Sample/AutoGen.Gemini.Sample.csproj
+++ b/dotnet/samples/AgentChat/AutoGen.Gemini.Sample/AutoGen.Gemini.Sample.csproj
@@ -10,9 +10,9 @@
</PropertyGroup>
<ItemGroup>
- <ProjectReference Include="..\..\src\AutoGen\AutoGen.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.Gemini\AutoGen.Gemini.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
+ <ProjectReference Include="..\..\..\src\AutoGen\AutoGen.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.Gemini\AutoGen.Gemini.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<PackageReference Include="FluentAssertions" />
</ItemGroup>
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs b/dotnet/samples/AgentChat/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs
similarity index 100%
rename from dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs
rename to dotnet/samples/AgentChat/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs b/dotnet/samples/AgentChat/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs
similarity index 100%
rename from dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs
rename to dotnet/samples/AgentChat/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs b/dotnet/samples/AgentChat/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs
similarity index 100%
rename from dotnet/samples/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs
rename to dotnet/samples/AgentChat/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs b/dotnet/samples/AgentChat/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs
similarity index 100%
rename from dotnet/samples/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs
rename to dotnet/samples/AgentChat/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Program.cs b/dotnet/samples/AgentChat/AutoGen.Gemini.Sample/Program.cs
similarity index 100%
rename from dotnet/samples/AutoGen.Gemini.Sample/Program.cs
rename to dotnet/samples/AgentChat/AutoGen.Gemini.Sample/Program.cs
diff --git a/dotnet/samples/AutoGen.Ollama.Sample/AutoGen.Ollama.Sample.csproj b/dotnet/samples/AgentChat/AutoGen.Ollama.Sample/AutoGen.Ollama.Sample.csproj
similarity index 55%
rename from dotnet/samples/AutoGen.Ollama.Sample/AutoGen.Ollama.Sample.csproj
rename to dotnet/samples/AgentChat/AutoGen.Ollama.Sample/AutoGen.Ollama.Sample.csproj
index e8688e2a0..bea74bd74 100644
--- a/dotnet/samples/AutoGen.Ollama.Sample/AutoGen.Ollama.Sample.csproj
+++ b/dotnet/samples/AgentChat/AutoGen.Ollama.Sample/AutoGen.Ollama.Sample.csproj
@@ -9,10 +9,10 @@
</PropertyGroup>
<ItemGroup>
- <ProjectReference Include="..\..\src\AutoGen.DotnetInteractive\AutoGen.DotnetInteractive.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.Ollama\AutoGen.Ollama.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
- <ProjectReference Include="..\..\src\AutoGen\AutoGen.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.DotnetInteractive\AutoGen.DotnetInteractive.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.Ollama\AutoGen.Ollama.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
+ <ProjectReference Include="..\..\..\src\AutoGen\AutoGen.csproj" />
<PackageReference Include="FluentAssertions" />
</ItemGroup>
diff --git a/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs b/dotnet/samples/AgentChat/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs
similarity index 100%
rename from dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs
rename to dotnet/samples/AgentChat/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs
diff --git a/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs b/dotnet/samples/AgentChat/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs
similarity index 100%
rename from dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs
rename to dotnet/samples/AgentChat/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs
diff --git a/dotnet/samples/AutoGen.Ollama.Sample/Program.cs b/dotnet/samples/AgentChat/AutoGen.Ollama.Sample/Program.cs
similarity index 100%
rename from dotnet/samples/AutoGen.Ollama.Sample/Program.cs
rename to dotnet/samples/AgentChat/AutoGen.Ollama.Sample/Program.cs
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/AutoGen.OpenAI.Sample.csproj b/dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/AutoGen.OpenAI.Sample.csproj
similarity index 58%
rename from dotnet/samples/AutoGen.OpenAI.Sample/AutoGen.OpenAI.Sample.csproj
rename to dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/AutoGen.OpenAI.Sample.csproj
index 513dc52d0..7258d3a62 100644
--- a/dotnet/samples/AutoGen.OpenAI.Sample/AutoGen.OpenAI.Sample.csproj
+++ b/dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/AutoGen.OpenAI.Sample.csproj
@@ -11,10 +11,10 @@
</PropertyGroup>
<ItemGroup>
- <ProjectReference Include="..\..\src\AutoGen.DotnetInteractive\AutoGen.DotnetInteractive.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.Ollama\AutoGen.Ollama.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
- <ProjectReference Include="..\..\src\AutoGen.OpenAI\AutoGen.OpenAI.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.DotnetInteractive\AutoGen.DotnetInteractive.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.Ollama\AutoGen.Ollama.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
+ <ProjectReference Include="..\..\..\src\AutoGen.OpenAI\AutoGen.OpenAI.csproj" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Azure.AI.OpenAI" />
</ItemGroup>
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Azure_OpenAI.cs b/dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Connect_To_Azure_OpenAI.cs
similarity index 100%
rename from dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Azure_OpenAI.cs
rename to dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Connect_To_Azure_OpenAI.cs
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs b/dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs
similarity index 100%
rename from dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs
rename to dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_OpenAI_o1_preview.cs b/dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Connect_To_OpenAI_o1_preview.cs
similarity index 100%
rename from dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_OpenAI_o1_preview.cs
rename to dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Connect_To_OpenAI_o1_preview.cs
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Program.cs b/dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Program.cs
similarity index 100%
rename from dotnet/samples/AutoGen.OpenAI.Sample/Program.cs
rename to dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Program.cs
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Structural_Output.cs b/dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Structural_Output.cs
similarity index 100%
rename from dotnet/samples/AutoGen.OpenAI.Sample/Structural_Output.cs
rename to dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Structural_Output.cs
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs b/dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs
similarity index 100%
rename from dotnet/samples/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs
rename to dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Use_Json_Mode.cs b/dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Use_Json_Mode.cs
similarity index 100%
rename from dotnet/samples/AutoGen.OpenAI.Sample/Use_Json_Mode.cs
rename to dotnet/samples/AgentChat/AutoGen.OpenAI.Sample/Use_Json_Mode.cs
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/AutoGen.SemanticKernel.Sample.csproj b/dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/AutoGen.SemanticKernel.Sample.csproj
similarity index 58%
rename from dotnet/samples/AutoGen.SemanticKernel.Sample/AutoGen.SemanticKernel.Sample.csproj
rename to dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/AutoGen.SemanticKernel.Sample.csproj
index c0f4a31f8..6b07a5624 100644
--- a/dotnet/samples/AutoGen.SemanticKernel.Sample/AutoGen.SemanticKernel.Sample.csproj
+++ b/dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/AutoGen.SemanticKernel.Sample.csproj
@@ -9,9 +9,9 @@
</PropertyGroup>
<ItemGroup>
- <ProjectReference Include="..\..\src\AutoGen.OpenAI\AutoGen.OpenAI.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.SemanticKernel\AutoGen.SemanticKernel.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
+ <ProjectReference Include="..\..\..\src\AutoGen.OpenAI\AutoGen.OpenAI.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.SemanticKernel\AutoGen.SemanticKernel.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Web" />
</ItemGroup>
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs b/dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs
similarity index 100%
rename from dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs
rename to dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs b/dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs
similarity index 100%
rename from dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs
rename to dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Program.cs b/dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/Program.cs
similarity index 100%
rename from dotnet/samples/AutoGen.SemanticKernel.Sample/Program.cs
rename to dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/Program.cs
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs b/dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs
similarity index 100%
rename from dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs
rename to dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs b/dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs
similarity index 100%
rename from dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs
rename to dotnet/samples/AgentChat/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs
diff --git a/dotnet/samples/AutoGen.WebAPI.Sample/AutoGen.WebAPI.Sample.csproj b/dotnet/samples/AgentChat/AutoGen.WebAPI.Sample/AutoGen.WebAPI.Sample.csproj
similarity index 75%
rename from dotnet/samples/AutoGen.WebAPI.Sample/AutoGen.WebAPI.Sample.csproj
rename to dotnet/samples/AgentChat/AutoGen.WebAPI.Sample/AutoGen.WebAPI.Sample.csproj
index 76675ba12..f0d7b1241 100644
--- a/dotnet/samples/AutoGen.WebAPI.Sample/AutoGen.WebAPI.Sample.csproj
+++ b/dotnet/samples/AgentChat/AutoGen.WebAPI.Sample/AutoGen.WebAPI.Sample.csproj
@@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
- <ProjectReference Include="..\..\src\AutoGen.WebAPI\AutoGen.WebAPI.csproj" />
+ <ProjectReference Include="..\..\..\src\AutoGen.WebAPI\AutoGen.WebAPI.csproj" />
</ItemGroup>
</Project>
diff --git a/dotnet/samples/AutoGen.WebAPI.Sample/Program.cs b/dotnet/samples/AgentChat/AutoGen.WebAPI.Sample/Program.cs
similarity index 100%
rename from dotnet/samples/AutoGen.WebAPI.Sample/Program.cs
rename to dotnet/samples/AgentChat/AutoGen.WebAPI.Sample/Program.cs
diff --git a/dotnet/samples/AutoGen.WebAPI.Sample/Properties/launchSettings.json b/dotnet/samples/AgentChat/AutoGen.WebAPI.Sample/Properties/launchSettings.json
similarity index 100%
rename from dotnet/samples/AutoGen.WebAPI.Sample/Properties/launchSettings.json
rename to dotnet/samples/AgentChat/AutoGen.WebAPI.Sample/Properties/launchSettings.json
diff --git a/dotnet/samples/AutoGen.Anthropic.Samples/AutoGen.Anthropic.Samples.csproj b/dotnet/samples/AutoGen.Anthropic.Samples/AutoGen.Anthropic.Samples.csproj
deleted file mode 100644
index 836f3c148..000000000
--- a/dotnet/samples/AutoGen.Anthropic.Samples/AutoGen.Anthropic.Samples.csproj
+++ /dev/null
@@ -1,19 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- <OutputType>Exe</OutputType>
- <TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
- <ImplicitUsings>enable</ImplicitUsings>
- <Nullable>enable</Nullable>
- <GenerateDocumentationFile>True</GenerateDocumentationFile>
- </PropertyGroup>
-
- <ItemGroup>
- <ProjectReference Include="..\..\src\AutoGen.Anthropic\AutoGen.Anthropic.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.DotnetInteractive\AutoGen.DotnetInteractive.csproj" />
- <ProjectReference Include="..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
- <ProjectReference Include="..\..\src\AutoGen\AutoGen.csproj" />
- <PackageReference Include="FluentAssertions" />
- </ItemGroup>
-
-</Project>
diff --git a/dotnet/samples/getting-started/Checker.cs b/dotnet/samples/GettingStarted/Checker.cs
similarity index 100%
rename from dotnet/samples/getting-started/Checker.cs
rename to dotnet/samples/GettingStarted/Checker.cs
diff --git a/dotnet/samples/getting-started/CountMessage.cs b/dotnet/samples/GettingStarted/CountMessage.cs
similarity index 100%
rename from dotnet/samples/getting-started/CountMessage.cs
rename to dotnet/samples/GettingStarted/CountMessage.cs
diff --git a/dotnet/samples/getting-started/CountUpdate.cs b/dotnet/samples/GettingStarted/CountUpdate.cs
similarity index 100%
rename from dotnet/samples/getting-started/CountUpdate.cs
rename to dotnet/samples/GettingStarted/CountUpdate.cs
diff --git a/dotnet/samples/getting-started/getting-started.csproj b/dotnet/samples/GettingStarted/GettingStarted.csproj
similarity index 100%
rename from dotnet/samples/getting-started/getting-started.csproj
rename to dotnet/samples/GettingStarted/GettingStarted.csproj
diff --git a/dotnet/samples/getting-started/Modifier.cs b/dotnet/samples/GettingStarted/Modifier.cs
similarity index 100%
rename from dotnet/samples/getting-started/Modifier.cs
rename to dotnet/samples/GettingStarted/Modifier.cs
diff --git a/dotnet/samples/getting-started/Program.cs b/dotnet/samples/GettingStarted/Program.cs
similarity index 100%
rename from dotnet/samples/getting-started/Program.cs
rename to dotnet/samples/GettingStarted/Program.cs
diff --git a/dotnet/samples/Hello/HelloAIAgents/HelloAIAgents.csproj b/dotnet/samples/Hello/HelloAIAgents/HelloAIAgents.csproj
index 722ef1d97..8566d43d6 100644
--- a/dotnet/samples/Hello/HelloAIAgents/HelloAIAgents.csproj
+++ b/dotnet/samples/Hello/HelloAIAgents/HelloAIAgents.csproj
@@ -11,8 +11,6 @@
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="../../../src/Microsoft.AutoGen/Core.Grpc/Microsoft.AutoGen.Core.Grpc.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" />
diff --git a/dotnet/samples/Hello/HelloAgent/HelloAgent.cs b/dotnet/samples/Hello/HelloAgent/HelloAgent.cs
new file mode 100644
index 000000000..f188de2d0
--- /dev/null
+++ b/dotnet/samples/Hello/HelloAgent/HelloAgent.cs
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// HelloAgent.cs
+
+using Microsoft.AutoGen.Contracts;
+using Microsoft.AutoGen.Core;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Logging;
+
+namespace Samples;
+
+[TypeSubscription("HelloTopic")]
+public class HelloAgent(
+ IHostApplicationLifetime hostApplicationLifetime,
+ AgentId id,
+ IAgentRuntime runtime,
+ Logger<BaseAgent>? logger = null) : BaseAgent(id, runtime, "Hello Agent", logger),
+ IHandle<NewMessageReceived>,
+ IHandle<ConversationClosed>,
+ IHandle<Shutdown>
+{
+ // This will capture the message sent in Program.cs
+ public async ValueTask HandleAsync(NewMessageReceived item, MessageContext messageContext)
+ {
+ Console.Out.WriteLine(item.Message); // Print message to console
+ ConversationClosed goodbye = new ConversationClosed
+ {
+ UserId = this.Id.Type,
+ UserMessage = "Goodbye"
+ };
+ // This will publish the new message type which will be handled by the ConversationClosed handler
+ await this.PublishMessageAsync(goodbye, new TopicId("HelloTopic"));
+ }
+ public async ValueTask HandleAsync(ConversationClosed item, MessageContext messageContext)
+ {
+ var goodbye = $"{item.UserId} said {item.UserMessage}"; // Print goodbye message to console
+ Console.Out.WriteLine(goodbye);
+ if (Environment.GetEnvironmentVariable("STAY_ALIVE_ON_GOODBYE") != "true")
+ {
+ // Publish message that will be handled by shutdown handler
+ await this.PublishMessageAsync(new Shutdown(), new TopicId("HelloTopic"));
+ }
+ }
+
+ public async ValueTask HandleAsync(Shutdown item, MessageContext messageContext)
+ {
+ Console.WriteLine("Shutting down...");
+ hostApplicationLifetime.StopApplication(); // Shuts down application
+ }
+}
diff --git a/dotnet/samples/Hello/HelloAgent/HelloAgent.csproj b/dotnet/samples/Hello/HelloAgent/HelloAgent.csproj
index 73d3f43dc..fd36e95e1 100644
--- a/dotnet/samples/Hello/HelloAgent/HelloAgent.csproj
+++ b/dotnet/samples/Hello/HelloAgent/HelloAgent.csproj
@@ -15,9 +15,16 @@
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="../../../src/Microsoft.AutoGen/Core.Grpc/Microsoft.AutoGen.Core.Grpc.csproj" />
- <ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Agents\Microsoft.AutoGen.Agents.csproj" />
+ <PackageReference Include="Google.Protobuf" />
+ <PackageReference Include="Grpc.Tools" PrivateAssets="All" />
+ </ItemGroup>
+
+ <ItemGroup>
<ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Contracts\Microsoft.AutoGen.Contracts.csproj" />
<ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Core\Microsoft.AutoGen.Core.csproj" />
</ItemGroup>
+
+ <ItemGroup>
+ <Protobuf Include="..\protos\agent_events.proto" Link="protos\agent_events.proto" />
+ </ItemGroup>
</Project>
diff --git a/dotnet/samples/Hello/HelloAgent/Program.cs b/dotnet/samples/Hello/HelloAgent/Program.cs
index dde48423d..3345a125b 100644
--- a/dotnet/samples/Hello/HelloAgent/Program.cs
+++ b/dotnet/samples/Hello/HelloAgent/Program.cs
@@ -1,69 +1,16 @@
// 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;
-
-var local = true;
-if (Environment.GetEnvironmentVariable("AGENT_HOST") != null) { local = false; }
-var app = await Microsoft.AutoGen.Core.Grpc.AgentsApp.PublishMessageAsync("HelloAgents", new NewMessageReceived
-{
- Message = "World"
-}, local: local).ConfigureAwait(false);
-await app.WaitForShutdownAsync();
-
-namespace Hello
-{
- [TopicSubscription("HelloAgents")]
- public class HelloAgent(
- IHostApplicationLifetime hostApplicationLifetime,
- [FromKeyedServices("AgentsMetadata")] AgentsMetadata typeRegistry) : Agent(
- typeRegistry),
- ISayHello,
- IHandleConsole,
- IHandle<NewMessageReceived>,
- IHandle<ConversationClosed>,
- IHandle<Shutdown>
- {
- public async Task Handle(NewMessageReceived item, CancellationToken cancellationToken)
- {
- var response = await SayHello(item.Message).ConfigureAwait(false);
- var evt = new Output { Message = response };
- await PublishMessageAsync(evt).ConfigureAwait(false);
- var goodbye = new ConversationClosed
- {
- UserId = this.AgentId.Type,
- UserMessage = "Goodbye"
- };
- await PublishMessageAsync(goodbye).ConfigureAwait(false);
- }
- public async Task Handle(ConversationClosed item, CancellationToken cancellationToken)
- {
- var goodbye = $"********************* {item.UserId} said {item.UserMessage} ************************";
- var evt = new Output { Message = goodbye };
- await PublishMessageAsync(evt).ConfigureAwait(true);
- if (Environment.GetEnvironmentVariable("STAY_ALIVE_ON_GOODBYE") != "true")
- {
- await PublishMessageAsync(new Shutdown()).ConfigureAwait(false);
- }
- }
-
- public async Task Handle(Shutdown item, CancellationToken cancellationToken)
- {
- Console.WriteLine("Shutting down...");
- hostApplicationLifetime.StopApplication();
- }
+using Samples;
- public async Task<string> SayHello(string ask, CancellationToken cancellationToken = default)
- {
- var response = $"\n\n\n\n***************Hello {ask}**********************\n\n\n\n";
- return response;
- }
- }
- public interface ISayHello
- {
- public Task<string> SayHello(string ask, CancellationToken cancellationToken = default);
- }
-}
+// Set up app builder for in-process runtime, allow message delivery to self, and add the Hello agent
+AgentsAppBuilder appBuilder = new AgentsAppBuilder()
+ .UseInProcessRuntime(deliverToSelf: true)
+ .AddAgent<HelloAgent>("HelloAgent");
+var app = await appBuilder.BuildAsync(); // Build the app
+// Create a custom message type from proto and define message
+NewMessageReceived message = new NewMessageReceived { Message = "Hello World!" };
+await app.PublishMessageAsync(message, new TopicId("HelloTopic")); // Publish custom message (handler has been set in HelloAgent)
+await app.WaitForShutdownAsync(); // Wait for shutdown from agent
diff --git a/dotnet/samples/Hello/HelloAgentState/HelloAgentState.csproj b/dotnet/samples/Hello/HelloAgentState/HelloAgentState.csproj
index 343ea8eb8..f6b3161d1 100644
--- a/dotnet/samples/Hello/HelloAgentState/HelloAgentState.csproj
+++ b/dotnet/samples/Hello/HelloAgentState/HelloAgentState.csproj
@@ -13,7 +13,6 @@
<ItemGroup>
<ProjectReference Include="../../../src/Microsoft.AutoGen/Core.Grpc/Microsoft.AutoGen.Core.Grpc.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>
diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs
index b3ef6eea2..ab1cea729 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs
@@ -18,7 +18,7 @@ public static class AgentExtension
/// <param name="maximumOutputToKeep">maximum output to keep</param>
/// <example>
/// <![CDATA[
- /// [!code-csharp[Example04_Dynamic_GroupChat_Coding_Task](~/../samples/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs)]
+ /// [!code-csharp[Example04_Dynamic_GroupChat_Coding_Task](~/../samples/AgentChat/Autogen.Basic.Sample/Example04_Dynamic_GroupChat_Coding_Task.cs)]
/// ]]>
/// </example>
[Obsolete]
diff --git a/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs b/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs
index 53e79b3b0..d2472c3af 100644
--- a/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs
+++ b/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs
@@ -16,7 +16,7 @@ namespace AutoGen.LMStudio;
/// agent that consumes local server from LM Studio
/// </summary>
/// <example>
-/// [!code-csharp[LMStudioAgent](../../samples/AutoGen.BasicSamples/Example08_LMStudio.cs?name=lmstudio_example_1)]
+/// [!code-csharp[LMStudioAgent](../../samples/AgentChat/Autogen.Basic.Sample/Example08_LMStudio.cs?name=lmstudio_example_1)]
/// </example>
[Obsolete("Use OpenAIChatAgent to connect to LM Studio")]
public class LMStudioAgent : IAgent
diff --git a/dotnet/src/AutoGen.SourceGenerator/README.md b/dotnet/src/AutoGen.SourceGenerator/README.md
index 9339cccce..cd690fe6e 100644
--- a/dotnet/src/AutoGen.SourceGenerator/README.md
+++ b/dotnet/src/AutoGen.SourceGenerator/README.md
@@ -109,5 +109,5 @@ Add two numbers.
```
For more examples, please check out the following project
-- [AutoGen.BasicSamples](../samples/AutoGen.BasicSamples/)
+- [AutoGen.Basic.Sample](../samples/AgentChat/Autogen.Basic.Sample/)
- [AutoGen.SourceGenerator.Tests](../../test/AutoGen.SourceGenerator.Tests/)
diff --git a/dotnet/test/AutoGen.Gemini.Tests/AutoGen.Gemini.Tests.csproj b/dotnet/test/AutoGen.Gemini.Tests/AutoGen.Gemini.Tests.csproj
index 2e9e020ab..a24dcd8be 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/AutoGen.Gemini.Tests.csproj
+++ b/dotnet/test/AutoGen.Gemini.Tests/AutoGen.Gemini.Tests.csproj
@@ -11,7 +11,7 @@
</PropertyGroup>
<ItemGroup>
- <ProjectReference Include="..\..\samples\AutoGen.Gemini.Sample\AutoGen.Gemini.Sample.csproj" />
+ <ProjectReference Include="..\..\samples\AgentChat\AutoGen.Gemini.Sample\AutoGen.Gemini.Sample.csproj" />
<ProjectReference Include="..\..\src\AutoGen.Gemini\AutoGen.Gemini.csproj" />
<ProjectReference Include="..\AutoGen.Tests\AutoGen.Tests.csproj" />
<ProjectReference Include="..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/AutoGen.OpenAI.Tests.csproj b/dotnet/test/AutoGen.OpenAI.Tests/AutoGen.OpenAI.Tests.csproj
index c12ae4629..713e85164 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/AutoGen.OpenAI.Tests.csproj
+++ b/dotnet/test/AutoGen.OpenAI.Tests/AutoGen.OpenAI.Tests.csproj
@@ -13,7 +13,7 @@
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\..\samples\AutoGen.OpenAI.Sample\AutoGen.OpenAI.Sample.csproj" />
+ <ProjectReference Include="..\..\samples\AgentChat\AutoGen.OpenAI.Sample\AutoGen.OpenAI.Sample.csproj" />
<ProjectReference Include="..\..\src\AutoGen.OpenAI\AutoGen.OpenAI.csproj" />
<ProjectReference Include="..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\AutoGen.Test.Share\AutoGen.Tests.Share.csproj" />
diff --git a/dotnet/test/AutoGen.Tests/AutoGen.Tests.csproj b/dotnet/test/AutoGen.Tests/AutoGen.Tests.csproj
index 367d74619..40ba717b3 100644
--- a/dotnet/test/AutoGen.Tests/AutoGen.Tests.csproj
+++ b/dotnet/test/AutoGen.Tests/AutoGen.Tests.csproj
@@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
- <ProjectReference Include="..\..\samples\AutoGen.BasicSamples\AutoGen.BasicSample.csproj" />
+ <ProjectReference Include="..\..\samples\AgentChat\AutoGen.Basic.Sample\AutoGen.Basic.Sample.csproj" />
<ProjectReference Include="..\..\src\AutoGen.Anthropic\AutoGen.Anthropic.csproj" />
<ProjectReference Include="..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\src\AutoGen\AutoGen.csproj" />
diff --git a/dotnet/test/AutoGen.Tests/BasicSampleTest.cs b/dotnet/test/AutoGen.Tests/BasicSampleTest.cs
index 5cf470403..8c51a1c6b 100644
--- a/dotnet/test/AutoGen.Tests/BasicSampleTest.cs
+++ b/dotnet/test/AutoGen.Tests/BasicSampleTest.cs
@@ -4,7 +4,7 @@
using System;
using System.IO;
using System.Threading.Tasks;
-using AutoGen.BasicSample;
+using AutoGen.Basic.Sample;
using Xunit.Abstractions;
namespace AutoGen.Tests;
diff --git a/dotnet/test/Microsoft.AutoGen.Core.Grpc.Tests/AgentGrpcTests.cs b/dotnet/test/Microsoft.AutoGen.Core.Grpc.Tests/AgentGrpcTests.cs
index 96b6df153..f9f1341e8 100644
--- a/dotnet/test/Microsoft.AutoGen.Core.Grpc.Tests/AgentGrpcTests.cs
+++ b/dotnet/test/Microsoft.AutoGen.Core.Grpc.Tests/AgentGrpcTests.cs
@@ -26,9 +26,9 @@ public class AgentGrpcTests
using var runtime = new GrpcRuntime();
var (_, agent) = runtime.Start(false); // Do not initialize
- // Expect an exception when calling SubscribeAsync because the agent is uninitialized
+ // Expect an exception when calling AddSubscriptionAsync because the agent is uninitialized
await Assert.ThrowsAsync<UninitializedAgentWorker.AgentInitalizedIncorrectlyException>(
- async () => await agent.SubscribeAsync("TestEvent")
+ async () => await agent.AddSubscriptionAsync("TestEvent")
);
}
@@ -47,7 +47,7 @@ public class AgentGrpcTests
Assert.Equal(2, subscriptions.Count);
}
/// <summary>
- /// Test SubscribeAsync method
+ /// Test AddSubscriptionAsync method
/// </summary>
/// <returns>void</returns>
[Fact]
@@ -55,7 +55,7 @@ public class AgentGrpcTests
{
using var runtime = new GrpcRuntime();
var (_, agent) = runtime.Start();
- await agent.SubscribeAsync("TestEvent");
+ await agent.AddSubscriptionAsync("TestEvent");
await Task.Delay(100);
var subscriptions = await agent.GetSubscriptionsAsync().ConfigureAwait(true);
var found = false;
@@ -67,7 +67,7 @@ public class AgentGrpcTests
}
}
Assert.True(found);
- await agent.UnsubscribeAsync("TestEvent").ConfigureAwait(true);
+ await agent.RemoveSubscriptionAsync("TestEvent").ConfigureAwait(true);
await Task.Delay(1000);
subscriptions = await agent.GetSubscriptionsAsync().ConfigureAwait(true);
found = false;
@@ -115,7 +115,7 @@ public class AgentGrpcTests
using var runtime = new GrpcRuntime();
var (_, agent) = runtime.Start();
var topicType = "TestTopic";
- await agent.SubscribeAsync(topicType).ConfigureAwait(true);
+ await agent.AddSubscriptionAsync(topicType).ConfigureAwait(true);
var subscriptions = await agent.GetSubscriptionsAsync().ConfigureAwait(true);
var found = false;
foreach (var subscription in subscriptions)
diff --git a/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentTests.cs b/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentTests.cs
index d60d69ee7..11cd42362 100644
--- a/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentTests.cs
+++ b/dotnet/test/Microsoft.AutoGen.Core.Tests/AgentTests.cs
@@ -84,7 +84,7 @@ public class AgentTests()
// await Assert.ThrowsAsync<UninitializedAgentWorker.AgentInitalizedIncorrectlyException>(
// async () =>
// {
- // await agent.SubscribeAsync("TestEvent");
+ // await agent.AddSubscriptionAsync("TestEvent");
// }
// );
// }
@@ -104,7 +104,7 @@ public class AgentTests()
// fixture.Stop();
// }
/// <summary>
- /// Test SubscribeAsync method
+ /// Test AddSubscriptionAsync method
/// </summary>
/// <returns>void</returns>
///
@@ -196,7 +196,7 @@ public class AgentTests()
// var fixture = new InMemoryAgentRuntimeFixture();
// var (_, agent) = fixture.Start();
// var topicType = "TestTopic";
- // await agent.SubscribeAsync(topicType).ConfigureAwait(true);
+ // await agent.AddSubscriptionAsync(topicType).ConfigureAwait(true);
// var subscriptions = await agent.GetSubscriptionsAsync().ConfigureAwait(true);
// var found = false;
// foreach (var subscription in subscriptions)
diff --git a/dotnet/test/Microsoft.AutoGen.Integration.Tests.AppHosts/HelloAgent.AppHost/HelloAgent.AppHost.csproj b/dotnet/test/Microsoft.AutoGen.Integration.Tests.AppHosts/HelloAgent.AppHost/HelloAgent.AppHost.csproj
index 441d48d18..1442ebe3d 100644
--- a/dotnet/test/Microsoft.AutoGen.Integration.Tests.AppHosts/HelloAgent.AppHost/HelloAgent.AppHost.csproj
+++ b/dotnet/test/Microsoft.AutoGen.Integration.Tests.AppHosts/HelloAgent.AppHost/HelloAgent.AppHost.csproj
@@ -16,6 +16,6 @@
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\..\..\samples\Hello\HelloAgent\HelloAgent.csproj" />
+ <ProjectReference Include="..\..\..\samples\AgentChat\Hello\HelloAgent\HelloAgent.csproj" />
</ItemGroup>
</Project>
diff --git a/dotnet/test/Microsoft.AutoGen.Integration.Tests/Microsoft.AutoGen.Integration.Tests.csproj b/dotnet/test/Microsoft.AutoGen.Integration.Tests/Microsoft.AutoGen.Integration.Tests.csproj
index 2ef1763c3..320aa44de 100644
--- a/dotnet/test/Microsoft.AutoGen.Integration.Tests/Microsoft.AutoGen.Integration.Tests.csproj
+++ b/dotnet/test/Microsoft.AutoGen.Integration.Tests/Microsoft.AutoGen.Integration.Tests.csproj
@@ -28,8 +28,8 @@
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\..\samples\Hello\Hello.AppHost\Hello.AppHost.csproj" />
- <ProjectReference Include="..\..\samples\Hello\HelloAgent\HelloAgent.csproj" />
+ <ProjectReference Include="..\..\samples\AgentChat\Hello\Hello.AppHost\Hello.AppHost.csproj" />
+ <ProjectReference Include="..\..\samples\AgentChat\Hello\HelloAgent\HelloAgent.csproj" />
<ProjectReference Include="..\Microsoft.AutoGen.Integration.Tests.AppHosts\HelloAgent.AppHost\HelloAgent.AppHost.csproj" />
</ItemGroup>
diff --git a/dotnet/website/articles/Agent-overview.md b/dotnet/website/articles/Agent-overview.md
index 5b3227815..8710973c6 100644
--- a/dotnet/website/articles/Agent-overview.md
+++ b/dotnet/website/articles/Agent-overview.md
@@ -16,16 +16,16 @@ To chat with an agent, typically you can invoke @AutoGen.Core.IAgent.GenerateRep
> AutoGen provides a list of built-in message types like @AutoGen.Core.TextMessage, @AutoGen.Core.ImageMessage, @AutoGen.Core.MultiModalMessage, @AutoGen.Core.ToolCallMessage, @AutoGen.Core.ToolCallResultMessage, etc. You can use these message types to chat with an agent. For further details, see [built-in messages](./Built-in-messages.md).
- Send a @AutoGen.Core.TextMessage to an agent via @AutoGen.Core.IAgent.GenerateReplyAsync*:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs?name=ChatWithAnAgent_GenerateReplyAsync)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/AgentCodeSnippet.cs?name=ChatWithAnAgent_GenerateReplyAsync)]
- Send a message to an agent via @AutoGen.Core.AgentExtension.SendAsync*:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs?name=ChatWithAnAgent_SendAsync)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/AgentCodeSnippet.cs?name=ChatWithAnAgent_SendAsync)]
## Streaming chat
If an agent implements @AutoGen.Core.IStreamingAgent, you can use @AutoGen.Core.IStreamingAgent.GenerateStreamingReplyAsync* to chat with the agent in a streaming way. You would need to process the streaming updates on your side though.
- Send a @AutoGen.Core.TextMessage to an agent via @AutoGen.Core.IStreamingAgent.GenerateStreamingReplyAsync*, and print the streaming updates to console:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs?name=ChatWithAnAgent_GenerateStreamingReplyAsync)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/AgentCodeSnippet.cs?name=ChatWithAnAgent_GenerateStreamingReplyAsync)]
## Register middleware to an agent
@AutoGen.Core.IMiddleware and @AutoGen.Core.IStreamingMiddleware are used to extend the behavior of @AutoGen.Core.IAgent.GenerateReplyAsync* and @AutoGen.Core.IStreamingAgent.GenerateStreamingReplyAsync*. You can register middleware to an agent to customize the behavior of the agent on things like function call support, converting message of different types, print message, gather user input, etc.
diff --git a/dotnet/website/articles/AutoGen-Mistral-Overview.md b/dotnet/website/articles/AutoGen-Mistral-Overview.md
index c64f09ee7..e54558489 100644
--- a/dotnet/website/articles/AutoGen-Mistral-Overview.md
+++ b/dotnet/website/articles/AutoGen-Mistral-Overview.md
@@ -17,10 +17,10 @@ dotnet add package AutoGen.Mistral
### Example
Import the required namespace
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs?name=using_statement)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs?name=using_statement)]
Create a @AutoGen.Mistral.MistralClientAgent and start chatting!
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs?name=create_mistral_agent)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs?name=create_mistral_agent)]
Use @AutoGen.Core.IStreamingAgent.GenerateStreamingReplyAsync* to stream the chat completion.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs?name=streaming_chat)]
\ No newline at end of file
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs?name=streaming_chat)]
\ No newline at end of file
diff --git a/dotnet/website/articles/AutoGen.SemanticKernel/SemanticKernelAgent-simple-chat.md b/dotnet/website/articles/AutoGen.SemanticKernel/SemanticKernelAgent-simple-chat.md
index 9bdee1680..ccc986ba9 100644
--- a/dotnet/website/articles/AutoGen.SemanticKernel/SemanticKernelAgent-simple-chat.md
+++ b/dotnet/website/articles/AutoGen.SemanticKernel/SemanticKernelAgent-simple-chat.md
@@ -2,8 +2,8 @@ You can chat with @AutoGen.SemanticKernel.SemanticKernelAgent using both streami
The following example shows how to create an @AutoGen.SemanticKernel.SemanticKernelAgent and chat with it using non-streaming method:
-[!code-csharp[](../../../samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs?name=create_semantic_kernel_agent)]
+[!code-csharp[](../../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/SemanticKernelCodeSnippet.cs?name=create_semantic_kernel_agent)]
@AutoGen.SemanticKernel.SemanticKernelAgent also supports streaming chat via @AutoGen.Core.IStreamingAgent.GenerateStreamingReplyAsync*.
-[!code-csharp[](../../../samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs?name=create_semantic_kernel_agent_streaming)]
+[!code-csharp[](../../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/SemanticKernelCodeSnippet.cs?name=create_semantic_kernel_agent_streaming)]
diff --git a/dotnet/website/articles/AutoGen.SemanticKernel/SemanticKernelAgent-support-more-messages.md b/dotnet/website/articles/AutoGen.SemanticKernel/SemanticKernelAgent-support-more-messages.md
index 52259eda4..66c734263 100644
--- a/dotnet/website/articles/AutoGen.SemanticKernel/SemanticKernelAgent-support-more-messages.md
+++ b/dotnet/website/articles/AutoGen.SemanticKernel/SemanticKernelAgent-support-more-messages.md
@@ -7,4 +7,4 @@
>
> Function call message type like @AutoGen.Core.ToolCallMessage and @AutoGen.Core.ToolCallResultMessage are not supported yet.
-[!code-csharp[](../../../samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs?name=register_semantic_kernel_chat_message_content_connector)]
\ No newline at end of file
+[!code-csharp[](../../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/SemanticKernelCodeSnippet.cs?name=register_semantic_kernel_chat_message_content_connector)]
\ No newline at end of file
diff --git a/dotnet/website/articles/Built-in-messages.md b/dotnet/website/articles/Built-in-messages.md
index 0ddbd43fd..75e3aeaa4 100644
--- a/dotnet/website/articles/Built-in-messages.md
+++ b/dotnet/website/articles/Built-in-messages.md
@@ -30,8 +30,8 @@ AutoGen also introduces @AutoGen.Core.IStreamingMessage and @AutoGen.Core.IStrea
#### Usage
The below code snippet shows how to print a streaming update to console and update the final result on the caller side.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs?name=StreamingCallCodeSnippet)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/BuildInMessageCodeSnippet.cs?name=StreamingCallCodeSnippet)]
If the agent returns a final result instead of the last update as the last message in the streaming call method, the caller can directly use the final result without assembling the final result from multiple updates.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs?name=StreamingCallWithFinalMessage)]
\ No newline at end of file
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/BuildInMessageCodeSnippet.cs?name=StreamingCallWithFinalMessage)]
\ No newline at end of file
diff --git a/dotnet/website/articles/Consume-LLM-server-from-LM-Studio.md b/dotnet/website/articles/Consume-LLM-server-from-LM-Studio.md
index 61263cf51..a0850aaf3 100644
--- a/dotnet/website/articles/Consume-LLM-server-from-LM-Studio.md
+++ b/dotnet/website/articles/Consume-LLM-server-from-LM-Studio.md
@@ -16,5 +16,5 @@ You can use @AutoGen.LMStudio.LMStudioAgent from `AutoGen.LMStudio` package to c
### Usage
The following code shows how to use `LMStudioAgent` to write a piece of C# code to calculate 100th of fibonacci. Before running the code, make sure you have local server from LM Studio running on `localhost:1234`.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example08_LMStudio.cs?name=lmstudio_using_statements)]
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example08_LMStudio.cs?name=lmstudio_example_1)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example08_LMStudio.cs?name=lmstudio_using_statements)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example08_LMStudio.cs?name=lmstudio_example_1)]
diff --git a/dotnet/website/articles/Create-a-user-proxy-agent.md b/dotnet/website/articles/Create-a-user-proxy-agent.md
index f7472165c..eef37ab31 100644
--- a/dotnet/website/articles/Create-a-user-proxy-agent.md
+++ b/dotnet/website/articles/Create-a-user-proxy-agent.md
@@ -10,7 +10,7 @@
### Create a `UserProxyAgent` with `HumanInputMode` set to `ALWAYS`
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs?name=code_snippet_1)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/UserProxyAgentCodeSnippet.cs?name=code_snippet_1)]
When running the code, the user proxy agent will ask user for input and use the input as response.
![code output](../images/articles/CreateUserProxyAgent/image-1.png)
\ No newline at end of file
diff --git a/dotnet/website/articles/Create-an-agent.md b/dotnet/website/articles/Create-an-agent.md
index 93535d3ef..bc3a767c2 100644
--- a/dotnet/website/articles/Create-an-agent.md
+++ b/dotnet/website/articles/Create-an-agent.md
@@ -4,8 +4,8 @@
## Create an `AssistantAgent` using OpenAI model.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs?name=code_snippet_1)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/CreateAnAgent.cs?name=code_snippet_1)]
## Create an `AssistantAgent` using Azure OpenAI model.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs?name=code_snippet_2)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/CreateAnAgent.cs?name=code_snippet_2)]
diff --git a/dotnet/website/articles/Create-type-safe-function-call.md b/dotnet/website/articles/Create-type-safe-function-call.md
index 059a912d0..bc8a398a2 100644
--- a/dotnet/website/articles/Create-type-safe-function-call.md
+++ b/dotnet/website/articles/Create-type-safe-function-call.md
@@ -25,11 +25,11 @@ Then, create a `public partial` class to host the methods you want to use in Aut
Firstly, import the required namespaces:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs?name=weather_report_using_statement)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs?name=weather_report_using_statement)]
Then, create a `WeatherReport` function and mark it with @AutoGen.Core.FunctionAttribute:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs?name=weather_report)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs?name=weather_report)]
The source generator will generate the @AutoGen.Core.FunctionContract and function call wrapper for `WeatherReport` in another partial class based on its signature and structural comments. The @AutoGen.Core.FunctionContract is introduced by [#1736](https://github.com/microsoft/autogen/pull/1736) and contains all the necessary metadata such as function name, parameters, and return type. It is LLM independent and can be used to generate openai function definition or semantic kernel function. The function call wrapper is a helper class that provides a type-safe way to call the function.
@@ -38,4 +38,4 @@ The source generator will generate the @AutoGen.Core.FunctionContract and functi
The following code shows how to generate openai function definition from the @AutoGen.Core.FunctionContract and call the function using the function call wrapper.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs?name=weather_report_consume)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs?name=weather_report_consume)]
diff --git a/dotnet/website/articles/Group-chat.md b/dotnet/website/articles/Group-chat.md
index 561065529..93cc4430f 100644
--- a/dotnet/website/articles/Group-chat.md
+++ b/dotnet/website/articles/Group-chat.md
@@ -33,7 +33,7 @@ flowchart LR
The code below shows how to create a dynamic group chat with @AutoGen.Core.GroupChat. In this example, we will create a dynamic group chat with 4 agents: `admin`, `coder`, `reviewer` and `runner`. In this case we don't pass a workflow to the group chat, so the group chat will use driven by the admin agent.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_group_chat)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_group_chat)]
> [!TIP]
> You can set up initial context for the group chat using @AutoGen.Core.GroupChatExtension.SendIntroduction*. The initial context can help group admin orchestrates the conversation flow.
@@ -48,26 +48,26 @@ Output:
The code below shows how to create `admin` agent. `admin` agent will create a task for group to work on and terminate the conversation when task is completed.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_admin)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_admin)]
- Create coder agent
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_coder)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_coder)]
- Create reviewer agent
The code below shows how to create `reviewer` agent. `reviewer` agent is a dotnet code reviewer who can review code written by `coder`. In this example, a `function` is used to examine if the code written by `coder` follows the condition.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=reviewer_function)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=reviewer_function)]
> [!TIP]
> You can use @AutoGen.Core.FunctionAttribute to generate type-safe function definition and function call wrapper for the function. For more information, please check out [Create type safe function call](./Create-type-safe-function-call.md).
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_reviewer)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_reviewer)]
- Create runner agent
> [!TIP]
> `AutoGen` provides a built-in support for running code snippet. For more information, please check out [Execute code snippet](./Run-dotnet-code.md).
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_runner)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_runner)]
diff --git a/dotnet/website/articles/Middleware-overview.md b/dotnet/website/articles/Middleware-overview.md
index 5ba4d822a..1a183e19c 100644
--- a/dotnet/website/articles/Middleware-overview.md
+++ b/dotnet/website/articles/Middleware-overview.md
@@ -8,15 +8,15 @@ Here are a few examples of how middleware is used in AutoGen.Net:
To use middleware in an existing agent, you can either create a @AutoGen.Core.MiddlewareAgent on top of the original agent or register middleware functions to the original agent.
### Create @AutoGen.Core.MiddlewareAgent on top of the original agent
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs?name=create_middleware_agent_with_original_agent)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MiddlewareAgentCodeSnippet.cs?name=create_middleware_agent_with_original_agent)]
### Register middleware functions to the original agent
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs?name=register_middleware_agent)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MiddlewareAgentCodeSnippet.cs?name=register_middleware_agent)]
## Short-circuit the next agent
The example below shows how to short-circuit the inner agent
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs?name=short_circuit_middleware_agent)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MiddlewareAgentCodeSnippet.cs?name=short_circuit_middleware_agent)]
> [!Note]
> When multiple middleware functions are registered, the order of middleware functions is first registered, last invoked.
@@ -24,4 +24,4 @@ The example below shows how to short-circuit the inner agent
## Streaming middleware
You can also modify the behavior of @AutoGen.Core.IStreamingAgent.GenerateStreamingReplyAsync* by registering streaming middleware to it. One example is @AutoGen.OpenAI.OpenAIChatRequestMessageConnector which converts `StreamingChatCompletionsUpdate` to one of `AutoGen.Core.TextMessageUpdate` or `AutoGen.Core.ToolCallMessageUpdate`.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs?name=register_streaming_middleware)]
\ No newline at end of file
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MiddlewareAgentCodeSnippet.cs?name=register_streaming_middleware)]
\ No newline at end of file
diff --git a/dotnet/website/articles/MistralChatAgent-count-token-usage.md b/dotnet/website/articles/MistralChatAgent-count-token-usage.md
index 5d73fe7f1..9ad28f603 100644
--- a/dotnet/website/articles/MistralChatAgent-count-token-usage.md
+++ b/dotnet/website/articles/MistralChatAgent-count-token-usage.md
@@ -4,22 +4,22 @@ The following example shows how to create a `MistralAITokenCounterMiddleware` @A
To collect the token usage for the entire chat session, one easy solution is simply collect all the responses from agent and sum up the token usage for each response. To collect all the agent responses, we can create a middleware which simply saves all responses to a list and register it with the agent. To get the token usage information for each response, because in the example we are using @AutoGen.Mistral.MistralClientAgent, we can simply get the token usage from the response object.
> [!NOTE]
-> You can find the complete example in the [Example13_OpenAIAgent_JsonMode](https://github.com/microsoft/autogen/tree/main/dotnet/samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs).
+> You can find the complete example in the [Example13_OpenAIAgent_JsonMode](https://github.com/microsoft/autogen/tree/main/dotnet/samples/AgentChat/Autogen.Basic.Sample/Example14_MistralClientAgent_TokenCount.cs).
- Step 1: Adding using statement
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs?name=using_statements)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example14_MistralClientAgent_TokenCount.cs?name=using_statements)]
- Step 2: Create a `MistralAITokenCounterMiddleware` class which implements @AutoGen.Core.IMiddleware. This middleware will collect all the responses from the agent and sum up the token usage for each response.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs?name=token_counter_middleware)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example14_MistralClientAgent_TokenCount.cs?name=token_counter_middleware)]
- Step 3: Create a `MistralClientAgent`
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs?name=create_mistral_client_agent)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example14_MistralClientAgent_TokenCount.cs?name=create_mistral_client_agent)]
- Step 4: Register the `MistralAITokenCounterMiddleware` with the `MistralClientAgent`. Note that the order of each middlewares matters. The token counter middleware needs to be registered before `mistralMessageConnector` because it collects response only when the responding message type is `IMessage<ChatCompletionResponse>` while the `mistralMessageConnector` will convert `IMessage<ChatCompletionResponse>` to one of @AutoGen.Core.TextMessage, @AutoGen.Core.ToolCallMessage or @AutoGen.Core.ToolCallResultMessage.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs?name=register_middleware)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example14_MistralClientAgent_TokenCount.cs?name=register_middleware)]
- Step 5: Chat with the `MistralClientAgent` and get the token usage information from the response object.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs?name=chat_with_agent)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example14_MistralClientAgent_TokenCount.cs?name=chat_with_agent)]
### Output
When running the example, the completion token count will be printed to the console.
diff --git a/dotnet/website/articles/MistralChatAgent-use-function-call.md b/dotnet/website/articles/MistralChatAgent-use-function-call.md
index 3dd3c6f6a..20ca243c3 100644
--- a/dotnet/website/articles/MistralChatAgent-use-function-call.md
+++ b/dotnet/website/articles/MistralChatAgent-use-function-call.md
@@ -18,24 +18,24 @@ dotnet add package AutoGen.SourceGenerator
> If you are using VSCode as your editor, you may need to restart the editor to see the generated code.
Import the required namespace
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs?name=using_statement)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs?name=using_statement)]
Then define a public partial `MistralAgentFunction` class and `GetWeather` method. The `GetWeather` method is a simple function that returns the weather of a given location that marked with @AutoGen.Core.FunctionAttribute. Marking the class as `public partial` together with the @AutoGen.Core.FunctionAttribute attribute allows the source generator to generate the @AutoGen.Core.FunctionContract for the `GetWeather` method.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs?name=weather_function)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs?name=weather_function)]
Then create an @AutoGen.Mistral.MistralClientAgent and register it with @AutoGen.Mistral.Extension.MistralAgentExtension.RegisterMessageConnector* so it can support @AutoGen.Core.ToolCallMessage and @AutoGen.Core.ToolCallResultMessage. These message types are necessary to use @AutoGen.Core.FunctionCallMiddleware, which provides support for processing and invoking function calls.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs?name=create_mistral_function_call_agent)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs?name=create_mistral_function_call_agent)]
Then create an @AutoGen.Core.FunctionCallMiddleware with `GetWeather` function When creating the middleware, we also pass a `functionMap` object which means the function will be automatically invoked when the agent replies a `GetWeather` function call.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs?name=create_get_weather_function_call_middleware)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs?name=create_get_weather_function_call_middleware)]
After the function call middleware is created, register it with the agent so the `GetWeather` function will be passed to agent during chat completion.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs?name=register_function_call_middleware)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs?name=register_function_call_middleware)]
Finally, you can chat with the @AutoGen.Mistral.MistralClientAgent about weather! The agent will automatically invoke the `GetWeather` function to "get" the weather information and return the result.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs?name=send_message_with_function_call)]
\ No newline at end of file
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/MistralAICodeSnippet.cs?name=send_message_with_function_call)]
\ No newline at end of file
diff --git a/dotnet/website/articles/OpenAIChatAgent-simple-chat.md b/dotnet/website/articles/OpenAIChatAgent-simple-chat.md
index 7d7b08364..826bb4a95 100644
--- a/dotnet/website/articles/OpenAIChatAgent-simple-chat.md
+++ b/dotnet/website/articles/OpenAIChatAgent-simple-chat.md
@@ -1,11 +1,11 @@
The following example shows how to create an @AutoGen.OpenAI.OpenAIChatAgent and chat with it.
Firsly, import the required namespaces:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs?name=using_statement)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs?name=using_statement)]
Then, create an @AutoGen.OpenAI.OpenAIChatAgent and chat with it:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs?name=create_openai_chat_agent)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs?name=create_openai_chat_agent)]
@AutoGen.OpenAI.OpenAIChatAgent also supports streaming chat via @AutoGen.Core.IAgent.GenerateStreamingReplyAsync*.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs?name=create_openai_chat_agent_streaming)]
\ No newline at end of file
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs?name=create_openai_chat_agent_streaming)]
\ No newline at end of file
diff --git a/dotnet/website/articles/OpenAIChatAgent-support-more-messages.md b/dotnet/website/articles/OpenAIChatAgent-support-more-messages.md
index 7808ebe93..7bcf2d6aa 100644
--- a/dotnet/website/articles/OpenAIChatAgent-support-more-messages.md
+++ b/dotnet/website/articles/OpenAIChatAgent-support-more-messages.md
@@ -1,6 +1,6 @@
By default, @AutoGen.OpenAI.OpenAIChatAgent only supports the @AutoGen.Core.IMessage<T> type where `T` is original request or response message from `Azure.AI.OpenAI`. To support more AutoGen built-in message types like @AutoGen.Core.TextMessage, @AutoGen.Core.ImageMessage, @AutoGen.Core.MultiModalMessage and so on, you can register the agent with @AutoGen.OpenAI.OpenAIChatRequestMessageConnector. The @AutoGen.OpenAI.OpenAIChatRequestMessageConnector will convert the message from AutoGen built-in message types to `Azure.AI.OpenAI.ChatRequestMessage` and vice versa.
import the required namespaces:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs?name=using_statement)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs?name=using_statement)]
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs?name=register_openai_chat_message_connector)]
\ No newline at end of file
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs?name=register_openai_chat_message_connector)]
\ No newline at end of file
diff --git a/dotnet/website/articles/OpenAIChatAgent-use-function-call.md b/dotnet/website/articles/OpenAIChatAgent-use-function-call.md
index d41ce0b27..741fc59d6 100644
--- a/dotnet/website/articles/OpenAIChatAgent-use-function-call.md
+++ b/dotnet/website/articles/OpenAIChatAgent-use-function-call.md
@@ -15,19 +15,19 @@ Firstly, you need to install the following packages:
> If you are using VSCode as your editor, you may need to restart the editor to see the generated code.
Firstly, import the required namespaces:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs?name=using_statement)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs?name=using_statement)]
Then, define a public partial class: `Function` with `GetWeather` method
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs?name=weather_function)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs?name=weather_function)]
Then, create an @AutoGen.OpenAI.OpenAIChatAgent and register it with @AutoGen.OpenAI.OpenAIChatRequestMessageConnector so it can support @AutoGen.Core.ToolCallMessage and @AutoGen.Core.ToolCallResultMessage. These message types are necessary to use @AutoGen.Core.FunctionCallMiddleware, which provides support for processing and invoking function calls.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs?name=openai_chat_agent_get_weather_function_call)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs?name=openai_chat_agent_get_weather_function_call)]
Then, create an @AutoGen.Core.FunctionCallMiddleware with `GetWeather` function and register it with the agent above. When creating the middleware, we also pass a `functionMap` to @AutoGen.Core.FunctionCallMiddleware, which means the function will be automatically invoked when the agent replies a `GetWeather` function call.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs?name=create_function_call_middleware)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs?name=create_function_call_middleware)]
Finally, you can chat with the @AutoGen.OpenAI.OpenAIChatAgent and invoke the `GetWeather` function.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs?name=chat_agent_send_function_call)]
\ No newline at end of file
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/OpenAICodeSnippet.cs?name=chat_agent_send_function_call)]
\ No newline at end of file
diff --git a/dotnet/website/articles/Print-message-middleware.md b/dotnet/website/articles/Print-message-middleware.md
index b269973d7..e2d1cbe91 100644
--- a/dotnet/website/articles/Print-message-middleware.md
+++ b/dotnet/website/articles/Print-message-middleware.md
@@ -13,7 +13,7 @@
## Use @AutoGen.Core.PrintMessageMiddleware in an agent
You can use @AutoGen.Core.PrintMessageMiddlewareExtension.RegisterPrintMessage* to register the @AutoGen.Core.PrintMessageMiddleware to an agent.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs?name=PrintMessageMiddleware)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs?name=PrintMessageMiddleware)]
@AutoGen.Core.PrintMessageMiddlewareExtension.RegisterPrintMessage* will format the message and print it to console
![image](../images/articles/PrintMessageMiddleware/printMessage.png)
@@ -22,6 +22,6 @@ You can use @AutoGen.Core.PrintMessageMiddlewareExtension.RegisterPrintMessage*
@AutoGen.Core.PrintMessageMiddleware also supports streaming message types like @AutoGen.Core.TextMessageUpdate and @AutoGen.Core.ToolCallMessageUpdate. If you register @AutoGen.Core.PrintMessageMiddleware to a @AutoGen.Core.IStreamingAgent, it will format the streaming message and print it to console if the message is of supported type.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs?name=print_message_streaming)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs?name=print_message_streaming)]
![image](../images/articles/PrintMessageMiddleware/streamingoutput.gif)
diff --git a/dotnet/website/articles/Roundrobin-chat.md b/dotnet/website/articles/Roundrobin-chat.md
index 24cc52ecb..80fb43138 100644
--- a/dotnet/website/articles/Roundrobin-chat.md
+++ b/dotnet/website/articles/Roundrobin-chat.md
@@ -10,23 +10,23 @@ flowchart LR
```
> [!NOTE]
-> Complete code can be found in [Example11_Sequential_GroupChat_Example](https://github.com/microsoft/autogen/blob/dotnet/dotnet/samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs);
+> Complete code can be found in [Example11_Sequential_GroupChat_Example](https://github.com/microsoft/autogen/blob/dotnet/dotnet/samples/AgentChat/Autogen.Basic.Sample/Example11_Sequential_GroupChat_Example.cs);
Step 1: Add required using statements
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs?name=using_statement)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example11_Sequential_GroupChat_Example.cs?name=using_statement)]
Step 2: Create a `bingSearch` agent using @AutoGen.SemanticKernel.SemanticKernelAgent
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs?name=CreateBingSearchAgent)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example11_Sequential_GroupChat_Example.cs?name=CreateBingSearchAgent)]
Step 3: Create a `summarization` agent using @AutoGen.SemanticKernel.SemanticKernelAgent
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs?name=CreateSummarizerAgent)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example11_Sequential_GroupChat_Example.cs?name=CreateSummarizerAgent)]
Step 4: Create a @AutoGen.Core.RoundRobinGroupChat and add `bingSearch` and `summarization` agents to it
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs?name=Sequential_GroupChat_Example)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example11_Sequential_GroupChat_Example.cs?name=Sequential_GroupChat_Example)]
Output:
diff --git a/dotnet/website/articles/Run-dotnet-code.md b/dotnet/website/articles/Run-dotnet-code.md
index a32b77a02..e4bc7ca45 100644
--- a/dotnet/website/articles/Run-dotnet-code.md
+++ b/dotnet/website/articles/Run-dotnet-code.md
@@ -6,7 +6,7 @@ More languages will be supported in the future.
## What is a code snippet?
A code snippet in agent response is a code block with a language identifier. For example:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs?name=code_snippet_1_3)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/RunCodeSnippetCodeSnippet.cs?name=code_snippet_1_3)]
## Why running code snippet is useful?
The ability of running code snippet can greatly extend the ability of an agent. Because it enables agent to resolve tasks by writing code and run it, which is much more powerful than just returning a text response.
@@ -24,10 +24,10 @@ The built-in feature of running dotnet code snippet is provided by [dotnet-inter
```
Then you can use @AutoGen.DotnetInteractive.DotnetInteractiveKernelBuilder* to create a in-process dotnet-interactive composite kernel with C# and F# kernels.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs?name=code_snippet_1_1)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/RunCodeSnippetCodeSnippet.cs?name=code_snippet_1_1)]
After that, use @AutoGen.DotnetInteractive.Extension.RunSubmitCodeCommandAsync* method to run code snippet. The method will return the result of the code snippet.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs?name=code_snippet_1_2)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/RunCodeSnippetCodeSnippet.cs?name=code_snippet_1_2)]
## Run python code snippet
To run python code, firstly you need to have python installed on your machine, then you need to set up ipykernel and jupyter in your environment.
@@ -53,9 +53,9 @@ Available kernels:
Then you can add the python kernel to the dotnet-interactive composite kernel by calling `AddPythonKernel` method.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs?name=code_snippet_1_4)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/RunCodeSnippetCodeSnippet.cs?name=code_snippet_1_4)]
## Further reading
You can refer to the following examples for running code snippet in agentic workflow:
-- Dynamic_GroupChat_Coding_Task: [![](https://img.shields.io/badge/Open%20on%20Github-grey?logo=github)](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AutoGen.BasicSample/Example04_Dynamic_GroupChat_Coding_Task.cs)
-- Dynamic_GroupChat_Calculate_Fibonacci: [![](https://img.shields.io/badge/Open%20on%20Github-grey?logo=github)](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AutoGen.BasicSample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs)
+- Dynamic_GroupChat_Coding_Task: [![](https://img.shields.io/badge/Open%20on%20Github-grey?logo=github)](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AutoGen.Basic.Sample/Example04_Dynamic_GroupChat_Coding_Task.cs)
+- Dynamic_GroupChat_Calculate_Fibonacci: [![](https://img.shields.io/badge/Open%20on%20Github-grey?logo=github)](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AutoGen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs)
diff --git a/dotnet/website/articles/Two-agent-chat.md b/dotnet/website/articles/Two-agent-chat.md
index 693692ea6..b2fdc6f74 100644
--- a/dotnet/website/articles/Two-agent-chat.md
+++ b/dotnet/website/articles/Two-agent-chat.md
@@ -16,4 +16,4 @@ The following example shows how to start a conversation between the teacher agen
> [!NOTE]
> The teacher agent uses @AutoGen.Core.MiddlewareExtension.RegisterPostProcess* to register a post process function which returns a hard-coded termination message when a certain condition is met. Comparing with putting the @AutoGen.Core.GroupChatExtension.TERMINATE keyword in the prompt, this approach is more robust especially when a weaker LLM model is used.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs?name=code_snippet_1)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example02_TwoAgent_MathChat.cs?name=code_snippet_1)]
diff --git a/dotnet/website/articles/Use-function-call.md b/dotnet/website/articles/Use-function-call.md
index e34c41a8d..284687d86 100644
--- a/dotnet/website/articles/Use-function-call.md
+++ b/dotnet/website/articles/Use-function-call.md
@@ -12,32 +12,32 @@ Typically, there are three ways to pass a function definition to an agent to ena
In some agents like @AutoGen.AssistantAgent or @AutoGen.OpenAI.GPTAgent, you can pass function definitions when creating the agent
Suppose the `TypeSafeFunctionCall` is defined in the following code snippet:
-[!code-csharp[TypeSafeFunctionCall](../../samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs?name=weather_report)]
+[!code-csharp[TypeSafeFunctionCall](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs?name=weather_report)]
You can then pass the `WeatherReport` to the agent when creating it:
-[!code-csharp[assistant agent](../../samples/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs?name=code_snippet_4)]
+[!code-csharp[assistant agent](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/FunctionCallCodeSnippet.cs?name=code_snippet_4)]
## Passing function definitions in @AutoGen.Core.GenerateReplyOptions when invoking an agent
You can also pass function definitions in @AutoGen.Core.GenerateReplyOptions when invoking an agent. This is useful when you want to override the function definitions passed to the agent when creating it.
-[!code-csharp[assistant agent](../../samples/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs?name=overrider_function_contract)]
+[!code-csharp[assistant agent](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/FunctionCallCodeSnippet.cs?name=overrider_function_contract)]
## Register an agent with @AutoGen.Core.FunctionCallMiddleware to process and invoke function calls
You can also register an agent with @AutoGen.Core.FunctionCallMiddleware to process and invoke function calls. This is useful when you want to process and invoke function calls in a more flexible way.
-[!code-csharp[assistant agent](../../samples/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs?name=register_function_call_middleware)]
+[!code-csharp[assistant agent](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/FunctionCallCodeSnippet.cs?name=register_function_call_middleware)]
## Invoke function call inside an agent
To invoke a function instead of returning the function call object, you can pass its function call wrapper to the agent via `functionMap`.
You can then pass the `WeatherReportWrapper` to the agent via `functionMap`:
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs?name=code_snippet_6)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/FunctionCallCodeSnippet.cs?name=code_snippet_6)]
When a function call object is returned, the agent will invoke the function and uses the return value as response rather than returning the function call object.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs?name=code_snippet_6_1)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/FunctionCallCodeSnippet.cs?name=code_snippet_6_1)]
## Invoke function call by another agent
You can also use another agent to invoke the function call from one agent. This is a useful pattern in two-agent chat, where one agent is used as a function proxy to invoke the function call from another agent. Once the function call is invoked, the result can be returned to the original agent for further processing.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs?name=two_agent_weather_chat)]
\ No newline at end of file
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/FunctionCallCodeSnippet.cs?name=two_agent_weather_chat)]
\ No newline at end of file
diff --git a/dotnet/website/articles/Use-graph-in-group-chat.md b/dotnet/website/articles/Use-graph-in-group-chat.md
index 055780351..4e1ec9664 100644
--- a/dotnet/website/articles/Use-graph-in-group-chat.md
+++ b/dotnet/website/articles/Use-graph-in-group-chat.md
@@ -18,8 +18,8 @@ The following code shows how to create a graph that represents the diagram above
> [!TIP]
> @AutoGen.Core.Graph supports conditional transitions. To create a conditional transition, you can pass a lambda function to `canTransitionAsync` when creating a @AutoGen.Core.Transition. The lambda function should return a boolean value indicating if the transition can be taken.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_workflow)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_workflow)]
Once the graph is created, you can pass it to the group chat. The group chat will then use the graph along with admin agent to orchestrate the conversation flow.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_group_chat_with_workflow)]
\ No newline at end of file
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs?name=create_group_chat_with_workflow)]
\ No newline at end of file
diff --git a/dotnet/website/articles/getting-start.md b/dotnet/website/articles/getting-start.md
index 0d4bf3316..4100241a1 100644
--- a/dotnet/website/articles/getting-start.md
+++ b/dotnet/website/articles/getting-start.md
@@ -13,13 +13,13 @@ dotnet add package AutoGen
Then you can start with the following code snippet to create a conversable agent and chat with it.
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs?name=snippet_GetStartCodeSnippet)]
-[!code-csharp[](../../samples/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs?name=code_snippet_1)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/GetStartCodeSnippet.cs?name=snippet_GetStartCodeSnippet)]
+[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/GetStartCodeSnippet.cs?name=code_snippet_1)]
### Tutorial
Getting started with AutoGen.Net by following the [tutorial](../tutorial/Chat-with-an-agent.md) series.
### Examples
-You can find more examples under the [sample project](https://github.com/microsoft/autogen/tree/dotnet/dotnet/samples/AutoGen.BasicSamples).
+You can find more examples under the [sample project](https://github.com/microsoft/autogen/tree/dotnet/dotnet/samples/AgentChat/Autogen.Basic.Sample).
### Report a bug or request a feature
You can report a bug or request a feature by creating a new issue in the [github issue](https://github.com/microsoft/autogen/issues) and specifying label the label "donet"
diff --git a/dotnet/website/release_note/0.0.16.md b/dotnet/website/release_note/0.0.16.md
index b9a190c5f..b481cd967 100644
--- a/dotnet/website/release_note/0.0.16.md
+++ b/dotnet/website/release_note/0.0.16.md
@@ -18,7 +18,7 @@ We are excited to announce the release of **AutoGen.Net 0.0.16**. This release i
3. **AutoGen.SourceGenerator doesn’t encode `"` in structural comments** ([#2872](https://github.com/microsoft/autogen/issues/2872)) - Fixed an issue where structural comments containing `"` were not properly encoded, leading to compilation errors.
## 🚀 Improvements
-1. **Sample update - Add getting-start samples for BasicSample project** ([#2859](https://github.com/microsoft/autogen/issues/2859)) - Re-organized the `AutoGen.BasicSample` project to include only essential getting-started examples, simplifying complex examples.
+1. **Sample update - Add getting-start samples for Basic.Sample project** ([#2859](https://github.com/microsoft/autogen/issues/2859)) - Re-organized the `AutoGen.Basic.Sample` project to include only essential getting-started examples, simplifying complex examples.
2. **Graph constructor should consider null transitions** ([#2708](https://github.com/microsoft/autogen/issues/2708)) - Updated the Graph constructor to handle cases where transitions’ values are null.
## ⚠️ API-Breakchange
diff --git a/dotnet/website/tutorial/Chat-with-an-agent.md b/dotnet/website/tutorial/Chat-with-an-agent.md
index 32b375a51..acfcc1cec 100644
--- a/dotnet/website/tutorial/Chat-with-an-agent.md
+++ b/dotnet/website/tutorial/Chat-with-an-agent.md
@@ -11,7 +11,7 @@ This tutorial shows how to generate response using an @AutoGen.Core.IAgent by ta
> - @AutoGen.Gemini.GeminiChatAgent
> [!NOTE]
-> The complete code example can be found in [Chat_With_Agent.cs](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs)
+> The complete code example can be found in [Chat_With_Agent.cs](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AgentChat/Autogen.Basic.Sample/GettingStart/Chat_With_Agent.cs)
## Step 1: Install AutoGen
@@ -23,7 +23,7 @@ dotnet add package AutoGen
## Step 2: add Using Statements
-[!code-csharp[Using Statements](../../samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs?name=Using)]
+[!code-csharp[Using Statements](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Chat_With_Agent.cs?name=Using)]
## Step 3: Create an @AutoGen.OpenAI.OpenAIChatAgent
@@ -31,20 +31,20 @@ dotnet add package AutoGen
> The @AutoGen.OpenAI.Extension.OpenAIAgentExtension.RegisterMessageConnector* method registers an @AutoGen.OpenAI.OpenAIChatRequestMessageConnector middleware which converts OpenAI message types to AutoGen message types. This step is necessary when you want to use AutoGen built-in message types like @AutoGen.Core.TextMessage, @AutoGen.Core.ImageMessage, etc.
> For more information, see [Built-in-messages](../articles/Built-in-messages.md)
-[!code-csharp[Create an OpenAIChatAgent](../../samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs?name=Create_Agent)]
+[!code-csharp[Create an OpenAIChatAgent](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Chat_With_Agent.cs?name=Create_Agent)]
## Step 4: Generate Response
To generate response, you can use one of the overloaded method of @AutoGen.Core.AgentExtension.SendAsync* method. The following code shows how to generate response with text message:
-[!code-csharp[Generate Response](../../samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs?name=Chat_With_Agent)]
+[!code-csharp[Generate Response](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Chat_With_Agent.cs?name=Chat_With_Agent)]
To generate response with chat history, you can pass the chat history to the @AutoGen.Core.AgentExtension.SendAsync* method:
-[!code-csharp[Generate Response with Chat History](../../samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs?name=Chat_With_History)]
+[!code-csharp[Generate Response with Chat History](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Chat_With_Agent.cs?name=Chat_With_History)]
To streamingly generate response, use @AutoGen.Core.IStreamingAgent.GenerateStreamingReplyAsync*
-[!code-csharp[Generate Streaming Response](../../samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs?name=Streaming_Chat)]
+[!code-csharp[Generate Streaming Response](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Chat_With_Agent.cs?name=Streaming_Chat)]
## Further Reading
- [Chat with google gemini](../articles/AutoGen.Gemini/Chat-with-google-gemini.md)
diff --git a/dotnet/website/tutorial/Create-agent-with-tools.md b/dotnet/website/tutorial/Create-agent-with-tools.md
index dd2103e90..8f28a9c04 100644
--- a/dotnet/website/tutorial/Create-agent-with-tools.md
+++ b/dotnet/website/tutorial/Create-agent-with-tools.md
@@ -14,7 +14,7 @@ Tools are pre-defined functions in user's project that agent can invoke. Agent c
> This tutorial uses the latest `GPT-3.5-turbo` as example.
> [!NOTE]
-> The complete code example can be found in [Use_Tools_With_Agent.cs](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs)
+> The complete code example can be found in [Use_Tools_With_Agent.cs](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs)
## Key Concepts
- @AutoGen.Core.FunctionContract: The contract of a function that agent can invoke. It contains the function name, description, parameters schema, and return type.
@@ -45,21 +45,21 @@ Also, you might need to enable structural xml document support by setting `Gener
## Add Using Statements
-[!code-csharp[Using Statements](../../samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs?name=Using)]
+[!code-csharp[Using Statements](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs?name=Using)]
## Create agent
Create an @AutoGen.OpenAI.OpenAIChatAgent with `GPT-3.5-turbo` as the backend LLM model.
-[!code-csharp[Create an agent with tools](../../samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs?name=Create_Agent)]
+[!code-csharp[Create an agent with tools](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs?name=Create_Agent)]
## Define `Tool` class and create tools
Create a `public partial` class to host the tools you want to use in AutoGen agents. The method has to be a `public` instance method and its return type must be `Task<string>`. After the methods is defined, mark them with @AutoGen.Core.FunctionAttribute attribute.
In the following example, we define a `GetWeather` tool that returns the weather information of a city.
-[!code-csharp[Define Tool class](../../samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs?name=Tools)]
-[!code-csharp[Create tools](../../samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs?name=Create_tools)]
+[!code-csharp[Define Tool class](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs?name=Tools)]
+[!code-csharp[Create tools](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs?name=Create_tools)]
## Tool call without auto-invoke
In this case, when receiving a @AutoGen.Core.ToolCallMessage, the agent will not automatically invoke the tool. Instead, the agent will return the original message back to the user. The user can then decide whether to invoke the tool or not.
@@ -68,11 +68,11 @@ In this case, when receiving a @AutoGen.Core.ToolCallMessage, the agent will not
To implement this, you can create the @AutoGen.Core.FunctionCallMiddleware without passing the `functionMap` parameter to the constructor so that the middleware will not automatically invoke the tool once it receives a @AutoGen.Core.ToolCallMessage from its inner agent.
-[!code-csharp[Single-turn tool call without auto-invoke](../../samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs?name=Create_no_invoke_middleware)]
+[!code-csharp[Single-turn tool call without auto-invoke](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs?name=Create_no_invoke_middleware)]
After creating the function call middleware, you can register it to the agent using `RegisterMiddleware` method, which will return a new agent which can use the methods defined in the `Tool` class.
-[!code-csharp[Generate Response](../../samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs?name=Single_Turn_No_Invoke)]
+[!code-csharp[Generate Response](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs?name=Single_Turn_No_Invoke)]
## Tool call with auto-invoke
In this case, the agent will automatically invoke the tool when receiving a @AutoGen.Core.ToolCallMessage and return the @AutoGen.Core.ToolCallAggregateMessage which contains both the tool call request and the tool call result.
@@ -81,21 +81,21 @@ In this case, the agent will automatically invoke the tool when receiving a @Aut
To implement this, you can create the @AutoGen.Core.FunctionCallMiddleware with the `functionMap` parameter so that the middleware will automatically invoke the tool once it receives a @AutoGen.Core.ToolCallMessage from its inner agent.
-[!code-csharp[Single-turn tool call with auto-invoke](../../samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs?name=Create_auto_invoke_middleware)]
+[!code-csharp[Single-turn tool call with auto-invoke](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs?name=Create_auto_invoke_middleware)]
After creating the function call middleware, you can register it to the agent using `RegisterMiddleware` method, which will return a new agent which can use the methods defined in the `Tool` class.
-[!code-csharp[Generate Response](../../samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs?name=Single_Turn_Auto_Invoke)]
+[!code-csharp[Generate Response](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs?name=Single_Turn_Auto_Invoke)]
## Send the tool call result back to LLM to generate further response
In some cases, you may want to send the tool call result back to the LLM to generate further response. To do this, you can send the tool call response from agent back to the LLM by calling the `SendAsync` method of the agent.
-[!code-csharp[Generate Response](../../samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs?name=Multi_Turn_Tool_Call)]
+[!code-csharp[Generate Response](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs?name=Multi_Turn_Tool_Call)]
## Parallel tool call
Some LLM models support parallel tool call, which returns multiple tool calls in one single message. Note that @AutoGen.Core.FunctionCallMiddleware has already handled the parallel tool call for you. When it receives a @AutoGen.Core.ToolCallMessage that contains multiple tool calls, it will automatically invoke all the tools in the sequantial order and return the @AutoGen.Core.ToolCallAggregateMessage which contains all the tool call requests and results.
-[!code-csharp[Generate Response](../../samples/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs?name=parallel_tool_call)]
+[!code-csharp[Generate Response](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Use_Tools_With_Agent.cs?name=parallel_tool_call)]
## Further Reading
- [Function call with openai](../articles/OpenAIChatAgent-use-function-call.md)
diff --git a/dotnet/website/tutorial/Image-chat-with-agent.md b/dotnet/website/tutorial/Image-chat-with-agent.md
index c6398d21e..d63f9e501 100644
--- a/dotnet/website/tutorial/Image-chat-with-agent.md
+++ b/dotnet/website/tutorial/Image-chat-with-agent.md
@@ -11,7 +11,7 @@ This tutorial shows how to perform image chat with an agent using the @AutoGen.O
> In this example, we are using the gpt-4o model as the backend model for the agent.
> [!NOTE]
-> The complete code example can be found in [Image_Chat_With_Agent.cs](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs)
+> The complete code example can be found in [Image_Chat_With_Agent.cs](https://github.com/microsoft/autogen/blob/main/dotnet/samples/AgentChat/Autogen.Basic.Sample/GettingStart/Image_Chat_With_Agent.cs)
## Step 1: Install AutoGen
@@ -23,27 +23,27 @@ dotnet add package AutoGen
## Step 2: Add Using Statements
-[!code-csharp[Using Statements](../../samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs?name=Using)]
+[!code-csharp[Using Statements](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Image_Chat_With_Agent.cs?name=Using)]
## Step 3: Create an @AutoGen.OpenAI.OpenAIChatAgent
-[!code-csharp[Create an OpenAIChatAgent](../../samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs?name=Create_Agent)]
+[!code-csharp[Create an OpenAIChatAgent](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Image_Chat_With_Agent.cs?name=Create_Agent)]
## Step 4: Prepare Image Message
In AutoGen, you can create an image message using either @AutoGen.Core.ImageMessage or @AutoGen.Core.MultiModalMessage. The @AutoGen.Core.ImageMessage takes a single image as input, whereas the @AutoGen.Core.MultiModalMessage allows you to pass multiple modalities like text or image.
Here is how to create an image message using @AutoGen.Core.ImageMessage:
-[!code-csharp[Create Image Message](../../samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs?name=Prepare_Image_Input)]
+[!code-csharp[Create Image Message](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Image_Chat_With_Agent.cs?name=Prepare_Image_Input)]
Here is how to create a multimodal message using @AutoGen.Core.MultiModalMessage:
-[!code-csharp[Create MultiModal Message](../../samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs?name=Prepare_Multimodal_Input)]
+[!code-csharp[Create MultiModal Message](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Image_Chat_With_Agent.cs?name=Prepare_Multimodal_Input)]
## Step 5: Generate Response
To generate response, you can use one of the overloaded methods of @AutoGen.Core.AgentExtension.SendAsync* method. The following code shows how to generate response with an image message:
-[!code-csharp[Generate Response](../../samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs?name=Chat_With_Agent)]
+[!code-csharp[Generate Response](../../samples/AgentChat/Autogen.Basic.Sample/GettingStart/Image_Chat_With_Agent.cs?name=Chat_With_Agent)]
## Further Reading
- [Image chat with gemini](../articles/AutoGen.Gemini/Image-chat-with-gemini.md)