Skip to content

A programming framework for agentic AI

Fix dotnet test and reformat dotnet code (#3603)

Xiaoyun Zhang9ba14ee15b0e
diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml
index 6aac54d38..9f458eca0 100644
--- a/.github/workflows/dotnet-build.yml
+++ b/.github/workflows/dotnet-build.yml
@@ -23,6 +23,10 @@ permissions:
jobs:
paths-filter:
runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ pull-requests: write
+ repository-projects: write
outputs:
hasChanges: ${{ steps.filter.outputs.dotnet == 'true'}}
steps:
@@ -75,6 +79,8 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
+ - name: Install .NET Aspire workload
+ run: dotnet workload install aspire
- name: Restore dependencies
run: |
# dotnet nuget add source --name dotnet-tool https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json --configfile NuGet.config
diff --git a/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs b/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs
index 6f32c3cb4..397e24b1c 100644
--- a/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs
+++ b/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Create_Anthropic_Agent.cs
using AutoGen.Anthropic.Extensions;
diff --git a/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs b/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs
index 0324a39ff..f699bc9e1 100644
--- a/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs
+++ b/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent_With_Tool.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Create_Anthropic_Agent_With_Tool.cs
using AutoGen.Anthropic.DTO;
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs
index abaf94cbd..8bb9871b1 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AgentCodeSnippet.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs
index f26485116..2fac8fee8 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// BuildInMessageCodeSnippet.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs
index c5ff7b770..f8a23cf07 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GetStartCodeSnippet.cs
#region snippet_GetStartCodeSnippet
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs
index 1b5a9a903..1f0a7f179 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MiddlewareAgentCodeSnippet.cs
using System.Text.Json;
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs
index 0ce1d840d..77a248282 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MistralAICodeSnippet.cs
#region using_statement
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs
index 60520078e..cd77fa81f 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAICodeSnippet.cs
#region using_statement
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs
index 0ac7f71a3..c3c92fbcc 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// PrintMessageMiddlewareCodeSnippet.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs
index b087beb99..a3ac22cc5 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// RunCodeSnippetCodeSnippet.cs
#region code_snippet_0_1
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs
index 20dd12d90..1d6b592ee 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// SemanticKernelCodeSnippet.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs
index 667705835..00fc55611 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// TypeSafeFunctionCallCodeSnippet.cs
using System.Text.Json;
diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs
index 85aecae95..b34d201d2 100644
--- a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// UserProxyAgentCodeSnippet.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example01_AssistantAgent.cs b/dotnet/samples/AutoGen.BasicSamples/Example01_AssistantAgent.cs
index 40c881025..61d9e3c67 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example01_AssistantAgent.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example01_AssistantAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example01_AssistantAgent.cs
using AutoGen;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs b/dotnet/samples/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs
index 94b67a94b..ca05a42ca 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example03_Agent_FunctionCall.cs
using AutoGen.BasicSample;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs b/dotnet/samples/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs
index f90816d89..efc8d9aa3 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example04_Dynamic_GroupChat_Coding_Task.cs
using AutoGen.BasicSample;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs b/dotnet/samples/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs
index e8dd86474..e620f6eb1 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example05_Dalle_And_GPT4V.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example06_UserProxyAgent.cs b/dotnet/samples/AutoGen.BasicSamples/Example06_UserProxyAgent.cs
index e1349cb32..314062dc2 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example06_UserProxyAgent.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example06_UserProxyAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example06_UserProxyAgent.cs
using AutoGen.Core;
using AutoGen.OpenAI;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example08_LMStudio.cs b/dotnet/samples/AutoGen.BasicSamples/Example08_LMStudio.cs
index e58454fdb..c3b80da5d 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example08_LMStudio.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example08_LMStudio.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example08_LMStudio.cs
#region lmstudio_using_statements
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs b/dotnet/samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs
index 32aaa8c18..3298cfdb9 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example11_Sequential_GroupChat_Example.cs
#region using_statement
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs b/dotnet/samples/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs
index 16dcf1be6..8546de760 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example13_OpenAIAgent_JsonMode.cs
// this example has been moved to https://github.com/microsoft/autogen/blob/main/dotnet/samples/AutoGen.OpenAI.Sample/Use_Json_Mode.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs b/dotnet/samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs
index 4c8794de9..536279be6 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example14_MistralClientAgent_TokenCount.cs
#region using_statements
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs b/dotnet/samples/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs
index 4a4b10ae3..69faea25f 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example15_GPT4V_BinaryDataImageMessage.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs b/dotnet/samples/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs
index 44d045d66..51cc8368f 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs
// this example has been moved to https://github.com/microsoft/autogen/blob/main/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/Example17_ReActAgent.cs b/dotnet/samples/AutoGen.BasicSamples/Example17_ReActAgent.cs
index 170736bf2..63886c567 100644
--- a/dotnet/samples/AutoGen.BasicSamples/Example17_ReActAgent.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/Example17_ReActAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Example17_ReActAgent.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs
index cf97af134..a625adebc 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Agent_Middleware.cs
#region Using
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs
index b2cc22849..cc253abd4 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Chat_With_Agent.cs
#region Using
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs
index dadc295e3..421b68989 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Dynamic_Group_Chat.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs
index e993b3d51..453b54ff6 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Image_Chat_With_Agent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Image_Chat_With_Agent.cs
#region Using
diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs
index d5cb196f9..c265ed6c8 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Streaming_Tool_Call.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.BasicSamples/GlobalUsing.cs b/dotnet/samples/AutoGen.BasicSamples/GlobalUsing.cs
index 87b4ee0ab..99bbac1c8 100644
--- a/dotnet/samples/AutoGen.BasicSamples/GlobalUsing.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/GlobalUsing.cs
@@ -1,3 +1,3 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GlobalUsing.cs
diff --git a/dotnet/samples/AutoGen.BasicSamples/LLMConfiguration.cs b/dotnet/samples/AutoGen.BasicSamples/LLMConfiguration.cs
index 26d966879..7618f3dbf 100644
--- a/dotnet/samples/AutoGen.BasicSamples/LLMConfiguration.cs
+++ b/dotnet/samples/AutoGen.BasicSamples/LLMConfiguration.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// LLMConfiguration.cs
using OpenAI;
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs b/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs
index 356ae23ff..d9de1eb14 100644
--- a/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs
+++ b/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Chat_With_Google_Gemini.cs
#region Using
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs b/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs
index 5924ef716..d8d427bb0 100644
--- a/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs
+++ b/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Chat_With_Vertex_Gemini.cs
#region Using
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs b/dotnet/samples/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs
index db5068a7b..763daa868 100644
--- a/dotnet/samples/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs
+++ b/dotnet/samples/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Function_Call_With_Gemini.cs
#region Using
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs b/dotnet/samples/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs
index ad320e7c6..a5a5ab024 100644
--- a/dotnet/samples/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs
+++ b/dotnet/samples/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Image_Chat_With_Vertex_Gemini.cs
#region Using
diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Program.cs b/dotnet/samples/AutoGen.Gemini.Sample/Program.cs
index 5e7694220..478ba6f57 100644
--- a/dotnet/samples/AutoGen.Gemini.Sample/Program.cs
+++ b/dotnet/samples/AutoGen.Gemini.Sample/Program.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Program.cs
using AutoGen.Gemini.Sample;
diff --git a/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs b/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs
index 09df4a48d..399815c4e 100644
--- a/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs
+++ b/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Chat_With_LLaMA.cs
#region Using
diff --git a/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs b/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs
index d9e38c886..50122fe39 100644
--- a/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs
+++ b/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Chat_With_LLaVA.cs
#region Using
diff --git a/dotnet/samples/AutoGen.Ollama.Sample/Program.cs b/dotnet/samples/AutoGen.Ollama.Sample/Program.cs
index 62c92eebe..7d48ba6f9 100644
--- a/dotnet/samples/AutoGen.Ollama.Sample/Program.cs
+++ b/dotnet/samples/AutoGen.Ollama.Sample/Program.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Program.cs
using AutoGen.Ollama.Sample;
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Azure_OpenAI.cs b/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Azure_OpenAI.cs
index dafe2e314..eec4726e4 100644
--- a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Azure_OpenAI.cs
+++ b/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Azure_OpenAI.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Connect_To_Azure_OpenAI.cs
#region using_statement
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs b/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs
index 2bb10e978..964e1f3fd 100644
--- a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs
+++ b/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Connect_To_Ollama.cs
#region using_statement
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_OpenAI_o1_preview.cs b/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_OpenAI_o1_preview.cs
index 52bc6381b..4b7e986a7 100644
--- a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_OpenAI_o1_preview.cs
+++ b/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_OpenAI_o1_preview.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Connect_To_OpenAI_o1_preview.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Program.cs b/dotnet/samples/AutoGen.OpenAI.Sample/Program.cs
index c71f152d0..84b35f448 100644
--- a/dotnet/samples/AutoGen.OpenAI.Sample/Program.cs
+++ b/dotnet/samples/AutoGen.OpenAI.Sample/Program.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Program.cs
using AutoGen.OpenAI.Sample;
diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs b/dotnet/samples/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs
index ed43c628a..2c1870ceb 100644
--- a/dotnet/samples/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs
+++ b/dotnet/samples/AutoGen.OpenAI.Sample/Tool_Call_With_Ollama_And_LiteLLM.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Tool_Call_With_Ollama_And_LiteLLM.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs b/dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs
index 3333cdd9a..429379e9d 100644
--- a/dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs
+++ b/dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Agent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Create_Semantic_Kernel_Agent.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs b/dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs
index 9b72a2e0f..8a4d3a8e4 100644
--- a/dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs
+++ b/dotnet/samples/AutoGen.SemanticKernel.Sample/Create_Semantic_Kernel_Chat_Agent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Create_Semantic_Kernel_Chat_Agent.cs
#region Using
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Program.cs b/dotnet/samples/AutoGen.SemanticKernel.Sample/Program.cs
index 5032f2d43..03ba354af 100644
--- a/dotnet/samples/AutoGen.SemanticKernel.Sample/Program.cs
+++ b/dotnet/samples/AutoGen.SemanticKernel.Sample/Program.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Program.cs
using AutoGen.SemanticKernel.Sample;
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs b/dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs
index 4cebc8829..0fe1cc0fc 100644
--- a/dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs
+++ b/dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Bing_Search_With_Semantic_Kernel_Agent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Use_Bing_Search_With_Semantic_Kernel_Agent.cs
using AutoGen.Core;
diff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs b/dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs
index 700bdfe75..955f0696c 100644
--- a/dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs
+++ b/dotnet/samples/AutoGen.SemanticKernel.Sample/Use_Kernel_Functions_With_Other_Agent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Use_Kernel_Functions_With_Other_Agent.cs
#region Using
diff --git a/dotnet/samples/AutoGen.WebAPI.Sample/Program.cs b/dotnet/samples/AutoGen.WebAPI.Sample/Program.cs
index dbeb84943..18ce4b023 100644
--- a/dotnet/samples/AutoGen.WebAPI.Sample/Program.cs
+++ b/dotnet/samples/AutoGen.WebAPI.Sample/Program.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Program.cs
using System.Runtime.CompilerServices;
diff --git a/dotnet/samples/Hello/Program.cs b/dotnet/samples/Hello/Program.cs
index 4b9c1d6fb..220d660ab 100644
--- a/dotnet/samples/Hello/Program.cs
+++ b/dotnet/samples/Hello/Program.cs
@@ -1,8 +1,8 @@
-using Microsoft.Extensions.Hosting;
using Microsoft.AutoGen.Agents.Abstractions;
using Microsoft.AutoGen.Agents.Client;
using Microsoft.AutoGen.Agents.Runtime;
using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
var builder = Host.CreateApplicationBuilder(args);
builder.AddAgentService();
@@ -59,4 +59,4 @@ public class HelloAgent(
public interface ISayHello
{
public Task<string> SayHello(string ask);
-}
\ No newline at end of file
+}
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgent.cs b/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgent.cs
index 3d890ed25..0dce0e166 100644
--- a/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgent.cs
+++ b/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgent.cs
@@ -7,15 +7,15 @@ namespace HelloAgents.Agents;
[TopicSubscription("HelloAgents")]
public class HelloAgent(
- IAgentContext context,
- Kernel kernel,
- ISemanticTextMemory memory,
- [FromKeyedServices("EventTypes")] EventTypes typeRegistry,
+ IAgentContext context,
+ Kernel kernel,
+ ISemanticTextMemory memory,
+ [FromKeyedServices("EventTypes")] EventTypes typeRegistry,
ILogger<HelloAgent> logger) : AiAgent<HelloAgentState>(
- context,
- memory,
- kernel,
- typeRegistry),
+ context,
+ memory,
+ kernel,
+ typeRegistry),
ISayHello,
IHandle<NewMessageReceived>,
IHandle<ConversationClosed>
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgentPrompts.cs b/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgentPrompts.cs
index ad6896c30..0b23762c9 100644
--- a/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgentPrompts.cs
+++ b/dotnet/samples/HelloAgents/HelloAgents.Agents/Agents/HelloAgent/HelloAgentPrompts.cs
@@ -16,4 +16,4 @@ public static class HelloSkills
You may incorporate the user's input into your reply if you wish.
Input: {{$input}}
""";
-}
\ No newline at end of file
+}
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Agents/Program.cs b/dotnet/samples/HelloAgents/HelloAgents.Agents/Program.cs
index 5c8d56d4d..02d2f1589 100644
--- a/dotnet/samples/HelloAgents/HelloAgents.Agents/Program.cs
+++ b/dotnet/samples/HelloAgents/HelloAgents.Agents/Program.cs
@@ -15,4 +15,4 @@ var app = builder.Build();
app.MapDefaultEndpoints();
-app.Run();
\ No newline at end of file
+app.Run();
diff --git a/dotnet/samples/HelloAgents/HelloAgents.ApiService/Program.cs b/dotnet/samples/HelloAgents/HelloAgents.ApiService/Program.cs
index de5f21434..b53f98668 100644
--- a/dotnet/samples/HelloAgents/HelloAgents.ApiService/Program.cs
+++ b/dotnet/samples/HelloAgents/HelloAgents.ApiService/Program.cs
@@ -27,7 +27,7 @@ app.MapGet("/agents", () =>
Content: $"AgentResult {DateTime.Now.AddDays(index):d}",
Summary: summaries[DateTime.Now.AddDays(index).DayOfYear % summaries.Length]
))
- .ToArray();
+ .ToArray();
return result;
});
diff --git a/dotnet/samples/HelloAgents/HelloAgents.Web/Program.cs b/dotnet/samples/HelloAgents/HelloAgents.Web/Program.cs
index 24eb5d644..638b769a7 100644
--- a/dotnet/samples/HelloAgents/HelloAgents.Web/Program.cs
+++ b/dotnet/samples/HelloAgents/HelloAgents.Web/Program.cs
@@ -1,5 +1,6 @@
+// Copyright (c) Microsoft. All rights reserved.
+
using HelloAgents.Web;
-using HelloAgents.Web.Components;
var builder = WebApplication.CreateBuilder(args);
@@ -35,7 +36,7 @@ app.UseAntiforgery();
app.UseOutputCache();
-app.MapRazorComponents<App>()
+app.MapRazorComponents<HelloAgents.Web.Components.App>()
.AddInteractiveServerRenderMode();
app.MapDefaultEndpoints();
diff --git a/dotnet/samples/dev-team/DevTeam.AgentHost/Program.cs b/dotnet/samples/dev-team/DevTeam.AgentHost/Program.cs
index 4222adfd2..06985965e 100644
--- a/dotnet/samples/dev-team/DevTeam.AgentHost/Program.cs
+++ b/dotnet/samples/dev-team/DevTeam.AgentHost/Program.cs
@@ -9,4 +9,4 @@ var app = builder.Build();
app.MapDefaultEndpoints();
app.MapAgentService();
-app.Run();
\ No newline at end of file
+app.Run();
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/Developer/DeveloperPrompts.cs b/dotnet/samples/dev-team/DevTeam.Agents/Developer/DeveloperPrompts.cs
index 717ba1686..5aa8c2756 100644
--- a/dotnet/samples/dev-team/DevTeam.Agents/Developer/DeveloperPrompts.cs
+++ b/dotnet/samples/dev-team/DevTeam.Agents/Developer/DeveloperPrompts.cs
@@ -54,4 +54,4 @@ public static class DeveloperSkills
Only include the points in a bullet point format and DON'T add anything outside of the bulleted list.
Be short and concise.
""";
-}
\ No newline at end of file
+}
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/PMPrompts.cs b/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/PMPrompts.cs
index 403da7ef2..ad1c431a4 100644
--- a/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/PMPrompts.cs
+++ b/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/PMPrompts.cs
@@ -31,4 +31,4 @@ public static class PMSkills
--
Input: {{$input}}
""";
-}
\ No newline at end of file
+}
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs b/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs
index 6260d1f89..99a576558 100644
--- a/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs
+++ b/dotnet/samples/dev-team/DevTeam.Agents/ProductManager/ProductManager.cs
@@ -16,7 +16,8 @@ public class ProductManager(IAgentContext context, Kernel kernel, ISemanticTextM
{
// TODO: Get readme from state
var lastReadme = ""; // _state.State.History.Last().Message
- var evt= new ReadmeCreated {
+ var evt = new ReadmeCreated
+ {
Readme = lastReadme
}.ToCloudEvent(this.AgentId.Key);
await PublishEvent(evt);
@@ -49,7 +50,8 @@ public class ProductManager(IAgentContext context, Kernel kernel, ISemanticTextM
logger.LogError(ex, "Error creating readme");
return "";
}
- }}
+ }
+}
public interface IManageProducts
{
diff --git a/dotnet/samples/dev-team/DevTeam.Agents/Program.cs b/dotnet/samples/dev-team/DevTeam.Agents/Program.cs
index 7a5dfe5f5..9362836a5 100644
--- a/dotnet/samples/dev-team/DevTeam.Agents/Program.cs
+++ b/dotnet/samples/dev-team/DevTeam.Agents/Program.cs
@@ -1,6 +1,6 @@
+using DevTeam.Agents;
using Microsoft.AutoGen.Agents.Client;
using Microsoft.AutoGen.Agents.Extensions.SemanticKernel;
-using DevTeam.Agents;
var builder = WebApplication.CreateBuilder(args);
@@ -17,4 +17,4 @@ var app = builder.Build();
app.MapDefaultEndpoints();
-app.Run();
\ No newline at end of file
+app.Run();
diff --git a/dotnet/samples/dev-team/DevTeam.AppHost/Program.cs b/dotnet/samples/dev-team/DevTeam.AppHost/Program.cs
index d56077710..99a1978c5 100644
--- a/dotnet/samples/dev-team/DevTeam.AppHost/Program.cs
+++ b/dotnet/samples/dev-team/DevTeam.AppHost/Program.cs
@@ -31,8 +31,8 @@ builder.AddProject<Projects.DevTeam_Backend>("backend")
.WithEnvironment("Github__InstallationId", builder.Configuration["Github:InstallationId"])
.WithEnvironment("Github__WebhookSecret", builder.Configuration["Github:WebhookSecret"])
.WithEnvironment("Github__AppKey", builder.Configuration["Github:AppKey"]);
- //TODO: add this to the config in backend
- //.WithEnvironment("", acaSessionsEndpoint);
+//TODO: add this to the config in backend
+//.WithEnvironment("", acaSessionsEndpoint);
builder.AddProject<Projects.DevTeam_Agents>("dev-agents")
.WithEnvironment("AGENT_HOST", $"{agentHostHttps.Property(EndpointProperty.Url)}")
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs b/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs
index a81a035ff..39f424ce3 100644
--- a/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs
+++ b/dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs
@@ -1,5 +1,5 @@
-using DevTeam;
using System.Text.Json;
+using DevTeam;
using DevTeam.Backend;
using DevTeam.Shared;
using Microsoft.AutoGen.Agents.Abstractions;
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Program.cs b/dotnet/samples/dev-team/DevTeam.Backend/Program.cs
index e4a2c4b98..ed77a0bdc 100644
--- a/dotnet/samples/dev-team/DevTeam.Backend/Program.cs
+++ b/dotnet/samples/dev-team/DevTeam.Backend/Program.cs
@@ -1,13 +1,13 @@
+using Azure.Identity;
+using DevTeam.Backend;
+using DevTeam.Options;
+using Microsoft.AI.DevTeam;
using Microsoft.AutoGen.Agents.Client;
using Microsoft.AutoGen.Agents.Extensions.SemanticKernel;
-using Microsoft.AI.DevTeam;
-using DevTeam.Backend;
-using Octokit.Webhooks;
-using Microsoft.Extensions.Options;
using Microsoft.Extensions.Azure;
-using Azure.Identity;
+using Microsoft.Extensions.Options;
+using Octokit.Webhooks;
using Octokit.Webhooks.AspNetCore;
-using DevTeam.Options;
var builder = WebApplication.CreateBuilder(args);
@@ -61,7 +61,7 @@ app.UseRouting()
{
var ghOptions = app.Services.GetRequiredService<IOptions<GithubOptions>>().Value;
endpoints.MapGitHubWebhooks(secret: ghOptions.WebhookSecret);
-});;
+}); ;
app.UseSwagger();
app.UseSwaggerUI(c =>
@@ -69,4 +69,4 @@ app.UseSwaggerUI(c =>
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
});
-app.Run();
\ No newline at end of file
+app.Run();
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubAuthService.cs b/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubAuthService.cs
index 62b0a0f2c..19d9e1214 100644
--- a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubAuthService.cs
+++ b/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubAuthService.cs
@@ -68,4 +68,4 @@ public class GithubAuthService
throw;
}
}
-}
\ No newline at end of file
+}
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubService.cs b/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubService.cs
index ba35f7dfa..b1e0dcc77 100644
--- a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubService.cs
+++ b/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubService.cs
@@ -249,4 +249,4 @@ public interface IManageGithub
Task PostComment(string org, string repo, long issueNumber, string comment);
Task<IEnumerable<FileResponse>> GetFiles(string org, string repo, string branch, Func<RepositoryContent, bool> filter);
Task<string> GetMainLanguage(string org, string repo);
-}
\ No newline at end of file
+}
diff --git a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs b/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs
index d4e5f841a..7a643f938 100644
--- a/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs
+++ b/dotnet/samples/dev-team/DevTeam.Backend/Services/GithubWebHookProcessor.cs
@@ -1,12 +1,12 @@
using System.Globalization;
-using Microsoft.AutoGen.Agents.Abstractions;
using DevTeam.Shared;
+using Microsoft.AutoGen.Agents.Abstractions;
+using Microsoft.AutoGen.Agents.Client;
using Octokit.Webhooks;
using Octokit.Webhooks.Events;
using Octokit.Webhooks.Events.IssueComment;
using Octokit.Webhooks.Events.Issues;
using Octokit.Webhooks.Models;
-using Microsoft.AutoGen.Agents.Client;
namespace DevTeam.Backend;
@@ -107,14 +107,14 @@ public sealed class GithubWebHookProcessor(ILogger<GithubWebHookProcessor> logge
}
- private async Task HandleClosingIssue(long issueNumber, string skillName, string functionName, string suffix)
+ private async Task HandleClosingIssue(long issueNumber, string skillName, string functionName, string suffix)
{
var subject = suffix + issueNumber.ToString();
var evt = (skillName, functionName) switch
{
- ("PM", "Readme") => new ReadmeChainClosed { }.ToCloudEvent(subject),
- ("DevLead", "Plan") => new DevPlanChainClosed { }.ToCloudEvent(subject),
+ ("PM", "Readme") => new ReadmeChainClosed { }.ToCloudEvent(subject),
+ ("DevLead", "Plan") => new DevPlanChainClosed { }.ToCloudEvent(subject),
("Developer", "Implement") => new CodeChainClosed { }.ToCloudEvent(subject),
_ => new CloudEvent() // TODO: default event
};
@@ -122,7 +122,7 @@ public sealed class GithubWebHookProcessor(ILogger<GithubWebHookProcessor> logge
await _client.PublishEventAsync(evt);
}
- private async Task HandleNewAsk(long issueNumber,string skillName, string functionName, string suffix, string input, string org, string repo)
+ private async Task HandleNewAsk(long issueNumber, string skillName, string functionName, string suffix, string input, string org, string repo)
{
try
{
diff --git a/dotnet/samples/dev-team/DevTeam.ServiceDefaults/Extensions.cs b/dotnet/samples/dev-team/DevTeam.ServiceDefaults/Extensions.cs
index 683d50422..6cbae1ff4 100644
--- a/dotnet/samples/dev-team/DevTeam.ServiceDefaults/Extensions.cs
+++ b/dotnet/samples/dev-team/DevTeam.ServiceDefaults/Extensions.cs
@@ -116,4 +116,4 @@ public static class Extensions
return app;
}
-}
\ No newline at end of file
+}
diff --git a/dotnet/samples/dev-team/DevTeam.Shared/Models/DevPlan.cs b/dotnet/samples/dev-team/DevTeam.Shared/Models/DevPlan.cs
index d0a85fe71..51c4ae49c 100644
--- a/dotnet/samples/dev-team/DevTeam.Shared/Models/DevPlan.cs
+++ b/dotnet/samples/dev-team/DevTeam.Shared/Models/DevPlan.cs
@@ -15,4 +15,4 @@ public class SubtaskDescription
{
public string? Subtask { get; set; }
public string? Prompt { get; set; }
-}
\ No newline at end of file
+}
diff --git a/dotnet/samples/dev-team/DevTeam.Shared/Options/AzureOptions.cs b/dotnet/samples/dev-team/DevTeam.Shared/Options/AzureOptions.cs
index a54144736..3bdd1adf5 100644
--- a/dotnet/samples/dev-team/DevTeam.Shared/Options/AzureOptions.cs
+++ b/dotnet/samples/dev-team/DevTeam.Shared/Options/AzureOptions.cs
@@ -18,4 +18,4 @@ public class AzureOptions
public required string FilesAccountKey { get; set; }
[Required]
public required string SandboxImage { get; set; }
-}
\ No newline at end of file
+}
diff --git a/dotnet/samples/dev-team/DevTeam.Shared/Options/GithubOptions.cs b/dotnet/samples/dev-team/DevTeam.Shared/Options/GithubOptions.cs
index 863f30289..b279d8df7 100644
--- a/dotnet/samples/dev-team/DevTeam.Shared/Options/GithubOptions.cs
+++ b/dotnet/samples/dev-team/DevTeam.Shared/Options/GithubOptions.cs
@@ -11,4 +11,4 @@ public class GithubOptions
public long InstallationId { get; set; }
[Required]
public required string WebhookSecret { get; set; }
-}
\ No newline at end of file
+}
diff --git a/dotnet/samples/dev-team/DevTeam.Shared/ParseExtensions.cs b/dotnet/samples/dev-team/DevTeam.Shared/ParseExtensions.cs
index ffb9b4a8e..b6f5b5292 100644
--- a/dotnet/samples/dev-team/DevTeam.Shared/ParseExtensions.cs
+++ b/dotnet/samples/dev-team/DevTeam.Shared/ParseExtensions.cs
@@ -4,7 +4,7 @@ namespace DevTeam;
public static class ParseExtensions
{
- public static long TryParseLong(this Dictionary<string, string> data, string key)
+ public static long TryParseLong(this Dictionary<string, string> data, string key)
{
ArgumentNullException.ThrowIfNull(data);
@@ -14,4 +14,4 @@ public static class ParseExtensions
}
return default;
}
-}
\ No newline at end of file
+}
diff --git a/dotnet/src/AutoGen.Anthropic/Agent/AnthropicClientAgent.cs b/dotnet/src/AutoGen.Anthropic/Agent/AnthropicClientAgent.cs
index 81fa8e643..6abc2786b 100644
--- a/dotnet/src/AutoGen.Anthropic/Agent/AnthropicClientAgent.cs
+++ b/dotnet/src/AutoGen.Anthropic/Agent/AnthropicClientAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AnthropicClientAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs b/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs
index 6a9a9c38b..f940864ce 100644
--- a/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs
+++ b/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AnthropicClient.cs
using System;
diff --git a/dotnet/src/AutoGen.Anthropic/Converters/ContentBaseConverter.cs b/dotnet/src/AutoGen.Anthropic/Converters/ContentBaseConverter.cs
index 3e620f934..76c3200c1 100644
--- a/dotnet/src/AutoGen.Anthropic/Converters/ContentBaseConverter.cs
+++ b/dotnet/src/AutoGen.Anthropic/Converters/ContentBaseConverter.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ContentBaseConverter.cs
using System;
diff --git a/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs b/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs
index 9cce54014..44ceb0718 100644
--- a/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs
+++ b/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// JsonPropertyNameEnumCoverter.cs
using System;
diff --git a/dotnet/src/AutoGen.Anthropic/Converters/SystemMessageConverter.cs b/dotnet/src/AutoGen.Anthropic/Converters/SystemMessageConverter.cs
index 5bbe8a3a3..0af3fa1a9 100644
--- a/dotnet/src/AutoGen.Anthropic/Converters/SystemMessageConverter.cs
+++ b/dotnet/src/AutoGen.Anthropic/Converters/SystemMessageConverter.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// SystemMessageConverter.cs
using System;
diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionRequest.cs b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionRequest.cs
index dfb86ef0a..b9f5fb630 100644
--- a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionRequest.cs
+++ b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionRequest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatCompletionRequest.cs
using System.Collections.Generic;
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs
index 0c77d8ef1..3b0135d38 100644
--- a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs
+++ b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionResponse.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatCompletionResponse.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Anthropic/DTO/Content.cs b/dotnet/src/AutoGen.Anthropic/DTO/Content.cs
index ade913b82..8256aacbc 100644
--- a/dotnet/src/AutoGen.Anthropic/DTO/Content.cs
+++ b/dotnet/src/AutoGen.Anthropic/DTO/Content.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Content.cs
using System.Text.Json.Nodes;
diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ErrorResponse.cs b/dotnet/src/AutoGen.Anthropic/DTO/ErrorResponse.cs
index 1a94334c8..d02a8f6d1 100644
--- a/dotnet/src/AutoGen.Anthropic/DTO/ErrorResponse.cs
+++ b/dotnet/src/AutoGen.Anthropic/DTO/ErrorResponse.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ErrorResponse.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Anthropic/DTO/Tool.cs b/dotnet/src/AutoGen.Anthropic/DTO/Tool.cs
index 3845c4445..e230899f2 100644
--- a/dotnet/src/AutoGen.Anthropic/DTO/Tool.cs
+++ b/dotnet/src/AutoGen.Anthropic/DTO/Tool.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Tool.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ToolChoice.cs b/dotnet/src/AutoGen.Anthropic/DTO/ToolChoice.cs
index 0a5c3790e..2cb5463c5 100644
--- a/dotnet/src/AutoGen.Anthropic/DTO/ToolChoice.cs
+++ b/dotnet/src/AutoGen.Anthropic/DTO/ToolChoice.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ToolChoice.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.cs b/dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.cs
index 35ea8ed19..b5b45ebbf 100644
--- a/dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.cs
+++ b/dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AnthropicAgentExtension.cs
using AutoGen.Anthropic.Middleware;
diff --git a/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs b/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs
index 56ce02794..55185bc09 100644
--- a/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs
+++ b/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AnthropicMessageConnector.cs
using System;
diff --git a/dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.cs b/dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.cs
index 494a6686f..e445b42ee 100644
--- a/dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.cs
+++ b/dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AnthropicConstants.cs
namespace AutoGen.Anthropic.Utils;
diff --git a/dotnet/src/AutoGen.AzureAIInference/Agent/ChatCompletionsClientAgent.cs b/dotnet/src/AutoGen.AzureAIInference/Agent/ChatCompletionsClientAgent.cs
index 452c5b1c3..35e7fa9a1 100644
--- a/dotnet/src/AutoGen.AzureAIInference/Agent/ChatCompletionsClientAgent.cs
+++ b/dotnet/src/AutoGen.AzureAIInference/Agent/ChatCompletionsClientAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatCompletionsClientAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.AzureAIInference/Extension/ChatComptionClientAgentExtension.cs b/dotnet/src/AutoGen.AzureAIInference/Extension/ChatComptionClientAgentExtension.cs
index 8faf29604..8b8046e6b 100644
--- a/dotnet/src/AutoGen.AzureAIInference/Extension/ChatComptionClientAgentExtension.cs
+++ b/dotnet/src/AutoGen.AzureAIInference/Extension/ChatComptionClientAgentExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatComptionClientAgentExtension.cs
using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.AzureAIInference/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.AzureAIInference/Extension/FunctionContractExtension.cs
index 4cd7b3864..3dca98f48 100644
--- a/dotnet/src/AutoGen.AzureAIInference/Extension/FunctionContractExtension.cs
+++ b/dotnet/src/AutoGen.AzureAIInference/Extension/FunctionContractExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionContractExtension.cs
using System;
diff --git a/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs b/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs
index b12b74d4a..dde28cc30 100644
--- a/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs
+++ b/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AzureAIInferenceChatRequestMessageConnector.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Agent/DefaultReplyAgent.cs b/dotnet/src/AutoGen.Core/Agent/DefaultReplyAgent.cs
index 647a2ece7..09c268d73 100644
--- a/dotnet/src/AutoGen.Core/Agent/DefaultReplyAgent.cs
+++ b/dotnet/src/AutoGen.Core/Agent/DefaultReplyAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// DefaultReplyAgent.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Agent/GroupChatManager.cs b/dotnet/src/AutoGen.Core/Agent/GroupChatManager.cs
index db40f801d..e02c50e12 100644
--- a/dotnet/src/AutoGen.Core/Agent/GroupChatManager.cs
+++ b/dotnet/src/AutoGen.Core/Agent/GroupChatManager.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GroupChatManager.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Agent/IAgent.cs b/dotnet/src/AutoGen.Core/Agent/IAgent.cs
index f2b8ce67d..03e7c745b 100644
--- a/dotnet/src/AutoGen.Core/Agent/IAgent.cs
+++ b/dotnet/src/AutoGen.Core/Agent/IAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// IAgent.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Agent/IMiddlewareAgent.cs b/dotnet/src/AutoGen.Core/Agent/IMiddlewareAgent.cs
index a0b01e7c3..25a940867 100644
--- a/dotnet/src/AutoGen.Core/Agent/IMiddlewareAgent.cs
+++ b/dotnet/src/AutoGen.Core/Agent/IMiddlewareAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// IMiddlewareAgent.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Agent/IStreamingAgent.cs b/dotnet/src/AutoGen.Core/Agent/IStreamingAgent.cs
index 6b7794c92..43ac8cb59 100644
--- a/dotnet/src/AutoGen.Core/Agent/IStreamingAgent.cs
+++ b/dotnet/src/AutoGen.Core/Agent/IStreamingAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// IStreamingAgent.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs b/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs
index 57c5b59c1..e19678856 100644
--- a/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs
+++ b/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MiddlewareAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs b/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs
index bc3c5be24..0e9bffd3c 100644
--- a/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs
+++ b/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MiddlewareStreamingAgent.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Extension/GroupChatExtension.cs b/dotnet/src/AutoGen.Core/Extension/GroupChatExtension.cs
index 89da77087..01c57eb9a 100644
--- a/dotnet/src/AutoGen.Core/Extension/GroupChatExtension.cs
+++ b/dotnet/src/AutoGen.Core/Extension/GroupChatExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GroupChatExtension.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Extension/MessageExtension.cs b/dotnet/src/AutoGen.Core/Extension/MessageExtension.cs
index d948c0517..c5dbeb6da 100644
--- a/dotnet/src/AutoGen.Core/Extension/MessageExtension.cs
+++ b/dotnet/src/AutoGen.Core/Extension/MessageExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MessageExtension.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Extension/MiddlewareExtension.cs b/dotnet/src/AutoGen.Core/Extension/MiddlewareExtension.cs
index 5beed7fd8..70c5f9cec 100644
--- a/dotnet/src/AutoGen.Core/Extension/MiddlewareExtension.cs
+++ b/dotnet/src/AutoGen.Core/Extension/MiddlewareExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MiddlewareExtension.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Extension/PrintMessageMiddlewareExtension.cs b/dotnet/src/AutoGen.Core/Extension/PrintMessageMiddlewareExtension.cs
index 262b50d12..055186a23 100644
--- a/dotnet/src/AutoGen.Core/Extension/PrintMessageMiddlewareExtension.cs
+++ b/dotnet/src/AutoGen.Core/Extension/PrintMessageMiddlewareExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// PrintMessageMiddlewareExtension.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Extension/StreamingMiddlewareExtension.cs b/dotnet/src/AutoGen.Core/Extension/StreamingMiddlewareExtension.cs
index 2ec7b3f9f..a96792dae 100644
--- a/dotnet/src/AutoGen.Core/Extension/StreamingMiddlewareExtension.cs
+++ b/dotnet/src/AutoGen.Core/Extension/StreamingMiddlewareExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// StreamingMiddlewareExtension.cs
namespace AutoGen.Core;
diff --git a/dotnet/src/AutoGen.Core/Function/FunctionAttribute.cs b/dotnet/src/AutoGen.Core/Function/FunctionAttribute.cs
index 556c16436..bb37f1cb2 100644
--- a/dotnet/src/AutoGen.Core/Function/FunctionAttribute.cs
+++ b/dotnet/src/AutoGen.Core/Function/FunctionAttribute.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionAttribute.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/GroupChat/Graph.cs b/dotnet/src/AutoGen.Core/GroupChat/Graph.cs
index acff955a2..e21191ff9 100644
--- a/dotnet/src/AutoGen.Core/GroupChat/Graph.cs
+++ b/dotnet/src/AutoGen.Core/GroupChat/Graph.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Graph.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/GroupChat/IGroupChat.cs b/dotnet/src/AutoGen.Core/GroupChat/IGroupChat.cs
index a8c948cf5..311447929 100644
--- a/dotnet/src/AutoGen.Core/GroupChat/IGroupChat.cs
+++ b/dotnet/src/AutoGen.Core/GroupChat/IGroupChat.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// IGroupChat.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/GroupChat/RoundRobinGroupChat.cs b/dotnet/src/AutoGen.Core/GroupChat/RoundRobinGroupChat.cs
index b95cd1958..7ad9450d7 100644
--- a/dotnet/src/AutoGen.Core/GroupChat/RoundRobinGroupChat.cs
+++ b/dotnet/src/AutoGen.Core/GroupChat/RoundRobinGroupChat.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// RoundRobinGroupChat.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/ILLMConfig.cs b/dotnet/src/AutoGen.Core/ILLMConfig.cs
index fd2a90db0..b139d960f 100644
--- a/dotnet/src/AutoGen.Core/ILLMConfig.cs
+++ b/dotnet/src/AutoGen.Core/ILLMConfig.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ILLMConfig.cs
namespace AutoGen.Core;
diff --git a/dotnet/src/AutoGen.Core/Message/AggregateMessage.cs b/dotnet/src/AutoGen.Core/Message/AggregateMessage.cs
index c7eee1316..166b56b76 100644
--- a/dotnet/src/AutoGen.Core/Message/AggregateMessage.cs
+++ b/dotnet/src/AutoGen.Core/Message/AggregateMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AggregateMessage.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Message/IMessage.cs b/dotnet/src/AutoGen.Core/Message/IMessage.cs
index 9952cbf06..b6c15c48d 100644
--- a/dotnet/src/AutoGen.Core/Message/IMessage.cs
+++ b/dotnet/src/AutoGen.Core/Message/IMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// IMessage.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Message/ImageMessage.cs b/dotnet/src/AutoGen.Core/Message/ImageMessage.cs
index 93f6ca48a..369a3782d 100644
--- a/dotnet/src/AutoGen.Core/Message/ImageMessage.cs
+++ b/dotnet/src/AutoGen.Core/Message/ImageMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ImageMessage.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Message/Message.cs b/dotnet/src/AutoGen.Core/Message/Message.cs
index b31b413ec..c28fbcc9f 100644
--- a/dotnet/src/AutoGen.Core/Message/Message.cs
+++ b/dotnet/src/AutoGen.Core/Message/Message.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Message.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Message/MessageEnvelope.cs b/dotnet/src/AutoGen.Core/Message/MessageEnvelope.cs
index dc9709bbd..23c09dbe9 100644
--- a/dotnet/src/AutoGen.Core/Message/MessageEnvelope.cs
+++ b/dotnet/src/AutoGen.Core/Message/MessageEnvelope.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MessageEnvelope.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Message/MultiModalMessage.cs b/dotnet/src/AutoGen.Core/Message/MultiModalMessage.cs
index 9dd2a37af..501a2b6ed 100644
--- a/dotnet/src/AutoGen.Core/Message/MultiModalMessage.cs
+++ b/dotnet/src/AutoGen.Core/Message/MultiModalMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MultiModalMessage.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Message/Role.cs b/dotnet/src/AutoGen.Core/Message/Role.cs
index 8253543a8..07351ac6a 100644
--- a/dotnet/src/AutoGen.Core/Message/Role.cs
+++ b/dotnet/src/AutoGen.Core/Message/Role.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Role.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Message/TextMessage.cs b/dotnet/src/AutoGen.Core/Message/TextMessage.cs
index 9419c2b3b..cd4886ba6 100644
--- a/dotnet/src/AutoGen.Core/Message/TextMessage.cs
+++ b/dotnet/src/AutoGen.Core/Message/TextMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// TextMessage.cs
namespace AutoGen.Core;
diff --git a/dotnet/src/AutoGen.Core/Message/ToolCallAggregateMessage.cs b/dotnet/src/AutoGen.Core/Message/ToolCallAggregateMessage.cs
index 7d46d5613..5c494a0a0 100644
--- a/dotnet/src/AutoGen.Core/Message/ToolCallAggregateMessage.cs
+++ b/dotnet/src/AutoGen.Core/Message/ToolCallAggregateMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ToolCallAggregateMessage.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Message/ToolCallMessage.cs b/dotnet/src/AutoGen.Core/Message/ToolCallMessage.cs
index 8660b3230..2a2e7640f 100644
--- a/dotnet/src/AutoGen.Core/Message/ToolCallMessage.cs
+++ b/dotnet/src/AutoGen.Core/Message/ToolCallMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ToolCallMessage.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Message/ToolCallResultMessage.cs b/dotnet/src/AutoGen.Core/Message/ToolCallResultMessage.cs
index fa7357c94..32e6eaddf 100644
--- a/dotnet/src/AutoGen.Core/Message/ToolCallResultMessage.cs
+++ b/dotnet/src/AutoGen.Core/Message/ToolCallResultMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ToolCallResultMessage.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs
index ce87f6b98..a8d5b51d0 100644
--- a/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs
+++ b/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// DelegateMiddleware.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs
index 5e71b4d51..21461834d 100644
--- a/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs
+++ b/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionCallMiddleware.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Middleware/IMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/IMiddleware.cs
index 00ec5a97f..98ece77d3 100644
--- a/dotnet/src/AutoGen.Core/Middleware/IMiddleware.cs
+++ b/dotnet/src/AutoGen.Core/Middleware/IMiddleware.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// IMiddleware.cs
using System.Threading;
diff --git a/dotnet/src/AutoGen.Core/Middleware/IStreamingMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/IStreamingMiddleware.cs
index d550bdb51..e218d9f29 100644
--- a/dotnet/src/AutoGen.Core/Middleware/IStreamingMiddleware.cs
+++ b/dotnet/src/AutoGen.Core/Middleware/IStreamingMiddleware.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// IStreamingMiddleware.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Middleware/MiddlewareContext.cs b/dotnet/src/AutoGen.Core/Middleware/MiddlewareContext.cs
index a608d0baf..87337eee4 100644
--- a/dotnet/src/AutoGen.Core/Middleware/MiddlewareContext.cs
+++ b/dotnet/src/AutoGen.Core/Middleware/MiddlewareContext.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MiddlewareContext.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Core/Middleware/PrintMessageMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/PrintMessageMiddleware.cs
index a4e84de85..4cf7a6312 100644
--- a/dotnet/src/AutoGen.Core/Middleware/PrintMessageMiddleware.cs
+++ b/dotnet/src/AutoGen.Core/Middleware/PrintMessageMiddleware.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// PrintMessageMiddleware.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Orchestrator/IOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/IOrchestrator.cs
index 777834871..04988b2c9 100644
--- a/dotnet/src/AutoGen.Core/Orchestrator/IOrchestrator.cs
+++ b/dotnet/src/AutoGen.Core/Orchestrator/IOrchestrator.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// IOrchestrator.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs
index 6554eafb3..1df8ac401 100644
--- a/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs
+++ b/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// RolePlayOrchestrator.cs
using System;
diff --git a/dotnet/src/AutoGen.Core/Orchestrator/RoundRobinOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/RoundRobinOrchestrator.cs
index af5efdc0e..66080ec55 100644
--- a/dotnet/src/AutoGen.Core/Orchestrator/RoundRobinOrchestrator.cs
+++ b/dotnet/src/AutoGen.Core/Orchestrator/RoundRobinOrchestrator.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// RoundRobinOrchestrator.cs
using System.Linq;
diff --git a/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs
index 9acb081ca..ba1b33413 100644
--- a/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs
+++ b/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// WorkflowOrchestrator.cs
using System;
diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs
index 16a873173..88c1d9352 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// DotnetInteractiveFunction.cs
using System.Text;
diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs
index 2974f425b..98b3e547d 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// DotnetInteractiveKernelBuilder.cs
namespace AutoGen.DotnetInteractive;
diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs
index 6f516c530..6011f7ddd 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// DotnetInteractiveStdioKernelConnector.cs
using AutoGen.DotnetInteractive.Extension;
diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs
index 06acf27f1..b3ef6eea2 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AgentExtension.cs
using System.Text;
diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs
index 4934ff94c..d5fd9f65b 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// KernelExtension.cs
using Microsoft.DotNet.Interactive;
diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/MessageExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/MessageExtension.cs
index 6a8bf66c1..13f56056c 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/Extension/MessageExtension.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/Extension/MessageExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MessageExtension.cs
using System.Text.RegularExpressions;
diff --git a/dotnet/src/AutoGen.DotnetInteractive/GlobalUsing.cs b/dotnet/src/AutoGen.DotnetInteractive/GlobalUsing.cs
index d66bf001e..c73cd57e6 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/GlobalUsing.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/GlobalUsing.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GlobalUsing.cs
global using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs b/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs
index 6ddd3d6b4..98242f43f 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// InProccessDotnetInteractiveKernelBuilder.cs
#if NET8_0_OR_GREATER
diff --git a/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs b/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs
index 1aba5d569..d6f6e1c0a 100644
--- a/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs
+++ b/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// InteractiveService.cs
using System.Diagnostics;
diff --git a/dotnet/src/AutoGen.Gemini/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.Gemini/Extension/FunctionContractExtension.cs
index 64f78fa16..f800ef052 100644
--- a/dotnet/src/AutoGen.Gemini/Extension/FunctionContractExtension.cs
+++ b/dotnet/src/AutoGen.Gemini/Extension/FunctionContractExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionContractExtension.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Gemini/GeminiChatAgent.cs b/dotnet/src/AutoGen.Gemini/GeminiChatAgent.cs
index cf5fe36ea..07f8467ab 100644
--- a/dotnet/src/AutoGen.Gemini/GeminiChatAgent.cs
+++ b/dotnet/src/AutoGen.Gemini/GeminiChatAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GeminiChatAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs b/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs
index 7b380ecda..0482a1250 100644
--- a/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs
+++ b/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GoogleGeminiClient.cs
using System;
diff --git a/dotnet/src/AutoGen.Gemini/IGeminiClient.cs b/dotnet/src/AutoGen.Gemini/IGeminiClient.cs
index d391a4508..f1b6c6f19 100644
--- a/dotnet/src/AutoGen.Gemini/IGeminiClient.cs
+++ b/dotnet/src/AutoGen.Gemini/IGeminiClient.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// IGeminiClient.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Gemini/Middleware/GeminiAgentExtension.cs b/dotnet/src/AutoGen.Gemini/Middleware/GeminiAgentExtension.cs
index 7f10c7d8e..6ba47c757 100644
--- a/dotnet/src/AutoGen.Gemini/Middleware/GeminiAgentExtension.cs
+++ b/dotnet/src/AutoGen.Gemini/Middleware/GeminiAgentExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GeminiAgentExtension.cs
using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs b/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs
index ec00440f3..3ade56247 100644
--- a/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs
+++ b/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GeminiMessageConnector.cs
using System;
diff --git a/dotnet/src/AutoGen.Gemini/VertexGeminiClient.cs b/dotnet/src/AutoGen.Gemini/VertexGeminiClient.cs
index 12a11993c..51d1fc0c3 100644
--- a/dotnet/src/AutoGen.Gemini/VertexGeminiClient.cs
+++ b/dotnet/src/AutoGen.Gemini/VertexGeminiClient.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// VertexGeminiClient.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.LMStudio/GlobalUsing.cs b/dotnet/src/AutoGen.LMStudio/GlobalUsing.cs
index d66bf001e..c73cd57e6 100644
--- a/dotnet/src/AutoGen.LMStudio/GlobalUsing.cs
+++ b/dotnet/src/AutoGen.LMStudio/GlobalUsing.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GlobalUsing.cs
global using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs b/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs
index 534e54537..53e79b3b0 100644
--- a/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs
+++ b/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// LMStudioAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.LMStudio/LMStudioConfig.cs b/dotnet/src/AutoGen.LMStudio/LMStudioConfig.cs
index 5a359fd74..c068dff67 100644
--- a/dotnet/src/AutoGen.LMStudio/LMStudioConfig.cs
+++ b/dotnet/src/AutoGen.LMStudio/LMStudioConfig.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// LMStudioConfig.cs
using System;
diff --git a/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs b/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs
index e5a10220e..1d19e300c 100644
--- a/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs
+++ b/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MistralClientAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs b/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs
index 15199ae77..aa752d69c 100644
--- a/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs
+++ b/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// JsonPropertyNameEnumConverter.cs
using System;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionRequest.cs b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionRequest.cs
index affe2bb6d..7e8d39da8 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionRequest.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionRequest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatCompletionRequest.cs
using System;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs
index ff241f8d3..13e29e713 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatCompletionResponse.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ChatMessage.cs b/dotnet/src/AutoGen.Mistral/DTOs/ChatMessage.cs
index b0fa1757c..a82142582 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/ChatMessage.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/ChatMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatMessage.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Choice.cs b/dotnet/src/AutoGen.Mistral/DTOs/Choice.cs
index ef874c90a..df1975e2e 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/Choice.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/Choice.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Choice.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Error.cs b/dotnet/src/AutoGen.Mistral/DTOs/Error.cs
index 77eb2d341..8bddcfc77 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/Error.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/Error.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Error.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ErrorResponse.cs b/dotnet/src/AutoGen.Mistral/DTOs/ErrorResponse.cs
index ea3a999cc..07d1211af 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/ErrorResponse.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/ErrorResponse.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ErrorResponse.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/FunctionDefinition.cs b/dotnet/src/AutoGen.Mistral/DTOs/FunctionDefinition.cs
index 663920330..0b05ced97 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/FunctionDefinition.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/FunctionDefinition.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionDefinition.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Model.cs b/dotnet/src/AutoGen.Mistral/DTOs/Model.cs
index 915d2f737..70a4b3c99 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/Model.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/Model.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Model.cs
using System;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ResponseFormat.cs b/dotnet/src/AutoGen.Mistral/DTOs/ResponseFormat.cs
index 08a5c7426..f8e9ecef1 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/ResponseFormat.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/ResponseFormat.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ResponseFormat.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Tool.cs b/dotnet/src/AutoGen.Mistral/DTOs/Tool.cs
index 49e1a9b77..c52e57736 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/Tool.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/Tool.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Tool.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Usage.cs b/dotnet/src/AutoGen.Mistral/DTOs/Usage.cs
index 3e739e3bc..debe0e083 100644
--- a/dotnet/src/AutoGen.Mistral/DTOs/Usage.cs
+++ b/dotnet/src/AutoGen.Mistral/DTOs/Usage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Usage.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs
index 8637a07d3..f91151885 100644
--- a/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs
+++ b/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionContractExtension.cs
using System;
diff --git a/dotnet/src/AutoGen.Mistral/Extension/MistralAgentExtension.cs b/dotnet/src/AutoGen.Mistral/Extension/MistralAgentExtension.cs
index 787393d06..d2e042b4d 100644
--- a/dotnet/src/AutoGen.Mistral/Extension/MistralAgentExtension.cs
+++ b/dotnet/src/AutoGen.Mistral/Extension/MistralAgentExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MistralAgentExtension.cs
using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs b/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs
index 0650b3458..59d9e11f0 100644
--- a/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs
+++ b/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MistralChatMessageConnector.cs
using System;
diff --git a/dotnet/src/AutoGen.Mistral/MistralAIModelID.cs b/dotnet/src/AutoGen.Mistral/MistralAIModelID.cs
index a0571281c..fa80c7c1b 100644
--- a/dotnet/src/AutoGen.Mistral/MistralAIModelID.cs
+++ b/dotnet/src/AutoGen.Mistral/MistralAIModelID.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MistralAIModelID.cs
namespace AutoGen.Mistral;
diff --git a/dotnet/src/AutoGen.Mistral/MistralClient.cs b/dotnet/src/AutoGen.Mistral/MistralClient.cs
index 1394cc342..1b8898aba 100644
--- a/dotnet/src/AutoGen.Mistral/MistralClient.cs
+++ b/dotnet/src/AutoGen.Mistral/MistralClient.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MistralClient.cs
using System;
diff --git a/dotnet/src/AutoGen.Ollama/Agent/OllamaAgent.cs b/dotnet/src/AutoGen.Ollama/Agent/OllamaAgent.cs
index 87b176d8b..9f64c0dec 100644
--- a/dotnet/src/AutoGen.Ollama/Agent/OllamaAgent.cs
+++ b/dotnet/src/AutoGen.Ollama/Agent/OllamaAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OllamaAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ChatRequest.cs b/dotnet/src/AutoGen.Ollama/DTOs/ChatRequest.cs
index 3b0cf04a1..5b7f9e0ed 100644
--- a/dotnet/src/AutoGen.Ollama/DTOs/ChatRequest.cs
+++ b/dotnet/src/AutoGen.Ollama/DTOs/ChatRequest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatRequest.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ChatResponse.cs b/dotnet/src/AutoGen.Ollama/DTOs/ChatResponse.cs
index 7d8142de7..a65daae07 100644
--- a/dotnet/src/AutoGen.Ollama/DTOs/ChatResponse.cs
+++ b/dotnet/src/AutoGen.Ollama/DTOs/ChatResponse.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatResponse.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ChatResponseUpdate.cs b/dotnet/src/AutoGen.Ollama/DTOs/ChatResponseUpdate.cs
index 8b4dac194..0d697fb04 100644
--- a/dotnet/src/AutoGen.Ollama/DTOs/ChatResponseUpdate.cs
+++ b/dotnet/src/AutoGen.Ollama/DTOs/ChatResponseUpdate.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatResponseUpdate.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Ollama/DTOs/Message.cs b/dotnet/src/AutoGen.Ollama/DTOs/Message.cs
index 75f622ff7..5cfbce53d 100644
--- a/dotnet/src/AutoGen.Ollama/DTOs/Message.cs
+++ b/dotnet/src/AutoGen.Ollama/DTOs/Message.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Message.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ModelReplyOptions.cs b/dotnet/src/AutoGen.Ollama/DTOs/ModelReplyOptions.cs
index 9d54a1bb8..76eff9e03 100644
--- a/dotnet/src/AutoGen.Ollama/DTOs/ModelReplyOptions.cs
+++ b/dotnet/src/AutoGen.Ollama/DTOs/ModelReplyOptions.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ModelReplyOptions.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Ollama/DTOs/OllamaReplyOptions.cs b/dotnet/src/AutoGen.Ollama/DTOs/OllamaReplyOptions.cs
index c7c77d1db..4375af18f 100644
--- a/dotnet/src/AutoGen.Ollama/DTOs/OllamaReplyOptions.cs
+++ b/dotnet/src/AutoGen.Ollama/DTOs/OllamaReplyOptions.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OllamaReplyOptions.cs
using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/ITextEmbeddingService.cs b/dotnet/src/AutoGen.Ollama/Embeddings/ITextEmbeddingService.cs
index cce6dbb83..5ce0dc8cc 100644
--- a/dotnet/src/AutoGen.Ollama/Embeddings/ITextEmbeddingService.cs
+++ b/dotnet/src/AutoGen.Ollama/Embeddings/ITextEmbeddingService.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ITextEmbeddingService.cs
using System.Threading;
diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs b/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs
index 45c7d36f7..53608cc7b 100644
--- a/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs
+++ b/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OllamaTextEmbeddingService.cs
using System;
diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsRequest.cs b/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsRequest.cs
index d776b183d..7f2531c52 100644
--- a/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsRequest.cs
+++ b/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsRequest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// TextEmbeddingsRequest.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsResponse.cs b/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsResponse.cs
index f3ce64b70..580059c03 100644
--- a/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsResponse.cs
+++ b/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsResponse.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// TextEmbeddingsResponse.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.Ollama/Extension/OllamaAgentExtension.cs b/dotnet/src/AutoGen.Ollama/Extension/OllamaAgentExtension.cs
index 4c0df513e..1ab9d3263 100644
--- a/dotnet/src/AutoGen.Ollama/Extension/OllamaAgentExtension.cs
+++ b/dotnet/src/AutoGen.Ollama/Extension/OllamaAgentExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OllamaAgentExtension.cs
using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.Ollama/Middlewares/OllamaMessageConnector.cs b/dotnet/src/AutoGen.Ollama/Middlewares/OllamaMessageConnector.cs
index 9e85ca12f..45987cf20 100644
--- a/dotnet/src/AutoGen.Ollama/Middlewares/OllamaMessageConnector.cs
+++ b/dotnet/src/AutoGen.Ollama/Middlewares/OllamaMessageConnector.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OllamaMessageConnector.cs
using System;
diff --git a/dotnet/src/AutoGen.Ollama/OllamaConsts.cs b/dotnet/src/AutoGen.Ollama/OllamaConsts.cs
index f305446a9..88e980942 100644
--- a/dotnet/src/AutoGen.Ollama/OllamaConsts.cs
+++ b/dotnet/src/AutoGen.Ollama/OllamaConsts.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OllamaConsts.cs
namespace AutoGen.Ollama;
diff --git a/dotnet/src/AutoGen.OpenAI.V1/Agent/GPTAgent.cs b/dotnet/src/AutoGen.OpenAI.V1/Agent/GPTAgent.cs
index a32af5c38..520806128 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/Agent/GPTAgent.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/Agent/GPTAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GPTAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.OpenAI.V1/Agent/OpenAIChatAgent.cs b/dotnet/src/AutoGen.OpenAI.V1/Agent/OpenAIChatAgent.cs
index 2305536b4..2d81c05ca 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/Agent/OpenAIChatAgent.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/Agent/OpenAIChatAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.OpenAI.V1/AzureOpenAIConfig.cs b/dotnet/src/AutoGen.OpenAI.V1/AzureOpenAIConfig.cs
index 2be8f21dc..f8c88a26d 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/AzureOpenAIConfig.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/AzureOpenAIConfig.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AzureOpenAIConfig.cs
namespace AutoGen.OpenAI.V1;
diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs
index e48670574..5add7d0c7 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionContractExtension.cs
using System;
diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs
index dd80333fe..1797d42f4 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MessageExtension.cs
using System;
diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/OpenAIAgentExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/OpenAIAgentExtension.cs
index 6c0df8e0e..bef8be01e 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/Extension/OpenAIAgentExtension.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/Extension/OpenAIAgentExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIAgentExtension.cs
namespace AutoGen.OpenAI.V1.Extension;
diff --git a/dotnet/src/AutoGen.OpenAI.V1/GlobalUsing.cs b/dotnet/src/AutoGen.OpenAI.V1/GlobalUsing.cs
index d66bf001e..c73cd57e6 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/GlobalUsing.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/GlobalUsing.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GlobalUsing.cs
global using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs b/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs
index 8603b8a1a..57220e67e 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatRequestMessageConnector.cs
using System;
diff --git a/dotnet/src/AutoGen.OpenAI.V1/OpenAIConfig.cs b/dotnet/src/AutoGen.OpenAI.V1/OpenAIConfig.cs
index 592647cc2..86efb9056 100644
--- a/dotnet/src/AutoGen.OpenAI.V1/OpenAIConfig.cs
+++ b/dotnet/src/AutoGen.OpenAI.V1/OpenAIConfig.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIConfig.cs
namespace AutoGen.OpenAI.V1;
diff --git a/dotnet/src/AutoGen.OpenAI/Agent/OpenAIChatAgent.cs b/dotnet/src/AutoGen.OpenAI/Agent/OpenAIChatAgent.cs
index b0085d0f3..c821e5907 100644
--- a/dotnet/src/AutoGen.OpenAI/Agent/OpenAIChatAgent.cs
+++ b/dotnet/src/AutoGen.OpenAI/Agent/OpenAIChatAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.OpenAI/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.OpenAI/Extension/FunctionContractExtension.cs
index dd1c1125a..15fe67fa5 100644
--- a/dotnet/src/AutoGen.OpenAI/Extension/FunctionContractExtension.cs
+++ b/dotnet/src/AutoGen.OpenAI/Extension/FunctionContractExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionContractExtension.cs
using System;
diff --git a/dotnet/src/AutoGen.OpenAI/Extension/OpenAIAgentExtension.cs b/dotnet/src/AutoGen.OpenAI/Extension/OpenAIAgentExtension.cs
index 1e8ae5895..89c0e1bbd 100644
--- a/dotnet/src/AutoGen.OpenAI/Extension/OpenAIAgentExtension.cs
+++ b/dotnet/src/AutoGen.OpenAI/Extension/OpenAIAgentExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIAgentExtension.cs
namespace AutoGen.OpenAI.Extension;
diff --git a/dotnet/src/AutoGen.OpenAI/GlobalUsing.cs b/dotnet/src/AutoGen.OpenAI/GlobalUsing.cs
index d66bf001e..c73cd57e6 100644
--- a/dotnet/src/AutoGen.OpenAI/GlobalUsing.cs
+++ b/dotnet/src/AutoGen.OpenAI/GlobalUsing.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GlobalUsing.cs
global using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs b/dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs
index 77725bc0f..2e4ed3e8d 100644
--- a/dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs
+++ b/dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatRequestMessageConnector.cs
using System;
@@ -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[0];
+ var textContent = chatCompletion.Content is { Count: > 0 } ? chatCompletion.Content[0] : null;
// if tool calls is not empty, return ToolCallMessage
if (chatCompletion.ToolCalls is { Count: > 0 })
diff --git a/dotnet/src/AutoGen.SemanticKernel/Extension/KernelExtension.cs b/dotnet/src/AutoGen.SemanticKernel/Extension/KernelExtension.cs
index 8eb11934d..4a27f1d22 100644
--- a/dotnet/src/AutoGen.SemanticKernel/Extension/KernelExtension.cs
+++ b/dotnet/src/AutoGen.SemanticKernel/Extension/KernelExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// KernelExtension.cs
using System.Linq;
diff --git a/dotnet/src/AutoGen.SemanticKernel/Extension/SemanticKernelAgentExtension.cs b/dotnet/src/AutoGen.SemanticKernel/Extension/SemanticKernelAgentExtension.cs
index 4d450945d..a1651549d 100644
--- a/dotnet/src/AutoGen.SemanticKernel/Extension/SemanticKernelAgentExtension.cs
+++ b/dotnet/src/AutoGen.SemanticKernel/Extension/SemanticKernelAgentExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// SemanticKernelAgentExtension.cs
namespace AutoGen.SemanticKernel.Extension;
diff --git a/dotnet/src/AutoGen.SemanticKernel/GlobalUsing.cs b/dotnet/src/AutoGen.SemanticKernel/GlobalUsing.cs
index d66bf001e..c73cd57e6 100644
--- a/dotnet/src/AutoGen.SemanticKernel/GlobalUsing.cs
+++ b/dotnet/src/AutoGen.SemanticKernel/GlobalUsing.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GlobalUsing.cs
global using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.SemanticKernel/Middleware/KernelPluginMiddleware.cs b/dotnet/src/AutoGen.SemanticKernel/Middleware/KernelPluginMiddleware.cs
index 628915a03..e21aaa531 100644
--- a/dotnet/src/AutoGen.SemanticKernel/Middleware/KernelPluginMiddleware.cs
+++ b/dotnet/src/AutoGen.SemanticKernel/Middleware/KernelPluginMiddleware.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// KernelPluginMiddleware.cs
using System;
diff --git a/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs b/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs
index 2e6999431..073709eba 100644
--- a/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs
+++ b/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// SemanticKernelChatMessageContentConnector.cs
using System;
diff --git a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs
index e0b2449b7..ae7251e14 100644
--- a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs
+++ b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// SemanticKernelAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelChatCompletionAgent.cs b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelChatCompletionAgent.cs
index 135499643..947807806 100644
--- a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelChatCompletionAgent.cs
+++ b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelChatCompletionAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// SemanticKernelChatCompletionAgent.cs
using System;
diff --git a/dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.cs b/dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.cs
index a09c77c2d..0892d597a 100644
--- a/dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.cs
+++ b/dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// DocumentCommentExtension.cs
using System;
diff --git a/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs b/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs
index 927236302..4fa6169f7 100644
--- a/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs
+++ b/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionCallGenerator.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen.SourceGenerator/FunctionExtension.cs b/dotnet/src/AutoGen.SourceGenerator/FunctionExtension.cs
index cfb77d26a..e2ba3d383 100644
--- a/dotnet/src/AutoGen.SourceGenerator/FunctionExtension.cs
+++ b/dotnet/src/AutoGen.SourceGenerator/FunctionExtension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionExtension.cs
using AutoGen.SourceGenerator;
diff --git a/dotnet/src/AutoGen.SourceGenerator/SourceGeneratorFunctionContract.cs b/dotnet/src/AutoGen.SourceGenerator/SourceGeneratorFunctionContract.cs
index aa4980379..45650fb01 100644
--- a/dotnet/src/AutoGen.SourceGenerator/SourceGeneratorFunctionContract.cs
+++ b/dotnet/src/AutoGen.SourceGenerator/SourceGeneratorFunctionContract.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// SourceGeneratorFunctionContract.cs
namespace AutoGen.SourceGenerator
diff --git a/dotnet/src/AutoGen.WebAPI/Extension.cs b/dotnet/src/AutoGen.WebAPI/Extension.cs
index c8534e43e..54eec0ac8 100644
--- a/dotnet/src/AutoGen.WebAPI/Extension.cs
+++ b/dotnet/src/AutoGen.WebAPI/Extension.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Extension.cs
using AutoGen.Core;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/Converter/OpenAIMessageConverter.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/Converter/OpenAIMessageConverter.cs
index 888a0f8dd..3d5e1b1c5 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/Converter/OpenAIMessageConverter.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/Converter/OpenAIMessageConverter.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIMessageConverter.cs
using System;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIAssistantMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIAssistantMessage.cs
index bfd090358..b4bf2b181 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIAssistantMessage.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIAssistantMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIAssistantMessage.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletion.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletion.cs
index 041f4cfc8..f0f5d2752 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletion.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletion.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatCompletion.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionChoice.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionChoice.cs
index 35b6fce59..c84a05950 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionChoice.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionChoice.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatCompletionChoice.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionMessage.cs
index de6be0dbf..c7c7ccf50 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionMessage.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatCompletionMessage.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionOption.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionOption.cs
index 0b9137d43..680aff243 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionOption.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionOption.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatCompletionOption.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionUsage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionUsage.cs
index f196ccb84..61d00fa8a 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionUsage.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionUsage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatCompletionUsage.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIImageUrlObject.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIImageUrlObject.cs
index a50012c9f..2669a41c3 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIImageUrlObject.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIImageUrlObject.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIImageUrlObject.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.cs
index deb729b72..2f9dc58f6 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIMessage.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIStreamOptions.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIStreamOptions.cs
index e95991388..3a64fe490 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIStreamOptions.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIStreamOptions.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIStreamOptions.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAISystemMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAISystemMessage.cs
index f29b10826..f02181e3d 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAISystemMessage.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAISystemMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAISystemMessage.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolCallObject.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolCallObject.cs
index f3fc37f9c..a12ce5798 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolCallObject.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolCallObject.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIToolCallObject.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.cs
index 0c84c164c..82509b558 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIToolMessage.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserImageContent.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserImageContent.cs
index 28b83ffb3..2870568ed 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserImageContent.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserImageContent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIUserImageContent.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.cs
index b5f1e7c50..07ab39b8e 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIUserMessage.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessageItem.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessageItem.cs
index 94e7d9153..2da2b0e96 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessageItem.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessageItem.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIUserMessageItem.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMultiModalMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMultiModalMessage.cs
index 789df5afa..6eba2d57f 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMultiModalMessage.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMultiModalMessage.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIUserMultiModalMessage.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserTextContent.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserTextContent.cs
index d22d5aa4c..d38d97bcb 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserTextContent.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserTextContent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIUserTextContent.cs
using System.Text.Json.Serialization;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/Service/OpenAIChatCompletionService.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/Service/OpenAIChatCompletionService.cs
index 80d49050e..2dea134f2 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAI/Service/OpenAIChatCompletionService.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAI/Service/OpenAIChatCompletionService.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatCompletionService.cs
using System;
diff --git a/dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.cs b/dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.cs
index 53b3699fd..6e869e5fd 100644
--- a/dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.cs
+++ b/dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatCompletionMiddleware.cs
using System.Text.Json;
diff --git a/dotnet/src/AutoGen/API/LLMConfigAPI.cs b/dotnet/src/AutoGen/API/LLMConfigAPI.cs
index 28b5ad443..4f4e7575d 100644
--- a/dotnet/src/AutoGen/API/LLMConfigAPI.cs
+++ b/dotnet/src/AutoGen/API/LLMConfigAPI.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// LLMConfigAPI.cs
using System;
diff --git a/dotnet/src/AutoGen/Agent/AssistantAgent.cs b/dotnet/src/AutoGen/Agent/AssistantAgent.cs
index 06f65042a..1b3c67290 100644
--- a/dotnet/src/AutoGen/Agent/AssistantAgent.cs
+++ b/dotnet/src/AutoGen/Agent/AssistantAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AssistantAgent.cs
using System;
diff --git a/dotnet/src/AutoGen/Agent/ConversableAgent.cs b/dotnet/src/AutoGen/Agent/ConversableAgent.cs
index da61c812f..64441bdd1 100644
--- a/dotnet/src/AutoGen/Agent/ConversableAgent.cs
+++ b/dotnet/src/AutoGen/Agent/ConversableAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ConversableAgent.cs
using System;
diff --git a/dotnet/src/AutoGen/Agent/UserProxyAgent.cs b/dotnet/src/AutoGen/Agent/UserProxyAgent.cs
index a48f07006..833e45522 100644
--- a/dotnet/src/AutoGen/Agent/UserProxyAgent.cs
+++ b/dotnet/src/AutoGen/Agent/UserProxyAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// UserProxyAgent.cs
using System;
diff --git a/dotnet/src/AutoGen/AzureOpenAIConfig.cs b/dotnet/src/AutoGen/AzureOpenAIConfig.cs
index 6112a3815..b93a6821a 100644
--- a/dotnet/src/AutoGen/AzureOpenAIConfig.cs
+++ b/dotnet/src/AutoGen/AzureOpenAIConfig.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AzureOpenAIConfig.cs
using Azure.AI.OpenAI;
diff --git a/dotnet/src/AutoGen/ConversableAgentConfig.cs b/dotnet/src/AutoGen/ConversableAgentConfig.cs
index 50a83ba86..9d1e73f50 100644
--- a/dotnet/src/AutoGen/ConversableAgentConfig.cs
+++ b/dotnet/src/AutoGen/ConversableAgentConfig.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ConversableAgentConfig.cs
using System.Collections.Generic;
diff --git a/dotnet/src/AutoGen/GlobalUsing.cs b/dotnet/src/AutoGen/GlobalUsing.cs
index d66bf001e..c73cd57e6 100644
--- a/dotnet/src/AutoGen/GlobalUsing.cs
+++ b/dotnet/src/AutoGen/GlobalUsing.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GlobalUsing.cs
global using AutoGen.Core;
diff --git a/dotnet/src/AutoGen/LMStudioConfig.cs b/dotnet/src/AutoGen/LMStudioConfig.cs
index 5fd9edc70..e301c0eb1 100644
--- a/dotnet/src/AutoGen/LMStudioConfig.cs
+++ b/dotnet/src/AutoGen/LMStudioConfig.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// LMStudioConfig.cs
using System;
using OpenAI;
diff --git a/dotnet/src/AutoGen/Middleware/HumanInputMiddleware.cs b/dotnet/src/AutoGen/Middleware/HumanInputMiddleware.cs
index eda3c001a..14a42e86f 100644
--- a/dotnet/src/AutoGen/Middleware/HumanInputMiddleware.cs
+++ b/dotnet/src/AutoGen/Middleware/HumanInputMiddleware.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// HumanInputMiddleware.cs
using System;
diff --git a/dotnet/src/AutoGen/OpenAIConfig.cs b/dotnet/src/AutoGen/OpenAIConfig.cs
index ea50fa085..ff9484f91 100644
--- a/dotnet/src/AutoGen/OpenAIConfig.cs
+++ b/dotnet/src/AutoGen/OpenAIConfig.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIConfig.cs
using OpenAI;
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentBase.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentBase.cs
index b9a3a8b36..9171b548b 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentBase.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentBase.cs
@@ -1,10 +1,10 @@
-using Microsoft.AutoGen.Agents.Abstractions;
-using System.Threading.Channels;
-using Microsoft.Extensions.Logging;
-using System.Text.Json;
using System.Diagnostics;
using System.Text;
+using System.Text.Json;
+using System.Threading.Channels;
using Google.Protobuf;
+using Microsoft.AutoGen.Agents.Abstractions;
+using Microsoft.Extensions.Logging;
namespace Microsoft.AutoGen.Agents.Client;
@@ -13,7 +13,7 @@ public abstract class AgentBase
public static readonly ActivitySource s_source = new("AutoGen.Agent");
private readonly object _lock = new();
private readonly Dictionary<string, TaskCompletionSource<RpcResponse>> _pendingRequests = [];
-
+
private readonly Channel<object> _mailbox = Channel.CreateUnbounded<object>();
private readonly IAgentContext _context;
@@ -79,8 +79,6 @@ public abstract class AgentBase
}
}
-
-
private async Task HandleRpcMessage(Message msg)
{
switch (msg.MessageCase)
@@ -150,7 +148,8 @@ public abstract class AgentBase
Target = target,
RequestId = requestId,
Method = method,
- Payload = new Payload{
+ Payload = new Payload
+ {
DataType = "application/json",
Data = ByteString.CopyFrom(JsonSerializer.Serialize(parameters), Encoding.UTF8),
DataContentType = "application/json"
@@ -212,12 +211,7 @@ public abstract class AgentBase
var payload = item.ProtoData.Unpack(EventTypes.TypeRegistry);
var convertedPayload = Convert.ChangeType(payload, EventTypes.Types[item.Type]);
var genericInterfaceType = typeof(IHandle<>).MakeGenericType(EventTypes.Types[item.Type]);
- var methodInfo = genericInterfaceType.GetMethod(nameof(IHandle<object>.Handle));
- if (methodInfo == null)
- {
- throw new InvalidOperationException($"Method not found on type {genericInterfaceType.FullName}");
- }
-
+ var methodInfo = genericInterfaceType.GetMethod(nameof(IHandle<object>.Handle)) ?? throw new InvalidOperationException($"Method not found on type {genericInterfaceType.FullName}");
return methodInfo.Invoke(this, [payload]) as Task ?? Task.CompletedTask;
}
return Task.CompletedTask;
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentBaseExtensions.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentBaseExtensions.cs
index c4b87a28d..126b02df1 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentBaseExtensions.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentBaseExtensions.cs
@@ -4,7 +4,6 @@ namespace Microsoft.AutoGen.Agents.Client;
public static class AgentBaseExtensions
{
-
public static Activity? ExtractActivity(this AgentBase agent, string activityName, IDictionary<string, string> metadata)
{
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentClient.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentClient.cs
index 1b571bb85..f661eaa58 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentClient.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentClient.cs
@@ -1,14 +1,14 @@
using System.Diagnostics;
using Microsoft.AutoGen.Agents.Abstractions;
-using Microsoft.Extensions.Logging;
using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Logging;
namespace Microsoft.AutoGen.Agents.Client;
// TODO: Extract this to be part of the Client
public sealed class AgentClient(ILogger<AgentClient> logger, AgentWorkerRuntime runtime, DistributedContextPropagator distributedContextPropagator,
[FromKeyedServices("EventTypes")] EventTypes eventTypes)
- : AgentBase(new ClientContext(logger, runtime, distributedContextPropagator), eventTypes )
+ : AgentBase(new ClientContext(logger, runtime, distributedContextPropagator), eventTypes)
{
public async ValueTask PublishEventAsync(CloudEvent evt) => await PublishEvent(evt);
public async ValueTask<RpcResponse> SendRequestAsync(AgentId target, string method, Dictionary<string, string> parameters) => await RequestAsync(target, method, parameters);
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentContext.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentContext.cs
index bb4f8c5d8..0d28cf37d 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentContext.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentContext.cs
@@ -1,6 +1,6 @@
+using System.Diagnostics;
using Microsoft.AutoGen.Agents.Abstractions;
using Microsoft.Extensions.Logging;
-using System.Diagnostics;
namespace Microsoft.AutoGen.Agents.Client;
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentWorkerRuntime.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentWorkerRuntime.cs
index ea07f511f..a3e52adef 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentWorkerRuntime.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentWorkerRuntime.cs
@@ -1,12 +1,12 @@
-using Microsoft.AutoGen.Agents.Abstractions;
-using Grpc.Core;
-using Microsoft.Extensions.Hosting;
using System.Collections.Concurrent;
-using Microsoft.Extensions.Logging;
-using Microsoft.Extensions.DependencyInjection;
-using System.Threading.Channels;
using System.Diagnostics;
using System.Reflection;
+using System.Threading.Channels;
+using Grpc.Core;
+using Microsoft.AutoGen.Agents.Abstractions;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Logging;
namespace Microsoft.AutoGen.Agents.Client;
@@ -86,7 +86,7 @@ public sealed class AgentWorkerRuntime : IHostedService, IDisposable, IAgentWork
// i.e, assume each agent type implicitly subscribes to each event.
var item = message.CloudEvent;
-
+
foreach (var (typeName, _) in _agentTypes)
{
var agent = GetOrActivateAgent(new AgentId(typeName, item.Source));
@@ -167,12 +167,12 @@ public sealed class AgentWorkerRuntime : IHostedService, IDisposable, IAgentWork
{
if (_agentTypes.TryAdd(type, agentType))
{
- var events = agentType.GetInterfaces()
- .Where(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IHandle<>))
- .Select(i => i.GetGenericArguments().First().Name);
+ var events = agentType.GetInterfaces()
+ .Where(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IHandle<>))
+ .Select(i => i.GetGenericArguments().First().Name);
var state = agentType.BaseType?.GetGenericArguments().First();
- var topicTypes = agentType.GetCustomAttributes<TopicSubscriptionAttribute>().Select(t=> t.Topic);
-
+ var topicTypes = agentType.GetCustomAttributes<TopicSubscriptionAttribute>().Select(t => t.Topic);
+
await WriteChannelAsync(new Message
{
RegisterAgentTypeRequest = new RegisterAgentTypeRequest
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/ConsoleAgent/ConsoleAgent.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/ConsoleAgent/ConsoleAgent.cs
index 1489c4864..2fda5654f 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/ConsoleAgent/ConsoleAgent.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/ConsoleAgent/ConsoleAgent.cs
@@ -10,7 +10,7 @@ public class ConsoleAgent : IOAgent<AgentState>,
{
// instead of the primary constructor above, make a constructr here that still calls the base constructor
- public ConsoleAgent(IAgentContext context, [FromKeyedServices("EventTypes")] EventTypes typeRegistry) : base(context, typeRegistry)
+ public ConsoleAgent(IAgentContext context, [FromKeyedServices("EventTypes")] EventTypes typeRegistry) : base(context, typeRegistry)
{
_route = "console";
}
@@ -56,4 +56,4 @@ public class ConsoleAgent : IOAgent<AgentState>,
public interface IUseConsole
{
public Task ProcessOutput(string message);
-}
\ No newline at end of file
+}
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/FileAgent/FileAgent.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/FileAgent/FileAgent.cs
index 13f7f9342..f276b830d 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/FileAgent/FileAgent.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/FileAgent/FileAgent.cs
@@ -80,4 +80,4 @@ public class FileAgent : IOAgent<AgentState>,
public interface IUseFiles
{
-}
\ No newline at end of file
+}
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/IOAgent.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/IOAgent.cs
index a18ed3c3a..a49082bf1 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/IOAgent.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/IOAgent.cs
@@ -6,8 +6,8 @@ public abstract class IOAgent<T> : AgentBase where T : class, new()
{
protected AgentState<T> _state;
public string _route = "base";
-
- public IOAgent(IAgentContext context, EventTypes typeRegistry) : base(context, typeRegistry)
+
+ public IOAgent(IAgentContext context, EventTypes typeRegistry) : base(context, typeRegistry)
{
_state = new();
}
@@ -34,4 +34,4 @@ public abstract class IOAgent<T> : AgentBase where T : class, new()
public abstract Task ProcessInput(string message);
public abstract Task ProcessOutput(string message);
-}
\ No newline at end of file
+}
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/WebAPIAgent/WebAPIAgent.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/WebAPIAgent/WebAPIAgent.cs
index 84f95c96b..b7e3abbc5 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/WebAPIAgent/WebAPIAgent.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/WebAPIAgent/WebAPIAgent.cs
@@ -1,8 +1,8 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
+using Microsoft.AutoGen.Agents.Abstractions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
-using Microsoft.AutoGen.Agents.Abstractions;
namespace Microsoft.AutoGen.Agents.Client;
@@ -87,4 +87,4 @@ public class WebAPIAgent : IOAgent<AgentState>,
public interface IUseWebAPI
{
-}
\ No newline at end of file
+}
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/HostBuilderExtensions.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/HostBuilderExtensions.cs
index c6ad2d46b..d0b0a71a2 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/HostBuilderExtensions.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/HostBuilderExtensions.cs
@@ -1,14 +1,14 @@
-using Microsoft.AutoGen.Agents.Abstractions;
-using Grpc.Core;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.DependencyInjection;
-using Grpc.Net.Client.Configuration;
using System.Diagnostics;
-using Microsoft.Extensions.DependencyInjection.Extensions;
+using System.Diagnostics.CodeAnalysis;
using System.Reflection;
-using Google.Protobuf.Reflection;
using Google.Protobuf;
-using System.Diagnostics.CodeAnalysis;
+using Google.Protobuf.Reflection;
+using Grpc.Core;
+using Grpc.Net.Client.Configuration;
+using Microsoft.AutoGen.Agents.Abstractions;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection.Extensions;
+using Microsoft.Extensions.Hosting;
namespace Microsoft.AutoGen.Agents.Client;
@@ -50,24 +50,25 @@ public static class HostBuilderExtensions
builder.Services.TryAddSingleton(DistributedContextPropagator.Current);
builder.Services.AddSingleton<AgentWorkerRuntime>();
builder.Services.AddSingleton<IHostedService>(sp => sp.GetRequiredService<AgentWorkerRuntime>());
- builder.Services.AddKeyedSingleton("EventTypes", (sp, key) => {
+ builder.Services.AddKeyedSingleton("EventTypes", (sp, key) =>
+ {
var interfaceType = typeof(IMessage);
var pairs = AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(assembly => assembly.GetTypes())
.Where(type => interfaceType.IsAssignableFrom(type) && type.IsClass && !type.IsAbstract)
.Select(t => (t, GetMessageDescriptor(t)));
- var descriptors = pairs.Select( t => t.Item2);
+ var descriptors = pairs.Select(t => t.Item2);
var typeRegistry = TypeRegistry.FromMessages(descriptors);
- var types = pairs.ToDictionary(item => item.Item2?.FullName??"", item => item.t);
+ var types = pairs.ToDictionary(item => item.Item2?.FullName ?? "", item => item.t);
var eventsMap = AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(assembly => assembly.GetTypes())
.Where(type => IsSubclassOfGeneric(type, typeof(AiAgent<>)) && !type.IsAbstract)
- .Select(t => (t,t.GetInterfaces()
+ .Select(t => (t, t.GetInterfaces()
.Where(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IHandle<>))
- .Select(i => (GetMessageDescriptor(i.GetGenericArguments().First())?.FullName??"")).ToHashSet()))
- .ToDictionary(item => item.t, item=>item.Item2);
+ .Select(i => (GetMessageDescriptor(i.GetGenericArguments().First())?.FullName ?? "")).ToHashSet()))
+ .ToDictionary(item => item.t, item => item.Item2);
return new EventTypes(typeRegistry, types, eventsMap);
});
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/IAgentContext.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/IAgentContext.cs
index 230c53220..fc9093aec 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Client/IAgentContext.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Client/IAgentContext.cs
@@ -1,6 +1,6 @@
+using System.Diagnostics;
using Microsoft.AutoGen.Agents.Abstractions;
using Microsoft.Extensions.Logging;
-using System.Diagnostics;
namespace Microsoft.AutoGen.Agents.Client;
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Extensions/CloudEvents/CloudEventExtensions.cs b/dotnet/src/Microsoft.AutoGen.Agents.Extensions/CloudEvents/CloudEventExtensions.cs
index fd4ca7cfe..e90d9b09c 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Extensions/CloudEvents/CloudEventExtensions.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Extensions/CloudEvents/CloudEventExtensions.cs
@@ -1,6 +1,6 @@
-using Microsoft.AutoGen.Agents.Abstractions;
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
+using Microsoft.AutoGen.Agents.Abstractions;
namespace Microsoft.AutoGen.Agents.Runtime;
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Options/OpenAIOptions.cs b/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Options/OpenAIOptions.cs
index 8df66294e..a2ac92c3b 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Options/OpenAIOptions.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Options/OpenAIOptions.cs
@@ -27,4 +27,4 @@ public class OpenAIOptions
public required string ImageApiKey { get; set; }
// When using OpenAI, this is not required.
public required string ImageDeploymentOrModelId { get; set; }
-}
\ No newline at end of file
+}
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Options/QdrantOptions.cs b/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Options/QdrantOptions.cs
index 0d0b739af..6149aa423 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Options/QdrantOptions.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/Options/QdrantOptions.cs
@@ -7,5 +7,5 @@ public class QdrantOptions
public required string Endpoint { get; set; }
[Required]
public required int VectorSize { get; set; }
- public string ApiKey { get; set; } = "";
-}
\ No newline at end of file
+ public string ApiKey { get; set; } = "";
+}
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/SemanticKernelHostingExtensions.cs b/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/SemanticKernelHostingExtensions.cs
index 9d88a220e..c224a52aa 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/SemanticKernelHostingExtensions.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Extensions/SemanticKernel/SemanticKernelHostingExtensions.cs
@@ -45,12 +45,13 @@ public static class SemanticKernelHostingExtensions
return builder;
}
- static ISemanticTextMemory CreateMemory(IServiceProvider provider)
+ private static ISemanticTextMemory CreateMemory(IServiceProvider provider)
{
var qdrantConfig = provider.GetRequiredService<IOptions<QdrantOptions>>().Value;
var openAiConfig = provider.GetRequiredService<IOptions<OpenAIOptions>>().Value;
var qdrantHttpClient = new HttpClient();
- if (!string.IsNullOrEmpty(qdrantConfig.ApiKey)) {
+ if (!string.IsNullOrEmpty(qdrantConfig.ApiKey))
+ {
qdrantHttpClient.DefaultRequestHeaders.Add("api-key", qdrantConfig.ApiKey);
}
var loggerFactory = provider.GetRequiredService<ILoggerFactory>();
@@ -61,7 +62,7 @@ public static class SemanticKernelHostingExtensions
.Build();
}
- static Kernel CreateKernel(IServiceProvider provider)
+ private static Kernel CreateKernel(IServiceProvider provider)
{
OpenAIOptions openAiConfig = provider.GetRequiredService<IOptions<OpenAIOptions>>().Value;
var builder = Kernel.CreateBuilder();
@@ -104,4 +105,4 @@ public static class SemanticKernelHostingExtensions
return builder.Build();
}
-}
\ No newline at end of file
+}
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/AgentWorkerHostingExtensions.cs b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/AgentWorkerHostingExtensions.cs
index 3e3ecf633..ee646bb55 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/AgentWorkerHostingExtensions.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/AgentWorkerHostingExtensions.cs
@@ -1,9 +1,9 @@
+using System.Diagnostics;
using Microsoft.AspNetCore.Builder;
-using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.DependencyInjection;
-using Orleans.Serialization;
using Microsoft.Extensions.DependencyInjection.Extensions;
-using System.Diagnostics;
+using Microsoft.Extensions.Hosting;
+using Orleans.Serialization;
namespace Microsoft.AutoGen.Agents.Runtime;
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/IAgentStateGrain.cs b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/IAgentStateGrain.cs
index 8d61066c9..d8a11c236 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/IAgentStateGrain.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/IAgentStateGrain.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.AutoGen.Agents.Runtime;
+namespace Microsoft.AutoGen.Agents.Runtime;
internal interface IAgentStateGrain : IGrainWithStringKey
{
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/IAgentWorkerRegistryGrain.cs b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/IAgentWorkerRegistryGrain.cs
index 3a50fb3d1..72ff23e18 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/IAgentWorkerRegistryGrain.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/IAgentWorkerRegistryGrain.cs
@@ -1,4 +1,4 @@
-using Microsoft.AutoGen.Agents.Abstractions;
+using Microsoft.AutoGen.Agents.Abstractions;
namespace Microsoft.AutoGen.Agents.Runtime;
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerGateway.cs b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerGateway.cs
index 742aa823a..1d3af9f5a 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerGateway.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerGateway.cs
@@ -1,8 +1,8 @@
+using System.Collections.Concurrent;
using Grpc.Core;
using Microsoft.AutoGen.Agents.Abstractions;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
-using System.Collections.Concurrent;
namespace Microsoft.AutoGen.Agents.Runtime;
@@ -76,7 +76,7 @@ internal sealed class WorkerGateway : BackgroundService, IWorkerGateway
return response;
}
- void DispatchResponse(WorkerProcessConnection connection, RpcResponse response)
+ private void DispatchResponse(WorkerProcessConnection connection, RpcResponse response)
{
if (!_pendingRequests.TryRemove((connection, response.RequestId), out var completion))
{
@@ -136,7 +136,7 @@ internal sealed class WorkerGateway : BackgroundService, IWorkerGateway
};
}
- async ValueTask RegisterAgentTypeAsync(WorkerProcessConnection connection, RegisterAgentTypeRequest msg)
+ private async ValueTask RegisterAgentTypeAsync(WorkerProcessConnection connection, RegisterAgentTypeRequest msg)
{
connection.AddSupportedType(msg.Type);
_supportedAgentTypes.GetOrAdd(msg.Type, _ => []).Add(connection);
@@ -144,7 +144,7 @@ internal sealed class WorkerGateway : BackgroundService, IWorkerGateway
await _gatewayRegistry.RegisterAgentType(msg.Type, _reference);
}
- async ValueTask DispatchEventAsync(CloudEvent evt)
+ private async ValueTask DispatchEventAsync(CloudEvent evt)
{
await BroadcastEvent(evt);
/*
@@ -153,7 +153,7 @@ internal sealed class WorkerGateway : BackgroundService, IWorkerGateway
*/
}
- async ValueTask DispatchRequestAsync(WorkerProcessConnection connection, RpcRequest request)
+ private async ValueTask DispatchRequestAsync(WorkerProcessConnection connection, RpcRequest request)
{
var requestId = request.RequestId;
if (request.Target is null)
@@ -178,23 +178,23 @@ internal sealed class WorkerGateway : BackgroundService, IWorkerGateway
else
{
*/
- await InvokeRequestDelegate(connection, request, async request =>
+ await InvokeRequestDelegate(connection, request, async request =>
+ {
+ var (gateway, isPlacement) = await _gatewayRegistry.GetOrPlaceAgent(request.Target);
+ if (gateway is null)
{
- var (gateway, isPlacement) = await _gatewayRegistry.GetOrPlaceAgent(request.Target);
- if (gateway is null)
- {
- return new RpcResponse { Error = "Agent not found and no compatible gateways were found." };
- }
+ return new RpcResponse { Error = "Agent not found and no compatible gateways were found." };
+ }
- if (isPlacement)
- {
- // Activate the worker: load state
- // TODO
- }
+ if (isPlacement)
+ {
+ // Activate the worker: load state
+ // TODO
+ }
- // Forward the message to the gateway and return the result.
- return await gateway.InvokeRequest(request);
- });
+ // Forward the message to the gateway and return the result.
+ return await gateway.InvokeRequest(request);
+ });
//}
}
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerGatewayService.cs b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerGatewayService.cs
index d914ee8a5..c0fb13078 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerGatewayService.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerGatewayService.cs
@@ -4,7 +4,7 @@ using Microsoft.AutoGen.Agents.Abstractions;
namespace Microsoft.AutoGen.Agents.Runtime;
// gRPC service which handles communication between the agent worker and the cluster.
-internal sealed class WorkerGatewayService(WorkerGateway agentWorker) : AgentRpc.AgentRpcBase
+internal sealed class WorkerGatewayService(WorkerGateway agentWorker) : AgentRpc.AgentRpcBase
{
public override async Task OpenChannel(IAsyncStreamReader<Message> requestStream, IServerStreamWriter<Message> responseStream, ServerCallContext context)
{
diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerProcessConnection.cs b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerProcessConnection.cs
index 608daa406..b4b7e1e1a 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerProcessConnection.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/WorkerProcessConnection.cs
@@ -1,6 +1,6 @@
+using System.Threading.Channels;
using Grpc.Core;
using Microsoft.AutoGen.Agents.Abstractions;
-using System.Threading.Channels;
namespace Microsoft.AutoGen.Agents.Runtime;
diff --git a/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/ChatUserType.cs b/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/ChatUserType.cs
index 419b90904..d33220241 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/ChatUserType.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/ChatUserType.cs
@@ -5,4 +5,4 @@ public enum ChatUserType
System,
User,
Agent
-}
\ No newline at end of file
+}
diff --git a/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/IAiAgent.cs b/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/IAiAgent.cs
index 8e4016741..b9a721fe5 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/IAiAgent.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/IAiAgent.cs
@@ -10,4 +10,4 @@ public interface IAiAgent : IAgent
string AppendChatHistory(string ask);
Task<string> CallFunction(string template, KernelArguments arguments, OpenAIPromptExecutionSettings? settings = null);
Task<KernelArguments> AddKnowledge(string instruction, string index, KernelArguments arguments);
-}
\ No newline at end of file
+}
diff --git a/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/IHandle.cs b/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/IHandle.cs
index e7cc982d0..f91a32736 100644
--- a/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/IHandle.cs
+++ b/dotnet/src/Microsoft.AutoGen.Agents/Abstractions/IHandle.cs
@@ -3,4 +3,4 @@ namespace Microsoft.AutoGen.Agents.Abstractions;
public interface IHandle<T>
{
Task Handle(T item);
-}
\ No newline at end of file
+}
diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs
index 085917d41..91097d748 100644
--- a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs
+++ b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicClientAgentTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AnthropicClientAgentTest.cs
using AutoGen.Anthropic.DTO;
diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestUtils.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestUtils.cs
index d80c5fbe5..6849733ff 100644
--- a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestUtils.cs
+++ b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestUtils.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// AnthropicTestUtils.cs
using AutoGen.Anthropic.DTO;
diff --git a/dotnet/test/AutoGen.AotCompatibility.Tests/Program.cs b/dotnet/test/AutoGen.AotCompatibility.Tests/Program.cs
index ad2b881ef..6269999bc 100644
--- a/dotnet/test/AutoGen.AotCompatibility.Tests/Program.cs
+++ b/dotnet/test/AutoGen.AotCompatibility.Tests/Program.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Program.cs
Console.WriteLine("Hello, World!");
diff --git a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs
index d81b8881a..ae1a9d576 100644
--- a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs
+++ b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ChatCompletionClientAgentTests.cs
using System;
diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs
index aeec23a75..efb82662e 100644
--- a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs
+++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// DotnetInteractiveServiceTest.cs
using FluentAssertions;
diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs
index fe2de74dd..bb89762ef 100644
--- a/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs
+++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// InProcessDotnetInteractiveKernelBuilderTest.cs
using AutoGen.DotnetInteractive.Extension;
diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs
index a886ef498..21ff5850b 100644
--- a/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs
+++ b/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MessageExtensionTests.cs
using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs b/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs
index 51d799acc..ae8e4a621 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionContractExtensionTests.cs
using ApprovalTests;
diff --git a/dotnet/test/AutoGen.Gemini.Tests/Functions.cs b/dotnet/test/AutoGen.Gemini.Tests/Functions.cs
index e3e07ee63..6be1c67bb 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/Functions.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/Functions.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// Functions.cs
using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs
index c076aee18..fe2a47387 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GeminiAgentTests.cs
using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs
index 12ba94734..6e513375c 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GeminiMessageTests.cs
using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs
index 3bda12eda..37b274a8a 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GoogleGeminiClientTests.cs
using AutoGen.Tests;
diff --git a/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs b/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs
index 1f9b557af..3cd2c438b 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// SampleTests.cs
using AutoGen.Gemini.Sample;
diff --git a/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs b/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs
index fba97aa52..00e551d1a 100644
--- a/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs
+++ b/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// VertexGeminiClientTests.cs
using AutoGen.Tests;
diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs
index 8a416116e..73d2b9d28 100644
--- a/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs
+++ b/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OllamaAgentTests.cs
using System.Text.Json;
diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs
index 82cc46206..3a34a108d 100644
--- a/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs
+++ b/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OllamaMessageTests.cs
using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs
index b7186a3c6..06522bdd8 100644
--- a/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs
+++ b/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OllamaTextEmbeddingServiceTests.cs
using AutoGen.Tests;
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/GlobalUsing.cs b/dotnet/test/AutoGen.OpenAI.Tests/GlobalUsing.cs
index d66bf001e..c73cd57e6 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/GlobalUsing.cs
+++ b/dotnet/test/AutoGen.OpenAI.Tests/GlobalUsing.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GlobalUsing.cs
global using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/OpenAIMessageTests.cs b/dotnet/test/AutoGen.OpenAI.Tests/OpenAIMessageTests.cs
index 3a2048c2f..fa5f394c7 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/OpenAIMessageTests.cs
+++ b/dotnet/test/AutoGen.OpenAI.Tests/OpenAIMessageTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIMessageTests.cs
using System;
diff --git a/dotnet/test/AutoGen.OpenAI.Tests/OpenAISampleTest.cs b/dotnet/test/AutoGen.OpenAI.Tests/OpenAISampleTest.cs
index 6376c4ff4..2d82ad8b8 100644
--- a/dotnet/test/AutoGen.OpenAI.Tests/OpenAISampleTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.Tests/OpenAISampleTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAISampleTest.cs
using System;
diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/GPTAgentTest.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/GPTAgentTest.cs
index b8944d45d..8137f55ae 100644
--- a/dotnet/test/AutoGen.OpenAI.V1.Tests/GPTAgentTest.cs
+++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/GPTAgentTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GPTAgentTest.cs
using System;
diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/GlobalUsing.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/GlobalUsing.cs
index d66bf001e..c73cd57e6 100644
--- a/dotnet/test/AutoGen.OpenAI.V1.Tests/GlobalUsing.cs
+++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/GlobalUsing.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GlobalUsing.cs
global using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs
index 876416fdc..276829d99 100644
--- a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs
+++ b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIMessageTests.cs
using System;
diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs
index 0dc2ea215..c9774adc5 100644
--- a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs
+++ b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// KernelFunctionMiddlewareTests.cs
using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FilescopeNamespaceFunctionExample.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FilescopeNamespaceFunctionExample.cs
index 8293b26c1..1441ed5dd 100644
--- a/dotnet/test/AutoGen.SourceGenerator.Tests/FilescopeNamespaceFunctionExample.cs
+++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FilescopeNamespaceFunctionExample.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FilescopeNamespaceFunctionExample.cs
using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs
index 3c1e6c8ed..df89b08b9 100644
--- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs
+++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionCallTemplateTests.cs
using ApprovalTests;
diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs
index 8b477446d..c865554cd 100644
--- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs
+++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionExample.test.cs
using System.Text.Json;
diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExamples.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExamples.cs
index d48906d2c..6487ce1a8 100644
--- a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExamples.cs
+++ b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExamples.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// FunctionExamples.cs
using System.Text.Json;
diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/TopLevelStatementFunctionExample.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/TopLevelStatementFunctionExample.cs
index 0acaa46a3..08071942c 100644
--- a/dotnet/test/AutoGen.SourceGenerator.Tests/TopLevelStatementFunctionExample.cs
+++ b/dotnet/test/AutoGen.SourceGenerator.Tests/TopLevelStatementFunctionExample.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// TopLevelStatementFunctionExample.cs
using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.Test.Share/Attribute/EnvironmentSpecificFactAttribute.cs b/dotnet/test/AutoGen.Test.Share/Attribute/EnvironmentSpecificFactAttribute.cs
index 1361531cc..463ffb958 100644
--- a/dotnet/test/AutoGen.Test.Share/Attribute/EnvironmentSpecificFactAttribute.cs
+++ b/dotnet/test/AutoGen.Test.Share/Attribute/EnvironmentSpecificFactAttribute.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// EnvironmentSpecificFactAttribute.cs
using Xunit;
diff --git a/dotnet/test/AutoGen.Test.Share/Attribute/OpenAIFact.cs b/dotnet/test/AutoGen.Test.Share/Attribute/OpenAIFact.cs
index 54d72cd61..6b16b8259 100644
--- a/dotnet/test/AutoGen.Test.Share/Attribute/OpenAIFact.cs
+++ b/dotnet/test/AutoGen.Test.Share/Attribute/OpenAIFact.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIFact.cs
namespace AutoGen.Tests;
diff --git a/dotnet/test/AutoGen.Test.Share/EchoAgent.cs b/dotnet/test/AutoGen.Test.Share/EchoAgent.cs
index 010b72d2a..a971a2c95 100644
--- a/dotnet/test/AutoGen.Test.Share/EchoAgent.cs
+++ b/dotnet/test/AutoGen.Test.Share/EchoAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// EchoAgent.cs
using System.Runtime.CompilerServices;
diff --git a/dotnet/test/AutoGen.Tests/GlobalUsing.cs b/dotnet/test/AutoGen.Tests/GlobalUsing.cs
index d66bf001e..c73cd57e6 100644
--- a/dotnet/test/AutoGen.Tests/GlobalUsing.cs
+++ b/dotnet/test/AutoGen.Tests/GlobalUsing.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GlobalUsing.cs
global using AutoGen.Core;
diff --git a/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs b/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs
index 7eeea6743..04d7023de 100644
--- a/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs
+++ b/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// GraphTests.cs
using Xunit;
diff --git a/dotnet/test/AutoGen.Tests/ImageMessageTests.cs b/dotnet/test/AutoGen.Tests/ImageMessageTests.cs
index 210cb1017..e8a30c870 100644
--- a/dotnet/test/AutoGen.Tests/ImageMessageTests.cs
+++ b/dotnet/test/AutoGen.Tests/ImageMessageTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// ImageMessageTests.cs
using System;
diff --git a/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs b/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs
index 9241c9e94..f0475643f 100644
--- a/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs
+++ b/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MiddlewareAgentTest.cs
using System.Linq;
diff --git a/dotnet/test/AutoGen.Tests/MiddlewareTest.cs b/dotnet/test/AutoGen.Tests/MiddlewareTest.cs
index 6398a24f5..d98fa14ec 100644
--- a/dotnet/test/AutoGen.Tests/MiddlewareTest.cs
+++ b/dotnet/test/AutoGen.Tests/MiddlewareTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// MiddlewareTest.cs
using System;
diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs
index 17897860a..da6feda11 100644
--- a/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs
+++ b/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// RoundRobinOrchestratorTests.cs
using System.Collections.Generic;
diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs
index 6599566a4..3253a161b 100644
--- a/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs
+++ b/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// WorkflowOrchestratorTests.cs
using System;
@@ -107,6 +107,6 @@ public class WorkflowOrchestratorTests
var action = async () => await orchestrator.GetNextSpeakerAsync(context);
- await action.Should().ThrowExactlyAsync<Exception>().WithMessage("There are more than one available agents from the workflow for the next speaker.");
+ await action.Should().ThrowExactlyAsync<ArgumentException>().WithMessage("There are more than one available agents from the workflow for the next speaker.");
}
}
diff --git a/dotnet/test/AutoGen.Tests/SingleAgentTest.cs b/dotnet/test/AutoGen.Tests/SingleAgentTest.cs
index fb28f48e1..3303003be 100644
--- a/dotnet/test/AutoGen.Tests/SingleAgentTest.cs
+++ b/dotnet/test/AutoGen.Tests/SingleAgentTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// SingleAgentTest.cs
using System;
diff --git a/dotnet/test/AutoGen.Tests/TwoAgentTest.cs b/dotnet/test/AutoGen.Tests/TwoAgentTest.cs
index 335f4aaa5..a72e08451 100644
--- a/dotnet/test/AutoGen.Tests/TwoAgentTest.cs
+++ b/dotnet/test/AutoGen.Tests/TwoAgentTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// TwoAgentTest.cs
#pragma warning disable xUnit1013
using System;
diff --git a/dotnet/test/AutoGen.Tests/WorkflowTest.cs b/dotnet/test/AutoGen.Tests/WorkflowTest.cs
index 1079ec955..265510cf1 100644
--- a/dotnet/test/AutoGen.Tests/WorkflowTest.cs
+++ b/dotnet/test/AutoGen.Tests/WorkflowTest.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// WorkflowTest.cs
using System.Collections.Generic;
diff --git a/dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.cs b/dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.cs
index 957f8d1d7..66851d906 100644
--- a/dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.cs
+++ b/dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// EchoAgent.cs
using System.Runtime.CompilerServices;
diff --git a/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs b/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs
index c56bbf983..0676ae2c4 100644
--- a/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs
+++ b/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
// OpenAIChatCompletionMiddlewareTests.cs
using System.ClientModel.Primitives;