Skip to content

A programming framework for agentic AI

Merge dotnet conflict (#3)

Xiaoyun Zhang18d52f606a91
diff --git a/dotnet/.editorconfig b/dotnet/.editorconfig
index fa933d492..2ead8ad1b 100644
--- a/dotnet/.editorconfig
+++ b/dotnet/.editorconfig
@@ -59,7 +59,7 @@ dotnet_style_prefer_conditional_expression_over_assignment = false
dotnet_style_prefer_auto_properties = false
# Use language keywords instead of framework type names for type references
-dotnet_style_predefined_type_for_locals_parameters_members = true:error
+dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:error
# Prefer read-only on fields
@@ -224,6 +224,14 @@ dotnet_diagnostic.IDE0035.severity = warning # Remove unreachable code
dotnet_diagnostic.IDE0161.severity = warning # Use file-scoped namespace
csharp_style_var_elsewhere = true:suggestion # Prefer 'var' everywhere
+csharp_prefer_simple_using_statement = true:suggestion
+csharp_style_namespace_declarations = block_scoped:silent
+csharp_style_prefer_method_group_conversion = true:silent
+csharp_style_prefer_top_level_statements = true:silent
+csharp_style_prefer_primary_constructors = true:suggestion
+csharp_style_expression_bodied_lambdas = true:silent
+csharp_style_prefer_local_over_anonymous_function = true:suggestion
+dotnet_diagnostic.CA2016.severity = suggestion
# disable check for generated code
[*.generated.cs]
@@ -340,7 +348,7 @@ dotnet_diagnostic.CA1305.severity = suggestion
dotnet_diagnostic.CA1507.severity = warning
# CA1510: Use ArgumentNullException throw helper
-dotnet_diagnostic.CA1510.severity = warning
+dotnet_diagnostic.CA1510.severity = none
# CA1511: Use ArgumentException throw helper
dotnet_diagnostic.CA1511.severity = warning
@@ -482,16 +490,16 @@ dotnet_diagnostic.CA2013.severity = warning
dotnet_diagnostic.CA2014.severity = warning
# CA2016: Forward the 'CancellationToken' parameter to methods that take one
-dotnet_diagnostic.CA2016.severity = warning
+dotnet_diagnostic.CA2016.severity = none
# CA2200: Rethrow to preserve stack details
dotnet_diagnostic.CA2200.severity = warning
# CA2201: Do not raise reserved exception types
-dotnet_diagnostic.CA2201.severity = warning
+dotnet_diagnostic.CA2201.severity = none
# CA2208: Instantiate argument exceptions correctly
-dotnet_diagnostic.CA2208.severity = warning
+dotnet_diagnostic.CA2208.severity = none
# CA2245: Do not assign a property to itself
dotnet_diagnostic.CA2245.severity = warning
@@ -575,7 +583,7 @@ dotnet_diagnostic.CA1018.severity = suggestion
# CA1507: Use nameof to express symbol names
dotnet_diagnostic.CA1507.severity = suggestion
# CA1510: Use ArgumentNullException throw helper
-dotnet_diagnostic.CA1510.severity = suggestion
+dotnet_diagnostic.CA1510.severity = none
# CA1511: Use ArgumentException throw helper
dotnet_diagnostic.CA1511.severity = suggestion
# CA1512: Use ArgumentOutOfRangeException throw helper
@@ -641,7 +649,7 @@ dotnet_diagnostic.CA2008.severity = suggestion
# CA2012: Use ValueTask correctly
dotnet_diagnostic.CA2012.severity = suggestion
# CA2201: Do not raise reserved exception types
-dotnet_diagnostic.CA2201.severity = suggestion
+dotnet_diagnostic.CA2201.severity = none
# CA2249: Use string.Contains instead of string.IndexOf to improve readability.
dotnet_diagnostic.CA2249.severity = suggestion
# IDE0005: Remove unnecessary usings
@@ -678,10 +686,10 @@ dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
indent_size = 4
end_of_line = crlf
-dotnet_style_coalesce_expression = true:suggestion
-dotnet_style_null_propagation = true:suggestion
+dotnet_style_coalesce_expression = true:error
+dotnet_style_null_propagation = true:error
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
-dotnet_style_prefer_auto_properties = true:silent
+dotnet_style_prefer_auto_properties = false:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
diff --git a/dotnet/AutoGen.sln b/dotnet/AutoGen.sln
index 6ef27cb1d..34990da89 100644
--- a/dotnet/AutoGen.sln
+++ b/dotnet/AutoGen.sln
@@ -1,4 +1,3 @@
-<<<<<<< HEAD
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34322.80
@@ -78,33 +77,59 @@ EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.OpenAI", "src\AutoGen.OpenAI\AutoGen.OpenAI.csproj", "{3AF1CBEC-2877-41E9-92AE-3A391B2AA9E8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.OpenAI.Tests", "test\AutoGen.OpenAI.Tests\AutoGen.OpenAI.Tests.csproj", "{42A8251C-E7B3-47BB-A82E-459952EBE132}"
-=======
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.0.31903.59
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{DC5E7967-F187-4E42-9B71-835E79501288}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents.Client", "src\Microsoft.AutoGen.Agents.Client\Microsoft.AutoGen.Agents.Client.csproj", "{687DA41E-83A6-418A-918B-8E2C20C6D1E3}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents", "src\Microsoft.AutoGen.Agents\Microsoft.AutoGen.Agents.csproj", "{F716F5EA-DE34-4B3D-82F8-64B0B5C4A795}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents.Client", "src\Microsoft.AutoGen.Agents.Client\Microsoft.AutoGen.Agents.Client.csproj", "{6DA7A583-DFDD-489A-884F-D12C58022A05}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents.Extensions.CloudEvents", "src\Microsoft.AutoGen.Agents.Extensions\CloudEvents\Microsoft.AutoGen.Agents.Extensions.CloudEvents.csproj", "{C1E69C6D-066E-42E4-83C6-D9A4C84A6670}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents.Extensions.SemanticKernel", "src\Microsoft.AutoGen.Agents.Extensions\SemanticKernel\Microsoft.AutoGen.Agents.Extensions.SemanticKernel.csproj", "{F520E059-9B54-4B79-8716-FEF09447C928}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents.Runtime", "src\Microsoft.AutoGen.Agents.Runtime\Microsoft.AutoGen.Agents.Runtime.csproj", "{FEF07BCC-DBE3-4592-9FD2-565A091F19DC}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AgentChat", "AgentChat", "{4BB66E06-37D8-45A0-9B97-DE590AFBA340}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AgentChat", "AgentChat", "{C7A2D42D-9277-47AC-862B-D86DF9D6AD48}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dev-team", "dev-team", "{616F30DF-1F41-4047-BAA4-64BA03BF5AEA}"
+ ProjectSection(SolutionItems) = preProject
+ sample\dev-team\DevTeam.ServiceDefaults\DevTeam.ServiceDefaults.csproj = sample\dev-team\DevTeam.ServiceDefaults\DevTeam.ServiceDefaults.csproj
+ EndProjectSection
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevTeam.AgentHost", "sample\dev-team\DevTeam.AgentHost\DevTeam.AgentHost.csproj", "{7228A701-C79D-4E15-BF45-48D11F721A84}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevTeam.Agents", "sample\dev-team\DevTeam.Agents\DevTeam.Agents.csproj", "{EDECD35D-6EB1-4CA8-A175-A66588C3481E}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevTeam.AppHost", "sample\dev-team\DevTeam.AppHost\DevTeam.AppHost.csproj", "{F2F13EAF-05C6-4E90-B2E4-3FA0290D7F6E}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents.Runtime", "src\Microsoft.AutoGen.Agents.Runtime\Microsoft.AutoGen.Agents.Runtime.csproj", "{D4EC36E1-E197-47C2-A45A-CAAFEB6B9F09}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevTeam.Backend", "sample\dev-team\DevTeam.Backend\DevTeam.Backend.csproj", "{D826D5E4-31F4-4AB5-AC86-F7B4AD79314B}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents", "src\Microsoft.AutoGen.Agents\Microsoft.AutoGen.Agents.csproj", "{E6171E39-6DE2-46C9-9978-E2F946530CBA}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevTeam.Shared", "sample\dev-team\DevTeam.Shared\DevTeam.Shared.csproj", "{D9F65DFD-368B-47DB-8BB5-0C74DED7F439}"
EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Microsoft.AutoGen.Agents.Extensions", "Microsoft.AutoGen.Agents.Extensions", "{2CF811BD-3513-4A1B-8020-645C0315CDB4}"
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HelloAgents", "HelloAgents", "{F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents.Extensions.CloudEvents", "src\Microsoft.AutoGen.Agents.Extensions\CloudEvents\Microsoft.AutoGen.Agents.Extensions.CloudEvents.csproj", "{351CFFFB-6418-4C81-A697-BA24D1D43307}"
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{243E768F-EA7D-4AF1-B625-0398440BB1AB}"
+ ProjectSection(SolutionItems) = preProject
+ .editorconfig = .editorconfig
+ spelling.dic = spelling.dic
+ EndProjectSection
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents.Extensions.SemanticKernel", "src\Microsoft.AutoGen.Agents.Extensions\SemanticKernel\Microsoft.AutoGen.Agents.Extensions.SemanticKernel.csproj", "{2E6E731B-2CFE-4F74-B3C4-EE0E2EF02FB9}"
->>>>>>> agnext_main
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgents.Agents", "sample\HelloAgents\HelloAgents.Agents\HelloAgents.Agents.csproj", "{ECCE44EE-3934-448E-A9A5-3403117EF0B5}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgents.ApiService", "sample\HelloAgents\HelloAgents.ApiService\HelloAgents.ApiService.csproj", "{74ADFF5D-80AF-4A6E-9794-746BDE1A41D1}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgents.AppHost", "sample\HelloAgents\HelloAgents.AppHost\HelloAgents.AppHost.csproj", "{031FED7F-97ED-4AA1-B408-88BD3B70A463}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgents.ServiceDefaults", "sample\HelloAgents\HelloAgents.ServiceDefaults\HelloAgents.ServiceDefaults.csproj", "{6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgents.Web", "sample\HelloAgents\HelloAgents.Web\HelloAgents.Web.csproj", "{8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
-<<<<<<< HEAD
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{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
@@ -246,85 +271,127 @@ Global
{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
+ {F716F5EA-DE34-4B3D-82F8-64B0B5C4A795}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F716F5EA-DE34-4B3D-82F8-64B0B5C4A795}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F716F5EA-DE34-4B3D-82F8-64B0B5C4A795}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F716F5EA-DE34-4B3D-82F8-64B0B5C4A795}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6DA7A583-DFDD-489A-884F-D12C58022A05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6DA7A583-DFDD-489A-884F-D12C58022A05}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6DA7A583-DFDD-489A-884F-D12C58022A05}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6DA7A583-DFDD-489A-884F-D12C58022A05}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C1E69C6D-066E-42E4-83C6-D9A4C84A6670}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C1E69C6D-066E-42E4-83C6-D9A4C84A6670}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C1E69C6D-066E-42E4-83C6-D9A4C84A6670}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C1E69C6D-066E-42E4-83C6-D9A4C84A6670}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F520E059-9B54-4B79-8716-FEF09447C928}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F520E059-9B54-4B79-8716-FEF09447C928}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F520E059-9B54-4B79-8716-FEF09447C928}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F520E059-9B54-4B79-8716-FEF09447C928}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FEF07BCC-DBE3-4592-9FD2-565A091F19DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FEF07BCC-DBE3-4592-9FD2-565A091F19DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FEF07BCC-DBE3-4592-9FD2-565A091F19DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FEF07BCC-DBE3-4592-9FD2-565A091F19DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7228A701-C79D-4E15-BF45-48D11F721A84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7228A701-C79D-4E15-BF45-48D11F721A84}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7228A701-C79D-4E15-BF45-48D11F721A84}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7228A701-C79D-4E15-BF45-48D11F721A84}.Release|Any CPU.Build.0 = Release|Any CPU
+ {EDECD35D-6EB1-4CA8-A175-A66588C3481E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EDECD35D-6EB1-4CA8-A175-A66588C3481E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EDECD35D-6EB1-4CA8-A175-A66588C3481E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EDECD35D-6EB1-4CA8-A175-A66588C3481E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F2F13EAF-05C6-4E90-B2E4-3FA0290D7F6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F2F13EAF-05C6-4E90-B2E4-3FA0290D7F6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F2F13EAF-05C6-4E90-B2E4-3FA0290D7F6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F2F13EAF-05C6-4E90-B2E4-3FA0290D7F6E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D826D5E4-31F4-4AB5-AC86-F7B4AD79314B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D826D5E4-31F4-4AB5-AC86-F7B4AD79314B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D826D5E4-31F4-4AB5-AC86-F7B4AD79314B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D826D5E4-31F4-4AB5-AC86-F7B4AD79314B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D9F65DFD-368B-47DB-8BB5-0C74DED7F439}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D9F65DFD-368B-47DB-8BB5-0C74DED7F439}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D9F65DFD-368B-47DB-8BB5-0C74DED7F439}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D9F65DFD-368B-47DB-8BB5-0C74DED7F439}.Release|Any CPU.Build.0 = Release|Any CPU
+ {ECCE44EE-3934-448E-A9A5-3403117EF0B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ECCE44EE-3934-448E-A9A5-3403117EF0B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ECCE44EE-3934-448E-A9A5-3403117EF0B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ECCE44EE-3934-448E-A9A5-3403117EF0B5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {74ADFF5D-80AF-4A6E-9794-746BDE1A41D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {74ADFF5D-80AF-4A6E-9794-746BDE1A41D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {74ADFF5D-80AF-4A6E-9794-746BDE1A41D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {74ADFF5D-80AF-4A6E-9794-746BDE1A41D1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {031FED7F-97ED-4AA1-B408-88BD3B70A463}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {031FED7F-97ED-4AA1-B408-88BD3B70A463}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {031FED7F-97ED-4AA1-B408-88BD3B70A463}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {031FED7F-97ED-4AA1-B408-88BD3B70A463}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
- {B2B27ACB-AA50-4FED-A06C-3AD6B4218188} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {B2B27ACB-AA50-4FED-A06C-3AD6B4218188} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
{FDD99AEC-4C57-4020-B23F-650612856102} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
- {3FFD14E3-D6BC-4EA7-97A2-D21733060FD6} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {3FFD14E3-D6BC-4EA7-97A2-D21733060FD6} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
{05A2FAD8-03B0-4B2F-82AF-2F6BF0F050E5} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
- {7EBF916A-A7B1-4B74-AF10-D705B7A18F58} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
- {B61D8008-7FB7-4C0E-8044-3A74AA63A596} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
- {F98BDA9B-8657-4BA8-9B03-BAEA454CAE60} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
- {45D6FC80-36F3-4967-9663-E20B63824621} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
- {D58D43D1-0617-4A3D-9932-C773E6398535} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
- {63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
- {6585D1A4-3D97-4D76-A688-1933B61AEB19} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {7EBF916A-A7B1-4B74-AF10-D705B7A18F58} = {C7A2D42D-9277-47AC-862B-D86DF9D6AD48}
+ {B61D8008-7FB7-4C0E-8044-3A74AA63A596} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
+ {F98BDA9B-8657-4BA8-9B03-BAEA454CAE60} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
+ {45D6FC80-36F3-4967-9663-E20B63824621} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
+ {D58D43D1-0617-4A3D-9932-C773E6398535} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
+ {63445BB7-DBB9-4AEF-9D6F-98BBE75EE1EC} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
+ {6585D1A4-3D97-4D76-A688-1933B61AEB19} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
{15441693-3659-4868-B6C1-B106F52FF3BA} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
- {257FFD71-08E5-40C7-AB04-6A81A78EB410} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {257FFD71-08E5-40C7-AB04-6A81A78EB410} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
{E2EF5E66-683C-4DDC-8ADA-5F676502B9BA} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
{1DFABC4A-8458-4875-8DCB-59F3802DAC65} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
{D36A85F9-C172-487D-8192-6BFE5D05B4A7} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
{B61388CA-DC73-4B7F-A7B2-7B9A86C9229E} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
- {9F9E6DED-3D92-4970-909A-70FC11F1A665} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {9F9E6DED-3D92-4970-909A-70FC11F1A665} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
{03E31CAA-3728-48D3-B936-9F11CF6C18FE} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
- {93AA4D0D-6EE4-44D5-AD77-7F73A3934544} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
- {52958A60-3FF7-4243-9058-34A6E4F55C31} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
- {6A95E113-B824-4524-8F13-CD0C3E1C8804} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {93AA4D0D-6EE4-44D5-AD77-7F73A3934544} = {C7A2D42D-9277-47AC-862B-D86DF9D6AD48}
+ {52958A60-3FF7-4243-9058-34A6E4F55C31} = {C7A2D42D-9277-47AC-862B-D86DF9D6AD48}
+ {6A95E113-B824-4524-8F13-CD0C3E1C8804} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
{815E937E-86D6-4476-9EC6-B7FBCBBB5DB6} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
- {834B4E85-64E5-4382-8465-548F332E5298} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
- {EFE0DC86-80FC-4D52-95B7-07654BA1A769} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {834B4E85-64E5-4382-8465-548F332E5298} = {C7A2D42D-9277-47AC-862B-D86DF9D6AD48}
+ {EFE0DC86-80FC-4D52-95B7-07654BA1A769} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
{8EA16BAB-465A-4C07-ABC4-1070D40067E9} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
- {19679B75-CE3A-4DF0-A3F0-CA369D2760A4} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
+ {19679B75-CE3A-4DF0-A3F0-CA369D2760A4} = {C7A2D42D-9277-47AC-862B-D86DF9D6AD48}
{6B82F26D-5040-4453-B21B-C8D1F913CE4C} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
- {0E635268-351C-4A6B-A28D-593D868C2CA4} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
- {12079C18-A519-403F-BBFD-200A36A0C083} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
- {5C45981D-1319-4C25-935C-83D411CB28DF} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {0E635268-351C-4A6B-A28D-593D868C2CA4} = {C7A2D42D-9277-47AC-862B-D86DF9D6AD48}
+ {12079C18-A519-403F-BBFD-200A36A0C083} = {C7A2D42D-9277-47AC-862B-D86DF9D6AD48}
+ {5C45981D-1319-4C25-935C-83D411CB28DF} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
{5970868F-831E-418F-89A9-4EC599563E16} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
{143725E2-206C-4D37-93E4-9EDF699826B2} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
- {3AF1CBEC-2877-41E9-92AE-3A391B2AA9E8} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {3AF1CBEC-2877-41E9-92AE-3A391B2AA9E8} = {4BB66E06-37D8-45A0-9B97-DE590AFBA340}
{42A8251C-E7B3-47BB-A82E-459952EBE132} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64}
+ {F716F5EA-DE34-4B3D-82F8-64B0B5C4A795} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {6DA7A583-DFDD-489A-884F-D12C58022A05} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {C1E69C6D-066E-42E4-83C6-D9A4C84A6670} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {F520E059-9B54-4B79-8716-FEF09447C928} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {FEF07BCC-DBE3-4592-9FD2-565A091F19DC} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {4BB66E06-37D8-45A0-9B97-DE590AFBA340} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
+ {C7A2D42D-9277-47AC-862B-D86DF9D6AD48} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
+ {616F30DF-1F41-4047-BAA4-64BA03BF5AEA} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
+ {7228A701-C79D-4E15-BF45-48D11F721A84} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
+ {EDECD35D-6EB1-4CA8-A175-A66588C3481E} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
+ {F2F13EAF-05C6-4E90-B2E4-3FA0290D7F6E} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
+ {D826D5E4-31F4-4AB5-AC86-F7B4AD79314B} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
+ {D9F65DFD-368B-47DB-8BB5-0C74DED7F439} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
+ {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
+ {ECCE44EE-3934-448E-A9A5-3403117EF0B5} = {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}
+ {74ADFF5D-80AF-4A6E-9794-746BDE1A41D1} = {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}
+ {031FED7F-97ED-4AA1-B408-88BD3B70A463} = {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}
+ {6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5} = {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}
+ {8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B} = {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {93384647-528D-46C8-922C-8DB36A382F0B}
EndGlobalSection
EndGlobal
-=======
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {687DA41E-83A6-418A-918B-8E2C20C6D1E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {687DA41E-83A6-418A-918B-8E2C20C6D1E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {687DA41E-83A6-418A-918B-8E2C20C6D1E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {687DA41E-83A6-418A-918B-8E2C20C6D1E3}.Release|Any CPU.Build.0 = Release|Any CPU
- {D4EC36E1-E197-47C2-A45A-CAAFEB6B9F09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D4EC36E1-E197-47C2-A45A-CAAFEB6B9F09}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D4EC36E1-E197-47C2-A45A-CAAFEB6B9F09}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D4EC36E1-E197-47C2-A45A-CAAFEB6B9F09}.Release|Any CPU.Build.0 = Release|Any CPU
- {E6171E39-6DE2-46C9-9978-E2F946530CBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E6171E39-6DE2-46C9-9978-E2F946530CBA}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E6171E39-6DE2-46C9-9978-E2F946530CBA}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E6171E39-6DE2-46C9-9978-E2F946530CBA}.Release|Any CPU.Build.0 = Release|Any CPU
- {351CFFFB-6418-4C81-A697-BA24D1D43307}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {351CFFFB-6418-4C81-A697-BA24D1D43307}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {351CFFFB-6418-4C81-A697-BA24D1D43307}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {351CFFFB-6418-4C81-A697-BA24D1D43307}.Release|Any CPU.Build.0 = Release|Any CPU
- {2E6E731B-2CFE-4F74-B3C4-EE0E2EF02FB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2E6E731B-2CFE-4F74-B3C4-EE0E2EF02FB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2E6E731B-2CFE-4F74-B3C4-EE0E2EF02FB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2E6E731B-2CFE-4F74-B3C4-EE0E2EF02FB9}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {687DA41E-83A6-418A-918B-8E2C20C6D1E3} = {DC5E7967-F187-4E42-9B71-835E79501288}
- {D4EC36E1-E197-47C2-A45A-CAAFEB6B9F09} = {DC5E7967-F187-4E42-9B71-835E79501288}
- {E6171E39-6DE2-46C9-9978-E2F946530CBA} = {DC5E7967-F187-4E42-9B71-835E79501288}
- {2CF811BD-3513-4A1B-8020-645C0315CDB4} = {DC5E7967-F187-4E42-9B71-835E79501288}
- {351CFFFB-6418-4C81-A697-BA24D1D43307} = {2CF811BD-3513-4A1B-8020-645C0315CDB4}
- {2E6E731B-2CFE-4F74-B3C4-EE0E2EF02FB9} = {2CF811BD-3513-4A1B-8020-645C0315CDB4}
- EndGlobalSection
-EndGlobal
-
->>>>>>> agnext_main
diff --git a/dotnet/AutoGenWithSamples.sln b/dotnet/AutoGenWithSamples.sln
deleted file mode 100644
index 0de09b706..000000000
--- a/dotnet/AutoGenWithSamples.sln
+++ /dev/null
@@ -1,150 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.0.31903.59
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{9CFC5A2B-AE61-4840-9E1B-FC490EF4C99B}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents.Client", "src\Microsoft.AutoGen.Agents.Client\Microsoft.AutoGen.Agents.Client.csproj", "{38494BE5-9E87-47E3-8439-D828FBAB0C7A}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents.Runtime", "src\Microsoft.AutoGen.Agents.Runtime\Microsoft.AutoGen.Agents.Runtime.csproj", "{6D11A33E-644C-47FC-B0C5-4697B9AE598E}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents", "src\Microsoft.AutoGen.Agents\Microsoft.AutoGen.Agents.csproj", "{A2864CB0-C745-4B59-8219-74AD403BC68F}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Microsoft.AutoGen.Agents.Extensions", "Microsoft.AutoGen.Agents.Extensions", "{2AFA283F-345A-4E3D-BF60-FBD727B841BE}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents.Extensions.CloudEvents", "src\Microsoft.AutoGen.Agents.Extensions\CloudEvents\Microsoft.AutoGen.Agents.Extensions.CloudEvents.csproj", "{286218DA-7A24-4EA1-9073-20B2E266511F}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents.Extensions.SemanticKernel", "src\Microsoft.AutoGen.Agents.Extensions\SemanticKernel\Microsoft.AutoGen.Agents.Extensions.SemanticKernel.csproj", "{32E844CB-C1C5-4C44-9105-34A24EF76EE7}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{65402BF3-B027-429E-9333-1473364928FF}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HelloAgents", "HelloAgents", "{DB196600-333E-41F8-B441-3DF86F644551}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloAgents", "samples\HelloAgents\HelloAgents.Agents\HelloAgents.Agents.csproj", "{573B378C-462D-4E00-91AB-F154E07763E8}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloAgents.ApiService", "samples\HelloAgents\HelloAgents.ApiService\HelloAgents.ApiService.csproj", "{437B9B23-9D3D-45CF-A0C8-20506B6F8601}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloAgents.AppHost", "samples\HelloAgents\HelloAgents.AppHost\HelloAgents.AppHost.csproj", "{7F9B6CF5-4BFA-429B-A0FC-C66C488F33E3}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloAgents.ServiceDefaults", "samples\HelloAgents\HelloAgents.ServiceDefaults\HelloAgents.ServiceDefaults.csproj", "{B0120BE5-E934-4F25-ACDE-BE9570F8C8B0}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloAgents.Web", "samples\HelloAgents\HelloAgents.Web\HelloAgents.Web.csproj", "{8F2D989B-D302-4DE4-8574-BBB525ACCB28}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dev-team", "dev-team", "{8CE37D11-9221-4274-98C0-F63F8E4CB711}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.AgentHost", "samples\dev-team\DevTeam.AgentHost\DevTeam.AgentHost.csproj", "{CEB2FAE6-4260-4DC9-8557-AAD982B41365}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.Agents", "samples\dev-team\DevTeam.Agents\DevTeam.Agents.csproj", "{ECD961B6-88D7-467E-AEAA-7530835C7551}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.AppHost", "samples\dev-team\DevTeam.AppHost\DevTeam.AppHost.csproj", "{E9E4500B-FE22-482C-AA70-FECDFB298891}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.Backend", "samples\dev-team\DevTeam.Backend\DevTeam.Backend.csproj", "{E546DC7E-E4F1-430A-8B4C-F40D1FAF3CF0}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.ServiceDefaults", "samples\dev-team\DevTeam.ServiceDefaults\DevTeam.ServiceDefaults.csproj", "{4E6C9624-39E7-41B7-B40A-6C70190CE87A}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.Shared", "samples\dev-team\DevTeam.Shared\DevTeam.Shared.csproj", "{388CDF50-75E6-40D7-B843-74FD853C4DCB}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "seed-memory", "samples\dev-team\seed-memory\seed-memory.csproj", "{4A74F7F1-989F-4740-BE2E-B04D9B288946}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {38494BE5-9E87-47E3-8439-D828FBAB0C7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {38494BE5-9E87-47E3-8439-D828FBAB0C7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {38494BE5-9E87-47E3-8439-D828FBAB0C7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {38494BE5-9E87-47E3-8439-D828FBAB0C7A}.Release|Any CPU.Build.0 = Release|Any CPU
- {6D11A33E-644C-47FC-B0C5-4697B9AE598E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6D11A33E-644C-47FC-B0C5-4697B9AE598E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6D11A33E-644C-47FC-B0C5-4697B9AE598E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {6D11A33E-644C-47FC-B0C5-4697B9AE598E}.Release|Any CPU.Build.0 = Release|Any CPU
- {A2864CB0-C745-4B59-8219-74AD403BC68F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {A2864CB0-C745-4B59-8219-74AD403BC68F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {A2864CB0-C745-4B59-8219-74AD403BC68F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {A2864CB0-C745-4B59-8219-74AD403BC68F}.Release|Any CPU.Build.0 = Release|Any CPU
- {286218DA-7A24-4EA1-9073-20B2E266511F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {286218DA-7A24-4EA1-9073-20B2E266511F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {286218DA-7A24-4EA1-9073-20B2E266511F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {286218DA-7A24-4EA1-9073-20B2E266511F}.Release|Any CPU.Build.0 = Release|Any CPU
- {32E844CB-C1C5-4C44-9105-34A24EF76EE7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {32E844CB-C1C5-4C44-9105-34A24EF76EE7}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {32E844CB-C1C5-4C44-9105-34A24EF76EE7}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {32E844CB-C1C5-4C44-9105-34A24EF76EE7}.Release|Any CPU.Build.0 = Release|Any CPU
- {573B378C-462D-4E00-91AB-F154E07763E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {573B378C-462D-4E00-91AB-F154E07763E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {573B378C-462D-4E00-91AB-F154E07763E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {573B378C-462D-4E00-91AB-F154E07763E8}.Release|Any CPU.Build.0 = Release|Any CPU
- {437B9B23-9D3D-45CF-A0C8-20506B6F8601}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {437B9B23-9D3D-45CF-A0C8-20506B6F8601}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {437B9B23-9D3D-45CF-A0C8-20506B6F8601}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {437B9B23-9D3D-45CF-A0C8-20506B6F8601}.Release|Any CPU.Build.0 = Release|Any CPU
- {7F9B6CF5-4BFA-429B-A0FC-C66C488F33E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {7F9B6CF5-4BFA-429B-A0FC-C66C488F33E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {7F9B6CF5-4BFA-429B-A0FC-C66C488F33E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {7F9B6CF5-4BFA-429B-A0FC-C66C488F33E3}.Release|Any CPU.Build.0 = Release|Any CPU
- {B0120BE5-E934-4F25-ACDE-BE9570F8C8B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B0120BE5-E934-4F25-ACDE-BE9570F8C8B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B0120BE5-E934-4F25-ACDE-BE9570F8C8B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B0120BE5-E934-4F25-ACDE-BE9570F8C8B0}.Release|Any CPU.Build.0 = Release|Any CPU
- {8F2D989B-D302-4DE4-8574-BBB525ACCB28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8F2D989B-D302-4DE4-8574-BBB525ACCB28}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8F2D989B-D302-4DE4-8574-BBB525ACCB28}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8F2D989B-D302-4DE4-8574-BBB525ACCB28}.Release|Any CPU.Build.0 = Release|Any CPU
- {CEB2FAE6-4260-4DC9-8557-AAD982B41365}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {CEB2FAE6-4260-4DC9-8557-AAD982B41365}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {CEB2FAE6-4260-4DC9-8557-AAD982B41365}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {CEB2FAE6-4260-4DC9-8557-AAD982B41365}.Release|Any CPU.Build.0 = Release|Any CPU
- {ECD961B6-88D7-467E-AEAA-7530835C7551}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {ECD961B6-88D7-467E-AEAA-7530835C7551}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {ECD961B6-88D7-467E-AEAA-7530835C7551}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {ECD961B6-88D7-467E-AEAA-7530835C7551}.Release|Any CPU.Build.0 = Release|Any CPU
- {E9E4500B-FE22-482C-AA70-FECDFB298891}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E9E4500B-FE22-482C-AA70-FECDFB298891}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E9E4500B-FE22-482C-AA70-FECDFB298891}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E9E4500B-FE22-482C-AA70-FECDFB298891}.Release|Any CPU.Build.0 = Release|Any CPU
- {E546DC7E-E4F1-430A-8B4C-F40D1FAF3CF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E546DC7E-E4F1-430A-8B4C-F40D1FAF3CF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E546DC7E-E4F1-430A-8B4C-F40D1FAF3CF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E546DC7E-E4F1-430A-8B4C-F40D1FAF3CF0}.Release|Any CPU.Build.0 = Release|Any CPU
- {4E6C9624-39E7-41B7-B40A-6C70190CE87A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4E6C9624-39E7-41B7-B40A-6C70190CE87A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {4E6C9624-39E7-41B7-B40A-6C70190CE87A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {4E6C9624-39E7-41B7-B40A-6C70190CE87A}.Release|Any CPU.Build.0 = Release|Any CPU
- {388CDF50-75E6-40D7-B843-74FD853C4DCB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {388CDF50-75E6-40D7-B843-74FD853C4DCB}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {388CDF50-75E6-40D7-B843-74FD853C4DCB}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {388CDF50-75E6-40D7-B843-74FD853C4DCB}.Release|Any CPU.Build.0 = Release|Any CPU
- {4A74F7F1-989F-4740-BE2E-B04D9B288946}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4A74F7F1-989F-4740-BE2E-B04D9B288946}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {4A74F7F1-989F-4740-BE2E-B04D9B288946}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {4A74F7F1-989F-4740-BE2E-B04D9B288946}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {38494BE5-9E87-47E3-8439-D828FBAB0C7A} = {9CFC5A2B-AE61-4840-9E1B-FC490EF4C99B}
- {6D11A33E-644C-47FC-B0C5-4697B9AE598E} = {9CFC5A2B-AE61-4840-9E1B-FC490EF4C99B}
- {A2864CB0-C745-4B59-8219-74AD403BC68F} = {9CFC5A2B-AE61-4840-9E1B-FC490EF4C99B}
- {2AFA283F-345A-4E3D-BF60-FBD727B841BE} = {9CFC5A2B-AE61-4840-9E1B-FC490EF4C99B}
- {286218DA-7A24-4EA1-9073-20B2E266511F} = {2AFA283F-345A-4E3D-BF60-FBD727B841BE}
- {32E844CB-C1C5-4C44-9105-34A24EF76EE7} = {2AFA283F-345A-4E3D-BF60-FBD727B841BE}
- {DB196600-333E-41F8-B441-3DF86F644551} = {65402BF3-B027-429E-9333-1473364928FF}
- {573B378C-462D-4E00-91AB-F154E07763E8} = {DB196600-333E-41F8-B441-3DF86F644551}
- {437B9B23-9D3D-45CF-A0C8-20506B6F8601} = {DB196600-333E-41F8-B441-3DF86F644551}
- {7F9B6CF5-4BFA-429B-A0FC-C66C488F33E3} = {DB196600-333E-41F8-B441-3DF86F644551}
- {B0120BE5-E934-4F25-ACDE-BE9570F8C8B0} = {DB196600-333E-41F8-B441-3DF86F644551}
- {8F2D989B-D302-4DE4-8574-BBB525ACCB28} = {DB196600-333E-41F8-B441-3DF86F644551}
- {8CE37D11-9221-4274-98C0-F63F8E4CB711} = {65402BF3-B027-429E-9333-1473364928FF}
- {CEB2FAE6-4260-4DC9-8557-AAD982B41365} = {8CE37D11-9221-4274-98C0-F63F8E4CB711}
- {ECD961B6-88D7-467E-AEAA-7530835C7551} = {8CE37D11-9221-4274-98C0-F63F8E4CB711}
- {E9E4500B-FE22-482C-AA70-FECDFB298891} = {8CE37D11-9221-4274-98C0-F63F8E4CB711}
- {E546DC7E-E4F1-430A-8B4C-F40D1FAF3CF0} = {8CE37D11-9221-4274-98C0-F63F8E4CB711}
- {4E6C9624-39E7-41B7-B40A-6C70190CE87A} = {8CE37D11-9221-4274-98C0-F63F8E4CB711}
- {388CDF50-75E6-40D7-B843-74FD853C4DCB} = {8CE37D11-9221-4274-98C0-F63F8E4CB711}
- {4A74F7F1-989F-4740-BE2E-B04D9B288946} = {8CE37D11-9221-4274-98C0-F63F8E4CB711}
- EndGlobalSection
-EndGlobal
diff --git a/dotnet/Directory.Build.props b/dotnet/Directory.Build.props
index 1a700ba35..0b8451625 100644
--- a/dotnet/Directory.Build.props
+++ b/dotnet/Directory.Build.props
@@ -1,4 +1,3 @@
-<<<<<<< HEAD
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="./eng/Version.props" />
@@ -13,27 +12,35 @@
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)eng/opensource.snk</AssemblyOriginatorKeyFile>
<PublicKey>0024000004800000940000000602000000240000525341310004000001000100f1d038d0b85ae392ad72011df91e9343b0b5df1bb8080aa21b9424362d696919e0e9ac3a8bca24e283e10f7a569c6f443e1d4e3ebc84377c87ca5caa562e80f9932bf5ea91b7862b538e13b8ba91c7565cf0e8dfeccfea9c805ae3bda044170ecc7fc6f147aeeac422dd96aeb9eb1f5a5882aa650efe2958f2f8107d2038f2ab</PublicKey>
<CSNoWarn>CS1998;CS1591</CSNoWarn>
- <NoWarn>$(NoWarn);$(CSNoWarn);NU5104</NoWarn>
+ <SKEXPNoWarn>SKEXP0001;SKEXP0010;SKEXP0020</SKEXPNoWarn>
+ <NoWarn>$(NoWarn);$(CSNoWarn);$(SKEXPNoWarn);NU5104</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>false</IsPackable>
<EnableNetAnalyzers>true</EnableNetAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<IsTestProject>false</IsTestProject>
+
+ <DebugType>embedded</DebugType>
+ <DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<PropertyGroup>
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
</PropertyGroup>
+ <PropertyGroup Condition="'$(IsTestProject)' == 'true'">
+ <NoWarn>$(NoWarn);CA1829</NoWarn>
+ </PropertyGroup>
+
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
- <PackageReference Include="ApprovalTests" Version="$(ApprovalTestVersion)" />
- <PackageReference Include="FluentAssertions" Version="$(FluentAssertionVersion)" />
- <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkVersion)" />
- <PackageReference Include="xunit" Version="$(XUnitVersion)" />
- <PackageReference Include="xunit.runner.console" Version="$(XUnitVersion)" />
- <PackageReference Include="xunit.runner.visualstudio" Version="$(XUnitVersion)" />
- <PackageReference Include="Moq" Version="4.20.70" />
+ <PackageReference Include="ApprovalTests" />
+ <PackageReference Include="FluentAssertions" />
+ <PackageReference Include="Microsoft.NET.Test.Sdk" />
+ <PackageReference Include="xunit" />
+ <PackageReference Include="xunit.runner.console" />
+ <PackageReference Include="xunit.runner.visualstudio" />
+ <PackageReference Include="Moq" />
</ItemGroup>
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
@@ -49,36 +56,4 @@
<Link>resource/%(RecursiveDir)%(Filename)%(Extension)</Link>
</Content>
</ItemGroup>
-=======
-<Project>
-
- <PropertyGroup>
- <LangVersion>latest</LangVersion>
- <PackageLicenseExpression>MIT</PackageLicenseExpression>
- <!-- Capture PackageIconFullPath into DefaultDotnetIconFullPath before we overwrite PackageIconFullPath. -->
- <!-- DefaultDotnetIconFullPath is only needed for the ServiceDisovery packages. The property can be removed when these libraries move. See https://github.com/dotnet/aspire/issues/170 -->
- <DefaultDotnetIconFullPath>$(PackageIconFullPath)</DefaultDotnetIconFullPath>
- <PackageIconFullPath>$(SharedDir)Aspire_icon_256.png</PackageIconFullPath>
- <PackageProjectUrl>https://github.com/dotnet/aspire</PackageProjectUrl>
- <WarnOnPackingNonPackableProject>false</WarnOnPackingNonPackableProject>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
- <GenerateDocumentationFile>true</GenerateDocumentationFile>
- <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
- <DebugType>embedded</DebugType>
- <DebugSymbols>true</DebugSymbols>
- <StrongNameKeyId>Open</StrongNameKeyId>
- <Nullable>enable</Nullable>
- <ImplicitUsings>enable</ImplicitUsings>
- <!-- Set RunSettingsFilePath property which is read by VSTest. -->
- <RunSettingsFilePath Condition="'$(RunSettingsFilePath)' == ''">$(RepositoryEngineeringDir).runsettings</RunSettingsFilePath>
- <!-- Redirect test logs into a subfolder -->
- <TestResultsLogDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsLogDir)', 'TestLogs'))</TestResultsLogDir>
- </PropertyGroup>
-
- <PropertyGroup>
- <NoWarn>$(NoWarn);CS1591;SKEXP0001;SKEXP0010;SKEXP0020</NoWarn>
- </PropertyGroup>
-
->>>>>>> agnext_main
</Project>
diff --git a/dotnet/Directory.Packages.props b/dotnet/Directory.Packages.props
index 42ccc66d3..59f99bd55 100644
--- a/dotnet/Directory.Packages.props
+++ b/dotnet/Directory.Packages.props
@@ -12,7 +12,8 @@
<PackageVersion Include="Aspire.Hosting.Orleans" Version="8.2.0" />
<PackageVersion Include="Aspire.Hosting.Qdrant" Version="8.2.0" />
<PackageVersion Include="Aspire.Hosting.Redis" Version="8.2.0" />
- <PackageVersion Include="Azure.AI.OpenAI" Version="1.0.0-beta.17" />
+ <PackageVersion Include="Azure.AI.OpenAI" Version=" 2.0.0-beta.3" />
+ <PackageVersion Include="Azure.AI.Inference" Version="1.0.0-beta.1" />
<PackageVersion Include="Azure.Data.Tables" Version="12.8.3" />
<PackageVersion Include="Azure.Identity" Version="1.12.0" />
<PackageVersion Include="Azure.ResourceManager.ContainerInstance" Version="1.2.1" />
@@ -33,8 +34,10 @@
<PackageVersion Include="Grpc.Tools" Version="2.65.0" />
<PackageVersion Include="Grpc.Net.Client" Version="2.65.0" />
<PackageVersion Include="Google.Protobuf" Version="3.27.3" />
+ <PackageVersion Include="Microsoft.AspNetCore.App" Version="8.0.4" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="8.0.8" />
<PackageVersion Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
+ <PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Azure" Version="1.7.4" />
<PackageVersion Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
@@ -58,9 +61,12 @@
<PackageVersion Include="Microsoft.Orleans.Server" Version="8.2.0" />
<PackageVersion Include="Microsoft.Orleans.Streaming" Version="8.2.0" />
<PackageVersion Include="Microsoft.Orleans.Streaming.EventHubs" Version="8.2.0" />
- <PackageVersion Include="Microsoft.SemanticKernel" Version="1.15.1" />
- <PackageVersion Include="Microsoft.SemanticKernel.Connectors.Qdrant" Version="1.15.1-alpha" />
- <PackageVersion Include="Microsoft.SemanticKernel.Plugins.Memory" Version="1.15.1-alpha" />
+ <PackageVersion Include="Microsoft.SemanticKernel" Version="1.18.1-rc" />
+ <PackageVersion Include="Microsoft.SemanticKernel.Agents.Core" Version="1.18.1-alpha" />
+ <PackageVersion Include="Microsoft.SemanticKernel.Connectors.AzureOpenAI" Version="1.18.1-rc" />
+ <PackageVersion Include="Microsoft.SemanticKernel.Connectors.Qdrant" Version="1.18.1-alpha" />
+ <PackageVersion Include="Microsoft.SemanticKernel.Plugins.Memory" Version="1.18.1-alpha" />
+ <PackageVersion Include="Microsoft.SemanticKernel.Plugins.Web" Version="1.18.1-alpha" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="Octokit" Version="13.0.1" />
<PackageVersion Include="Octokit.Webhooks.AspNetCore" Version="2.2.2" />
@@ -74,5 +80,25 @@
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.6.2" />
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
<PackageVersion Include="System.IdentityModel.Tokens.Jwt" Version="7.6.3" />
+ <PackageVersion Include="System.Memory.Data" Version="8.0.0" />
+ <PackageVersion Include="JsonSchema.Net.Generation" Version="4.3.0.2" />
+ <PackageVersion Include="Microsoft.DotNet.Interactive" Version="1.0.0-beta.24229.4" />
+ <PackageVersion Include="Microsoft.DotNet.Interactive.Jupyter" Version="1.0.0-beta.24229.4" />
+ <PackageVersion Include="Microsoft.DotNet.Interactive.PackageManagement" Version="1.0.0-beta.24229.4" />
+ <PackageVersion Include="Google.Cloud.AIPlatform.V1" Version="3.0.0" />
+ <PackageVersion Include="OpenAI" Version="2.0.0-beta.10" />
+ <PackageVersion Include="System.CodeDom" Version="5.0.0" />
+ <PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.3.0" />
+ <PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
+ <PackageVersion Include="ApprovalTests" Version="6.0.0" />
+ <PackageVersion Include="FluentAssertions" Version="6.8.0" />
+ <PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
+ <PackageVersion Include="xunit" Version="2.4.2" />
+ <PackageVersion Include="xunit.runner.console" Version="2.4.2" />
+ <PackageVersion Include="xunit.runner.visualstudio" Version="2.4.2" />
+ <PackageVersion Include="Moq" Version="4.20.70" />
+ <PackageVersion Include="Microsoft.PowerShell.SDK" Version="7.4.4" />
+ <PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="8.0.4" />
+
</ItemGroup>
</Project>
\ No newline at end of file
diff --git a/dotnet/eng/Version.props b/dotnet/eng/Version.props
index 36cfd917c..f31f8ee8c 100644
--- a/dotnet/eng/Version.props
+++ b/dotnet/eng/Version.props
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <AzureOpenAIVersion>1.0.0-beta.17</AzureOpenAIVersion>
<AzureOpenAIV2Version>2.0.0-beta.3</AzureOpenAIV2Version>
<SemanticKernelVersion>1.18.1-rc</SemanticKernelVersion>
<SemanticKernelExperimentalVersion>1.18.1-alpha</SemanticKernelExperimentalVersion>
@@ -13,11 +12,6 @@
<MicrosoftNETTestSdkVersion>17.7.0</MicrosoftNETTestSdkVersion>
<MicrosoftDotnetInteractive>1.0.0-beta.24229.4</MicrosoftDotnetInteractive>
<MicrosoftSourceLinkGitHubVersion>8.0.0</MicrosoftSourceLinkGitHubVersion>
- <MicrosoftASPNETCoreVersion>8.0.4</MicrosoftASPNETCoreVersion>
- <GoogleCloudAPIPlatformVersion>3.0.0</GoogleCloudAPIPlatformVersion>
- <JsonSchemaVersion>4.3.0.2</JsonSchemaVersion>
- <AzureAIInferenceVersion>1.0.0-beta.1</AzureAIInferenceVersion>
- <OpenAISDKVersion>2.0.0-beta.10</OpenAISDKVersion>
<PowershellSDKVersion>7.4.4</PowershellSDKVersion>
</PropertyGroup>
</Project>
\ No newline at end of file
diff --git a/dotnet/global.json b/dotnet/global.json
index 06cf31be3..5f78cce06 100644
--- a/dotnet/global.json
+++ b/dotnet/global.json
@@ -1,13 +1,6 @@
{
"sdk": {
-<<<<<<< HEAD
"version": "8.0.104",
"rollForward": "latestMinor"
}
}
-=======
- "rollForward": "major",
- "version": "8.0.302"
- }
-}
->>>>>>> agnext_main
diff --git a/dotnet/nuget/nuget-package.props b/dotnet/nuget/nuget-package.props
index c6ddf3891..50cbafc73 100644
--- a/dotnet/nuget/nuget-package.props
+++ b/dotnet/nuget/nuget-package.props
@@ -39,7 +39,7 @@
<ItemGroup>
<!-- SourceLink allows step-through debugging for source hosted on GitHub. -->
<!-- https://github.com/dotnet/sourcelink -->
- <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="$(MicrosoftSourceLinkGitHubVersion)" />
+ <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
diff --git a/dotnet/sample/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs b/dotnet/sample/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs
index 5d8a99ce1..d0b447512 100644
--- a/dotnet/sample/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs
+++ b/dotnet/sample/AutoGen.Anthropic.Samples/Anthropic_Agent_With_Prompt_Caching.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Anthropic_Agent_With_Prompt_Caching.cs
using AutoGen.Anthropic.DTO;
@@ -128,6 +128,6 @@ public class Anthropic_Agent_With_Prompt_Caching
messageEnvelope,
};
- var history = await groupChat.SendAsync(chatHistory).ToArrayAsync();
+ await groupChat.SendAsync(chatHistory).ToArrayAsync();
}
}
diff --git a/dotnet/sample/AutoGen.Anthropic.Samples/AutoGen.Anthropic.Samples.csproj b/dotnet/sample/AutoGen.Anthropic.Samples/AutoGen.Anthropic.Samples.csproj
index fe7553b93..836f3c148 100644
--- a/dotnet/sample/AutoGen.Anthropic.Samples/AutoGen.Anthropic.Samples.csproj
+++ b/dotnet/sample/AutoGen.Anthropic.Samples/AutoGen.Anthropic.Samples.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
@@ -13,7 +13,7 @@
<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" Version="$(FluentAssertionVersion)" />
+ <PackageReference Include="FluentAssertions" />
</ItemGroup>
</Project>
diff --git a/dotnet/sample/AutoGen.Anthropic.Samples/Program.cs b/dotnet/sample/AutoGen.Anthropic.Samples/Program.cs
index 105bb5652..39e85d48e 100644
--- a/dotnet/sample/AutoGen.Anthropic.Samples/Program.cs
+++ b/dotnet/sample/AutoGen.Anthropic.Samples/Program.cs
@@ -1,11 +1,11 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Program.cs
namespace AutoGen.Anthropic.Samples;
internal static class Program
{
- public static async Task Main(string[] args)
+ public static async Task Main(string[] _)
{
await Anthropic_Agent_With_Prompt_Caching.RunAsync();
}
diff --git a/dotnet/sample/AutoGen.BasicSamples/AutoGen.BasicSample.csproj b/dotnet/sample/AutoGen.BasicSamples/AutoGen.BasicSample.csproj
index d4323ee4c..460c95f37 100644
--- a/dotnet/sample/AutoGen.BasicSamples/AutoGen.BasicSample.csproj
+++ b/dotnet/sample/AutoGen.BasicSamples/AutoGen.BasicSample.csproj
@@ -1,11 +1,11 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
- <NoWarn>$(NoWarn);CS8981;CS8600;CS8602;CS8604;CS8618;CS0219;SKEXP0054;SKEXP0050;SKEXP0110</NoWarn>
+ <NoWarn>$(NoWarn);CS8981;CS8600;CS8602;CS8604;CS8618;CS0219;SKEXP0054;SKEXP0050;SKEXP0110;IDE0059;IDE0200;IDE1006;CA1852;CA1854</NoWarn>
<IncludeResourceFolder>true</IncludeResourceFolder>
</PropertyGroup>
@@ -13,7 +13,7 @@
<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" Version="$(FluentAssertionVersion)" />
- <PackageReference Include="Microsoft.SemanticKernel.Plugins.Web" Version="$(SemanticKernelExperimentalVersion)" />
+ <PackageReference Include="FluentAssertions" />
+ <PackageReference Include="Microsoft.SemanticKernel.Plugins.Web" />
</ItemGroup>
</Project>
diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs
index f68053224..1fccd7d06 100644
--- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs
+++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/CreateAnAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// CreateAnAgent.cs
using AutoGen;
@@ -87,7 +87,7 @@ public partial class AssistantCodeSnippet
var response = await assistantAgent.SendAsync("hello");
response.Should().BeOfType<ToolCallMessage>();
var toolCallMessage = (ToolCallMessage)response;
- toolCallMessage.ToolCalls.Count().Should().Be(1);
+ toolCallMessage.ToolCalls.Count.Should().Be(1);
toolCallMessage.ToolCalls.First().FunctionName.Should().Be("UpperCase");
#endregion code_snippet_4
}
diff --git a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs
index 854a385dc..2295fcc29 100644
--- a/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs
+++ b/dotnet/sample/AutoGen.BasicSamples/CodeSnippet/FunctionCallCodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionCallCodeSnippet.cs
using AutoGen;
@@ -38,13 +38,12 @@ public partial class FunctionCallCodeSnippet
var response = await assistantAgent.SendAsync("hello What's the weather in Seattle today? today is 2024-01-01");
response.Should().BeOfType<ToolCallMessage>();
var toolCallMessage = (ToolCallMessage)response;
- toolCallMessage.ToolCalls.Count().Should().Be(1);
+ toolCallMessage.ToolCalls.Count.Should().Be(1);
toolCallMessage.ToolCalls[0].FunctionName.Should().Be("WeatherReport");
toolCallMessage.ToolCalls[0].FunctionArguments.Should().Be(@"{""location"":""Seattle"",""date"":""2024-01-01""}");
#endregion code_snippet_4
}
-
public async Task CodeSnippet6()
{
// get OpenAI Key and create config
diff --git a/dotnet/sample/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs b/dotnet/sample/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs
index b2dd9726b..559decb03 100644
--- a/dotnet/sample/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs
+++ b/dotnet/sample/AutoGen.BasicSamples/Example02_TwoAgent_MathChat.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example02_TwoAgent_MathChat.cs
using AutoGen.BasicSample;
@@ -13,7 +13,6 @@ public static class Example02_TwoAgent_MathChat
#region code_snippet_1
var gpt4oMini = LLMConfiguration.GetOpenAIGPT4o_mini();
-
// create teacher agent
// teacher agent will create math questions
var teacher = new OpenAIChatAgent(
diff --git a/dotnet/sample/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs b/dotnet/sample/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs
index 1f1315586..b5c4b2b53 100644
--- a/dotnet/sample/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs
+++ b/dotnet/sample/AutoGen.BasicSamples/Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example07_Dynamic_GroupChat_Calculate_Fibonacci.cs
using System.Text;
@@ -87,7 +87,7 @@ public partial class Example07_Dynamic_GroupChat_Calculate_Fibonacci
defaultReply: "No code available.")
.RegisterMiddleware(async (msgs, option, agent, _) =>
{
- if (msgs.Count() == 0 || msgs.All(msg => msg.From != "coder"))
+ if (msgs.Any() || msgs.All(msg => msg.From != "coder"))
{
return new TextMessage(Role.Assistant, "No code available. Coder please write code");
}
@@ -156,7 +156,7 @@ public partial class Example07_Dynamic_GroupChat_Calculate_Fibonacci
var reply = await innerAgent.GenerateReplyAsync(msgs, option, ct);
while (maxRetry-- > 0)
{
- if (reply.GetToolCalls() is var toolCalls && toolCalls.Count() == 1 && toolCalls[0].FunctionName == nameof(ReviewCodeBlock))
+ if (reply.GetToolCalls() is var toolCalls && toolCalls.Count == 1 && toolCalls[0].FunctionName == nameof(ReviewCodeBlock))
{
var toolCallResult = reply.GetContent();
var reviewResultObj = JsonSerializer.Deserialize<CodeReviewResult>(toolCallResult);
diff --git a/dotnet/sample/AutoGen.BasicSamples/Example10_SemanticKernel.cs b/dotnet/sample/AutoGen.BasicSamples/Example10_SemanticKernel.cs
index da7e54852..8b08d8a1d 100644
--- a/dotnet/sample/AutoGen.BasicSamples/Example10_SemanticKernel.cs
+++ b/dotnet/sample/AutoGen.BasicSamples/Example10_SemanticKernel.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example10_SemanticKernel.cs
using System.ComponentModel;
@@ -12,7 +12,7 @@ namespace AutoGen.BasicSample;
public class LightPlugin
{
- public bool IsOn { get; set; } = false;
+ public bool IsOn { get; set; }
[KernelFunction]
[Description("Gets the state of the light.")]
diff --git a/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs b/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs
index 69c2121cd..0908bddca 100644
--- a/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs
+++ b/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example12_TwoAgent_Fill_Application.cs
using System.Text;
@@ -10,11 +10,11 @@ namespace AutoGen.BasicSample;
public partial class TwoAgent_Fill_Application
{
- private string? name = null;
- private string? email = null;
- private string? phone = null;
- private string? address = null;
- private bool? receiveUpdates = null;
+ private string? name;
+ private string? email;
+ private string? phone;
+ private string? address;
+ private bool? receiveUpdates;
[Function]
public async Task<string> SaveProgress(
diff --git a/dotnet/sample/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs b/dotnet/sample/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs
index 093d0c77c..6f9842eab 100644
--- a/dotnet/sample/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs
+++ b/dotnet/sample/AutoGen.BasicSamples/GettingStart/FSM_Group_Chat.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FSM_Group_Chat.cs
using System.Text;
@@ -15,11 +15,11 @@ namespace AutoGen.BasicSample;
#region FillFormTool
public partial class FillFormTool
{
- private string? name = null;
- private string? email = null;
- private string? phone = null;
- private string? address = null;
- private bool? receiveUpdates = null;
+ private string? name;
+ private string? email;
+ private string? phone;
+ private string? address;
+ private bool? receiveUpdates;
[Function]
public async Task<string> SaveProgress(
diff --git a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs
index 21a5df4c2..d50b5a3ee 100644
--- a/dotnet/sample/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs
+++ b/dotnet/sample/AutoGen.BasicSamples/GettingStart/Use_Tools_With_Agent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Use_Tools_With_Agent.cs
#region Using
@@ -93,13 +93,13 @@ public class Use_Tools_With_Agent
#region verify_parallel_tool_call_reply
reply.Should().BeOfType<ToolCallAggregateMessage>();
- (reply as ToolCallAggregateMessage)!.Message1.ToolCalls.Count().Should().Be(3);
+ (reply as ToolCallAggregateMessage)!.Message1.ToolCalls.Count.Should().Be(3);
#endregion verify_parallel_tool_call_reply
#region Multi_Turn_Parallel_Tool_Call
finalReply = await agent.SendAsync(chatHistory: [question, reply]);
finalReply.Should().BeOfType<ToolCallAggregateMessage>();
- (finalReply as ToolCallAggregateMessage)!.Message1.ToolCalls.Count().Should().Be(3);
+ (finalReply as ToolCallAggregateMessage)!.Message1.ToolCalls.Count.Should().Be(3);
#endregion Multi_Turn_Parallel_Tool_Call
}
diff --git a/dotnet/sample/AutoGen.BasicSamples/Program.cs b/dotnet/sample/AutoGen.BasicSamples/Program.cs
index 8817a3df3..6cad02ac7 100644
--- a/dotnet/sample/AutoGen.BasicSamples/Program.cs
+++ b/dotnet/sample/AutoGen.BasicSamples/Program.cs
@@ -1,5 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Program.cs
+// Copyright (c) Microsoft. All rights reserved.
//await Example07_Dynamic_GroupChat_Calculate_Fibonacci.RunAsync();
@@ -24,7 +23,6 @@ allSamples.Add(new Tuple<string, Func<Task>>("Mistal Client Agent - Token Count"
allSamples.Add(new Tuple<string, Func<Task>>("GPT4v - Binary Data Image", async () => { await Example15_GPT4V_BinaryDataImageMessage.RunAsync(); }));
allSamples.Add(new Tuple<string, Func<Task>>("ReAct Agent", async () => { await Example17_ReActAgent.RunAsync(); }));
-
int idx = 1;
Dictionary<int, Tuple<string, Func<Task>>> map = new Dictionary<int, Tuple<string, Func<Task>>>();
Console.WriteLine("Available Examples:\n\n");
@@ -54,6 +52,3 @@ while (true)
await map[val].Item2.Invoke();
}
}
-
-
-
diff --git a/dotnet/sample/AutoGen.Gemini.Sample/AutoGen.Gemini.Sample.csproj b/dotnet/sample/AutoGen.Gemini.Sample/AutoGen.Gemini.Sample.csproj
index d1df8a8ed..211c79b8c 100644
--- a/dotnet/sample/AutoGen.Gemini.Sample/AutoGen.Gemini.Sample.csproj
+++ b/dotnet/sample/AutoGen.Gemini.Sample/AutoGen.Gemini.Sample.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
@@ -13,7 +13,7 @@
<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" Version="$(FluentAssertionVersion)" />
+ <PackageReference Include="FluentAssertions" />
</ItemGroup>
</Project>
diff --git a/dotnet/sample/AutoGen.Ollama.Sample/AutoGen.Ollama.Sample.csproj b/dotnet/sample/AutoGen.Ollama.Sample/AutoGen.Ollama.Sample.csproj
index 62c9d6163..e8688e2a0 100644
--- a/dotnet/sample/AutoGen.Ollama.Sample/AutoGen.Ollama.Sample.csproj
+++ b/dotnet/sample/AutoGen.Ollama.Sample/AutoGen.Ollama.Sample.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
@@ -13,7 +13,7 @@
<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" Version="$(FluentAssertionVersion)" />
+ <PackageReference Include="FluentAssertions" />
</ItemGroup>
</Project>
diff --git a/dotnet/sample/AutoGen.OpenAI.Sample/AutoGen.OpenAI.Sample.csproj b/dotnet/sample/AutoGen.OpenAI.Sample/AutoGen.OpenAI.Sample.csproj
index fcbbb834f..513dc52d0 100644
--- a/dotnet/sample/AutoGen.OpenAI.Sample/AutoGen.OpenAI.Sample.csproj
+++ b/dotnet/sample/AutoGen.OpenAI.Sample/AutoGen.OpenAI.Sample.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
@@ -15,8 +15,8 @@
<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" Version="$(FluentAssertionVersion)" />
- <PackageReference Include="Azure.AI.OpenAI" Version="$(AzureOpenAIV2Version)" />
+ <PackageReference Include="FluentAssertions" />
+ <PackageReference Include="Azure.AI.OpenAI" />
</ItemGroup>
</Project>
diff --git a/dotnet/sample/AutoGen.OpenAI.Sample/Structural_Output.cs b/dotnet/sample/AutoGen.OpenAI.Sample/Structural_Output.cs
index e83be0082..f6440c695 100644
--- a/dotnet/sample/AutoGen.OpenAI.Sample/Structural_Output.cs
+++ b/dotnet/sample/AutoGen.OpenAI.Sample/Structural_Output.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Structural_Output.cs
using System.Text.Json;
@@ -61,7 +61,6 @@ public class Structural_Output
person.Hobbies.Count.Should().Be(2);
}
-
#region person_class
[Title("Person")]
public class Person
diff --git a/dotnet/sample/AutoGen.OpenAI.Sample/Use_Json_Mode.cs b/dotnet/sample/AutoGen.OpenAI.Sample/Use_Json_Mode.cs
index 4e5247d93..5019dd0e3 100644
--- a/dotnet/sample/AutoGen.OpenAI.Sample/Use_Json_Mode.cs
+++ b/dotnet/sample/AutoGen.OpenAI.Sample/Use_Json_Mode.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Use_Json_Mode.cs
using System.Text.Json;
@@ -50,7 +50,6 @@ public class Use_Json_Mode
person.Address.Should().BeNullOrEmpty();
}
-
#region person_class
public class Person
{
diff --git a/dotnet/sample/AutoGen.SemanticKernel.Sample/AutoGen.SemanticKernel.Sample.csproj b/dotnet/sample/AutoGen.SemanticKernel.Sample/AutoGen.SemanticKernel.Sample.csproj
index 455144313..c0f4a31f8 100644
--- a/dotnet/sample/AutoGen.SemanticKernel.Sample/AutoGen.SemanticKernel.Sample.csproj
+++ b/dotnet/sample/AutoGen.SemanticKernel.Sample/AutoGen.SemanticKernel.Sample.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
@@ -12,7 +12,7 @@
<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" Version="$(SemanticKernelExperimentalVersion)" />
+ <PackageReference Include="Microsoft.SemanticKernel.Plugins.Web" />
</ItemGroup>
</Project>
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgent.cs b/dotnet/sample/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgent.cs
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgent.cs
rename to dotnet/sample/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgent.cs
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgentPrompts.cs b/dotnet/sample/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgentPrompts.cs
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgentPrompts.cs
rename to dotnet/sample/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgentPrompts.cs
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/Protos/messages.proto b/dotnet/sample/HelloAgents/HelloAgents.Agents/Agents/Protos/messages.proto
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/Protos/messages.proto
rename to dotnet/sample/HelloAgents/HelloAgents.Agents/Agents/Protos/messages.proto
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/Protos/states.proto b/dotnet/sample/HelloAgents/HelloAgents.Agents/Agents/Protos/states.proto
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/Protos/states.proto
rename to dotnet/sample/HelloAgents/HelloAgents.Agents/Agents/Protos/states.proto
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Agents/HelloAgents.Agents.csproj b/dotnet/sample/HelloAgents/HelloAgents.Agents/HelloAgents.Agents.csproj
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Agents/HelloAgents.Agents.csproj
rename to dotnet/sample/HelloAgents/HelloAgents.Agents/HelloAgents.Agents.csproj
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Agents/Program.cs b/dotnet/sample/HelloAgents/HelloAgents.Agents/Program.cs
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Agents/Program.cs
rename to dotnet/sample/HelloAgents/HelloAgents.Agents/Program.cs
diff --git a/dotnet/samples/HelloAgents/HelloAgents.ApiService/HelloAgents.ApiService.csproj b/dotnet/sample/HelloAgents/HelloAgents.ApiService/HelloAgents.ApiService.csproj
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.ApiService/HelloAgents.ApiService.csproj
rename to dotnet/sample/HelloAgents/HelloAgents.ApiService/HelloAgents.ApiService.csproj
diff --git a/dotnet/samples/HelloAgents/HelloAgents.ApiService/Program.cs b/dotnet/sample/HelloAgents/HelloAgents.ApiService/Program.cs
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.ApiService/Program.cs
rename to dotnet/sample/HelloAgents/HelloAgents.ApiService/Program.cs
diff --git a/dotnet/samples/HelloAgents/HelloAgents.ApiService/appsettings.Development.json b/dotnet/sample/HelloAgents/HelloAgents.ApiService/appsettings.Development.json
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.ApiService/appsettings.Development.json
rename to dotnet/sample/HelloAgents/HelloAgents.ApiService/appsettings.Development.json
diff --git a/dotnet/samples/HelloAgents/HelloAgents.AppHost/HelloAgents.AppHost.csproj b/dotnet/sample/HelloAgents/HelloAgents.AppHost/HelloAgents.AppHost.csproj
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.AppHost/HelloAgents.AppHost.csproj
rename to dotnet/sample/HelloAgents/HelloAgents.AppHost/HelloAgents.AppHost.csproj
diff --git a/dotnet/samples/HelloAgents/HelloAgents.AppHost/Program.cs b/dotnet/sample/HelloAgents/HelloAgents.AppHost/Program.cs
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.AppHost/Program.cs
rename to dotnet/sample/HelloAgents/HelloAgents.AppHost/Program.cs
diff --git a/dotnet/samples/HelloAgents/HelloAgents.AppHost/appsettings.Development.json b/dotnet/sample/HelloAgents/HelloAgents.AppHost/appsettings.Development.json
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.AppHost/appsettings.Development.json
rename to dotnet/sample/HelloAgents/HelloAgents.AppHost/appsettings.Development.json
diff --git a/dotnet/samples/HelloAgents/HelloAgents.ServiceDefaults/Extensions.cs b/dotnet/sample/HelloAgents/HelloAgents.ServiceDefaults/Extensions.cs
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.ServiceDefaults/Extensions.cs
rename to dotnet/sample/HelloAgents/HelloAgents.ServiceDefaults/Extensions.cs
diff --git a/dotnet/samples/HelloAgents/HelloAgents.ServiceDefaults/HelloAgents.ServiceDefaults.csproj b/dotnet/sample/HelloAgents/HelloAgents.ServiceDefaults/HelloAgents.ServiceDefaults.csproj
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.ServiceDefaults/HelloAgents.ServiceDefaults.csproj
rename to dotnet/sample/HelloAgents/HelloAgents.ServiceDefaults/HelloAgents.ServiceDefaults.csproj
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/AgentApiClient.cs b/dotnet/sample/HelloAgents/HelloAgents.Web/AgentApiClient.cs
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/AgentApiClient.cs
rename to dotnet/sample/HelloAgents/HelloAgents.Web/AgentApiClient.cs
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/App.razor b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/App.razor
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/App.razor
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/App.razor
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/Layout/MainLayout.razor b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/Layout/MainLayout.razor
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/Layout/MainLayout.razor
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/Layout/MainLayout.razor
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/Layout/MainLayout.razor.css b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/Layout/MainLayout.razor.css
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/Layout/MainLayout.razor.css
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/Layout/MainLayout.razor.css
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/Layout/NavMenu.razor b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/Layout/NavMenu.razor
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/Layout/NavMenu.razor
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/Layout/NavMenu.razor
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/Layout/NavMenu.razor.css b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/Layout/NavMenu.razor.css
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/Layout/NavMenu.razor.css
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/Layout/NavMenu.razor.css
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/Pages/Agents.razor b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/Pages/Agents.razor
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/Pages/Agents.razor
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/Pages/Agents.razor
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/Pages/Counter.razor b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/Pages/Counter.razor
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/Pages/Counter.razor
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/Pages/Counter.razor
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/Pages/Error.razor b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/Pages/Error.razor
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/Pages/Error.razor
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/Pages/Error.razor
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/Pages/Home.razor b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/Pages/Home.razor
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/Pages/Home.razor
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/Pages/Home.razor
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/Routes.razor b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/Routes.razor
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/Routes.razor
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/Routes.razor
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Components/_Imports.razor b/dotnet/sample/HelloAgents/HelloAgents.Web/Components/_Imports.razor
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Components/_Imports.razor
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Components/_Imports.razor
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/HelloAgents.Web.csproj b/dotnet/sample/HelloAgents/HelloAgents.Web/HelloAgents.Web.csproj
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/HelloAgents.Web.csproj
rename to dotnet/sample/HelloAgents/HelloAgents.Web/HelloAgents.Web.csproj
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Program.cs b/dotnet/sample/HelloAgents/HelloAgents.Web/Program.cs
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/Program.cs
rename to dotnet/sample/HelloAgents/HelloAgents.Web/Program.cs
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/appsettings.Development.json b/dotnet/sample/HelloAgents/HelloAgents.Web/appsettings.Development.json
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/appsettings.Development.json
rename to dotnet/sample/HelloAgents/HelloAgents.Web/appsettings.Development.json
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/wwwroot/app.css b/dotnet/sample/HelloAgents/HelloAgents.Web/wwwroot/app.css
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/wwwroot/app.css
rename to dotnet/sample/HelloAgents/HelloAgents.Web/wwwroot/app.css
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/wwwroot/bootstrap/bootstrap.min.css b/dotnet/sample/HelloAgents/HelloAgents.Web/wwwroot/bootstrap/bootstrap.min.css
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/wwwroot/bootstrap/bootstrap.min.css
rename to dotnet/sample/HelloAgents/HelloAgents.Web/wwwroot/bootstrap/bootstrap.min.css
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/wwwroot/bootstrap/bootstrap.min.css.map b/dotnet/sample/HelloAgents/HelloAgents.Web/wwwroot/bootstrap/bootstrap.min.css.map
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.Web/wwwroot/bootstrap/bootstrap.min.css.map
rename to dotnet/sample/HelloAgents/HelloAgents.Web/wwwroot/bootstrap/bootstrap.min.css.map
diff --git a/dotnet/sample/HelloAgents/HelloAgents.Web/wwwroot/favicon.png b/dotnet/sample/HelloAgents/HelloAgents.Web/wwwroot/favicon.png
new file mode 100644
index 000000000..a1dc44acb
--- /dev/null
+++ b/dotnet/sample/HelloAgents/HelloAgents.Web/wwwroot/favicon.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e265ac0f2dda1e5dfa65b1adf330722bb3ef7789115283604d8cd19f098f1f08
+size 1148
diff --git a/dotnet/samples/HelloAgents/HelloAgents.sln b/dotnet/sample/HelloAgents/HelloAgents.sln
similarity index 100%
rename from dotnet/samples/HelloAgents/HelloAgents.sln
rename to dotnet/sample/HelloAgents/HelloAgents.sln
diff --git a/dotnet/samples/dev-team/DevTeam.AgentHost/DevTeam.AgentHost.csproj b/dotnet/sample/dev-team/DevTeam.AgentHost/DevTeam.AgentHost.csproj
similarity index 83%
rename from dotnet/samples/dev-team/DevTeam.AgentHost/DevTeam.AgentHost.csproj
rename to dotnet/sample/dev-team/DevTeam.AgentHost/DevTeam.AgentHost.csproj
index f7eba8e6d..5ed148e79 100644
--- a/dotnet/samples/dev-team/DevTeam.AgentHost/DevTeam.AgentHost.csproj
+++ b/dotnet/sample/dev-team/DevTeam.AgentHost/DevTeam.AgentHost.csproj
@@ -4,6 +4,8 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
+ <!--orleans doesn't have strong name package-->
+ <NoWarn>$(NoWarn);CS8002</NoWarn>
</PropertyGroup>
<ItemGroup>
diff --git a/dotnet/samples/dev-team/DevTeam.AgentHost/Program.cs b/dotnet/sample/dev-team/DevTeam.AgentHost/Program.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.AgentHost/Program.cs
rename to dotnet/sample/dev-team/DevTeam.AgentHost/Program.cs
diff --git a/dotnet/samples/dev-team/DevTeam.AgentHost/appsettings.Development.json b/dotnet/sample/dev-team/DevTeam.AgentHost/appsettings.Development.json
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.AgentHost/appsettings.Development.json
rename to dotnet/sample/dev-team/DevTeam.AgentHost/appsettings.Development.json
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/DevTeam.Agents.csproj b/dotnet/sample/dev-team/DevTeam.Agents/DevTeam.Agents.csproj
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Agents/DevTeam.Agents.csproj
rename to dotnet/sample/dev-team/DevTeam.Agents/DevTeam.Agents.csproj
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/Developer/Developer.cs b/dotnet/sample/dev-team/DevTeam.Agents/Developer/Developer.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Agents/Developer/Developer.cs
rename to dotnet/sample/dev-team/DevTeam.Agents/Developer/Developer.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/Developer/DeveloperPrompts.cs b/dotnet/sample/dev-team/DevTeam.Agents/Developer/DeveloperPrompts.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Agents/Developer/DeveloperPrompts.cs
rename to dotnet/sample/dev-team/DevTeam.Agents/Developer/DeveloperPrompts.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLead.cs b/dotnet/sample/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLead.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLead.cs
rename to dotnet/sample/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLead.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLeadPrompts.cs b/dotnet/sample/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLeadPrompts.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLeadPrompts.cs
rename to dotnet/sample/dev-team/DevTeam.Agents/DeveloperLead/DeveloperLeadPrompts.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/PMPrompts.cs b/dotnet/sample/dev-team/DevTeam.Agents/ProductManager/PMPrompts.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Agents/ProductManager/PMPrompts.cs
rename to dotnet/sample/dev-team/DevTeam.Agents/ProductManager/PMPrompts.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs b/dotnet/sample/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs
rename to dotnet/sample/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/Program.cs b/dotnet/sample/dev-team/DevTeam.Agents/Program.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Agents/Program.cs
rename to dotnet/sample/dev-team/DevTeam.Agents/Program.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/appsettings.Development.json b/dotnet/sample/dev-team/DevTeam.Agents/appsettings.Development.json
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Agents/appsettings.Development.json
rename to dotnet/sample/dev-team/DevTeam.Agents/appsettings.Development.json
diff --git a/dotnet/samples/dev-team/DevTeam.AppHost/DevTeam.AppHost.csproj b/dotnet/sample/dev-team/DevTeam.AppHost/DevTeam.AppHost.csproj
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.AppHost/DevTeam.AppHost.csproj
rename to dotnet/sample/dev-team/DevTeam.AppHost/DevTeam.AppHost.csproj
diff --git a/dotnet/samples/dev-team/DevTeam.AppHost/Program.cs b/dotnet/sample/dev-team/DevTeam.AppHost/Program.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.AppHost/Program.cs
rename to dotnet/sample/dev-team/DevTeam.AppHost/Program.cs
diff --git a/dotnet/samples/dev-team/DevTeam.AppHost/appsettings.Development.json b/dotnet/sample/dev-team/DevTeam.AppHost/appsettings.Development.json
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.AppHost/appsettings.Development.json
rename to dotnet/sample/dev-team/DevTeam.AppHost/appsettings.Development.json
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.cs b/dotnet/sample/dev-team/DevTeam.Backend/Agents/AzureGenie.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.cs
rename to dotnet/sample/dev-team/DevTeam.Backend/Agents/AzureGenie.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs b/dotnet/sample/dev-team/DevTeam.Backend/Agents/Hubber.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs
rename to dotnet/sample/dev-team/DevTeam.Backend/Agents/Hubber.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/Sandbox.cs b/dotnet/sample/dev-team/DevTeam.Backend/Agents/Sandbox.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Backend/Agents/Sandbox.cs
rename to dotnet/sample/dev-team/DevTeam.Backend/Agents/Sandbox.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/DevTeam.Backend.csproj b/dotnet/sample/dev-team/DevTeam.Backend/DevTeam.Backend.csproj
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Backend/DevTeam.Backend.csproj
rename to dotnet/sample/dev-team/DevTeam.Backend/DevTeam.Backend.csproj
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Program.cs b/dotnet/sample/dev-team/DevTeam.Backend/Program.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Backend/Program.cs
rename to dotnet/sample/dev-team/DevTeam.Backend/Program.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Services/AzureService.cs b/dotnet/sample/dev-team/DevTeam.Backend/Services/AzureService.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Backend/Services/AzureService.cs
rename to dotnet/sample/dev-team/DevTeam.Backend/Services/AzureService.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubAuthService.cs b/dotnet/sample/dev-team/DevTeam.Backend/Services/GithubAuthService.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Backend/Services/GithubAuthService.cs
rename to dotnet/sample/dev-team/DevTeam.Backend/Services/GithubAuthService.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubService.cs b/dotnet/sample/dev-team/DevTeam.Backend/Services/GithubService.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Backend/Services/GithubService.cs
rename to dotnet/sample/dev-team/DevTeam.Backend/Services/GithubService.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs b/dotnet/sample/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs
rename to dotnet/sample/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/appsettings.Development.json b/dotnet/sample/dev-team/DevTeam.Backend/appsettings.Development.json
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Backend/appsettings.Development.json
rename to dotnet/sample/dev-team/DevTeam.Backend/appsettings.Development.json
diff --git a/dotnet/samples/dev-team/DevTeam.ServiceDefaults/DevTeam.ServiceDefaults.csproj b/dotnet/sample/dev-team/DevTeam.ServiceDefaults/DevTeam.ServiceDefaults.csproj
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.ServiceDefaults/DevTeam.ServiceDefaults.csproj
rename to dotnet/sample/dev-team/DevTeam.ServiceDefaults/DevTeam.ServiceDefaults.csproj
diff --git a/dotnet/samples/dev-team/DevTeam.ServiceDefaults/Extensions.cs b/dotnet/sample/dev-team/DevTeam.ServiceDefaults/Extensions.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.ServiceDefaults/Extensions.cs
rename to dotnet/sample/dev-team/DevTeam.ServiceDefaults/Extensions.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Shared/DevTeam.Shared.csproj b/dotnet/sample/dev-team/DevTeam.Shared/DevTeam.Shared.csproj
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Shared/DevTeam.Shared.csproj
rename to dotnet/sample/dev-team/DevTeam.Shared/DevTeam.Shared.csproj
diff --git a/dotnet/samples/dev-team/DevTeam.Shared/EventExtensions.cs b/dotnet/sample/dev-team/DevTeam.Shared/EventExtensions.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Shared/EventExtensions.cs
rename to dotnet/sample/dev-team/DevTeam.Shared/EventExtensions.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Shared/Models/DevPlan.cs b/dotnet/sample/dev-team/DevTeam.Shared/Models/DevPlan.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Shared/Models/DevPlan.cs
rename to dotnet/sample/dev-team/DevTeam.Shared/Models/DevPlan.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Shared/Options/AzureOptions.cs b/dotnet/sample/dev-team/DevTeam.Shared/Options/AzureOptions.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Shared/Options/AzureOptions.cs
rename to dotnet/sample/dev-team/DevTeam.Shared/Options/AzureOptions.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Shared/Options/GithubOptions.cs b/dotnet/sample/dev-team/DevTeam.Shared/Options/GithubOptions.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Shared/Options/GithubOptions.cs
rename to dotnet/sample/dev-team/DevTeam.Shared/Options/GithubOptions.cs
diff --git a/dotnet/samples/dev-team/DevTeam.Shared/ParseExtensions.cs b/dotnet/sample/dev-team/DevTeam.Shared/ParseExtensions.cs
similarity index 100%
rename from dotnet/samples/dev-team/DevTeam.Shared/ParseExtensions.cs
rename to dotnet/sample/dev-team/DevTeam.Shared/ParseExtensions.cs
diff --git a/dotnet/samples/dev-team/Protos/messages.proto b/dotnet/sample/dev-team/Protos/messages.proto
similarity index 100%
rename from dotnet/samples/dev-team/Protos/messages.proto
rename to dotnet/sample/dev-team/Protos/messages.proto
diff --git a/dotnet/samples/dev-team/Protos/states.proto b/dotnet/sample/dev-team/Protos/states.proto
similarity index 100%
rename from dotnet/samples/dev-team/Protos/states.proto
rename to dotnet/sample/dev-team/Protos/states.proto
diff --git a/dotnet/samples/dev-team/README.md b/dotnet/sample/dev-team/README.md
similarity index 100%
rename from dotnet/samples/dev-team/README.md
rename to dotnet/sample/dev-team/README.md
diff --git a/dotnet/samples/dev-team/azure.yaml b/dotnet/sample/dev-team/azure.yaml
similarity index 100%
rename from dotnet/samples/dev-team/azure.yaml
rename to dotnet/sample/dev-team/azure.yaml
diff --git a/dotnet/samples/dev-team/docs/github-flow-getting-started.md b/dotnet/sample/dev-team/docs/github-flow-getting-started.md
similarity index 100%
rename from dotnet/samples/dev-team/docs/github-flow-getting-started.md
rename to dotnet/sample/dev-team/docs/github-flow-getting-started.md
diff --git a/dotnet/sample/dev-team/docs/images/github-sk-dev-team.png b/dotnet/sample/dev-team/docs/images/github-sk-dev-team.png
new file mode 100644
index 000000000..fce661eef
--- /dev/null
+++ b/dotnet/sample/dev-team/docs/images/github-sk-dev-team.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a5c18db95ff3d7357cd9112e3e8698185d819c796a053b070782d019ff1437c9
+size 309649
diff --git a/dotnet/sample/dev-team/docs/images/new-codespace.png b/dotnet/sample/dev-team/docs/images/new-codespace.png
new file mode 100644
index 000000000..970545c0d
--- /dev/null
+++ b/dotnet/sample/dev-team/docs/images/new-codespace.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d01b942495de39ee2ab443283cfa22b51de8482710709b984dd21d5907b59a1b
+size 27275
diff --git a/dotnet/sample/dev-team/docs/images/overview.png b/dotnet/sample/dev-team/docs/images/overview.png
new file mode 100644
index 000000000..1f018dabf
--- /dev/null
+++ b/dotnet/sample/dev-team/docs/images/overview.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8de049310295afdeca720b7b289967d8f960998e426c10ccd862b3bcfb81ef0b
+size 348879
diff --git a/dotnet/sample/dev-team/docs/images/solution-explorer.png b/dotnet/sample/dev-team/docs/images/solution-explorer.png
new file mode 100644
index 000000000..bd69edbf4
--- /dev/null
+++ b/dotnet/sample/dev-team/docs/images/solution-explorer.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:62294a0181f1f0b5a2cb9dff20cc6911df9df80a1752a2d7bdf22b7615d2fc78
+size 60694
diff --git a/dotnet/samples/dev-team/seed-memory/Dockerfile b/dotnet/sample/dev-team/seed-memory/Dockerfile
similarity index 100%
rename from dotnet/samples/dev-team/seed-memory/Dockerfile
rename to dotnet/sample/dev-team/seed-memory/Dockerfile
diff --git a/dotnet/samples/dev-team/seed-memory/Program.cs b/dotnet/sample/dev-team/seed-memory/Program.cs
similarity index 100%
rename from dotnet/samples/dev-team/seed-memory/Program.cs
rename to dotnet/sample/dev-team/seed-memory/Program.cs
diff --git a/dotnet/samples/dev-team/seed-memory/README.md b/dotnet/sample/dev-team/seed-memory/README.md
similarity index 100%
rename from dotnet/samples/dev-team/seed-memory/README.md
rename to dotnet/sample/dev-team/seed-memory/README.md
diff --git a/dotnet/samples/dev-team/seed-memory/azure-well-architected.pdf b/dotnet/sample/dev-team/seed-memory/azure-well-architected.pdf
similarity index 100%
rename from dotnet/samples/dev-team/seed-memory/azure-well-architected.pdf
rename to dotnet/sample/dev-team/seed-memory/azure-well-architected.pdf
diff --git a/dotnet/samples/dev-team/seed-memory/config/KernelSettings.cs b/dotnet/sample/dev-team/seed-memory/config/KernelSettings.cs
similarity index 100%
rename from dotnet/samples/dev-team/seed-memory/config/KernelSettings.cs
rename to dotnet/sample/dev-team/seed-memory/config/KernelSettings.cs
diff --git a/dotnet/samples/dev-team/seed-memory/config/appsettings.template.json b/dotnet/sample/dev-team/seed-memory/config/appsettings.template.json
similarity index 100%
rename from dotnet/samples/dev-team/seed-memory/config/appsettings.template.json
rename to dotnet/sample/dev-team/seed-memory/config/appsettings.template.json
diff --git a/dotnet/samples/dev-team/seed-memory/seed-memory.csproj b/dotnet/sample/dev-team/seed-memory/seed-memory.csproj
similarity index 100%
rename from dotnet/samples/dev-team/seed-memory/seed-memory.csproj
rename to dotnet/sample/dev-team/seed-memory/seed-memory.csproj
diff --git a/dotnet/samples/AutoGenExamples.sln b/dotnet/samples/AutoGenExamples.sln
deleted file mode 100644
index 3fce6d757..000000000
--- a/dotnet/samples/AutoGenExamples.sln
+++ /dev/null
@@ -1,99 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.0.31903.59
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Greeter", "Greeter", "{7A8735DB-D651-4A24-8550-74600607F2EF}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Greeter.AgentHost", "Greeter\Greeter.AgentHost\Greeter.AgentHost.csproj", "{17B6C843-F3E2-4FA6-8A0B-B1C0C123188A}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Greeter.AgentWorker", "Greeter\Greeter.AgentWorker\Greeter.AgentWorker.csproj", "{9DEA56F1-B1A0-40B3-AE4C-B05CD999CF62}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Greeter.AppHost", "Greeter\Greeter.AppHost\Greeter.AppHost.csproj", "{DE94A508-0D6D-40E2-B816-0D444B14B021}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Greeter.ServiceDefaults", "Greeter\Greeter.ServiceDefaults\Greeter.ServiceDefaults.csproj", "{44FB2624-823E-496C-AF02-66C236DFCB75}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dev-team", "dev-team", "{FF6FB488-9226-401C-80EE-D07E5B7F2525}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.AgentHost", "dev-team\DevTeam.AgentHost\DevTeam.AgentHost.csproj", "{FB5A29C6-C158-4D4F-A667-835AC7CC08B6}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.Agents", "dev-team\DevTeam.Agents\DevTeam.Agents.csproj", "{E65C4663-85C7-49AB-98BA-A2F2AEA4CE20}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.AppHost", "dev-team\DevTeam.AppHost\DevTeam.AppHost.csproj", "{9AF452B8-3EFC-483F-8BBF-6A6C4B0AAE26}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.Backend", "dev-team\DevTeam.Backend\DevTeam.Backend.csproj", "{3A6EA1D2-26CE-4B74-928D-B3A9119FE267}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.ServiceDefaults", "dev-team\DevTeam.ServiceDefaults\DevTeam.ServiceDefaults.csproj", "{E9A80E91-72D9-4262-B031-E4C1C90B86F8}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevTeam.Shared", "dev-team\DevTeam.Shared\DevTeam.Shared.csproj", "{5EE4794D-FBE6-4B8F-A255-3669A2A445E9}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "seed-memory", "dev-team\seed-memory\seed-memory.csproj", "{EA13D415-4E1C-4358-AE18-30B7AF5E8CA5}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {17B6C843-F3E2-4FA6-8A0B-B1C0C123188A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {17B6C843-F3E2-4FA6-8A0B-B1C0C123188A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {17B6C843-F3E2-4FA6-8A0B-B1C0C123188A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {17B6C843-F3E2-4FA6-8A0B-B1C0C123188A}.Release|Any CPU.Build.0 = Release|Any CPU
- {9DEA56F1-B1A0-40B3-AE4C-B05CD999CF62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9DEA56F1-B1A0-40B3-AE4C-B05CD999CF62}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9DEA56F1-B1A0-40B3-AE4C-B05CD999CF62}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9DEA56F1-B1A0-40B3-AE4C-B05CD999CF62}.Release|Any CPU.Build.0 = Release|Any CPU
- {DE94A508-0D6D-40E2-B816-0D444B14B021}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {DE94A508-0D6D-40E2-B816-0D444B14B021}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DE94A508-0D6D-40E2-B816-0D444B14B021}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {DE94A508-0D6D-40E2-B816-0D444B14B021}.Release|Any CPU.Build.0 = Release|Any CPU
- {44FB2624-823E-496C-AF02-66C236DFCB75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {44FB2624-823E-496C-AF02-66C236DFCB75}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {44FB2624-823E-496C-AF02-66C236DFCB75}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {44FB2624-823E-496C-AF02-66C236DFCB75}.Release|Any CPU.Build.0 = Release|Any CPU
- {FB5A29C6-C158-4D4F-A667-835AC7CC08B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {FB5A29C6-C158-4D4F-A667-835AC7CC08B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {FB5A29C6-C158-4D4F-A667-835AC7CC08B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {FB5A29C6-C158-4D4F-A667-835AC7CC08B6}.Release|Any CPU.Build.0 = Release|Any CPU
- {E65C4663-85C7-49AB-98BA-A2F2AEA4CE20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E65C4663-85C7-49AB-98BA-A2F2AEA4CE20}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E65C4663-85C7-49AB-98BA-A2F2AEA4CE20}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E65C4663-85C7-49AB-98BA-A2F2AEA4CE20}.Release|Any CPU.Build.0 = Release|Any CPU
- {9AF452B8-3EFC-483F-8BBF-6A6C4B0AAE26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9AF452B8-3EFC-483F-8BBF-6A6C4B0AAE26}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9AF452B8-3EFC-483F-8BBF-6A6C4B0AAE26}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9AF452B8-3EFC-483F-8BBF-6A6C4B0AAE26}.Release|Any CPU.Build.0 = Release|Any CPU
- {3A6EA1D2-26CE-4B74-928D-B3A9119FE267}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3A6EA1D2-26CE-4B74-928D-B3A9119FE267}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3A6EA1D2-26CE-4B74-928D-B3A9119FE267}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3A6EA1D2-26CE-4B74-928D-B3A9119FE267}.Release|Any CPU.Build.0 = Release|Any CPU
- {E9A80E91-72D9-4262-B031-E4C1C90B86F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E9A80E91-72D9-4262-B031-E4C1C90B86F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E9A80E91-72D9-4262-B031-E4C1C90B86F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E9A80E91-72D9-4262-B031-E4C1C90B86F8}.Release|Any CPU.Build.0 = Release|Any CPU
- {5EE4794D-FBE6-4B8F-A255-3669A2A445E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {5EE4794D-FBE6-4B8F-A255-3669A2A445E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {5EE4794D-FBE6-4B8F-A255-3669A2A445E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {5EE4794D-FBE6-4B8F-A255-3669A2A445E9}.Release|Any CPU.Build.0 = Release|Any CPU
- {EA13D415-4E1C-4358-AE18-30B7AF5E8CA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EA13D415-4E1C-4358-AE18-30B7AF5E8CA5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EA13D415-4E1C-4358-AE18-30B7AF5E8CA5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EA13D415-4E1C-4358-AE18-30B7AF5E8CA5}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {17B6C843-F3E2-4FA6-8A0B-B1C0C123188A} = {7A8735DB-D651-4A24-8550-74600607F2EF}
- {9DEA56F1-B1A0-40B3-AE4C-B05CD999CF62} = {7A8735DB-D651-4A24-8550-74600607F2EF}
- {DE94A508-0D6D-40E2-B816-0D444B14B021} = {7A8735DB-D651-4A24-8550-74600607F2EF}
- {44FB2624-823E-496C-AF02-66C236DFCB75} = {7A8735DB-D651-4A24-8550-74600607F2EF}
- {FB5A29C6-C158-4D4F-A667-835AC7CC08B6} = {FF6FB488-9226-401C-80EE-D07E5B7F2525}
- {E65C4663-85C7-49AB-98BA-A2F2AEA4CE20} = {FF6FB488-9226-401C-80EE-D07E5B7F2525}
- {9AF452B8-3EFC-483F-8BBF-6A6C4B0AAE26} = {FF6FB488-9226-401C-80EE-D07E5B7F2525}
- {3A6EA1D2-26CE-4B74-928D-B3A9119FE267} = {FF6FB488-9226-401C-80EE-D07E5B7F2525}
- {E9A80E91-72D9-4262-B031-E4C1C90B86F8} = {FF6FB488-9226-401C-80EE-D07E5B7F2525}
- {5EE4794D-FBE6-4B8F-A255-3669A2A445E9} = {FF6FB488-9226-401C-80EE-D07E5B7F2525}
- {EA13D415-4E1C-4358-AE18-30B7AF5E8CA5} = {FF6FB488-9226-401C-80EE-D07E5B7F2525}
- EndGlobalSection
-EndGlobal
diff --git a/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs b/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs
index f106e08d3..6a9a9c38b 100644
--- a/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs
+++ b/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs
@@ -165,7 +165,7 @@ public sealed class AnthropicClient : IDisposable
}
}
- private class ContentBlock
+ private sealed class ContentBlock
{
[JsonPropertyName("type")]
public string? Type { get; set; }
@@ -179,22 +179,23 @@ public sealed class AnthropicClient : IDisposable
[JsonPropertyName("input")]
public object? Input { get; set; }
- public string? parameters { get; set; }
+ [JsonPropertyName("parameters")]
+ public string? Parameters { get; set; }
public void AppendDeltaParameters(string deltaParams)
{
- StringBuilder sb = new StringBuilder(parameters);
+ StringBuilder sb = new StringBuilder(Parameters);
sb.Append(deltaParams);
- parameters = sb.ToString();
+ Parameters = sb.ToString();
}
public ToolUseContent CreateToolUseContent()
{
- return new ToolUseContent { Id = Id, Name = Name, Input = parameters };
+ return new ToolUseContent { Id = Id, Name = Name, Input = Parameters };
}
}
- private class DataBlock
+ private sealed class DataBlock
{
[JsonPropertyName("content_block")]
public ContentBlock? ContentBlock { get; set; }
diff --git a/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs b/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs
index 68b3c14bd..9cce54014 100644
--- a/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs
+++ b/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs
@@ -8,7 +8,7 @@ using System.Text.Json.Serialization;
namespace AutoGen.Anthropic.Converters;
-internal class JsonPropertyNameEnumConverter<T> : JsonConverter<T> where T : struct, Enum
+internal sealed class JsonPropertyNameEnumConverter<T> : JsonConverter<T> where T : struct, Enum
{
public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs
index a142f2fea..0c77d8ef1 100644
--- a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs
+++ b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatCompletionResponse.cs
-
using System.Collections.Generic;
using System.Text.Json.Serialization;
@@ -36,7 +35,7 @@ public class ChatCompletionResponse
public Delta? Delta { get; set; }
[JsonPropertyName("message")]
- public StreamingMessage? streamingMessage { get; set; }
+ public StreamingMessage? StreamingMessage { get; set; }
}
public class StreamingMessage
diff --git a/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs b/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs
index af06a0547..56ce02794 100644
--- a/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs
+++ b/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs
@@ -235,7 +235,7 @@ public class AnthropicMessageConnector : IStreamingMiddleware
};
}
- private IEnumerable<IMessage> ProcessToolCallMessage(ToolCallMessage toolCallMessage, IAgent agent)
+ private IEnumerable<IMessage> ProcessToolCallMessage(ToolCallMessage toolCallMessage, IAgent _)
{
var chatMessage = new ChatMessage("assistant", new List<ContentBase>());
foreach (var toolCall in toolCallMessage.ToolCalls)
diff --git a/dotnet/src/AutoGen.AzureAIInference/AutoGen.AzureAIInference.csproj b/dotnet/src/AutoGen.AzureAIInference/AutoGen.AzureAIInference.csproj
index e9401bc4b..f164dff48 100644
--- a/dotnet/src/AutoGen.AzureAIInference/AutoGen.AzureAIInference.csproj
+++ b/dotnet/src/AutoGen.AzureAIInference/AutoGen.AzureAIInference.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(PackageTargetFrameworks)</TargetFrameworks>
<RootNamespace>AutoGen.AzureAIInference</RootNamespace>
@@ -15,7 +15,7 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Azure.AI.Inference" Version="$(AzureAIInferenceVersion)" />
+ <PackageReference Include="Azure.AI.Inference" />
</ItemGroup>
<ItemGroup>
diff --git a/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs b/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs
index 9c5d22e2e..b12b74d4a 100644
--- a/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs
+++ b/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs
@@ -25,7 +25,7 @@ namespace AutoGen.AzureAIInference;
/// </summary>
public class AzureAIInferenceChatRequestMessageConnector : IStreamingMiddleware
{
- private bool strictMode = false;
+ private bool strictMode;
/// <summary>
/// Create a new instance of <see cref="AzureAIInferenceChatRequestMessageConnector"/>.
diff --git a/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs b/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs
index 84d0d4b59..57c5b59c1 100644
--- a/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs
+++ b/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs
@@ -94,7 +94,7 @@ public class MiddlewareAgent : IMiddlewareAgent
return namesPlusAgentName.Aggregate((a, b) => $"{a} -> {b}");
}
- private class DelegateAgent : IAgent
+ private sealed class DelegateAgent : IAgent
{
private readonly IAgent innerAgent;
private readonly IMiddleware middleware;
diff --git a/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs b/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs
index c7643b1e4..bc3c5be24 100644
--- a/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs
+++ b/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs
@@ -58,7 +58,7 @@ public class MiddlewareStreamingAgent : IMiddlewareStreamAgent
_agent = new DelegateStreamingAgent(middleware, _agent);
}
- private class DelegateStreamingAgent : IStreamingAgent
+ private sealed class DelegateStreamingAgent : IStreamingAgent
{
private IStreamingMiddleware? streamingMiddleware;
private IStreamingAgent innerAgent;
@@ -71,7 +71,6 @@ public class MiddlewareStreamingAgent : IMiddlewareStreamAgent
this.innerAgent = next;
}
-
public Task<IMessage> GenerateReplyAsync(IEnumerable<IMessage> messages, GenerateReplyOptions? options = null, CancellationToken cancellationToken = default)
{
if (this.streamingMiddleware is null)
diff --git a/dotnet/src/AutoGen.Core/AutoGen.Core.csproj b/dotnet/src/AutoGen.Core/AutoGen.Core.csproj
index 8cf9e9183..c34c03af2 100644
--- a/dotnet/src/AutoGen.Core/AutoGen.Core.csproj
+++ b/dotnet/src/AutoGen.Core/AutoGen.Core.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(PackageTargetFrameworks)</TargetFrameworks>
<RootNamespace>AutoGen.Core</RootNamespace>
@@ -15,12 +15,12 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="JsonSchema.Net.Generation" Version="$(JsonSchemaVersion)" />
- <PackageReference Include="System.Memory.Data" Version="8.0.0" />
+ <PackageReference Include="JsonSchema.Net.Generation" />
+ <PackageReference Include="System.Memory.Data" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
- <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
+ <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
</ItemGroup>
</Project>
diff --git a/dotnet/src/AutoGen.Core/Extension/AgentExtension.cs b/dotnet/src/AutoGen.Core/Extension/AgentExtension.cs
index 13ce970d5..011382502 100644
--- a/dotnet/src/AutoGen.Core/Extension/AgentExtension.cs
+++ b/dotnet/src/AutoGen.Core/Extension/AgentExtension.cs
@@ -1,5 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// AgentExtension.cs
+// Copyright (c) Microsoft. All rights reserved.
using System;
using System.Collections.Generic;
@@ -36,7 +35,6 @@ public static class AgentExtension
messages.Add(message);
}
-
var result = await agent.GenerateReplyAsync(messages, cancellationToken: ct);
return result;
diff --git a/dotnet/src/AutoGen.Core/GroupChat/GroupChat.cs b/dotnet/src/AutoGen.Core/GroupChat/GroupChat.cs
index 57e15c18c..7fca2e8f4 100644
--- a/dotnet/src/AutoGen.Core/GroupChat/GroupChat.cs
+++ b/dotnet/src/AutoGen.Core/GroupChat/GroupChat.cs
@@ -1,5 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// GroupChat.cs
+// Copyright (c) Microsoft. All rights reserved.
using System;
using System.Collections.Generic;
@@ -14,7 +13,7 @@ public class GroupChat : IGroupChat
private IAgent? admin;
private List<IAgent> agents = new List<IAgent>();
private IEnumerable<IMessage> initializeMessages = new List<IMessage>();
- private Graph? workflow = null;
+ private Graph? workflow;
private readonly IOrchestrator orchestrator;
public IEnumerable<IMessage>? Messages { get; private set; }
@@ -76,14 +75,14 @@ public class GroupChat : IGroupChat
// check if all agents has a name
if (this.agents.Any(x => string.IsNullOrEmpty(x.Name)))
{
- throw new Exception("All agents must have a name.");
+ throw new ArgumentException("All agents must have a name.");
}
// check if any agents has the same name
var names = this.agents.Select(x => x.Name).ToList();
if (names.Distinct().Count() != names.Count)
{
- throw new Exception("All agents must have a unique name.");
+ throw new ArgumentException("All agents must have a unique name.");
}
// if there's a workflow
@@ -93,7 +92,7 @@ public class GroupChat : IGroupChat
var agentNamesInWorkflow = this.workflow.Transitions.Select(x => x.From.Name!).Concat(this.workflow.Transitions.Select(x => x.To.Name!)).Distinct();
if (agentNamesInWorkflow.Any(x => !this.agents.Select(a => a.Name).Contains(x)))
{
- throw new Exception("All agents in the workflow must be in the group chat.");
+ throw new ArgumentException("All agents in the workflow must be in the group chat.");
}
}
}
@@ -115,12 +114,12 @@ public class GroupChat : IGroupChat
{
var nextAvailableAgents = await this.workflow.TransitToNextAvailableAgentsAsync(currentSpeaker, conversationHistory);
agentNames = nextAvailableAgents.Select(x => x.Name).ToList();
- if (agentNames.Count() == 0)
+ if (agentNames.Count == 0)
{
- throw new Exception("No next available agents found in the current workflow");
+ throw new ArgumentException("No next available agents found in the current workflow");
}
- if (agentNames.Count() == 1)
+ if (agentNames.Count == 1)
{
return this.agents.First(x => x.Name == agentNames.First());
}
@@ -128,7 +127,7 @@ public class GroupChat : IGroupChat
if (this.admin == null)
{
- throw new Exception("No admin is provided.");
+ throw new ArgumentException("No admin is provided.");
}
var systemMessage = new TextMessage(Role.System,
@@ -153,7 +152,7 @@ From {agentNames.First()}:
Functions = [],
});
- var name = response?.GetContent() ?? throw new Exception("No name is returned.");
+ var name = response?.GetContent() ?? throw new ArgumentException("No name is returned.");
// remove From
name = name!.Substring(5);
diff --git a/dotnet/src/AutoGen.Core/Message/ImageMessage.cs b/dotnet/src/AutoGen.Core/Message/ImageMessage.cs
index 685354dfe..93f6ca48a 100644
--- a/dotnet/src/AutoGen.Core/Message/ImageMessage.cs
+++ b/dotnet/src/AutoGen.Core/Message/ImageMessage.cs
@@ -69,7 +69,7 @@ public class ImageMessage : IMessage
{
if (this.Data is null)
{
- throw new NullReferenceException($"{nameof(Data)}");
+ throw new ArgumentNullException($"{nameof(Data)}");
}
return $"data:{this.MimeType};base64,{Convert.ToBase64String(this.Data.ToArray())}";
diff --git a/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs
index 79360e042..ce87f6b98 100644
--- a/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs
+++ b/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace AutoGen.Core;
-internal class DelegateMiddleware : IMiddleware
+internal sealed class DelegateMiddleware : IMiddleware
{
/// <summary>
/// middleware delegate. Call into the next function to continue the execution of the next middleware. Otherwise, short cut the middleware execution.
diff --git a/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs
index 7d30f6d09..5e71b4d51 100644
--- a/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs
+++ b/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs
@@ -163,7 +163,7 @@ public class FunctionCallMiddleware : IStreamingMiddleware
}
}
- if (toolCallResult.Count() > 0)
+ if (toolCallResult.Count > 0)
{
var toolCallResultMessage = new ToolCallResultMessage(toolCallResult, from: agent.Name);
return new ToolCallAggregateMessage(toolCallMsg, toolCallResultMessage, from: agent.Name);
diff --git a/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs
index 6798f23f2..6554eafb3 100644
--- a/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs
+++ b/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs
@@ -12,7 +12,7 @@ namespace AutoGen.Core;
public class RolePlayOrchestrator : IOrchestrator
{
private readonly IAgent admin;
- private readonly Graph? workflow = null;
+ private readonly Graph? workflow;
public RolePlayOrchestrator(IAgent admin, Graph? workflow = null)
{
this.admin = admin;
@@ -46,7 +46,7 @@ public class RolePlayOrchestrator : IOrchestrator
return null;
}
var currentSpeaker = candidates.First(candidates => candidates.Name == lastMessage.From);
- var nextAgents = await this.workflow.TransitToNextAvailableAgentsAsync(currentSpeaker, context.ChatHistory);
+ var nextAgents = await this.workflow.TransitToNextAvailableAgentsAsync(currentSpeaker, context.ChatHistory, cancellationToken);
nextAgents = nextAgents.Where(nextAgent => candidates.Any(candidate => candidate.Name == nextAgent.Name));
candidates = nextAgents.ToList();
if (!candidates.Any())
@@ -86,7 +86,7 @@ From {agentNames.First()}:
},
cancellationToken: cancellationToken);
- var name = response.GetContent() ?? throw new Exception("No name is returned.");
+ var name = response.GetContent() ?? throw new ArgumentException("No name is returned.");
// remove From
name = name!.Substring(5);
@@ -98,7 +98,7 @@ From {agentNames.First()}:
}
var errorMessage = $"The response from admin is {name}, which is either not in the candidates list or not in the correct format.";
- throw new Exception(errorMessage);
+ throw new ArgumentException(errorMessage);
}
private IEnumerable<IMessage> ProcessConversationsForRolePlay(IEnumerable<IMessage> messages)
diff --git a/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs
index b84850a07..9acb081ca 100644
--- a/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs
+++ b/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// WorkflowOrchestrator.cs
+using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
@@ -33,7 +34,7 @@ public class WorkflowOrchestrator : IOrchestrator
{
return null;
}
- var nextAgents = await this.workflow.TransitToNextAvailableAgentsAsync(currentSpeaker, context.ChatHistory);
+ var nextAgents = await this.workflow.TransitToNextAvailableAgentsAsync(currentSpeaker, context.ChatHistory, cancellationToken);
nextAgents = nextAgents.Where(nextAgent => candidates.Any(candidate => candidate.Name == nextAgent.Name));
candidates = nextAgents.ToList();
if (!candidates.Any())
@@ -47,7 +48,7 @@ public class WorkflowOrchestrator : IOrchestrator
}
else
{
- throw new System.Exception("There are more than one available agents from the workflow for the next speaker.");
+ throw new ArgumentException("There are more than one available agents from the workflow for the next speaker.");
}
}
}
diff --git a/dotnet/src/AutoGen.DotnetInteractive/AutoGen.DotnetInteractive.csproj b/dotnet/src/AutoGen.DotnetInteractive/AutoGen.DotnetInteractive.csproj
index e850d9494..d06a884f3 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/AutoGen.DotnetInteractive.csproj
+++ b/dotnet/src/AutoGen.DotnetInteractive/AutoGen.DotnetInteractive.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(PackageTargetFrameworks)</TargetFrameworks>
@@ -19,7 +19,7 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.DotNet.Interactive" Version="$(MicrosoftDotnetInteractive)" />
+ <PackageReference Include="Microsoft.DotNet.Interactive" />
</ItemGroup>
<ItemGroup>
@@ -28,8 +28,8 @@
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
- <PackageReference Include="Microsoft.DotNet.Interactive.Jupyter" Version="$(MicrosoftDotnetInteractive)" />
- <PackageReference Include="Microsoft.DotNet.Interactive.PackageManagement" Version="$(MicrosoftDotnetInteractive)" />
+ <PackageReference Include="Microsoft.DotNet.Interactive.Jupyter" />
+ <PackageReference Include="Microsoft.DotNet.Interactive.PackageManagement" />
</ItemGroup>
<ItemGroup>
diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs
index c9b592034..16a873173 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs
@@ -9,7 +9,7 @@ namespace AutoGen.DotnetInteractive;
public partial class DotnetInteractiveFunction : IDisposable
{
- private readonly InteractiveService? _interactiveService = null;
+ private readonly InteractiveService? _interactiveService;
private string _notebookPath;
private readonly KernelInfoCollection _kernelInfoCollection = new KernelInfoCollection();
@@ -74,7 +74,7 @@ public partial class DotnetInteractiveFunction : IDisposable
{
if (this._interactiveService == null)
{
- throw new Exception("InteractiveService is not initialized.");
+ throw new ArgumentException("InteractiveService is not initialized.");
}
var result = await this._interactiveService.SubmitCSharpCodeAsync(code, default);
@@ -95,7 +95,7 @@ public partial class DotnetInteractiveFunction : IDisposable
// if result is over 100 characters, only return the first 100 characters.
if (result.Length > 100)
{
- result = result.Substring(0, 100) + " (...too long to present)";
+ result = $"{result.Substring(0, 100)} (...too long to present)";
return result;
}
@@ -121,7 +121,7 @@ public partial class DotnetInteractiveFunction : IDisposable
{
if (this._interactiveService == null)
{
- throw new Exception("InteractiveService is not initialized.");
+ throw new ArgumentException("InteractiveService is not initialized.");
}
var codeSB = new StringBuilder();
diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs
index cc282fbba..2974f425b 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs
@@ -12,7 +12,6 @@ public static class DotnetInteractiveKernelBuilder
return new InProccessDotnetInteractiveKernelBuilder();
}
-
public static InProccessDotnetInteractiveKernelBuilder CreateDefaultInProcessKernelBuilder()
{
return new InProccessDotnetInteractiveKernelBuilder()
diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs
index a3ea80a7b..6f516c530 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs
@@ -30,7 +30,7 @@ public class DotnetInteractiveStdioKernelConnector
}
else
{
- throw new Exception("Failed to restore dotnet interactive tool.");
+ throw new ArgumentException("Failed to restore dotnet interactive tool.");
}
}
diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs
index 2a7afdf88..4934ff94c 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs
@@ -24,7 +24,7 @@ public static class KernelExtension
var displayValues = res.Events.Where(x => x is StandardErrorValueProduced || x is StandardOutputValueProduced || x is ReturnValueProduced || x is DisplayedValueProduced)
.SelectMany(x => (x as DisplayEvent)!.FormattedValues);
- if (displayValues is null || displayValues.Count() == 0)
+ if (displayValues is null || !displayValues.Any())
{
return null;
}
@@ -76,6 +76,6 @@ public static class KernelExtension
}
}
- private static Exception GetException(this CommandFailed commandFailedEvent)
- => new Exception(commandFailedEvent.Message);
+ private static ArgumentException GetException(this CommandFailed commandFailedEvent)
+ => new ArgumentException(commandFailedEvent.Message);
}
diff --git a/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs b/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs
index 3381aecf5..1aba5d569 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs
@@ -15,11 +15,8 @@ namespace AutoGen.DotnetInteractive;
public class InteractiveService : IDisposable
{
- private Kernel? kernel = null;
- private Process? process = null;
+ private Kernel? kernel;
private bool disposedValue;
- private const string DotnetInteractiveToolNotInstallMessage = "Cannot find a tool in the manifest file that has a command named 'dotnet-interactive'.";
- //private readonly ProcessJobTracker jobTracker = new ProcessJobTracker();
private string? installingDirectory;
/// <summary>
@@ -62,7 +59,7 @@ public class InteractiveService : IDisposable
{
if (this.kernel == null)
{
- throw new Exception("Kernel is not running");
+ throw new ArgumentException("Kernel is not running");
}
return await this.kernel.RunSubmitCodeCommandAsync(cmd.Code, cmd.TargetKernelName, ct);
@@ -84,7 +81,7 @@ public class InteractiveService : IDisposable
{
if (this.installingDirectory is null)
{
- throw new Exception("Installing directory is not set");
+ throw new ArgumentException("Installing directory is not set");
}
// write RestoreInteractive.config from embedded resource to this.workingDirectory
@@ -130,6 +127,11 @@ public class InteractiveService : IDisposable
private async Task<Kernel> CreateKernelAsync(string workingDirectory, bool restoreWhenFail = true, CancellationToken ct = default)
{
+#if NETSTANDARD2_0
+ var processID = Process.GetCurrentProcess().Id;
+#else
+ var processID = Environment.ProcessId;
+#endif
try
{
var url = KernelHost.CreateHostUriForCurrentProcessId();
@@ -140,7 +142,7 @@ public class InteractiveService : IDisposable
"tool",
"run",
"dotnet-interactive",
- $"[cb-{Process.GetCurrentProcess().Id}]",
+ $"[cb-{processID}]",
"stdio",
//"--default-kernel",
//"csharp",
@@ -214,12 +216,6 @@ public class InteractiveService : IDisposable
if (disposing)
{
this.kernel?.Dispose();
-
- if (this.process != null)
- {
- this.process.Kill();
- this.process.Dispose();
- }
}
disposedValue = true;
diff --git a/dotnet/src/AutoGen.Gemini/AutoGen.Gemini.csproj b/dotnet/src/AutoGen.Gemini/AutoGen.Gemini.csproj
index 9a6059650..1bb3d79c4 100644
--- a/dotnet/src/AutoGen.Gemini/AutoGen.Gemini.csproj
+++ b/dotnet/src/AutoGen.Gemini/AutoGen.Gemini.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(PackageTargetFrameworks)</TargetFrameworks>
@@ -14,7 +14,7 @@
</Description>
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Google.Cloud.AIPlatform.V1" Version="$(GoogleCloudAPIPlatformVersion)" />
+ <PackageReference Include="Google.Cloud.AIPlatform.V1" />
</ItemGroup>
<ItemGroup>
diff --git a/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs b/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs
index 9489061e2..7b380ecda 100644
--- a/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs
+++ b/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs
@@ -40,10 +40,12 @@ public class GoogleGeminiClient : IGeminiClient
if (!response.IsSuccessStatusCode)
{
- throw new Exception($"Failed to generate content. Status code: {response.StatusCode}");
+ throw new ArgumentException($"Failed to generate content. Status code: {response.StatusCode}");
}
- var json = await response.Content.ReadAsStringAsync();
+#pragma warning disable CA2016 // Forward the CancellationToken parameter to the asynchronous method
+ var json = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
+#pragma warning restore CA2016 // Forward the CancellationToken parameter to the asynchronous method
return GenerateContentResponse.Parser.ParseJson(json);
}
@@ -62,7 +64,7 @@ public class GoogleGeminiClient : IGeminiClient
if (!response.IsSuccessStatusCode)
{
- throw new Exception($"Failed to generate content. Status code: {response.StatusCode}");
+ throw new ArgumentException($"Failed to generate content. Status code: {response.StatusCode}");
}
var stream = await response.Content.ReadAsStreamAsync();
diff --git a/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs b/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs
index 422fb4cd3..ec00440f3 100644
--- a/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs
+++ b/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs
@@ -266,7 +266,7 @@ public class GeminiMessageConnector : IStreamingMiddleware
}
}
- private IEnumerable<IMessage> ProcessToolCallResultMessage(ToolCallResultMessage toolCallResultMessage, IAgent agent)
+ private IEnumerable<IMessage> ProcessToolCallResultMessage(ToolCallResultMessage toolCallResultMessage, IAgent _)
{
var functionCallResultParts = new List<Part>();
foreach (var toolCallResult in toolCallResultMessage.ToolCalls)
diff --git a/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs b/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs
index db14d68a1..e5a10220e 100644
--- a/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs
+++ b/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs
@@ -34,7 +34,7 @@ public class MistralClientAgent : IStreamingAgent
private readonly string _systemMessage;
private readonly string _model;
private readonly int? _randomSeed;
- private readonly bool _jsonOutput = false;
+ private readonly bool _jsonOutput;
private ToolChoiceEnum? _toolChoice;
/// <summary>
diff --git a/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs b/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs
index 9ecf11428..15199ae77 100644
--- a/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs
+++ b/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs
@@ -8,7 +8,7 @@ using System.Text.Json.Serialization;
namespace AutoGen.Mistral;
-internal class JsonPropertyNameEnumConverter<T> : JsonConverter<T> where T : struct, Enum
+internal sealed class JsonPropertyNameEnumConverter<T> : JsonConverter<T> where T : struct, Enum
{
public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
diff --git a/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs
index eb38b3298..8637a07d3 100644
--- a/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs
+++ b/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs
@@ -47,11 +47,6 @@ public static class FunctionContractExtension
propertySchemaBuilder = propertySchemaBuilder.Properties(propertiesSchemas);
propertySchemaBuilder = propertySchemaBuilder.Required(requiredParameterNames);
- var option = new System.Text.Json.JsonSerializerOptions()
- {
- PropertyNamingPolicy = System.Text.Json.JsonNamingPolicy.CamelCase
- };
-
functionDefinition.Parameters = propertySchemaBuilder.Build();
return functionDefinition;
diff --git a/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs b/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs
index 78de12a5c..0650b3458 100644
--- a/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs
+++ b/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs
@@ -243,7 +243,7 @@ public class MistralChatMessageConnector : IStreamingMiddleware, IMiddleware
return messages.Select(m => new MessageEnvelope<ChatMessage>(m, from: textMessage.From));
}
- private IEnumerable<IMessage<ChatMessage>> ProcessToolCallResultMessage(ToolCallResultMessage toolCallResultMessage, IAgent agent)
+ private IEnumerable<IMessage<ChatMessage>> ProcessToolCallResultMessage(ToolCallResultMessage toolCallResultMessage, IAgent _)
{
var from = toolCallResultMessage.From;
var messages = new List<ChatMessage>();
diff --git a/dotnet/src/AutoGen.Mistral/MistralClient.cs b/dotnet/src/AutoGen.Mistral/MistralClient.cs
index 8c6802f30..1394cc342 100644
--- a/dotnet/src/AutoGen.Mistral/MistralClient.cs
+++ b/dotnet/src/AutoGen.Mistral/MistralClient.cs
@@ -74,7 +74,7 @@ public class MistralClient : IDisposable
{
var res = await JsonSerializer.DeserializeAsync<ErrorResponse>(
new MemoryStream(Encoding.UTF8.GetBytes(currentEvent.Data ?? string.Empty)));
- throw new Exception(res?.Error.Message);
+ throw new ArgumentException(res?.Error.Message);
}
// Reset the current event for the next one
diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs b/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs
index ea4993eb8..45c7d36f7 100644
--- a/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs
+++ b/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs
@@ -26,7 +26,9 @@ public class OllamaTextEmbeddingService : ITextEmbeddingService
{
response.EnsureSuccessStatusCode();
- Stream? streamResponse = await response.Content.ReadAsStreamAsync();
+#pragma warning disable CA2007 // Consider calling ConfigureAwait on the awaited task
+ Stream? streamResponse = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
+#pragma warning restore CA2007 // Consider calling ConfigureAwait on the awaited task
TextEmbeddingsResponse output = await JsonSerializer
.DeserializeAsync<TextEmbeddingsResponse>(streamResponse, cancellationToken: cancellationToken)
?? throw new Exception("Failed to deserialize response");
diff --git a/dotnet/src/AutoGen.OpenAI.V1/AutoGen.OpenAI.V1.csproj b/dotnet/src/AutoGen.OpenAI.V1/AutoGen.OpenAI.V1.csproj
index 21951cb32..85b92613f 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/AutoGen.OpenAI.V1.csproj
+++ b/dotnet/src/AutoGen.OpenAI.V1/AutoGen.OpenAI.V1.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(PackageTargetFrameworks)</TargetFrameworks>
<RootNamespace>AutoGen.OpenAI</RootNamespace>
@@ -17,7 +17,7 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Azure.AI.OpenAI" Version="$(AzureOpenAIVersion)" />
+ <PackageReference Include="Azure.AI.OpenAI" VersionOverride="1.0.0-beta.17" />
</ItemGroup>
<ItemGroup>
diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs
index 62009b927..e48670574 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs
@@ -33,7 +33,7 @@ public static class FunctionContractExtension
throw new InvalidOperationException("Parameter name cannot be null");
}
- var schemaBuilder = new JsonSchemaBuilder().FromType(param.ParameterType ?? throw new ArgumentNullException(nameof(param.ParameterType)));
+ var schemaBuilder = new JsonSchemaBuilder().FromType(param.ParameterType ?? throw new ArgumentException("param.ParameterType cannot be null"));
if (param.Description != null)
{
schemaBuilder = schemaBuilder.Description(param.Description);
diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs
index 3264dccf3..dd80333fe 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs
@@ -161,7 +161,6 @@ public static class MessageExtension
throw new ArgumentException("System message is not supported when message.From is the same with agent");
}
-
return [new ChatRequestAssistantMessage(textMessage.Content)];
}
else if (message is ToolCallMessage toolCallMessage)
diff --git a/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs b/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs
index 3587d1b0d..8603b8a1a 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs
@@ -24,7 +24,7 @@ namespace AutoGen.OpenAI.V1;
/// </summary>
public class OpenAIChatRequestMessageConnector : IMiddleware, IStreamingMiddleware
{
- private bool strictMode = false;
+ private bool strictMode;
/// <summary>
/// Create a new instance of <see cref="OpenAIChatRequestMessageConnector"/>.
diff --git a/dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs b/dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs
index fd55a1350..77725bc0f 100644
--- a/dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs
+++ b/dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs
@@ -24,7 +24,7 @@ namespace AutoGen.OpenAI;
/// </summary>
public class OpenAIChatRequestMessageConnector : IMiddleware, IStreamingMiddleware
{
- private bool strictMode = false;
+ private bool strictMode;
/// <summary>
/// Create a new instance of <see cref="OpenAIChatRequestMessageConnector"/>.
@@ -180,7 +180,7 @@ public class OpenAIChatRequestMessageConnector : IMiddleware, IStreamingMiddlewa
{
throw new InvalidOperationException("The content has more than one choice. Please try another input.");
}
- var textContent = chatCompletion.Content.FirstOrDefault();
+ var textContent = chatCompletion.Content[0];
// if tool calls is not empty, return ToolCallMessage
if (chatCompletion.ToolCalls is { Count: > 0 })
@@ -337,7 +337,6 @@ public class OpenAIChatRequestMessageConnector : IMiddleware, IStreamingMiddlewa
.Select((tc, i) => new ToolChatMessage(tc.ToolCallId ?? $"{tc.FunctionName}_{i}", tc.Result));
}
-
private IEnumerable<ChatMessage> ProcessFunctionCallMiddlewareMessage(IAgent agent, AggregateMessage<ToolCallMessage, ToolCallResultMessage> aggregateMessage)
{
if (aggregateMessage.From is not null && aggregateMessage.From != agent.Name)
diff --git a/dotnet/src/AutoGen.SemanticKernel/AutoGen.SemanticKernel.csproj b/dotnet/src/AutoGen.SemanticKernel/AutoGen.SemanticKernel.csproj
index b89626c01..fe2f0ad6e 100644
--- a/dotnet/src/AutoGen.SemanticKernel/AutoGen.SemanticKernel.csproj
+++ b/dotnet/src/AutoGen.SemanticKernel/AutoGen.SemanticKernel.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(PackageTargetFrameworks)</TargetFrameworks>
@@ -17,9 +17,9 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.SemanticKernel" Version="$(SemanticKernelVersion)" />
- <PackageReference Include="Microsoft.SemanticKernel.Agents.Core" Version="$(SemanticKernelExperimentalVersion)" />
- <PackageReference Include="Microsoft.SemanticKernel.Connectors.AzureOpenAI" Version="$(SemanticKernelVersion)" />
+ <PackageReference Include="Microsoft.SemanticKernel" />
+ <PackageReference Include="Microsoft.SemanticKernel.Agents.Core" />
+ <PackageReference Include="Microsoft.SemanticKernel.Connectors.AzureOpenAI" />
</ItemGroup>
<ItemGroup>
diff --git a/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs b/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs
index a055c0afc..2e6999431 100644
--- a/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs
+++ b/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs
@@ -166,7 +166,6 @@ public class SemanticKernelChatMessageContentConnector : IMiddleware, IStreaming
}
}
-
private IEnumerable<ChatMessageContent> ProcessMessageForOthers(TextMessage message)
{
if (message.Role == Role.System)
diff --git a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs
index e10f5b043..e0b2449b7 100644
--- a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs
+++ b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs
@@ -48,7 +48,6 @@ public class SemanticKernelAgent : IStreamingAgent
public string Name { get; }
-
public async Task<IMessage> GenerateReplyAsync(IEnumerable<IMessage> messages, GenerateReplyOptions? options = null, CancellationToken cancellationToken = default)
{
var chatHistory = BuildChatHistory(messages);
@@ -62,7 +61,7 @@ public class SemanticKernelAgent : IStreamingAgent
throw new InvalidOperationException("ResultsPerPrompt greater than 1 is not supported in this semantic kernel agent");
}
- return new MessageEnvelope<ChatMessageContent>(reply.First(), from: this.Name);
+ return new MessageEnvelope<ChatMessageContent>(reply[0], from: this.Name);
}
public async IAsyncEnumerable<IMessage> GenerateStreamingReplyAsync(
diff --git a/dotnet/src/AutoGen.SourceGenerator/AutoGen.SourceGenerator.csproj b/dotnet/src/AutoGen.SourceGenerator/AutoGen.SourceGenerator.csproj
index 37f344ed1..3866d6017 100644
--- a/dotnet/src/AutoGen.SourceGenerator/AutoGen.SourceGenerator.csproj
+++ b/dotnet/src/AutoGen.SourceGenerator/AutoGen.SourceGenerator.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
@@ -22,9 +22,9 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="System.CodeDom" Version="$(SystemCodeDomVersion)" />
- <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion)" PrivateAssets="all" GeneratePathProperty="True" />
- <PackageReference Include="Newtonsoft.Json" PrivateAssets="all" Version="13.0.1" GeneratePathProperty="true" />
+ <PackageReference Include="System.CodeDom" />
+ <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" PrivateAssets="all" GeneratePathProperty="True" />
+ <PackageReference Include="Newtonsoft.Json" PrivateAssets="all" GeneratePathProperty="true" />
</ItemGroup>
diff --git a/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs b/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs
index cd0141618..927236302 100644
--- a/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs
+++ b/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs
@@ -48,7 +48,6 @@ namespace AutoGen.SourceGenerator
var filePath = ctx.Node.SyntaxTree.FilePath;
var fileName = Path.GetFileNameWithoutExtension(filePath);
-
var classDeclarationSyntax = ctx.Node as ClassDeclarationSyntax;
var nameSpace = classDeclarationSyntax?.Parent as NamespaceDeclarationSyntax;
var fullClassName = $"{nameSpace?.Name}.{classDeclarationSyntax!.Identifier}";
diff --git a/dotnet/src/AutoGen.WebAPI/AutoGen.WebAPI.csproj b/dotnet/src/AutoGen.WebAPI/AutoGen.WebAPI.csproj
index c5b720764..5467f6638 100644
--- a/dotnet/src/AutoGen.WebAPI/AutoGen.WebAPI.csproj
+++ b/dotnet/src/AutoGen.WebAPI/AutoGen.WebAPI.csproj
@@ -1,9 +1,9 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
- <NoWarn>$(NoWarn);CS1591;CS1573</NoWarn>
+ <NoWarn>$(NoWarn);CS1591;CS1573;CA1852</NoWarn>
</PropertyGroup>
@@ -18,7 +18,7 @@
</PropertyGroup>
<ItemGroup>
- <FrameworkReference Include="Microsoft.AspNetCore.App" Version="$(MicrosoftASPNETCoreVersion)" />
+ <FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
diff --git a/dotnet/src/AutoGen/AutoGen.csproj b/dotnet/src/AutoGen/AutoGen.csproj
index fe4431a35..f44630ed2 100644
--- a/dotnet/src/AutoGen/AutoGen.csproj
+++ b/dotnet/src/AutoGen/AutoGen.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(PackageTargetFrameworks)</TargetFrameworks>
<RootNamespace>AutoGen</RootNamespace>
@@ -27,7 +27,7 @@
<ItemGroup>
<ProjectReference Include="..\AutoGen.Core\AutoGen.Core.csproj" />
<ProjectReference Include="..\AutoGen.OpenAI\AutoGen.OpenAI.csproj" />
- <PackageReference Include="Azure.AI.OpenAI" Version="$(AzureOpenAIV2Version)" />
+ <PackageReference Include="Azure.AI.OpenAI"/>
</ItemGroup>
<ItemGroup>
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Microsoft.AutoGen.Agents.Extensions.SemanticKernel.csproj b/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Microsoft.AutoGen.Agents.Extensions.SemanticKernel.csproj
index 795b0f807..ffa5ee03a 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Microsoft.AutoGen.Agents.Extensions.SemanticKernel.csproj
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Microsoft.AutoGen.Agents.Extensions.SemanticKernel.csproj
@@ -11,10 +11,11 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Azure.AI.OpenAI" />
- <PackageReference Include="Microsoft.SemanticKernel" />
- <PackageReference Include="Microsoft.SemanticKernel.Connectors.Qdrant" />
- <PackageReference Include="Microsoft.SemanticKernel.Plugins.Memory" />
+ <PackageReference Include="Azure.AI.OpenAI" VersionOverride="1.0.0-beta.17" />
+ <PackageReference Include="Microsoft.SemanticKernel" VersionOverride="1.15.1" />
+
+ <PackageReference Include="Microsoft.SemanticKernel.Connectors.Qdrant" VersionOverride="1.15.1-alpha" />
+ <PackageReference Include="Microsoft.SemanticKernel.Plugins.Memory" VersionOverride="1.15.1-alpha" />
</ItemGroup>
</Project>
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Microsoft.AutoGen.Agents.Runtime.csproj b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Microsoft.AutoGen.Agents.Runtime.csproj
index 017bc56c6..5b7c0ca60 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Microsoft.AutoGen.Agents.Runtime.csproj
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Microsoft.AutoGen.Agents.Runtime.csproj
@@ -9,6 +9,7 @@
<Authors>Microsoft</Authors>
<Description>AutoGen Worker Server Library</Description>
<Tags>ai-agents;event-driven-agents</Tags>
+ <NoWarn>$(NoWarn);CS8002</NoWarn>
</PropertyGroup>
<ItemGroup>
diff --git a/dotnet/src/Microsoft.AutoGen.Agents/Microsoft.AutoGen.Agents.csproj b/dotnet/src/Microsoft.AutoGen.Agents/Microsoft.AutoGen.Agents.csproj
index deadfa8cd..cd3f1637b 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents/Microsoft.AutoGen.Agents.csproj
+++ b/dotnet/src/Microsoft.AutoGen.Agents/Microsoft.AutoGen.Agents.csproj
@@ -21,7 +21,7 @@
<PackageReference Include="Grpc.AspNetCore" />
<PackageReference Include="Grpc.Net.ClientFactory" />
<PackageReference Include="Grpc.Tools" PrivateAssets="All" />
- <PackageReference Include="Microsoft.SemanticKernel" />
+ <PackageReference Include="Microsoft.SemanticKernel" VersionOverride="1.15.1" />
</ItemGroup>
</Project>
\ No newline at end of file
diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs
index 0018f2dec..c98a81079 100644
--- a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs
+++ b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AnthropicClientTest.cs
using System.Text;
@@ -80,8 +80,8 @@ public class AnthropicClientTests
person.Name.Should().Be("John");
person.Age.Should().Be(41);
person.Email.Should().Be("[email protected]");
- Assert.NotNull(results.First().streamingMessage);
- results.First().streamingMessage!.Role.Should().Be("assistant");
+ Assert.NotNull(results.First().StreamingMessage);
+ results.First().StreamingMessage!.Role.Should().Be("assistant");
}
[ApiKeyFact("ANTHROPIC_API_KEY")]
diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestFunctionCalls.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestFunctionCalls.cs
index 8b5466e3a..b753aa8ab 100644
--- a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestFunctionCalls.cs
+++ b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestFunctionCalls.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AnthropicTestFunctionCalls.cs
using System.Text.Json;
@@ -9,7 +9,7 @@ namespace AutoGen.Anthropic.Tests;
public partial class AnthropicTestFunctionCalls
{
- private class GetWeatherSchema
+ private sealed class GetWeatherSchema
{
[JsonPropertyName("city")]
public string? City { get; set; }
diff --git a/dotnet/test/AutoGen.AzureAIInference.Tests/AutoGen.AzureAIInference.Tests.csproj b/dotnet/test/AutoGen.AzureAIInference.Tests/AutoGen.AzureAIInference.Tests.csproj
index 0eaebd1da..374c646f1 100644
--- a/dotnet/test/AutoGen.AzureAIInference.Tests/AutoGen.AzureAIInference.Tests.csproj
+++ b/dotnet/test/AutoGen.AzureAIInference.Tests/AutoGen.AzureAIInference.Tests.csproj
@@ -1,9 +1,10 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>True</IsTestProject>
+ <NoWarn>$(NoWarn);CA1829;CA1826</NoWarn>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
diff --git a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs
index d6e5c5283..0e785b5e5 100644
--- a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs
+++ b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatRequestMessageTests.cs
@@ -1,11 +1,9 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// ChatRequestMessageTests.cs
+// Copyright (c) Microsoft. All rights reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
-using System.Text.Json;
using System.Threading.Tasks;
using AutoGen.Core;
using AutoGen.Tests;
@@ -17,12 +15,6 @@ namespace AutoGen.AzureAIInference.Tests;
public class ChatRequestMessageTests
{
- private readonly JsonSerializerOptions jsonSerializerOptions = new JsonSerializerOptions
- {
- WriteIndented = true,
- IgnoreReadOnlyProperties = false,
- };
-
[Fact]
public async Task ItProcessUserTextMessageAsync()
{
diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/AutoGen.DotnetInteractive.Tests.csproj b/dotnet/test/AutoGen.DotnetInteractive.Tests/AutoGen.DotnetInteractive.Tests.csproj
index 867676201..ac6e9fbf1 100644
--- a/dotnet/test/AutoGen.DotnetInteractive.Tests/AutoGen.DotnetInteractive.Tests.csproj
+++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/AutoGen.DotnetInteractive.Tests.csproj
@@ -1,10 +1,11 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<IsTestProject>True</IsTestProject>
+ <NoWarn>$(NoWarn);CA1829;CA1826</NoWarn>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
@@ -14,7 +15,7 @@
</ItemGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.PowerShell.SDK" Version="$(PowershellSDKVersion)" />
+ <PackageReference Include="Microsoft.PowerShell.SDK" />
</ItemGroup>
diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs
index 520d00c04..cb3478001 100644
--- a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs
+++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveStdioKernelConnectorTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// DotnetInteractiveStdioKernelConnectorTests.cs
using AutoGen.DotnetInteractive.Extension;
@@ -29,7 +29,6 @@ public class DotnetInteractiveStdioKernelConnectorTests : IDisposable
.BuildAsync().Result;
}
-
[Fact]
public async Task ItAddCSharpKernelTestAsync()
{
diff --git a/dotnet/test/AutoGen.Gemini.Tests/AutoGen.Gemini.Tests.csproj b/dotnet/test/AutoGen.Gemini.Tests/AutoGen.Gemini.Tests.csproj
index 0b9b7e2a2..a08778800 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/AutoGen.Gemini.Tests.csproj
+++ b/dotnet/test/AutoGen.Gemini.Tests/AutoGen.Gemini.Tests.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
@@ -7,6 +7,7 @@
<Nullable>enable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<IsTestProject>True</IsTestProject>
+ <NoWarn>$(NoWarn);CA1829;CA1826</NoWarn>
</PropertyGroup>
<ItemGroup>
diff --git a/dotnet/test/AutoGen.Mistral.Tests/AutoGen.Mistral.Tests.csproj b/dotnet/test/AutoGen.Mistral.Tests/AutoGen.Mistral.Tests.csproj
index aa20a835e..7d8854725 100644
--- a/dotnet/test/AutoGen.Mistral.Tests/AutoGen.Mistral.Tests.csproj
+++ b/dotnet/test/AutoGen.Mistral.Tests/AutoGen.Mistral.Tests.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
@@ -6,6 +6,7 @@
<IsPackable>false</IsPackable>
<IsTestProject>True</IsTestProject>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
+ <NoWarn>$(NoWarn);CA1829;CA1826</NoWarn>
</PropertyGroup>
<ItemGroup>
diff --git a/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs b/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs
index 3aa61a7a7..26715b2c9 100644
--- a/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs
+++ b/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MistralClientAgentTests.cs
using System.Text.Json;
@@ -221,7 +221,6 @@ public partial class MistralClientAgentTests
.RegisterStreamingMiddleware(functionCallMiddleware);
await singleAgentTest.EchoFunctionCallTestAsync(agent);
-
// streaming test
var question = new TextMessage(Role.User, "what's the weather in Seattle?");
IMessage? finalReply = null;
diff --git a/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs b/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs
index bd285adf6..50756d5fc 100644
--- a/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs
+++ b/dotnet/test/AutoGen.Mistral.Tests/MistralClientTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MistralClientTests.cs
using System.Text.Json;
@@ -183,7 +183,6 @@ public partial class MistralClientTests
person!.Email.Should().Be("[email protected]");
}
-
[ApiKeyFact("MISTRAL_API_KEY")]
public async Task MistralClientFunctionCallTestAsync()
{
diff --git a/dotnet/test/AutoGen.Ollama.Tests/AutoGen.Ollama.Tests.csproj b/dotnet/test/AutoGen.Ollama.Tests/AutoGen.Ollama.Tests.csproj
index c5ca19556..852f96c05 100644
--- a/dotnet/test/AutoGen.Ollama.Tests/AutoGen.Ollama.Tests.csproj
+++ b/dotnet/test/AutoGen.Ollama.Tests/AutoGen.Ollama.Tests.csproj
@@ -5,6 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<IsTestProject>True</IsTestProject>
+ <NoWarn>$(NoWarn);CA1829;CA1826</NoWarn>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/AutoGen.OpenAI.Tests.csproj b/dotnet/test/AutoGen.OpenAI.Tests/AutoGen.OpenAI.Tests.csproj
index d1e486860..ab65f9800 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/AutoGen.OpenAI.Tests.csproj
+++ b/dotnet/test/AutoGen.OpenAI.Tests/AutoGen.OpenAI.Tests.csproj
@@ -1,14 +1,15 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>True</IsTestProject>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
+ <NoWarn>$(NoWarn);CA1829;CA1826</NoWarn>
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Azure.AI.OpenAI" Version="$(AzureOpenAIV2Version)" />
+ <PackageReference Include="Azure.AI.OpenAI" />
</ItemGroup>
<ItemGroup>
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/MathClassTest.cs b/dotnet/test/AutoGen.OpenAI.Tests/MathClassTest.cs
index be1c38ad0..ce3c94b8b 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/MathClassTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.Tests/MathClassTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MathClassTest.cs
using System;
@@ -96,7 +96,6 @@ teacher, please create the next math question";
}
}
-
[ApiKeyFact("AZURE_OPENAI_API_KEY", "AZURE_OPENAI_ENDPOINT", "AZURE_OPENAI_DEPLOY_NAME")]
public async Task OpenAIAgentMathChatTestAsync()
{
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/OpenAIChatAgentTest.cs b/dotnet/test/AutoGen.OpenAI.Tests/OpenAIChatAgentTest.cs
index 992bf9b60..4f947beb6 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/OpenAIChatAgentTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.Tests/OpenAIChatAgentTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatAgentTest.cs
using System;
@@ -252,7 +252,6 @@ public partial class OpenAIChatAgentTest
respond.GetContent()?.Should().NotBeNullOrEmpty();
}
-
[ApiKeyFact("AZURE_OPENAI_API_KEY", "AZURE_OPENAI_ENDPOINT", "AZURE_OPENAI_DEPLOY_NAME")]
public async Task ItProduceValidContentAfterFunctionCall()
{
@@ -304,7 +303,7 @@ public partial class OpenAIChatAgentTest
options: options)
.RegisterMessageConnector();
- var res = await agent.GenerateReplyAsync(chatHistory, new GenerateReplyOptions
+ await agent.GenerateReplyAsync(chatHistory, new GenerateReplyOptions
{
MaxToken = 1024,
Functions = [this.GetWeatherAsyncFunctionContract, this.CalculateTaxAsyncFunctionContract],
diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/AutoGen.OpenAI.V1.Tests.csproj b/dotnet/test/AutoGen.OpenAI.V1.Tests/AutoGen.OpenAI.V1.Tests.csproj
index 0be8c5200..5a249472f 100644
--- a/dotnet/test/AutoGen.OpenAI.V1.Tests/AutoGen.OpenAI.V1.Tests.csproj
+++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/AutoGen.OpenAI.V1.Tests.csproj
@@ -1,10 +1,11 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>True</IsTestProject>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
+ <NoWarn>$(NoWarn);CA1829;CA1826</NoWarn>
</PropertyGroup>
<ItemGroup>
diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs
index d6055fb78..044b7345c 100644
--- a/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/MathClassTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MathClassTest.cs
using System;
@@ -100,7 +100,6 @@ teacher, please create the next math question";
}
}
-
[ApiKeyFact("AZURE_OPENAI_API_KEY", "AZURE_OPENAI_ENDPOINT", "AZURE_OPENAI_DEPLOY_NAME")]
public async Task OpenAIAgentMathChatTestAsync()
{
diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs
index 1000339c6..e9a183d22 100644
--- a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIChatAgentTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatAgentTest.cs
using System;
@@ -327,7 +327,7 @@ public partial class OpenAIChatAgentTest
options: options)
.RegisterMessageConnector();
- var res = await agent.GenerateReplyAsync(chatHistory, new GenerateReplyOptions
+ await agent.GenerateReplyAsync(chatHistory, new GenerateReplyOptions
{
MaxToken = 1024,
Functions = [this.GetWeatherAsyncFunctionContract, this.CalculateTaxAsyncFunctionContract],
diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/AutoGen.SemanticKernel.Tests.csproj b/dotnet/test/AutoGen.SemanticKernel.Tests/AutoGen.SemanticKernel.Tests.csproj
index 6ff942ea3..fcb4f4f2c 100644
--- a/dotnet/test/AutoGen.SemanticKernel.Tests/AutoGen.SemanticKernel.Tests.csproj
+++ b/dotnet/test/AutoGen.SemanticKernel.Tests/AutoGen.SemanticKernel.Tests.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
@@ -7,6 +7,7 @@
<NoWarn>$(NoWarn);SKEXP0110</NoWarn>
<IsTestProject>True</IsTestProject>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
+ <NoWarn>$(NoWarn);CA1829;CA1826</NoWarn>
</PropertyGroup>
<ItemGroup>
diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs
index c898c98b3..9b97a194e 100644
--- a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs
+++ b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionExtensionTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// KernelFunctionExtensionTests.cs
using System.ComponentModel;
@@ -15,7 +15,7 @@ namespace AutoGen.SemanticKernel.Tests;
public class TestPlugin
{
- public bool IsOn { get; set; } = false;
+ public bool IsOn { get; set; }
[KernelFunction]
[Description("Gets the state of the light.")]
diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs b/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs
index dc1b655a7..93bc8bb11 100644
--- a/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs
+++ b/dotnet/test/AutoGen.SemanticKernel.Tests/SemanticKernelAgentTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// SemanticKernelAgentTest.cs
using AutoGen.Core;
@@ -34,7 +34,6 @@ public partial class SemanticKernelAgentTest
var builder = Kernel.CreateBuilder()
.AddAzureOpenAIChatCompletion(deploymentName, endpoint, key);
-
var kernel = builder.Build();
kernel.GetRequiredService<IChatCompletionService>();
@@ -134,7 +133,6 @@ public partial class SemanticKernelAgentTest
reply.GetContent()!.ToLower().Should().Contain("sunny");
}
-
[ApiKeyFact("AZURE_OPENAI_API_KEY", "AZURE_OPENAI_ENDPOINT", "AZURE_OPENAI_DEPLOY_NAME")]
public async Task BasicSkChatCompletionAgentConversationTestAsync()
{
diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/AutoGen.SourceGenerator.Tests.csproj b/dotnet/test/AutoGen.SourceGenerator.Tests/AutoGen.SourceGenerator.Tests.csproj
index f7d814a6c..91e251ec9 100644
--- a/dotnet/test/AutoGen.SourceGenerator.Tests/AutoGen.SourceGenerator.Tests.csproj
+++ b/dotnet/test/AutoGen.SourceGenerator.Tests/AutoGen.SourceGenerator.Tests.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
@@ -6,6 +6,7 @@
<IsPackable>false</IsPackable>
<IsTestProject>True</IsTestProject>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
+ <NoWarn>$(NoWarn);CA1829;CA1826</NoWarn>
</PropertyGroup>
<ItemGroup>
diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs
index 0b2e211c6..8afea917a 100644
--- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs
+++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateEncodingTests.cs
@@ -1,7 +1,5 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// FunctionCallTemplateEncodingTests.cs
+// Copyright (c) Microsoft. All rights reserved.
-using System.Text.Json; // Needed for JsonSerializer
using AutoGen.SourceGenerator.Template; // Needed for FunctionCallTemplate
using Xunit; // Needed for Fact and Assert
@@ -9,11 +7,6 @@ namespace AutoGen.SourceGenerator.Tests
{
public class FunctionCallTemplateEncodingTests
{
- private readonly JsonSerializerOptions jsonSerializerOptions = new JsonSerializerOptions
- {
- WriteIndented = true,
- };
-
[Fact]
public void FunctionDescription_Should_Encode_DoubleQuotes()
{
diff --git a/dotnet/test/AutoGen.Tests/AutoGen.Tests.csproj b/dotnet/test/AutoGen.Tests/AutoGen.Tests.csproj
index a0c3b815f..70ac98a77 100644
--- a/dotnet/test/AutoGen.Tests/AutoGen.Tests.csproj
+++ b/dotnet/test/AutoGen.Tests/AutoGen.Tests.csproj
@@ -1,10 +1,10 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<IsTestProject>True</IsTestProject>
- <NoWarn>$(NoWarn);xUnit1013;SKEXP0110</NoWarn>
+ <NoWarn>$(NoWarn);xUnit1013;SKEXP0110;CA1829;CA1826</NoWarn>
</PropertyGroup>
<ItemGroup>
diff --git a/dotnet/test/AutoGen.Tests/BasicSampleTest.cs b/dotnet/test/AutoGen.Tests/BasicSampleTest.cs
index 317fdc36e..22b4ee056 100644
--- a/dotnet/test/AutoGen.Tests/BasicSampleTest.cs
+++ b/dotnet/test/AutoGen.Tests/BasicSampleTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// BasicSampleTest.cs
using System;
@@ -37,7 +37,6 @@ namespace AutoGen.Tests
await Example03_Agent_FunctionCall.RunAsync();
}
-
[ApiKeyFact("MISTRAL_API_KEY")]
public async Task MistralClientAgent_TokenCount()
{
diff --git a/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs b/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs
index 9c2d2ce81..234c137b8 100644
--- a/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs
+++ b/dotnet/test/AutoGen.Tests/GroupChat/GroupChatTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GroupChatTests.cs
using System;
@@ -30,7 +30,7 @@ public class GroupChatTests
chatHistory.Add(message);
}
- chatHistory.Count().Should().Be(10);
+ chatHistory.Count.Should().Be(10);
}
[Fact]
@@ -50,7 +50,7 @@ public class GroupChatTests
chatHistory.Add(message);
}
- chatHistory.Count().Should().Be(3);
+ chatHistory.Count.Should().Be(3);
chatHistory.Last().From.Should().Be("Cathy");
}
@@ -83,7 +83,7 @@ public class GroupChatTests
chatHistory.Add(message);
}
- chatHistory.Count().Should().Be(2);
+ chatHistory.Count.Should().Be(2);
}
[Fact]
@@ -108,6 +108,6 @@ public class GroupChatTests
chatHistory.Add(message);
}
- chatHistory.Count().Should().Be(0);
+ chatHistory.Count.Should().Be(0);
}
}
diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs
index d4d602d84..cf9dd6463 100644
--- a/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs
+++ b/dotnet/test/AutoGen.Tests/Orchestrator/RolePlayOrchestratorTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// RolePlayOrchestratorTests.cs
using System;
@@ -259,7 +259,6 @@ public class RolePlayOrchestratorTests
await CoderReviewerRunnerTestAsync(openAIChatAgent);
}
-
[ApiKeyFact("GOOGLE_GEMINI_API_KEY")]
public async Task GoogleGemini_1_5_flash_001_CoderReviewerRunnerTestAsync()
{
@@ -273,7 +272,6 @@ public class RolePlayOrchestratorTests
await CoderReviewerRunnerTestAsync(geminiAgent);
}
-
[ApiKeyFact("ANTHROPIC_API_KEY")]
public async Task Claude3_Haiku_CoderReviewerRunnerTestAsync()
{
diff --git a/dotnet/test/AutoGen.WebAPI.Tests/AutoGen.WebAPI.Tests.csproj b/dotnet/test/AutoGen.WebAPI.Tests/AutoGen.WebAPI.Tests.csproj
index 7ec6c408c..44d17631c 100644
--- a/dotnet/test/AutoGen.WebAPI.Tests/AutoGen.WebAPI.Tests.csproj
+++ b/dotnet/test/AutoGen.WebAPI.Tests/AutoGen.WebAPI.Tests.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
@@ -7,10 +7,11 @@
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
+ <NoWarn>$(NoWarn);CA1829;CA1826</NoWarn>
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.AspNetCore.TestHost" Version="$(MicrosoftASPNETCoreVersion)" />
+ <PackageReference Include="Microsoft.AspNetCore.TestHost" />
</ItemGroup>
<ItemGroup>