Skip to content

Commit ac73cb8

Browse files
2 parents c1f4ef8 + 4b9dbed commit ac73cb8

161 files changed

Lines changed: 5298 additions & 4358 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎dotnet/Directory.Packages.props‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<PackageVersion Include="Azure.Identity" Version="1.10.4" />
1010
<PackageVersion Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.1.0" />
1111
<PackageVersion Include="Azure.Search.Documents" Version="11.5.1" />
12-
<PackageVersion Include="Handlebars.Net.Helpers" Version="2.4.1" />
13-
<PackageVersion Include="Markdig" Version="0.33.0" />
12+
<PackageVersion Include="Handlebars.Net.Helpers" Version="2.4.1.3" />
13+
<PackageVersion Include="Markdig" Version="0.34.0" />
1414
<PackageVersion Include="Handlebars.Net" Version="2.1.4" />
1515
<PackageVersion Include="JsonSchema.Net.Generation" Version="3.5.1" />
1616
<PackageVersion Include="Microsoft.Azure.Kusto.Data" Version="11.3.5" />
@@ -47,16 +47,16 @@
4747
<PackageVersion Include="System.Threading.Channels" Version="8.0.0" />
4848
<PackageVersion Include="System.Threading.Tasks.Dataflow" Version="8.0.0" />
4949
<PackageVersion Include="xunit" Version="2.6.3" />
50-
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.5" />
50+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.6" />
5151
<PackageVersion Include="xretry" Version="1.9.0" />
5252
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
5353
<PackageVersion Include="Polly" Version="8.2.0" />
5454
<!-- Plugins -->
55-
<PackageVersion Include="DocumentFormat.OpenXml" Version="2.20.0" />
55+
<PackageVersion Include="DocumentFormat.OpenXml" Version="3.0.0" />
5656
<PackageVersion Include="Microsoft.Data.Sqlite" Version="8.0.0" />
5757
<PackageVersion Include="DuckDB.NET.Data.Full" Version="0.9.2" />
5858
<PackageVersion Include="DuckDB.NET.Data" Version="0.9.2" />
59-
<PackageVersion Include="MongoDB.Driver" Version="2.22.0" />
59+
<PackageVersion Include="MongoDB.Driver" Version="2.23.1" />
6060
<PackageVersion Include="Microsoft.Graph" Version="[4.51.0, 5)" />
6161
<PackageVersion Include="Microsoft.Azure.Cosmos" Version="[3.32.3, )" />
6262
<PackageVersion Include="Microsoft.Identity.Client.Extensions.Msal" Version="[2.28.0, )" />

‎dotnet/README.md‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ First, let's create a new project, targeting .NET 6 or newer, and add the
1414
`Microsoft.SemanticKernel` nuget package to your project from the command prompt
1515
in Visual Studio:
1616

17-
dotnet add package Microsoft.SemanticKernel --prerelease
17+
dotnet add package Microsoft.SemanticKernel
1818

1919
# Running prompts with input parameters
2020

@@ -24,7 +24,7 @@ Copy and paste the following code into your project, with your Azure OpenAI key
2424
using Microsoft.SemanticKernel;
2525
using Microsoft.SemanticKernel.Connectors.OpenAI;
2626

27-
var builder = new KernelBuilder();
27+
var builder = Kernel.CreateBuilder();
2828

2929
builder.AddAzureOpenAIChatCompletion(
3030
"gpt-35-turbo", // Azure OpenAI Deployment Name
@@ -54,9 +54,9 @@ string text2 = @"
5454
2. The acceleration of an object depends on the mass of the object and the amount of force applied.
5555
3. Whenever one object exerts a force on another object, the second object exerts an equal and opposite on the first.";
5656

57-
Console.WriteLine(await kernel.InvokeAsync(summarize, new KernelArguments(text1)));
57+
Console.WriteLine(await kernel.InvokeAsync(summarize, new() { ["input"] = text1 }));
5858

59-
Console.WriteLine(await kernel.InvokeAsync(summarize, new KernelArguments(text2)));
59+
Console.WriteLine(await kernel.InvokeAsync(summarize, new() { ["input"] = text2 }));
6060

6161
// Output:
6262
// Energy conserved, entropy increases, zero entropy at 0K.
@@ -78,8 +78,8 @@ requirements and setup instructions.
7878
5. [Using Kernel Arguments to Build a Chat Experience](./notebooks/04-kernel-arguments-chat.ipynb)
7979
6. [Creating and Executing Plans](./notebooks/05-using-the-planner.ipynb)
8080
7. [Building Memory with Embeddings](./notebooks/06-memory-and-embeddings.ipynb)
81-
8. [Creating images with DALL-E 2](./notebooks/07-DALL-E-2.ipynb)
82-
9. [Chatting with ChatGPT and Images](./notebooks/08-chatGPT-with-DALL-E-2.ipynb)
81+
8. [Creating images with DALL-E 3](./notebooks/07-DALL-E-3.ipynb)
82+
9. [Chatting with ChatGPT and Images](./notebooks/08-chatGPT-with-DALL-E-3.ipynb)
8383
10. [BingSearch using Kernel](./notebooks/10-BingSearch-using-kernel.ipynb)
8484

8585
# Nuget packages
@@ -102,13 +102,13 @@ Packages included in **Microsoft.SemanticKernel**:
102102
engineering, semantic memory and semantic functions definition and orchestration.
103103
1. **Microsoft.SemanticKernel.Connectors.OpenAI**: connectors to OpenAI and Azure
104104
OpenAI, allowing to run semantic functions, chats, text to image with GPT3,
105-
GPT3.5, GPT4, DALL-E2.
105+
GPT3.5, GPT4, DALL-E3.
106106

107107
Other SK packages available at nuget.org:
108108

109-
1. **Microsoft.SemanticKernel.Connectors.Memory.Qdrant**: Qdrant connector for
109+
1. **Microsoft.SemanticKernel.Connectors.Qdrant**: Qdrant connector for
110110
plugins and semantic memory.
111-
2. **Microsoft.SemanticKernel.Connectors.Memory.Sqlite**: SQLite connector for
111+
2. **Microsoft.SemanticKernel.Connectors.Sqlite**: SQLite connector for
112112
plugins and semantic memory
113113
3. **Microsoft.SemanticKernel.Plugins.Document**: Document Plugin: Word processing,
114114
OpenXML, etc.
@@ -117,4 +117,3 @@ Other SK packages available at nuget.org:
117117
5. **Microsoft.SemanticKernel.Plugins.OpenApi**: OpenAPI Plugin.
118118
6. **Microsoft.SemanticKernel.Plugins.Web**: Web Plugin: search the web, download
119119
files, etc.
120-
7. **Microsoft.SemanticKernel.Reliability.Polly**: Extension for http resiliency.

‎dotnet/SK-dotnet.sln‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Experimental.Agents", "src\
189189
EndProject
190190
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Experimental.Agents.UnitTests", "src\Experimental\Agents.UnitTests\Experimental.Agents.UnitTests.csproj", "{4AD80279-9AC1-476F-8103-E6CD5E4FD525}"
191191
EndProject
192+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Experimental.Orchestration.Flow", "src\Experimental\Orchestration.Flow\Experimental.Orchestration.Flow.csproj", "{B0CE8C69-EC56-4825-94AB-01CA7E8BA55B}"
193+
EndProject
194+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Experimental.Orchestration.Flow.IntegrationTests", "src\Experimental\Orchestration.Flow.IntegrationTests\Experimental.Orchestration.Flow.IntegrationTests.csproj", "{3A4B8F90-3E74-43E0-800C-84F8AA9B5BF3}"
195+
EndProject
196+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Experimental.Orchestration.Flow.UnitTests", "src\Experimental\Orchestration.Flow.UnitTests\Experimental.Orchestration.Flow.UnitTests.csproj", "{731CC542-8BE9-42D4-967D-99206EC2B310}"
197+
EndProject
192198
Global
193199
GlobalSection(SolutionConfigurationPlatforms) = preSolution
194200
Debug|Any CPU = Debug|Any CPU
@@ -439,6 +445,24 @@ Global
439445
{4AD80279-9AC1-476F-8103-E6CD5E4FD525}.Publish|Any CPU.Build.0 = Debug|Any CPU
440446
{4AD80279-9AC1-476F-8103-E6CD5E4FD525}.Release|Any CPU.ActiveCfg = Release|Any CPU
441447
{4AD80279-9AC1-476F-8103-E6CD5E4FD525}.Release|Any CPU.Build.0 = Release|Any CPU
448+
{B0CE8C69-EC56-4825-94AB-01CA7E8BA55B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
449+
{B0CE8C69-EC56-4825-94AB-01CA7E8BA55B}.Debug|Any CPU.Build.0 = Debug|Any CPU
450+
{B0CE8C69-EC56-4825-94AB-01CA7E8BA55B}.Publish|Any CPU.ActiveCfg = Publish|Any CPU
451+
{B0CE8C69-EC56-4825-94AB-01CA7E8BA55B}.Publish|Any CPU.Build.0 = Publish|Any CPU
452+
{B0CE8C69-EC56-4825-94AB-01CA7E8BA55B}.Release|Any CPU.ActiveCfg = Release|Any CPU
453+
{B0CE8C69-EC56-4825-94AB-01CA7E8BA55B}.Release|Any CPU.Build.0 = Release|Any CPU
454+
{3A4B8F90-3E74-43E0-800C-84F8AA9B5BF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
455+
{3A4B8F90-3E74-43E0-800C-84F8AA9B5BF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
456+
{3A4B8F90-3E74-43E0-800C-84F8AA9B5BF3}.Publish|Any CPU.ActiveCfg = Debug|Any CPU
457+
{3A4B8F90-3E74-43E0-800C-84F8AA9B5BF3}.Publish|Any CPU.Build.0 = Debug|Any CPU
458+
{3A4B8F90-3E74-43E0-800C-84F8AA9B5BF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
459+
{3A4B8F90-3E74-43E0-800C-84F8AA9B5BF3}.Release|Any CPU.Build.0 = Release|Any CPU
460+
{731CC542-8BE9-42D4-967D-99206EC2B310}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
461+
{731CC542-8BE9-42D4-967D-99206EC2B310}.Debug|Any CPU.Build.0 = Debug|Any CPU
462+
{731CC542-8BE9-42D4-967D-99206EC2B310}.Publish|Any CPU.ActiveCfg = Debug|Any CPU
463+
{731CC542-8BE9-42D4-967D-99206EC2B310}.Publish|Any CPU.Build.0 = Debug|Any CPU
464+
{731CC542-8BE9-42D4-967D-99206EC2B310}.Release|Any CPU.ActiveCfg = Release|Any CPU
465+
{731CC542-8BE9-42D4-967D-99206EC2B310}.Release|Any CPU.Build.0 = Release|Any CPU
442466
EndGlobalSection
443467
GlobalSection(SolutionProperties) = preSolution
444468
HideSolutionNode = FALSE
@@ -504,6 +528,9 @@ Global
504528
{24503383-A8C4-4255-9998-28D70FE8E99A} = {0247C2C9-86C3-45BA-8873-28B0948EDC0C}
505529
{5438D1E3-E03D-444B-BBBA-478F93161AA8} = {A2357CF8-3BB9-45A1-93F1-B366C9B63658}
506530
{4AD80279-9AC1-476F-8103-E6CD5E4FD525} = {A2357CF8-3BB9-45A1-93F1-B366C9B63658}
531+
{B0CE8C69-EC56-4825-94AB-01CA7E8BA55B} = {A2357CF8-3BB9-45A1-93F1-B366C9B63658}
532+
{3A4B8F90-3E74-43E0-800C-84F8AA9B5BF3} = {A2357CF8-3BB9-45A1-93F1-B366C9B63658}
533+
{731CC542-8BE9-42D4-967D-99206EC2B310} = {A2357CF8-3BB9-45A1-93F1-B366C9B63658}
507534
EndGlobalSection
508535
GlobalSection(ExtensibilityGlobals) = postSolution
509536
SolutionGuid = {FBDC56A3-86AD-4323-AA0F-201E59123B83}

‎dotnet/notebooks/00-getting-started.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"outputs": [],
6262
"source": [
6363
"// Import Semantic Kernel\n",
64-
"#r \"nuget: Microsoft.SemanticKernel, 1.0.0-rc4\""
64+
"#r \"nuget: Microsoft.SemanticKernel, 1.0.1\""
6565
]
6666
},
6767
{

‎dotnet/notebooks/01-basic-loading-the-kernel.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"outputs": [],
3434
"source": [
35-
"#r \"nuget: Microsoft.SemanticKernel, 1.0.0-rc4\""
35+
"#r \"nuget: Microsoft.SemanticKernel, 1.0.1\""
3636
]
3737
},
3838
{

‎dotnet/notebooks/02-running-prompts-from-file.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
},
9494
"outputs": [],
9595
"source": [
96-
"#r \"nuget: Microsoft.SemanticKernel, 1.0.0-rc4\"\n",
96+
"#r \"nuget: Microsoft.SemanticKernel, 1.0.1\"\n",
9797
"\n",
9898
"#!import config/Settings.cs\n",
9999
"\n",

‎dotnet/notebooks/03-semantic-function-inline.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"outputs": [],
5353
"source": [
54-
"#r \"nuget: Microsoft.SemanticKernel, 1.0.0-rc4\"\n",
54+
"#r \"nuget: Microsoft.SemanticKernel, 1.0.1\"\n",
5555
"\n",
5656
"#!import config/Settings.cs\n",
5757
"\n",

‎dotnet/notebooks/04-kernel-arguments-chat.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"outputs": [],
3232
"source": [
33-
"#r \"nuget: Microsoft.SemanticKernel, 1.0.0-rc4\"\n",
33+
"#r \"nuget: Microsoft.SemanticKernel, 1.0.1\"\n",
3434
"#!import config/Settings.cs\n",
3535
"\n",
3636
"using Microsoft.SemanticKernel;\n",

‎dotnet/notebooks/05-using-the-planner.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
},
2626
"outputs": [],
2727
"source": [
28-
"#r \"nuget: Microsoft.SemanticKernel, 1.0.0-rc4\"\n",
29-
"#r \"nuget: Microsoft.SemanticKernel.Planners.Handlebars, 1.0.0-rc4\"\n",
28+
"#r \"nuget: Microsoft.SemanticKernel, 1.0.1\"\n",
29+
"#r \"nuget: Microsoft.SemanticKernel.Planners.Handlebars, 1.0.1-preview\"\n",
3030
"\n",
3131
"#!import config/Settings.cs\n",
3232
"#!import config/Utils.cs\n",

‎dotnet/notebooks/06-memory-and-embeddings.ipynb‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
},
3434
"outputs": [],
3535
"source": [
36-
"#r \"nuget: Microsoft.SemanticKernel, 1.0.0-rc4\"\n",
36+
"#r \"nuget: Microsoft.SemanticKernel, 1.0.1\"\n",
37+
"#r \"nuget: Microsoft.SemanticKernel.Plugins.Memory, 1.0.1-alpha\"\n",
3738
"#r \"nuget: System.Linq.Async, 6.0.1\"\n",
3839
"\n",
3940
"#!import config/Settings.cs\n",
@@ -87,7 +88,7 @@
8788
"using Microsoft.SemanticKernel.Connectors.OpenAI;\n",
8889
"\n",
8990
"// Memory functionality is experimental\n",
90-
"#pragma warning disable SKEXP0011, SKEXP0052\n",
91+
"#pragma warning disable SKEXP0003, SKEXP0011, SKEXP0052\n",
9192
"\n",
9293
"var (useAzureOpenAI, model, azureEndpoint, apiKey, orgId) = Settings.LoadFromFile();\n",
9394
"\n",
@@ -459,7 +460,7 @@
459460
"outputs": [],
460461
"source": [
461462
"// Memory functionality is experimental\n",
462-
"#pragma warning disable SKEXP0011, SKEXP0052\n",
463+
"#pragma warning disable SKEXP0003, SKEXP0011, SKEXP0052\n",
463464
"\n",
464465
"var memoryBuilder = new MemoryBuilder();\n",
465466
"\n",

0 commit comments

Comments
 (0)