diff --git a/Atc.Semantic.Kernel.sln b/Atc.Semantic.Kernel.sln index 453a384..521a86f 100644 --- a/Atc.Semantic.Kernel.sln +++ b/Atc.Semantic.Kernel.sln @@ -12,21 +12,21 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{DAC1423F-D EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{58BC6728-197C-484C-A8EC-38BC2F0B58C4}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.SemanticKernel.Plugins", "src\Plugins\Atc.SemanticKernel.Plugins\Atc.SemanticKernel.Plugins.csproj", "{673BC3C5-3824-42C2-BF3B-D761192CE7DF}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sample", "sample", "{67FE0C20-D944-47C5-A64E-AC05F7438940}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{47F559A0-49DF-48F5-ABD9-8A48962C4D47}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.SemanticKernel.Client.Sample", "sample\Atc.SemanticKernel.Client.Sample\Atc.SemanticKernel.Client.Sample.csproj", "{5C37ED9E-46B8-493C-8260-30EB8DA2B3BD}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Connectors", "Connectors", "{B21D04E9-5AC8-4CC6-8A95-E370CC15046E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.SemanticKernel.WebApp.Sample", "sample\Atc.SemanticKernel.WebApp.Sample\Atc.SemanticKernel.WebApp.Sample.csproj", "{3EFEF526-4EF8-4B13-84CC-63A0F77EEBC9}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.SemanticKernel.Connectors.Ollama", "src\Connectors\Atc.SemanticKernel.Connectors.Ollama\Atc.SemanticKernel.Connectors.Ollama.csproj", "{3DAF279B-9CAE-4F4C-B030-AB3B4CAF43FE}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.SemanticKernel.Console.Sample", "sample\Atc.SemanticKernel.Console.Sample\Atc.SemanticKernel.Console.Sample.csproj", "{C5299A6E-FAE1-409E-A288-7EE763642DD4}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sample", "sample", "{67FE0C20-D944-47C5-A64E-AC05F7438940}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Connectors", "Connectors", "{BB810D8C-E1BE-4FC6-8C90-12F3CD013C8D}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.SemanticKernel.Client.Sample", "sample\Atc.SemanticKernel.Client.Sample\Atc.SemanticKernel.Client.Sample.csproj", "{5C37ED9E-46B8-493C-8260-30EB8DA2B3BD}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{BEAA1DD3-E451-4809-BEEB-04B06C5A7F54}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.SemanticKernel.WebApp.Sample", "sample\Atc.SemanticKernel.WebApp.Sample\Atc.SemanticKernel.WebApp.Sample.csproj", "{3EFEF526-4EF8-4B13-84CC-63A0F77EEBC9}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.SemanticKernel.Connectors.Ollama", "src\Atc.SemanticKernel.Connectors.Ollama\Atc.SemanticKernel.Connectors.Ollama.csproj", "{CD18613D-5516-469A-9FAE-8AB918305DD5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Atc.SemanticKernel.Console.Sample", "sample\Atc.SemanticKernel.Console.Sample\Atc.SemanticKernel.Console.Sample.csproj", "{C5299A6E-FAE1-409E-A288-7EE763642DD4}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.SemanticKernel.Plugins", "src\Atc.SemanticKernel.Plugins\Atc.SemanticKernel.Plugins.csproj", "{B54F9836-081F-4AFA-ACD6-5CB394AAB39D}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -34,14 +34,6 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {673BC3C5-3824-42C2-BF3B-D761192CE7DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {673BC3C5-3824-42C2-BF3B-D761192CE7DF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {673BC3C5-3824-42C2-BF3B-D761192CE7DF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {673BC3C5-3824-42C2-BF3B-D761192CE7DF}.Release|Any CPU.Build.0 = Release|Any CPU - {3DAF279B-9CAE-4F4C-B030-AB3B4CAF43FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3DAF279B-9CAE-4F4C-B030-AB3B4CAF43FE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3DAF279B-9CAE-4F4C-B030-AB3B4CAF43FE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3DAF279B-9CAE-4F4C-B030-AB3B4CAF43FE}.Release|Any CPU.Build.0 = Release|Any CPU {5C37ED9E-46B8-493C-8260-30EB8DA2B3BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5C37ED9E-46B8-493C-8260-30EB8DA2B3BD}.Debug|Any CPU.Build.0 = Debug|Any CPU {5C37ED9E-46B8-493C-8260-30EB8DA2B3BD}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -54,18 +46,26 @@ Global {C5299A6E-FAE1-409E-A288-7EE763642DD4}.Debug|Any CPU.Build.0 = Debug|Any CPU {C5299A6E-FAE1-409E-A288-7EE763642DD4}.Release|Any CPU.ActiveCfg = Release|Any CPU {C5299A6E-FAE1-409E-A288-7EE763642DD4}.Release|Any CPU.Build.0 = Release|Any CPU + {CD18613D-5516-469A-9FAE-8AB918305DD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CD18613D-5516-469A-9FAE-8AB918305DD5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CD18613D-5516-469A-9FAE-8AB918305DD5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CD18613D-5516-469A-9FAE-8AB918305DD5}.Release|Any CPU.Build.0 = Release|Any CPU + {B54F9836-081F-4AFA-ACD6-5CB394AAB39D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B54F9836-081F-4AFA-ACD6-5CB394AAB39D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B54F9836-081F-4AFA-ACD6-5CB394AAB39D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B54F9836-081F-4AFA-ACD6-5CB394AAB39D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {673BC3C5-3824-42C2-BF3B-D761192CE7DF} = {47F559A0-49DF-48F5-ABD9-8A48962C4D47} - {47F559A0-49DF-48F5-ABD9-8A48962C4D47} = {69C84246-AA75-43E8-94B2-66FD555B18B0} - {B21D04E9-5AC8-4CC6-8A95-E370CC15046E} = {69C84246-AA75-43E8-94B2-66FD555B18B0} - {3DAF279B-9CAE-4F4C-B030-AB3B4CAF43FE} = {B21D04E9-5AC8-4CC6-8A95-E370CC15046E} {5C37ED9E-46B8-493C-8260-30EB8DA2B3BD} = {67FE0C20-D944-47C5-A64E-AC05F7438940} {3EFEF526-4EF8-4B13-84CC-63A0F77EEBC9} = {67FE0C20-D944-47C5-A64E-AC05F7438940} {C5299A6E-FAE1-409E-A288-7EE763642DD4} = {67FE0C20-D944-47C5-A64E-AC05F7438940} + {BB810D8C-E1BE-4FC6-8C90-12F3CD013C8D} = {69C84246-AA75-43E8-94B2-66FD555B18B0} + {BEAA1DD3-E451-4809-BEEB-04B06C5A7F54} = {69C84246-AA75-43E8-94B2-66FD555B18B0} + {CD18613D-5516-469A-9FAE-8AB918305DD5} = {BB810D8C-E1BE-4FC6-8C90-12F3CD013C8D} + {B54F9836-081F-4AFA-ACD6-5CB394AAB39D} = {BEAA1DD3-E451-4809-BEEB-04B06C5A7F54} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {04120463-05C5-417B-8D7A-2D7D35B71A07} diff --git a/sample/.editorconfig b/sample/.editorconfig index 267c932..fee5e31 100644 --- a/sample/.editorconfig +++ b/sample/.editorconfig @@ -50,4 +50,6 @@ dotnet_diagnostic.S1075.severity = none # Refactor your code not to # Custom - Code Analyzers Rules ########################################## +dotnet_diagnostic.S1192.severity = none # Define a constant instead of using this literal + dotnet_diagnostic.CA1303.severity = none # Do not pass literals as localized parameters \ No newline at end of file diff --git a/sample/Atc.SemanticKernel.Client.Sample/Atc.SemanticKernel.Client.Sample.csproj b/sample/Atc.SemanticKernel.Client.Sample/Atc.SemanticKernel.Client.Sample.csproj index 8961834..784d122 100644 --- a/sample/Atc.SemanticKernel.Client.Sample/Atc.SemanticKernel.Client.Sample.csproj +++ b/sample/Atc.SemanticKernel.Client.Sample/Atc.SemanticKernel.Client.Sample.csproj @@ -7,11 +7,8 @@ + - - - - diff --git a/sample/Atc.SemanticKernel.Console.Sample/Atc.SemanticKernel.Console.Sample.csproj b/sample/Atc.SemanticKernel.Console.Sample/Atc.SemanticKernel.Console.Sample.csproj index baa19e2..db3b3aa 100644 --- a/sample/Atc.SemanticKernel.Console.Sample/Atc.SemanticKernel.Console.Sample.csproj +++ b/sample/Atc.SemanticKernel.Console.Sample/Atc.SemanticKernel.Console.Sample.csproj @@ -7,11 +7,11 @@ - + - + \ No newline at end of file diff --git a/sample/Atc.SemanticKernel.WebApp.Sample/Atc.SemanticKernel.WebApp.Sample.csproj b/sample/Atc.SemanticKernel.WebApp.Sample/Atc.SemanticKernel.WebApp.Sample.csproj index 024ecb2..ae1c2df 100644 --- a/sample/Atc.SemanticKernel.WebApp.Sample/Atc.SemanticKernel.WebApp.Sample.csproj +++ b/sample/Atc.SemanticKernel.WebApp.Sample/Atc.SemanticKernel.WebApp.Sample.csproj @@ -7,13 +7,13 @@ - - - + + + - + diff --git a/sample/Atc.SemanticKernel.WebApp.Sample/Program.cs b/sample/Atc.SemanticKernel.WebApp.Sample/Program.cs index d0ea535..4ef079d 100644 --- a/sample/Atc.SemanticKernel.WebApp.Sample/Program.cs +++ b/sample/Atc.SemanticKernel.WebApp.Sample/Program.cs @@ -101,4 +101,4 @@ async IAsyncEnumerable ChatCompletionAsync() .WithName("OllamaEmbeddingGeneration") .WithOpenApi(); -app.Run(); \ No newline at end of file +await app.RunAsync(); \ No newline at end of file diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/Atc.SemanticKernel.Connectors.Ollama.csproj b/src/Atc.SemanticKernel.Connectors.Ollama/Atc.SemanticKernel.Connectors.Ollama.csproj similarity index 98% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/Atc.SemanticKernel.Connectors.Ollama.csproj rename to src/Atc.SemanticKernel.Connectors.Ollama/Atc.SemanticKernel.Connectors.Ollama.csproj index 7c03436..d9ade82 100644 --- a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/Atc.SemanticKernel.Connectors.Ollama.csproj +++ b/src/Atc.SemanticKernel.Connectors.Ollama/Atc.SemanticKernel.Connectors.Ollama.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/ChatCompletion/OllamaChatCompletionService.cs b/src/Atc.SemanticKernel.Connectors.Ollama/ChatCompletion/OllamaChatCompletionService.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/ChatCompletion/OllamaChatCompletionService.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/ChatCompletion/OllamaChatCompletionService.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/ChatCompletion/OllamaChatCompletionServiceLoggerMessages.cs b/src/Atc.SemanticKernel.Connectors.Ollama/ChatCompletion/OllamaChatCompletionServiceLoggerMessages.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/ChatCompletion/OllamaChatCompletionServiceLoggerMessages.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/ChatCompletion/OllamaChatCompletionServiceLoggerMessages.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/Extensions/OllamaKernelBuilderExtensions.cs b/src/Atc.SemanticKernel.Connectors.Ollama/Extensions/OllamaKernelBuilderExtensions.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/Extensions/OllamaKernelBuilderExtensions.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/Extensions/OllamaKernelBuilderExtensions.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/Extensions/OllamaServiceCollectionExtensions.cs b/src/Atc.SemanticKernel.Connectors.Ollama/Extensions/OllamaServiceCollectionExtensions.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/Extensions/OllamaServiceCollectionExtensions.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/Extensions/OllamaServiceCollectionExtensions.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/GlobalUsings.cs b/src/Atc.SemanticKernel.Connectors.Ollama/GlobalUsings.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/GlobalUsings.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/GlobalUsings.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/LoggingEventIdConstants.cs b/src/Atc.SemanticKernel.Connectors.Ollama/LoggingEventIdConstants.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/LoggingEventIdConstants.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/LoggingEventIdConstants.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/OllamaConstants.cs b/src/Atc.SemanticKernel.Connectors.Ollama/OllamaConstants.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/OllamaConstants.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/OllamaConstants.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/OllamaServiceBase.cs b/src/Atc.SemanticKernel.Connectors.Ollama/OllamaServiceBase.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/OllamaServiceBase.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/OllamaServiceBase.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/TextEmbeddingGeneration/OllamaTextEmbeddingGenerationService.cs b/src/Atc.SemanticKernel.Connectors.Ollama/TextEmbeddingGeneration/OllamaTextEmbeddingGenerationService.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/TextEmbeddingGeneration/OllamaTextEmbeddingGenerationService.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/TextEmbeddingGeneration/OllamaTextEmbeddingGenerationService.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/TextEmbeddingGeneration/OllamaTextEmbeddingGenerationServiceLoggerMessages.cs b/src/Atc.SemanticKernel.Connectors.Ollama/TextEmbeddingGeneration/OllamaTextEmbeddingGenerationServiceLoggerMessages.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/TextEmbeddingGeneration/OllamaTextEmbeddingGenerationServiceLoggerMessages.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/TextEmbeddingGeneration/OllamaTextEmbeddingGenerationServiceLoggerMessages.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/TextGenerationService/OllamaTextGenerationService.cs b/src/Atc.SemanticKernel.Connectors.Ollama/TextGenerationService/OllamaTextGenerationService.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/TextGenerationService/OllamaTextGenerationService.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/TextGenerationService/OllamaTextGenerationService.cs diff --git a/src/Connectors/Atc.SemanticKernel.Connectors.Ollama/TextGenerationService/OllamaTextGenerationServiceLoggerMessages.cs b/src/Atc.SemanticKernel.Connectors.Ollama/TextGenerationService/OllamaTextGenerationServiceLoggerMessages.cs similarity index 100% rename from src/Connectors/Atc.SemanticKernel.Connectors.Ollama/TextGenerationService/OllamaTextGenerationServiceLoggerMessages.cs rename to src/Atc.SemanticKernel.Connectors.Ollama/TextGenerationService/OllamaTextGenerationServiceLoggerMessages.cs diff --git a/src/Plugins/Atc.SemanticKernel.Plugins/Atc.SemanticKernel.Plugins.csproj b/src/Atc.SemanticKernel.Plugins/Atc.SemanticKernel.Plugins.csproj similarity index 100% rename from src/Plugins/Atc.SemanticKernel.Plugins/Atc.SemanticKernel.Plugins.csproj rename to src/Atc.SemanticKernel.Plugins/Atc.SemanticKernel.Plugins.csproj