Skip to content

Commit

Permalink
.Net: Rename 'Skills' -> 'Plugins' - Part 1 (#2854)
Browse files Browse the repository at this point in the history
### Motivation and Context

Rename `Skills` to `Plugins`. First sub task from
#2119.

### Description

This is the first PR

1. Move Core, Document, MsGraph and Web skill projects to a new
`Plugins` folder
2. Update Core, Document, MsGraph and Web projects to use `Plugins`
instead of `Skills` in assembly names, namespace, class names
3. Extract text from `Skills.UnitTests` and create new
`Plugins.UnitTests` project

Solution Explorer:

![image](https://github.com/microsoft/semantic-kernel/assets/127216156/16dd8146-d8a0-44e3-8995-894afb644e09)

File Explorer:

![image](https://github.com/microsoft/semantic-kernel/assets/127216156/1aef0bd9-ac54-492f-8725-eac0d3e6db86)

### Contribution Checklist

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
  • Loading branch information
markwallace-microsoft committed Sep 18, 2023
1 parent d5711d3 commit c10f7c4
Show file tree
Hide file tree
Showing 101 changed files with 467 additions and 417 deletions.
32 changes: 22 additions & 10 deletions dotnet/SK-dotnet.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KernelHttpServer", "..\samp
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IntegrationTests", "src\IntegrationTests\IntegrationTests.csproj", "{E4B777A1-28E1-41BE-96AE-7F3EC61FD5D4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skills.Document", "src\Skills\Skills.Document\Skills.Document.csproj", "{F94D1938-9DB7-4B24-9FF3-166DDFD96330}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plugins.Document", "src\Plugins\Plugins.Document\Plugins.Document.csproj", "{F94D1938-9DB7-4B24-9FF3-166DDFD96330}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skills.MsGraph", "src\Skills\Skills.MsGraph\Skills.MsGraph.csproj", "{689A5041-BAE7-448F-9BDC-4672E96249AA}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plugins.MsGraph", "src\Plugins\Plugins.MsGraph\Plugins.MsGraph.csproj", "{689A5041-BAE7-448F-9BDC-4672E96249AA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skills.Web", "src\Skills\Skills.Web\Skills.Web.csproj", "{EEA87FBC-4ED5-458C-ABD3-BEAEEB535BAF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plugins.Web", "src\Plugins\Plugins.Web\Plugins.Web.csproj", "{EEA87FBC-4ED5-458C-ABD3-BEAEEB535BAF}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{158A4E5E-AEE0-4D60-83C7-8E089B2D881D}"
ProjectSection(SolutionItems) = preProject
Expand Down Expand Up @@ -140,9 +140,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "System", "System", "{3CDE10
src\InternalUtilities\src\System\EnvExtensions.cs = src\InternalUtilities\src\System\EnvExtensions.cs
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skills.Core", "src\Skills\Skills.Core\Skills.Core.csproj", "{0D0C4DAD-E6BC-4504-AE3A-EEA4E35920C1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plugins.Core", "src\Plugins\Plugins.Core\Plugins.Core.csproj", "{0D0C4DAD-E6BC-4504-AE3A-EEA4E35920C1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCalcSkills", "samples\NCalcSkills\NCalcSkills.csproj", "{E6EDAB8F-3406-4DBF-9AAB-DF40DC2CA0FA}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCalcPlugins", "samples\NCalcPlugins\NCalcPlugins.csproj", "{E6EDAB8F-3406-4DBF-9AAB-DF40DC2CA0FA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connectors.AI.Oobabooga", "src\Connectors\Connectors.AI.Oobabooga\Connectors.AI.Oobabooga.csproj", "{677F1381-7830-4115-9C1A-58B282629DC6}"
EndProject
Expand All @@ -160,6 +160,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Reliability.Basic", "src\Ex
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Extensions.StepwisePlanner.UnitTests", "src\Extensions\Extensions.StepwisePlanner.UnitTests\Extensions.StepwisePlanner.UnitTests.csproj", "{6F651E87-F16E-407B-AF7F-B3475F850E9A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "plugins", "plugins", "{D6D598DF-C17C-46F4-B2B9-CDE82E2DE132}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plugins.UnitTests", "src\Plugins\Plugins.UnitTests\Plugins.UnitTests.csproj", "{5CB78CE4-895B-4A14-98AA-716A37DEEBB1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -401,6 +405,12 @@ Global
{6F651E87-F16E-407B-AF7F-B3475F850E9A}.Publish|Any CPU.Build.0 = Debug|Any CPU
{6F651E87-F16E-407B-AF7F-B3475F850E9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F651E87-F16E-407B-AF7F-B3475F850E9A}.Release|Any CPU.Build.0 = Release|Any CPU
{5CB78CE4-895B-4A14-98AA-716A37DEEBB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5CB78CE4-895B-4A14-98AA-716A37DEEBB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5CB78CE4-895B-4A14-98AA-716A37DEEBB1}.Publish|Any CPU.ActiveCfg = Debug|Any CPU
{5CB78CE4-895B-4A14-98AA-716A37DEEBB1}.Publish|Any CPU.Build.0 = Debug|Any CPU
{5CB78CE4-895B-4A14-98AA-716A37DEEBB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5CB78CE4-895B-4A14-98AA-716A37DEEBB1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -411,9 +421,9 @@ Global
{3EB61E99-C39B-4620-9482-F8DA18E48525} = {FA3720F1-C99A-49B2-9577-A940257098BF}
{34A7F1EF-D243-4160-A413-D713FEABCD94} = {FA3720F1-C99A-49B2-9577-A940257098BF}
{E4B777A1-28E1-41BE-96AE-7F3EC61FD5D4} = {831DDCA2-7D2C-4C31-80DB-6BDB3E1F7AE0}
{F94D1938-9DB7-4B24-9FF3-166DDFD96330} = {9ECD1AA0-75B3-4E25-B0B5-9F0945B64974}
{689A5041-BAE7-448F-9BDC-4672E96249AA} = {9ECD1AA0-75B3-4E25-B0B5-9F0945B64974}
{EEA87FBC-4ED5-458C-ABD3-BEAEEB535BAF} = {9ECD1AA0-75B3-4E25-B0B5-9F0945B64974}
{F94D1938-9DB7-4B24-9FF3-166DDFD96330} = {D6D598DF-C17C-46F4-B2B9-CDE82E2DE132}
{689A5041-BAE7-448F-9BDC-4672E96249AA} = {D6D598DF-C17C-46F4-B2B9-CDE82E2DE132}
{EEA87FBC-4ED5-458C-ABD3-BEAEEB535BAF} = {D6D598DF-C17C-46F4-B2B9-CDE82E2DE132}
{37E39C68-5A40-4E63-9D3C-0C66AD98DFCB} = {831DDCA2-7D2C-4C31-80DB-6BDB3E1F7AE0}
{9ECD1AA0-75B3-4E25-B0B5-9F0945B64974} = {831DDCA2-7D2C-4C31-80DB-6BDB3E1F7AE0}
{107156B4-5A8B-45C7-97A2-4544D7FA19DE} = {9ECD1AA0-75B3-4E25-B0B5-9F0945B64974}
Expand Down Expand Up @@ -448,7 +458,7 @@ Global
{DB950192-30F1-48B1-88D7-F43FECCA1A1C} = {958AD708-F048-4FAF-94ED-D2F2B92748B9}
{1C19D805-3573-4477-BF07-40180FCDE1BD} = {958AD708-F048-4FAF-94ED-D2F2B92748B9}
{3CDE10B2-AE8F-4FC4-8D55-92D4AD32E144} = {958AD708-F048-4FAF-94ED-D2F2B92748B9}
{0D0C4DAD-E6BC-4504-AE3A-EEA4E35920C1} = {9ECD1AA0-75B3-4E25-B0B5-9F0945B64974}
{0D0C4DAD-E6BC-4504-AE3A-EEA4E35920C1} = {D6D598DF-C17C-46F4-B2B9-CDE82E2DE132}
{E6EDAB8F-3406-4DBF-9AAB-DF40DC2CA0FA} = {FA3720F1-C99A-49B2-9577-A940257098BF}
{677F1381-7830-4115-9C1A-58B282629DC6} = {0247C2C9-86C3-45BA-8873-28B0948EDC0C}
{4762BCAF-E1C5-4714-B88D-E50FA333C50E} = {078F96B4-09E1-4E0E-B214-F71A4F4BF633}
Expand All @@ -458,8 +468,10 @@ Global
{D4540A0F-98E3-4E70-9093-1948AE5B2AAD} = {078F96B4-09E1-4E0E-B214-F71A4F4BF633}
{3DC4DBD8-20A5-4937-B4F5-BB5E24E7A567} = {078F96B4-09E1-4E0E-B214-F71A4F4BF633}
{6F651E87-F16E-407B-AF7F-B3475F850E9A} = {078F96B4-09E1-4E0E-B214-F71A4F4BF633}
{D6D598DF-C17C-46F4-B2B9-CDE82E2DE132} = {831DDCA2-7D2C-4C31-80DB-6BDB3E1F7AE0}
{5CB78CE4-895B-4A14-98AA-716A37DEEBB1} = {D6D598DF-C17C-46F4-B2B9-CDE82E2DE132}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FBDC56A3-86AD-4323-AA0F-201E59123B83}
EndGlobalSection
EndGlobal
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<ProjectReference Include="..\..\src\Connectors\Connectors.AI.OpenAI\Connectors.AI.OpenAI.csproj" />
<ProjectReference Include="..\..\src\SemanticKernel\SemanticKernel.csproj" />
<ProjectReference Include="..\..\src\Extensions\TemplateEngine.PromptTemplateEngine\TemplateEngine.PromptTemplateEngine.csproj" />
<ProjectReference Include="..\..\src\Skills\Skills.Core\Skills.Core.csproj" />
<ProjectReference Include="..\..\src\Skills\Skills.Web\Skills.Web.csproj" />
<ProjectReference Include="..\NCalcSkills\NCalcSkills.csproj" />
<ProjectReference Include="..\..\src\Plugins\Plugins.Core\Plugins.Core.csproj" />
<ProjectReference Include="..\..\src\Plugins\Plugins.Web\Plugins.Web.csproj" />
<ProjectReference Include="..\NCalcPlugins\NCalcPlugins.csproj" />
</ItemGroup>

</Project>
14 changes: 7 additions & 7 deletions dotnet/samples/ApplicationInsightsExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
using Microsoft.SemanticKernel.Planning.Action;
using Microsoft.SemanticKernel.Planning.Sequential;
using Microsoft.SemanticKernel.Planning.Stepwise;
using Microsoft.SemanticKernel.Skills.Core;
using Microsoft.SemanticKernel.Skills.Web;
using Microsoft.SemanticKernel.Skills.Web.Bing;
using NCalcSkills;
using Microsoft.SemanticKernel.Plugins.Core;
using Microsoft.SemanticKernel.Plugins.Web;
using Microsoft.SemanticKernel.Plugins.Web.Bing;
using NCalcPlugins;

/// <summary>
/// Example of telemetry in Semantic Kernel using Application Insights within console application.
Expand Down Expand Up @@ -110,7 +110,7 @@ private static IKernel GetKernel(ILoggerFactory loggerFactory)
{
var folder = RepoFiles.SampleSkillsPath();
var bingConnector = new BingConnector(Env.Var("Bing__ApiKey"));
var webSearchEngineSkill = new WebSearchEngineSkill(bingConnector);
var webSearchEngineSkill = new WebSearchEnginePlugin(bingConnector);

var kernel = new KernelBuilder()
.WithLoggerFactory(loggerFactory)
Expand All @@ -123,8 +123,8 @@ private static IKernel GetKernel(ILoggerFactory loggerFactory)
kernel.ImportSemanticSkillFromDirectory(folder, "SummarizeSkill", "WriterSkill");

kernel.ImportSkill(webSearchEngineSkill, "WebSearch");
kernel.ImportSkill(new LanguageCalculatorSkill(kernel), "advancedCalculator");
kernel.ImportSkill(new TimeSkill(), "time");
kernel.ImportSkill(new LanguageCalculatorPlugin(kernel), "advancedCalculator");
kernel.ImportSkill(new TimePlugin(), "time");

return kernel;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System;
using System.Threading.Tasks;
using Microsoft.SemanticKernel.Skills.Core;
using Microsoft.SemanticKernel.Plugins.Core;

// ReSharper disable once InconsistentNaming
public static class Example01_NativeFunctions
Expand All @@ -12,7 +12,7 @@ public static Task RunAsync()
Console.WriteLine("======== Functions ========");

// Load native skill
var text = new TextSkill();
var text = new TextPlugin();

// Use function without kernel
var result = text.Uppercase("ciao!");
Expand Down
4 changes: 2 additions & 2 deletions dotnet/samples/KernelSyntaxExamples/Example02_Pipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Orchestration;
using Microsoft.SemanticKernel.Skills.Core;
using Microsoft.SemanticKernel.Plugins.Core;
using RepoUtils;

// ReSharper disable once InconsistentNaming
Expand All @@ -20,7 +20,7 @@ public static async Task RunAsync()
IKernel kernel = new KernelBuilder().WithLoggerFactory(s_loggerFactory).Build();

// Load native skill
var text = kernel.ImportSkill(new TextSkill());
var text = kernel.ImportSkill(new TextPlugin());

SKContext result = await kernel.RunAsync(" i n f i n i t e s p a c e ",
text["TrimStart"],
Expand Down
2 changes: 1 addition & 1 deletion dotnet/samples/KernelSyntaxExamples/Example03_Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static async Task RunAsync()
Console.WriteLine("======== Variables ========");

IKernel kernel = new KernelBuilder().WithLoggerFactory(s_loggerFactory).Build();
var text = kernel.ImportSkill(new StaticTextSkill(), "text");
var text = kernel.ImportSkill(new StaticTextPlugin(), "text");

var variables = new ContextVariables("Today is: ");
variables.Set("day", DateTimeOffset.Now.ToString("dddd", CultureInfo.CurrentCulture));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using System;
using System.Threading.Tasks;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Skills.Web;
using Microsoft.SemanticKernel.Skills.Web.Bing;
using Microsoft.SemanticKernel.Plugins.Web;
using Microsoft.SemanticKernel.Plugins.Web.Bing;
using RepoUtils;

// ReSharper disable once InconsistentNaming
Expand Down Expand Up @@ -37,7 +37,7 @@ public static async Task RunAsync()
}

var bingConnector = new BingConnector(bingApiKey);
var bing = new WebSearchEngineSkill(bingConnector);
var bing = new WebSearchEnginePlugin(bingConnector);
var search = kernel.ImportSkill(bing, "bing");

// Load semantic skill defined with prompt templates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;
using System.Threading.Tasks;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Skills.Core;
using Microsoft.SemanticKernel.Plugins.Core;
using Microsoft.SemanticKernel.TemplateEngine.Prompt;
using RepoUtils;

Expand Down Expand Up @@ -36,7 +36,7 @@ public static async Task RunAsync()

// Load native skill into the kernel skill collection, sharing its functions with prompt templates
// Functions loaded here are available as "time.*"
kernel.ImportSkill(new TimeSkill(), "time");
kernel.ImportSkill(new TimePlugin(), "time");

// Semantic Function invoking time.Date and time.Time native functions
const string FunctionDefinition = @"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
using System;
using System.Threading.Tasks;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Skills.Web;
using Microsoft.SemanticKernel.Skills.Web.Bing;
using Microsoft.SemanticKernel.Skills.Web.Google;
using Microsoft.SemanticKernel.Plugins.Web;
using Microsoft.SemanticKernel.Plugins.Web.Bing;
using Microsoft.SemanticKernel.Plugins.Web.Google;
using Microsoft.SemanticKernel.TemplateEngine.Prompt;
using RepoUtils;

Expand Down Expand Up @@ -46,7 +46,7 @@ public static async Task RunAsync()
else
{
var bingConnector = new BingConnector(bingApiKey);
var bing = new WebSearchEngineSkill(bingConnector);
var bing = new WebSearchEnginePlugin(bingConnector);
var search = kernel.ImportSkill(bing, "bing");
await Example1Async(kernel, "bing");
await Example2Async(kernel);
Expand All @@ -65,8 +65,8 @@ public static async Task RunAsync()
using var googleConnector = new GoogleConnector(
apiKey: googleApiKey,
searchEngineId: googleSearchEngineId);
var google = new WebSearchEngineSkill(googleConnector);
var search = kernel.ImportSkill(new WebSearchEngineSkill(googleConnector), "google");
var google = new WebSearchEnginePlugin(googleConnector);
var search = kernel.ImportSkill(new WebSearchEnginePlugin(googleConnector), "google");
await Example1Async(kernel, "google");
}
}
Expand Down
4 changes: 2 additions & 2 deletions dotnet/samples/KernelSyntaxExamples/Example08_RetryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Http;
using Microsoft.SemanticKernel.Plugins.Core;
using Microsoft.SemanticKernel.Reliability.Basic;
using Microsoft.SemanticKernel.Skills.Core;
using Polly;
using RepoUtils;

Expand Down Expand Up @@ -110,7 +110,7 @@ private static async Task ImportAndExecuteSkillAsync(IKernel kernel)
// Load semantic skill defined with prompt templates
string folder = RepoFiles.SampleSkillsPath();

kernel.ImportSkill(new TimeSkill(), "time");
kernel.ImportSkill(new TimePlugin(), "time");

var qaSkill = kernel.ImportSemanticSkillFromDirectory(
folder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Plugins.Core;
using Microsoft.SemanticKernel.SkillDefinition;
using Microsoft.SemanticKernel.Skills.Core;
using RepoUtils;
using Skills;

Expand All @@ -29,11 +29,11 @@ public static Task RunAsync()
.Build();

// Import a native skill
var skill1 = new StaticTextSkill();
var skill1 = new StaticTextPlugin();
kernel.ImportSkill(skill1, "StaticTextskill");

// Import another native skill
var skill2 = new TextSkill();
var skill2 = new TextPlugin();
kernel.ImportSkill(skill2, "AnotherTextskill");

// Import a semantic skill
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;
using System.Threading.Tasks;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Skills.Web;
using Microsoft.SemanticKernel.Plugins.Web;
using RepoUtils;

// ReSharper disable once InconsistentNaming
Expand All @@ -16,7 +16,7 @@ public static async Task RunAsync()
IKernel kernel = Kernel.Builder.WithLoggerFactory(ConsoleLogger.LoggerFactory).Build();

// Load native skills
var skill = new SearchUrlSkill();
var skill = new SearchUrlPlugin();
var bing = kernel.ImportSkill(skill, "search");

// Run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ private static async Task MemorySampleAsync()
"QASkill");

kernel.ImportSkill(new EmailSkill(), "email");
kernel.ImportSkill(new StaticTextSkill(), "statictext");
kernel.ImportSkill(new Microsoft.SemanticKernel.Skills.Core.TextSkill(), "coretext");
kernel.ImportSkill(new StaticTextPlugin(), "statictext");
kernel.ImportSkill(new Microsoft.SemanticKernel.Plugins.Core.TextPlugin(), "coretext");

var goal = "Create a book with 3 chapters about a group of kids in a club called 'The Thinking Caps.'";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
using System.Threading.Tasks;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Orchestration;
using Microsoft.SemanticKernel.Plugins.Core;
using Microsoft.SemanticKernel.SkillDefinition;
using Microsoft.SemanticKernel.Skills.Core;
using RepoUtils;

// ReSharper disable once InconsistentNaming

internal static class Example13_ConversationSummarySkill
internal static class Example13_ConversationSummaryPlugin
{
private const string ChatTranscript =
@"
Expand Down Expand Up @@ -123,18 +123,18 @@ internal static class Example13_ConversationSummarySkill

public static async Task RunAsync()
{
await ConversationSummarySkillAsync();
await ConversationSummaryPluginAsync();
await GetConversationActionItemsAsync();
await GetConversationTopicsAsync();
}

private static async Task ConversationSummarySkillAsync()
private static async Task ConversationSummaryPluginAsync()
{
Console.WriteLine("======== SampleSkills - Conversation Summary Skill - Summarize ========");
IKernel kernel = InitializeKernel();

IDictionary<string, ISKFunction> conversationSummarySkill =
kernel.ImportSkill(new ConversationSummarySkill(kernel));
kernel.ImportSkill(new ConversationSummaryPlugin(kernel));

SKContext summary = await kernel.RunAsync(
ChatTranscript,
Expand All @@ -150,7 +150,7 @@ private static async Task GetConversationActionItemsAsync()
IKernel kernel = InitializeKernel();

IDictionary<string, ISKFunction> conversationSummarySkill =
kernel.ImportSkill(new ConversationSummarySkill(kernel));
kernel.ImportSkill(new ConversationSummaryPlugin(kernel));

SKContext summary = await kernel.RunAsync(
ChatTranscript,
Expand All @@ -166,7 +166,7 @@ private static async Task GetConversationTopicsAsync()
IKernel kernel = InitializeKernel();

IDictionary<string, ISKFunction> conversationSummarySkill =
kernel.ImportSkill(new ConversationSummarySkill(kernel));
kernel.ImportSkill(new ConversationSummaryPlugin(kernel));

SKContext summary = await kernel.RunAsync(
ChatTranscript,
Expand Down

0 comments on commit c10f7c4

Please sign in to comment.