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.ymlindex 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: writeoutputs:hasChanges: ${{ steps.filter.outputs.dotnet == 'true'}}steps:@@ -75,6 +79,8 @@ jobs:uses: actions/setup-dotnet@v4with:dotnet-version: '8.0.x'+ - name: Install .NET Aspire workload+ run: dotnet workload install aspire- name: Restore dependenciesrun: |# dotnet nuget add source --name dotnet-tool https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json --configfile NuGet.configdiff --git a/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.cs b/dotnet/samples/AutoGen.Anthropic.Samples/Create_Anthropic_Agent.csindex 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.csusing 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.csindex 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.csusing AutoGen.Anthropic.DTO;diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/AgentCodeSnippet.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/BuildInMessageCodeSnippet.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/GetStartCodeSnippet.csindex 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_GetStartCodeSnippetdiff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MiddlewareAgentCodeSnippet.csindex 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.csusing System.Text.Json;diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/MistralAICodeSnippet.csindex 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_statementdiff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/OpenAICodeSnippet.csindex 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_statementdiff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/PrintMessageMiddlewareCodeSnippet.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/RunCodeSnippetCodeSnippet.csindex 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_1diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/SemanticKernelCodeSnippet.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/TypeSafeFunctionCallCodeSnippet.csindex 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.csusing System.Text.Json;diff --git a/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.cs b/dotnet/samples/AutoGen.BasicSamples/CodeSnippet/UserProxyAgentCodeSnippet.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/samples/AutoGen.BasicSamples/Example01_AssistantAgent.cs b/dotnet/samples/AutoGen.BasicSamples/Example01_AssistantAgent.csindex 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.csusing AutoGen;diff --git a/dotnet/samples/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs b/dotnet/samples/AutoGen.BasicSamples/Example03_Agent_FunctionCall.csindex 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.csusing 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.csindex 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.csusing AutoGen.BasicSample;diff --git a/dotnet/samples/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.cs b/dotnet/samples/AutoGen.BasicSamples/Example05_Dalle_And_GPT4V.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/samples/AutoGen.BasicSamples/Example06_UserProxyAgent.cs b/dotnet/samples/AutoGen.BasicSamples/Example06_UserProxyAgent.csindex 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.csusing AutoGen.Core;using AutoGen.OpenAI;diff --git a/dotnet/samples/AutoGen.BasicSamples/Example08_LMStudio.cs b/dotnet/samples/AutoGen.BasicSamples/Example08_LMStudio.csindex 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_statementsdiff --git a/dotnet/samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.cs b/dotnet/samples/AutoGen.BasicSamples/Example11_Sequential_GroupChat_Example.csindex 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_statementdiff --git a/dotnet/samples/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.cs b/dotnet/samples/AutoGen.BasicSamples/Example13_OpenAIAgent_JsonMode.csindex 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.csdiff --git a/dotnet/samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.cs b/dotnet/samples/AutoGen.BasicSamples/Example14_MistralClientAgent_TokenCount.csindex 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_statementsdiff --git a/dotnet/samples/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.cs b/dotnet/samples/AutoGen.BasicSamples/Example15_GPT4V_BinaryDataImageMessage.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/samples/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.cs b/dotnet/samples/AutoGen.BasicSamples/Example16_OpenAIChatAgent_ConnectToThirdPartyBackend.csindex 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.csdiff --git a/dotnet/samples/AutoGen.BasicSamples/Example17_ReActAgent.cs b/dotnet/samples/AutoGen.BasicSamples/Example17_ReActAgent.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Agent_Middleware.cs b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Agent_Middleware.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.cs b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Chat_With_Agent.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.cs b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Dynamic_Group_Chat.csindex 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.csusing 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.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.cs b/dotnet/samples/AutoGen.BasicSamples/GettingStart/Streaming_Tool_Call.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/samples/AutoGen.BasicSamples/GlobalUsing.cs b/dotnet/samples/AutoGen.BasicSamples/GlobalUsing.csindex 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.csdiff --git a/dotnet/samples/AutoGen.BasicSamples/LLMConfiguration.cs b/dotnet/samples/AutoGen.BasicSamples/LLMConfiguration.csindex 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.csusing OpenAI;diff --git a/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.cs b/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Google_Gemini.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.cs b/dotnet/samples/AutoGen.Gemini.Sample/Chat_With_Vertex_Gemini.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.Gemini.Sample/Function_Call_With_Gemini.cs b/dotnet/samples/AutoGen.Gemini.Sample/Function_Call_With_Gemini.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.cs b/dotnet/samples/AutoGen.Gemini.Sample/Image_Chat_With_Vertex_Gemini.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.Gemini.Sample/Program.cs b/dotnet/samples/AutoGen.Gemini.Sample/Program.csindex 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.csusing AutoGen.Gemini.Sample;diff --git a/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaMA.cs b/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaMA.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaVA.cs b/dotnet/samples/AutoGen.Ollama.Sample/Chat_With_LLaVA.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.Ollama.Sample/Program.cs b/dotnet/samples/AutoGen.Ollama.Sample/Program.csindex 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.csusing 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.csindex 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_statementdiff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Ollama.cs b/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_Ollama.csindex 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_statementdiff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_OpenAI_o1_preview.cs b/dotnet/samples/AutoGen.OpenAI.Sample/Connect_To_OpenAI_o1_preview.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/samples/AutoGen.OpenAI.Sample/Program.cs b/dotnet/samples/AutoGen.OpenAI.Sample/Program.csindex 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.csusing 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.csindex 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.csusing 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.csindex 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.csusing 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.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.SemanticKernel.Sample/Program.cs b/dotnet/samples/AutoGen.SemanticKernel.Sample/Program.csindex 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.csusing 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.csindex 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.csusing 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.csindex 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 Usingdiff --git a/dotnet/samples/AutoGen.WebAPI.Sample/Program.cs b/dotnet/samples/AutoGen.WebAPI.Sample/Program.csindex 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.csusing System.Runtime.CompilerServices;diff --git a/dotnet/samples/Hello/Program.cs b/dotnet/samples/Hello/Program.csindex 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.csindex 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.csindex 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 HelloSkillsYou 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.csindex 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.csindex 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.csindex 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.csindex 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.csindex 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 DeveloperSkillsOnly 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.csindex 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.csindex 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 statevar 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, ISemanticTextMlogger.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.csindex 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.csindex 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.csindex 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.csindex 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.csindex 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 GithubAuthServicethrow;}}-}\ 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.csindex 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 IManageGithubTask 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.csindex 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> loggeawait _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.csindex 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 Extensionsreturn 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.csindex 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.csindex 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 AzureOptionspublic 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.csindex 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 GithubOptionspublic 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.csindex 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.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Anthropic/AnthropicClient.cs b/dotnet/src/AutoGen.Anthropic/AnthropicClient.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Anthropic/Converters/ContentBaseConverter.cs b/dotnet/src/AutoGen.Anthropic/Converters/ContentBaseConverter.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.cs b/dotnet/src/AutoGen.Anthropic/Converters/JsonPropertyNameEnumCoverter.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Anthropic/Converters/SystemMessageConverter.cs b/dotnet/src/AutoGen.Anthropic/Converters/SystemMessageConverter.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionRequest.cs b/dotnet/src/AutoGen.Anthropic/DTO/ChatCompletionRequest.csindex 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.csusing 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.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Anthropic/DTO/Content.cs b/dotnet/src/AutoGen.Anthropic/DTO/Content.csindex 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.csusing System.Text.Json.Nodes;diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ErrorResponse.cs b/dotnet/src/AutoGen.Anthropic/DTO/ErrorResponse.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Anthropic/DTO/Tool.cs b/dotnet/src/AutoGen.Anthropic/DTO/Tool.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Anthropic/DTO/ToolChoice.cs b/dotnet/src/AutoGen.Anthropic/DTO/ToolChoice.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.cs b/dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.csindex 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.csusing AutoGen.Anthropic.Middleware;diff --git a/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.cs b/dotnet/src/AutoGen.Anthropic/Middleware/AnthropicMessageConnector.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.cs b/dotnet/src/AutoGen.Anthropic/Utils/AnthropicConstants.csindex 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.csnamespace AutoGen.Anthropic.Utils;diff --git a/dotnet/src/AutoGen.AzureAIInference/Agent/ChatCompletionsClientAgent.cs b/dotnet/src/AutoGen.AzureAIInference/Agent/ChatCompletionsClientAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.AzureAIInference/Extension/ChatComptionClientAgentExtension.cs b/dotnet/src/AutoGen.AzureAIInference/Extension/ChatComptionClientAgentExtension.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/src/AutoGen.AzureAIInference/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.AzureAIInference/Extension/FunctionContractExtension.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.cs b/dotnet/src/AutoGen.AzureAIInference/Middleware/AzureAIInferenceChatRequestMessageConnector.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Agent/DefaultReplyAgent.cs b/dotnet/src/AutoGen.Core/Agent/DefaultReplyAgent.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Agent/GroupChatManager.cs b/dotnet/src/AutoGen.Core/Agent/GroupChatManager.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Agent/IAgent.cs b/dotnet/src/AutoGen.Core/Agent/IAgent.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Agent/IMiddlewareAgent.cs b/dotnet/src/AutoGen.Core/Agent/IMiddlewareAgent.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Agent/IStreamingAgent.cs b/dotnet/src/AutoGen.Core/Agent/IStreamingAgent.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.cs b/dotnet/src/AutoGen.Core/Agent/MiddlewareAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.cs b/dotnet/src/AutoGen.Core/Agent/MiddlewareStreamingAgent.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Extension/GroupChatExtension.cs b/dotnet/src/AutoGen.Core/Extension/GroupChatExtension.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Extension/MessageExtension.cs b/dotnet/src/AutoGen.Core/Extension/MessageExtension.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Extension/MiddlewareExtension.cs b/dotnet/src/AutoGen.Core/Extension/MiddlewareExtension.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Extension/PrintMessageMiddlewareExtension.cs b/dotnet/src/AutoGen.Core/Extension/PrintMessageMiddlewareExtension.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Extension/StreamingMiddlewareExtension.cs b/dotnet/src/AutoGen.Core/Extension/StreamingMiddlewareExtension.csindex 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.csnamespace AutoGen.Core;diff --git a/dotnet/src/AutoGen.Core/Function/FunctionAttribute.cs b/dotnet/src/AutoGen.Core/Function/FunctionAttribute.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/GroupChat/Graph.cs b/dotnet/src/AutoGen.Core/GroupChat/Graph.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/GroupChat/IGroupChat.cs b/dotnet/src/AutoGen.Core/GroupChat/IGroupChat.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/GroupChat/RoundRobinGroupChat.cs b/dotnet/src/AutoGen.Core/GroupChat/RoundRobinGroupChat.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/ILLMConfig.cs b/dotnet/src/AutoGen.Core/ILLMConfig.csindex 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.csnamespace AutoGen.Core;diff --git a/dotnet/src/AutoGen.Core/Message/AggregateMessage.cs b/dotnet/src/AutoGen.Core/Message/AggregateMessage.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Message/IMessage.cs b/dotnet/src/AutoGen.Core/Message/IMessage.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Message/ImageMessage.cs b/dotnet/src/AutoGen.Core/Message/ImageMessage.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Message/Message.cs b/dotnet/src/AutoGen.Core/Message/Message.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Message/MessageEnvelope.cs b/dotnet/src/AutoGen.Core/Message/MessageEnvelope.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Message/MultiModalMessage.cs b/dotnet/src/AutoGen.Core/Message/MultiModalMessage.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Message/Role.cs b/dotnet/src/AutoGen.Core/Message/Role.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Message/TextMessage.cs b/dotnet/src/AutoGen.Core/Message/TextMessage.csindex 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.csnamespace AutoGen.Core;diff --git a/dotnet/src/AutoGen.Core/Message/ToolCallAggregateMessage.cs b/dotnet/src/AutoGen.Core/Message/ToolCallAggregateMessage.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Message/ToolCallMessage.cs b/dotnet/src/AutoGen.Core/Message/ToolCallMessage.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Message/ToolCallResultMessage.cs b/dotnet/src/AutoGen.Core/Message/ToolCallResultMessage.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/DelegateMiddleware.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/FunctionCallMiddleware.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Middleware/IMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/IMiddleware.csindex 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.csusing System.Threading;diff --git a/dotnet/src/AutoGen.Core/Middleware/IStreamingMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/IStreamingMiddleware.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Middleware/MiddlewareContext.cs b/dotnet/src/AutoGen.Core/Middleware/MiddlewareContext.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Core/Middleware/PrintMessageMiddleware.cs b/dotnet/src/AutoGen.Core/Middleware/PrintMessageMiddleware.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Orchestrator/IOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/IOrchestrator.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/RolePlayOrchestrator.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Core/Orchestrator/RoundRobinOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/RoundRobinOrchestrator.csindex 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.csusing System.Linq;diff --git a/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.cs b/dotnet/src/AutoGen.Core/Orchestrator/WorkflowOrchestrator.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveFunction.csindex 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.csusing System.Text;diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveKernelBuilder.csindex 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.csnamespace AutoGen.DotnetInteractive;diff --git a/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.cs b/dotnet/src/AutoGen.DotnetInteractive/DotnetInteractiveStdioKernelConnector.csindex 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.csusing AutoGen.DotnetInteractive.Extension;diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/AgentExtension.csindex 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.csusing System.Text;diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/KernelExtension.csindex 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.csusing Microsoft.DotNet.Interactive;diff --git a/dotnet/src/AutoGen.DotnetInteractive/Extension/MessageExtension.cs b/dotnet/src/AutoGen.DotnetInteractive/Extension/MessageExtension.csindex 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.csusing System.Text.RegularExpressions;diff --git a/dotnet/src/AutoGen.DotnetInteractive/GlobalUsing.cs b/dotnet/src/AutoGen.DotnetInteractive/GlobalUsing.csindex 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.csglobal using AutoGen.Core;diff --git a/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.cs b/dotnet/src/AutoGen.DotnetInteractive/InProccessDotnetInteractiveKernelBuilder.csindex 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_GREATERdiff --git a/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.cs b/dotnet/src/AutoGen.DotnetInteractive/InteractiveService.csindex 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.csusing System.Diagnostics;diff --git a/dotnet/src/AutoGen.Gemini/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.Gemini/Extension/FunctionContractExtension.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Gemini/GeminiChatAgent.cs b/dotnet/src/AutoGen.Gemini/GeminiChatAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.cs b/dotnet/src/AutoGen.Gemini/GoogleGeminiClient.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Gemini/IGeminiClient.cs b/dotnet/src/AutoGen.Gemini/IGeminiClient.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Gemini/Middleware/GeminiAgentExtension.cs b/dotnet/src/AutoGen.Gemini/Middleware/GeminiAgentExtension.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.cs b/dotnet/src/AutoGen.Gemini/Middleware/GeminiMessageConnector.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Gemini/VertexGeminiClient.cs b/dotnet/src/AutoGen.Gemini/VertexGeminiClient.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.LMStudio/GlobalUsing.cs b/dotnet/src/AutoGen.LMStudio/GlobalUsing.csindex 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.csglobal using AutoGen.Core;diff --git a/dotnet/src/AutoGen.LMStudio/LMStudioAgent.cs b/dotnet/src/AutoGen.LMStudio/LMStudioAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.LMStudio/LMStudioConfig.cs b/dotnet/src/AutoGen.LMStudio/LMStudioConfig.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.cs b/dotnet/src/AutoGen.Mistral/Agent/MistralClientAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.cs b/dotnet/src/AutoGen.Mistral/Converters/JsonPropertyNameEnumConverter.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionRequest.cs b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionRequest.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ChatMessage.cs b/dotnet/src/AutoGen.Mistral/DTOs/ChatMessage.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Choice.cs b/dotnet/src/AutoGen.Mistral/DTOs/Choice.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Error.cs b/dotnet/src/AutoGen.Mistral/DTOs/Error.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ErrorResponse.cs b/dotnet/src/AutoGen.Mistral/DTOs/ErrorResponse.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/FunctionDefinition.cs b/dotnet/src/AutoGen.Mistral/DTOs/FunctionDefinition.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Model.cs b/dotnet/src/AutoGen.Mistral/DTOs/Model.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ResponseFormat.cs b/dotnet/src/AutoGen.Mistral/DTOs/ResponseFormat.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Tool.cs b/dotnet/src/AutoGen.Mistral/DTOs/Tool.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Usage.cs b/dotnet/src/AutoGen.Mistral/DTOs/Usage.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.Mistral/Extension/FunctionContractExtension.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Mistral/Extension/MistralAgentExtension.cs b/dotnet/src/AutoGen.Mistral/Extension/MistralAgentExtension.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.cs b/dotnet/src/AutoGen.Mistral/Middleware/MistralChatMessageConnector.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Mistral/MistralAIModelID.cs b/dotnet/src/AutoGen.Mistral/MistralAIModelID.csindex 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.csnamespace AutoGen.Mistral;diff --git a/dotnet/src/AutoGen.Mistral/MistralClient.cs b/dotnet/src/AutoGen.Mistral/MistralClient.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Ollama/Agent/OllamaAgent.cs b/dotnet/src/AutoGen.Ollama/Agent/OllamaAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ChatRequest.cs b/dotnet/src/AutoGen.Ollama/DTOs/ChatRequest.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ChatResponse.cs b/dotnet/src/AutoGen.Ollama/DTOs/ChatResponse.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ChatResponseUpdate.cs b/dotnet/src/AutoGen.Ollama/DTOs/ChatResponseUpdate.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Ollama/DTOs/Message.cs b/dotnet/src/AutoGen.Ollama/DTOs/Message.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.Ollama/DTOs/ModelReplyOptions.cs b/dotnet/src/AutoGen.Ollama/DTOs/ModelReplyOptions.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Ollama/DTOs/OllamaReplyOptions.cs b/dotnet/src/AutoGen.Ollama/DTOs/OllamaReplyOptions.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/ITextEmbeddingService.cs b/dotnet/src/AutoGen.Ollama/Embeddings/ITextEmbeddingService.csindex 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.csusing System.Threading;diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.cs b/dotnet/src/AutoGen.Ollama/Embeddings/OllamaTextEmbeddingService.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsRequest.cs b/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsRequest.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsResponse.cs b/dotnet/src/AutoGen.Ollama/Embeddings/TextEmbeddingsResponse.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.Ollama/Extension/OllamaAgentExtension.cs b/dotnet/src/AutoGen.Ollama/Extension/OllamaAgentExtension.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/src/AutoGen.Ollama/Middlewares/OllamaMessageConnector.cs b/dotnet/src/AutoGen.Ollama/Middlewares/OllamaMessageConnector.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.Ollama/OllamaConsts.cs b/dotnet/src/AutoGen.Ollama/OllamaConsts.csindex 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.csnamespace AutoGen.Ollama;diff --git a/dotnet/src/AutoGen.OpenAI.V1/Agent/GPTAgent.cs b/dotnet/src/AutoGen.OpenAI.V1/Agent/GPTAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.OpenAI.V1/Agent/OpenAIChatAgent.cs b/dotnet/src/AutoGen.OpenAI.V1/Agent/OpenAIChatAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.OpenAI.V1/AzureOpenAIConfig.cs b/dotnet/src/AutoGen.OpenAI.V1/AzureOpenAIConfig.csindex 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.csnamespace AutoGen.OpenAI.V1;diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/FunctionContractExtension.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/MessageExtension.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.OpenAI.V1/Extension/OpenAIAgentExtension.cs b/dotnet/src/AutoGen.OpenAI.V1/Extension/OpenAIAgentExtension.csindex 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.csnamespace AutoGen.OpenAI.V1.Extension;diff --git a/dotnet/src/AutoGen.OpenAI.V1/GlobalUsing.cs b/dotnet/src/AutoGen.OpenAI.V1/GlobalUsing.csindex 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.csglobal using AutoGen.Core;diff --git a/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.cs b/dotnet/src/AutoGen.OpenAI.V1/Middleware/OpenAIChatRequestMessageConnector.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.OpenAI.V1/OpenAIConfig.cs b/dotnet/src/AutoGen.OpenAI.V1/OpenAIConfig.csindex 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.csnamespace AutoGen.OpenAI.V1;diff --git a/dotnet/src/AutoGen.OpenAI/Agent/OpenAIChatAgent.cs b/dotnet/src/AutoGen.OpenAI/Agent/OpenAIChatAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.OpenAI/Extension/FunctionContractExtension.cs b/dotnet/src/AutoGen.OpenAI/Extension/FunctionContractExtension.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.OpenAI/Extension/OpenAIAgentExtension.cs b/dotnet/src/AutoGen.OpenAI/Extension/OpenAIAgentExtension.csindex 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.csnamespace AutoGen.OpenAI.Extension;diff --git a/dotnet/src/AutoGen.OpenAI/GlobalUsing.cs b/dotnet/src/AutoGen.OpenAI/GlobalUsing.csindex 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.csglobal using AutoGen.Core;diff --git a/dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs b/dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.csindex 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.csusing 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 ToolCallMessageif (chatCompletion.ToolCalls is { Count: > 0 })diff --git a/dotnet/src/AutoGen.SemanticKernel/Extension/KernelExtension.cs b/dotnet/src/AutoGen.SemanticKernel/Extension/KernelExtension.csindex 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.csusing System.Linq;diff --git a/dotnet/src/AutoGen.SemanticKernel/Extension/SemanticKernelAgentExtension.cs b/dotnet/src/AutoGen.SemanticKernel/Extension/SemanticKernelAgentExtension.csindex 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.csnamespace AutoGen.SemanticKernel.Extension;diff --git a/dotnet/src/AutoGen.SemanticKernel/GlobalUsing.cs b/dotnet/src/AutoGen.SemanticKernel/GlobalUsing.csindex 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.csglobal using AutoGen.Core;diff --git a/dotnet/src/AutoGen.SemanticKernel/Middleware/KernelPluginMiddleware.cs b/dotnet/src/AutoGen.SemanticKernel/Middleware/KernelPluginMiddleware.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.cs b/dotnet/src/AutoGen.SemanticKernel/Middleware/SemanticKernelChatMessageContentConnector.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.cs b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.SemanticKernel/SemanticKernelChatCompletionAgent.cs b/dotnet/src/AutoGen.SemanticKernel/SemanticKernelChatCompletionAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.cs b/dotnet/src/AutoGen.SourceGenerator/DocumentCommentExtension.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.cs b/dotnet/src/AutoGen.SourceGenerator/FunctionCallGenerator.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen.SourceGenerator/FunctionExtension.cs b/dotnet/src/AutoGen.SourceGenerator/FunctionExtension.csindex 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.csusing AutoGen.SourceGenerator;diff --git a/dotnet/src/AutoGen.SourceGenerator/SourceGeneratorFunctionContract.cs b/dotnet/src/AutoGen.SourceGenerator/SourceGeneratorFunctionContract.csindex 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.csnamespace AutoGen.SourceGeneratordiff --git a/dotnet/src/AutoGen.WebAPI/Extension.cs b/dotnet/src/AutoGen.WebAPI/Extension.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/Converter/OpenAIMessageConverter.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/Converter/OpenAIMessageConverter.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIAssistantMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIAssistantMessage.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletion.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletion.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionChoice.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionChoice.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionMessage.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionOption.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionOption.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionUsage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIChatCompletionUsage.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIImageUrlObject.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIImageUrlObject.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIStreamOptions.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIStreamOptions.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAISystemMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAISystemMessage.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolCallObject.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolCallObject.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserImageContent.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserImageContent.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessageItem.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessageItem.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMultiModalMessage.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMultiModalMessage.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserTextContent.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserTextContent.csindex 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.csusing System.Text.Json.Serialization;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAI/Service/OpenAIChatCompletionService.cs b/dotnet/src/AutoGen.WebAPI/OpenAI/Service/OpenAIChatCompletionService.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.cs b/dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.csindex 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.csusing System.Text.Json;diff --git a/dotnet/src/AutoGen/API/LLMConfigAPI.cs b/dotnet/src/AutoGen/API/LLMConfigAPI.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen/Agent/AssistantAgent.cs b/dotnet/src/AutoGen/Agent/AssistantAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen/Agent/ConversableAgent.cs b/dotnet/src/AutoGen/Agent/ConversableAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen/Agent/UserProxyAgent.cs b/dotnet/src/AutoGen/Agent/UserProxyAgent.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen/AzureOpenAIConfig.cs b/dotnet/src/AutoGen/AzureOpenAIConfig.csindex 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.csusing Azure.AI.OpenAI;diff --git a/dotnet/src/AutoGen/ConversableAgentConfig.cs b/dotnet/src/AutoGen/ConversableAgentConfig.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/src/AutoGen/GlobalUsing.cs b/dotnet/src/AutoGen/GlobalUsing.csindex 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.csglobal using AutoGen.Core;diff --git a/dotnet/src/AutoGen/LMStudioConfig.cs b/dotnet/src/AutoGen/LMStudioConfig.csindex 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.csusing System;using OpenAI;diff --git a/dotnet/src/AutoGen/Middleware/HumanInputMiddleware.cs b/dotnet/src/AutoGen/Middleware/HumanInputMiddleware.csindex 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.csusing System;diff --git a/dotnet/src/AutoGen/OpenAIConfig.cs b/dotnet/src/AutoGen/OpenAIConfig.csindex 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.csusing OpenAI;diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentBase.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/AgentBase.csindex 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 AgentBasepublic 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 AgentBaseTarget = 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 AgentBasevar 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.csindex 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.csindex 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 Clientpublic 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.csindex 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.csindex 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 RegisterAgentTypeRequestdiff --git a/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/ConsoleAgent/ConsoleAgent.cs b/dotnet/src/Microsoft.AutoGen.Agents.Client/Agents/IOAgent/ConsoleAgent/ConsoleAgent.csindex 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.csindex 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.csindex 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.csindex 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.csindex 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 HostBuilderExtensionsbuilder.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.csindex 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.csindex 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.csindex 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 OpenAIOptionspublic 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.csindex 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 QdrantOptionspublic 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.csindex 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 SemanticKernelHostingExtensionsreturn 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 SemanticKernelHostingExtensionsreturn 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.csindex 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.csindex 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.csindex 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.csindex 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, IWorkerGatewayreturn 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, IWorkerGatewayawait _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, IWorkerGatewayelse{*/- 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.csindex 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.csindex 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.csindex 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 ChatUserTypeSystem,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.csindex 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 : IAgentstring 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.csindex 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.csindex 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.csusing AutoGen.Anthropic.DTO;diff --git a/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestUtils.cs b/dotnet/test/AutoGen.Anthropic.Tests/AnthropicTestUtils.csindex 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.csusing AutoGen.Anthropic.DTO;diff --git a/dotnet/test/AutoGen.AotCompatibility.Tests/Program.cs b/dotnet/test/AutoGen.AotCompatibility.Tests/Program.csindex 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.csConsole.WriteLine("Hello, World!");diff --git a/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.cs b/dotnet/test/AutoGen.AzureAIInference.Tests/ChatCompletionClientAgentTests.csindex 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.csusing System;diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/DotnetInteractiveServiceTest.csindex 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.csusing FluentAssertions;diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/InProcessDotnetInteractiveKernelBuilderTest.csindex 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.csusing AutoGen.DotnetInteractive.Extension;diff --git a/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.cs b/dotnet/test/AutoGen.DotnetInteractive.Tests/MessageExtensionTests.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.cs b/dotnet/test/AutoGen.Gemini.Tests/FunctionContractExtensionTests.csindex 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.csusing ApprovalTests;diff --git a/dotnet/test/AutoGen.Gemini.Tests/Functions.cs b/dotnet/test/AutoGen.Gemini.Tests/Functions.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GeminiAgentTests.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GeminiMessageTests.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.cs b/dotnet/test/AutoGen.Gemini.Tests/GoogleGeminiClientTests.csindex 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.csusing AutoGen.Tests;diff --git a/dotnet/test/AutoGen.Gemini.Tests/SampleTests.cs b/dotnet/test/AutoGen.Gemini.Tests/SampleTests.csindex 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.csusing AutoGen.Gemini.Sample;diff --git a/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.cs b/dotnet/test/AutoGen.Gemini.Tests/VertexGeminiClientTests.csindex 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.csusing AutoGen.Tests;diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.csindex 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.csusing System.Text.Json;diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaMessageTests.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaTextEmbeddingServiceTests.csindex 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.csusing AutoGen.Tests;diff --git a/dotnet/test/AutoGen.OpenAI.Tests/GlobalUsing.cs b/dotnet/test/AutoGen.OpenAI.Tests/GlobalUsing.csindex 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.csglobal using AutoGen.Core;diff --git a/dotnet/test/AutoGen.OpenAI.Tests/OpenAIMessageTests.cs b/dotnet/test/AutoGen.OpenAI.Tests/OpenAIMessageTests.csindex 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.csusing System;diff --git a/dotnet/test/AutoGen.OpenAI.Tests/OpenAISampleTest.cs b/dotnet/test/AutoGen.OpenAI.Tests/OpenAISampleTest.csindex 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.csusing System;diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/GPTAgentTest.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/GPTAgentTest.csindex 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.csusing System;diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/GlobalUsing.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/GlobalUsing.csindex 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.csglobal using AutoGen.Core;diff --git a/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.cs b/dotnet/test/AutoGen.OpenAI.V1.Tests/OpenAIMessageTests.csindex 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.csusing System;diff --git a/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.cs b/dotnet/test/AutoGen.SemanticKernel.Tests/KernelFunctionMiddlewareTests.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FilescopeNamespaceFunctionExample.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FilescopeNamespaceFunctionExample.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionCallTemplateTests.csindex 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.csusing ApprovalTests;diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExample.test.csindex 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.csusing System.Text.Json;diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExamples.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/FunctionExamples.csindex 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.csusing System.Text.Json;diff --git a/dotnet/test/AutoGen.SourceGenerator.Tests/TopLevelStatementFunctionExample.cs b/dotnet/test/AutoGen.SourceGenerator.Tests/TopLevelStatementFunctionExample.csindex 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.csusing AutoGen.Core;diff --git a/dotnet/test/AutoGen.Test.Share/Attribute/EnvironmentSpecificFactAttribute.cs b/dotnet/test/AutoGen.Test.Share/Attribute/EnvironmentSpecificFactAttribute.csindex 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.csusing Xunit;diff --git a/dotnet/test/AutoGen.Test.Share/Attribute/OpenAIFact.cs b/dotnet/test/AutoGen.Test.Share/Attribute/OpenAIFact.csindex 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.csnamespace AutoGen.Tests;diff --git a/dotnet/test/AutoGen.Test.Share/EchoAgent.cs b/dotnet/test/AutoGen.Test.Share/EchoAgent.csindex 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.csusing System.Runtime.CompilerServices;diff --git a/dotnet/test/AutoGen.Tests/GlobalUsing.cs b/dotnet/test/AutoGen.Tests/GlobalUsing.csindex 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.csglobal using AutoGen.Core;diff --git a/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs b/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.csindex 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.csusing Xunit;diff --git a/dotnet/test/AutoGen.Tests/ImageMessageTests.cs b/dotnet/test/AutoGen.Tests/ImageMessageTests.csindex 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.csusing System;diff --git a/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.cs b/dotnet/test/AutoGen.Tests/MiddlewareAgentTest.csindex 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.csusing System.Linq;diff --git a/dotnet/test/AutoGen.Tests/MiddlewareTest.cs b/dotnet/test/AutoGen.Tests/MiddlewareTest.csindex 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.csusing System;diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/RoundRobinOrchestratorTests.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.cs b/dotnet/test/AutoGen.Tests/Orchestrator/WorkflowOrchestratorTests.csindex 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.csusing System;@@ -107,6 +107,6 @@ public class WorkflowOrchestratorTestsvar 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.csindex 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.csusing System;diff --git a/dotnet/test/AutoGen.Tests/TwoAgentTest.cs b/dotnet/test/AutoGen.Tests/TwoAgentTest.csindex 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 xUnit1013using System;diff --git a/dotnet/test/AutoGen.Tests/WorkflowTest.cs b/dotnet/test/AutoGen.Tests/WorkflowTest.csindex 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.csusing System.Collections.Generic;diff --git a/dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.cs b/dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.csindex 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.csusing System.Runtime.CompilerServices;diff --git a/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.cs b/dotnet/test/AutoGen.WebAPI.Tests/OpenAIChatCompletionMiddlewareTests.csindex 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.csusing System.ClientModel.Primitives;