├── .gitignore
├── Azure Zero to Hero - Semantic Kernel.pdf
├── Example-1
├── Program.cs
├── SemanticKernel.Prompt.csproj
└── SemanticKernel.Prompt.sln
├── Example-2
├── Program.cs
├── SemanticKernel.Chat.csproj
└── SemanticKernel.Chat.sln
├── Example-3
├── Program.cs
├── SemanticKernel.ChatHistory.csproj
└── SemanticKernel.ChatHistory.sln
├── Example-4
├── Program.cs
├── SemanticKernel.SystemMessage.csproj
└── SemanticKernel.SystemMessage.sln
├── Example-5
├── GeneralPlugin.cs
├── Program.cs
├── SemanticKernel.NativeFunction.csproj
└── SemanticKernel.NativeFunction.sln
├── Example-6
└── readme.md
├── Example-8
└── readme.md
├── Example-9
├── MathFunctions.cs
├── MathPlanner.cs
├── Program.cs
├── SemanticKernel.Planner.csproj
└── SemanticKernel.Planner.sln
├── LICENSE
├── README.md
└── _slides
├── 00.jpg
├── 01.jpg
├── 02.jpg
├── 03.jpg
├── 04.jpg
├── 05.jpg
├── 06.jpg
├── 07.jpg
├── 08.jpg
├── 09.jpg
└── 10.jpg
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Ww][Ii][Nn]32/
27 | [Aa][Rr][Mm]/
28 | [Aa][Rr][Mm]64/
29 | bld/
30 | [Bb]in/
31 | [Oo]bj/
32 | [Ll]og/
33 | [Ll]ogs/
34 |
35 | # Visual Studio 2015/2017 cache/options directory
36 | .vs/
37 | # Uncomment if you have tasks that create the project's static files in wwwroot
38 | #wwwroot/
39 |
40 | # Visual Studio 2017 auto generated files
41 | Generated\ Files/
42 |
43 | # MSTest test Results
44 | [Tt]est[Rr]esult*/
45 | [Bb]uild[Ll]og.*
46 |
47 | # NUnit
48 | *.VisualState.xml
49 | TestResult.xml
50 | nunit-*.xml
51 |
52 | # Build Results of an ATL Project
53 | [Dd]ebugPS/
54 | [Rr]eleasePS/
55 | dlldata.c
56 |
57 | # Benchmark Results
58 | BenchmarkDotNet.Artifacts/
59 |
60 | # .NET Core
61 | project.lock.json
62 | project.fragment.lock.json
63 | artifacts/
64 |
65 | # ASP.NET Scaffolding
66 | ScaffoldingReadMe.txt
67 |
68 | # StyleCop
69 | StyleCopReport.xml
70 |
71 | # Files built by Visual Studio
72 | *_i.c
73 | *_p.c
74 | *_h.h
75 | *.ilk
76 | *.meta
77 | *.obj
78 | *.iobj
79 | *.pch
80 | *.pdb
81 | *.ipdb
82 | *.pgc
83 | *.pgd
84 | *.rsp
85 | *.sbr
86 | *.tlb
87 | *.tli
88 | *.tlh
89 | *.tmp
90 | *.tmp_proj
91 | *_wpftmp.csproj
92 | *.log
93 | *.tlog
94 | *.vspscc
95 | *.vssscc
96 | .builds
97 | *.pidb
98 | *.svclog
99 | *.scc
100 |
101 | # Chutzpah Test files
102 | _Chutzpah*
103 |
104 | # Visual C++ cache files
105 | ipch/
106 | *.aps
107 | *.ncb
108 | *.opendb
109 | *.opensdf
110 | *.sdf
111 | *.cachefile
112 | *.VC.db
113 | *.VC.VC.opendb
114 |
115 | # Visual Studio profiler
116 | *.psess
117 | *.vsp
118 | *.vspx
119 | *.sap
120 |
121 | # Visual Studio Trace Files
122 | *.e2e
123 |
124 | # TFS 2012 Local Workspace
125 | $tf/
126 |
127 | # Guidance Automation Toolkit
128 | *.gpState
129 |
130 | # ReSharper is a .NET coding add-in
131 | _ReSharper*/
132 | *.[Rr]e[Ss]harper
133 | *.DotSettings.user
134 |
135 | # TeamCity is a build add-in
136 | _TeamCity*
137 |
138 | # DotCover is a Code Coverage Tool
139 | *.dotCover
140 |
141 | # AxoCover is a Code Coverage Tool
142 | .axoCover/*
143 | !.axoCover/settings.json
144 |
145 | # Coverlet is a free, cross platform Code Coverage Tool
146 | coverage*.json
147 | coverage*.xml
148 | coverage*.info
149 |
150 | # Visual Studio code coverage results
151 | *.coverage
152 | *.coveragexml
153 |
154 | # NCrunch
155 | _NCrunch_*
156 | .*crunch*.local.xml
157 | nCrunchTemp_*
158 |
159 | # MightyMoose
160 | *.mm.*
161 | AutoTest.Net/
162 |
163 | # Web workbench (sass)
164 | .sass-cache/
165 |
166 | # Installshield output folder
167 | [Ee]xpress/
168 |
169 | # DocProject is a documentation generator add-in
170 | DocProject/buildhelp/
171 | DocProject/Help/*.HxT
172 | DocProject/Help/*.HxC
173 | DocProject/Help/*.hhc
174 | DocProject/Help/*.hhk
175 | DocProject/Help/*.hhp
176 | DocProject/Help/Html2
177 | DocProject/Help/html
178 |
179 | # Click-Once directory
180 | publish/
181 |
182 | # Publish Web Output
183 | *.[Pp]ublish.xml
184 | *.azurePubxml
185 | # Note: Comment the next line if you want to checkin your web deploy settings,
186 | # but database connection strings (with potential passwords) will be unencrypted
187 | *.pubxml
188 | *.publishproj
189 |
190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
191 | # checkin your Azure Web App publish settings, but sensitive information contained
192 | # in these scripts will be unencrypted
193 | PublishScripts/
194 |
195 | # NuGet Packages
196 | *.nupkg
197 | # NuGet Symbol Packages
198 | *.snupkg
199 | # The packages folder can be ignored because of Package Restore
200 | **/[Pp]ackages/*
201 | # except build/, which is used as an MSBuild target.
202 | !**/[Pp]ackages/build/
203 | # Uncomment if necessary however generally it will be regenerated when needed
204 | #!**/[Pp]ackages/repositories.config
205 | # NuGet v3's project.json files produces more ignorable files
206 | *.nuget.props
207 | *.nuget.targets
208 |
209 | # Microsoft Azure Build Output
210 | csx/
211 | *.build.csdef
212 |
213 | # Microsoft Azure Emulator
214 | ecf/
215 | rcf/
216 |
217 | # Windows Store app package directories and files
218 | AppPackages/
219 | BundleArtifacts/
220 | Package.StoreAssociation.xml
221 | _pkginfo.txt
222 | *.appx
223 | *.appxbundle
224 | *.appxupload
225 |
226 | # Visual Studio cache files
227 | # files ending in .cache can be ignored
228 | *.[Cc]ache
229 | # but keep track of directories ending in .cache
230 | !?*.[Cc]ache/
231 |
232 | # Others
233 | ClientBin/
234 | ~$*
235 | *~
236 | *.dbmdl
237 | *.dbproj.schemaview
238 | *.jfm
239 | *.pfx
240 | *.publishsettings
241 | orleans.codegen.cs
242 |
243 | # Including strong name files can present a security risk
244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
245 | #*.snk
246 |
247 | # Since there are multiple workflows, uncomment next line to ignore bower_components
248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
249 | #bower_components/
250 |
251 | # RIA/Silverlight projects
252 | Generated_Code/
253 |
254 | # Backup & report files from converting an old project file
255 | # to a newer Visual Studio version. Backup files are not needed,
256 | # because we have git ;-)
257 | _UpgradeReport_Files/
258 | Backup*/
259 | UpgradeLog*.XML
260 | UpgradeLog*.htm
261 | ServiceFabricBackup/
262 | *.rptproj.bak
263 |
264 | # SQL Server files
265 | *.mdf
266 | *.ldf
267 | *.ndf
268 |
269 | # Business Intelligence projects
270 | *.rdl.data
271 | *.bim.layout
272 | *.bim_*.settings
273 | *.rptproj.rsuser
274 | *- [Bb]ackup.rdl
275 | *- [Bb]ackup ([0-9]).rdl
276 | *- [Bb]ackup ([0-9][0-9]).rdl
277 |
278 | # Microsoft Fakes
279 | FakesAssemblies/
280 |
281 | # GhostDoc plugin setting file
282 | *.GhostDoc.xml
283 |
284 | # Node.js Tools for Visual Studio
285 | .ntvs_analysis.dat
286 | node_modules/
287 |
288 | # Visual Studio 6 build log
289 | *.plg
290 |
291 | # Visual Studio 6 workspace options file
292 | *.opt
293 |
294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
295 | *.vbw
296 |
297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.)
298 | *.vbp
299 |
300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project)
301 | *.dsw
302 | *.dsp
303 |
304 | # Visual Studio 6 technical files
305 | *.ncb
306 | *.aps
307 |
308 | # Visual Studio LightSwitch build output
309 | **/*.HTMLClient/GeneratedArtifacts
310 | **/*.DesktopClient/GeneratedArtifacts
311 | **/*.DesktopClient/ModelManifest.xml
312 | **/*.Server/GeneratedArtifacts
313 | **/*.Server/ModelManifest.xml
314 | _Pvt_Extensions
315 |
316 | # Paket dependency manager
317 | .paket/paket.exe
318 | paket-files/
319 |
320 | # FAKE - F# Make
321 | .fake/
322 |
323 | # CodeRush personal settings
324 | .cr/personal
325 |
326 | # Python Tools for Visual Studio (PTVS)
327 | __pycache__/
328 | *.pyc
329 |
330 | # Cake - Uncomment if you are using it
331 | # tools/**
332 | # !tools/packages.config
333 |
334 | # Tabs Studio
335 | *.tss
336 |
337 | # Telerik's JustMock configuration file
338 | *.jmconfig
339 |
340 | # BizTalk build output
341 | *.btp.cs
342 | *.btm.cs
343 | *.odx.cs
344 | *.xsd.cs
345 |
346 | # OpenCover UI analysis results
347 | OpenCover/
348 |
349 | # Azure Stream Analytics local run output
350 | ASALocalRun/
351 |
352 | # MSBuild Binary and Structured Log
353 | *.binlog
354 |
355 | # NVidia Nsight GPU debugger configuration file
356 | *.nvuser
357 |
358 | # MFractors (Xamarin productivity tool) working folder
359 | .mfractor/
360 |
361 | # Local History for Visual Studio
362 | .localhistory/
363 |
364 | # Visual Studio History (VSHistory) files
365 | .vshistory/
366 |
367 | # BeatPulse healthcheck temp database
368 | healthchecksdb
369 |
370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
371 | MigrationBackup/
372 |
373 | # Ionide (cross platform F# VS Code tools) working folder
374 | .ionide/
375 |
376 | # Fody - auto-generated XML schema
377 | FodyWeavers.xsd
378 |
379 | # VS Code files for those working on multiple tools
380 | .vscode/*
381 | !.vscode/settings.json
382 | !.vscode/tasks.json
383 | !.vscode/launch.json
384 | !.vscode/extensions.json
385 | *.code-workspace
386 |
387 | # Local History for Visual Studio Code
388 | .history/
389 |
390 | # Windows Installer files from build outputs
391 | *.cab
392 | *.msi
393 | *.msix
394 | *.msm
395 | *.msp
396 |
397 | # JetBrains Rider
398 | *.sln.iml
399 |
--------------------------------------------------------------------------------
/Azure Zero to Hero - Semantic Kernel.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/Azure Zero to Hero - Semantic Kernel.pdf
--------------------------------------------------------------------------------
/Example-1/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.SemanticKernel;
2 |
3 |
4 | var endpoint = Environment.GetEnvironmentVariable("OPENAI_ENDPOINT");
5 | var key = Environment.GetEnvironmentVariable("OPENAI_KEY");
6 |
7 | var builder = Kernel.CreateBuilder();
8 | builder.AddAzureOpenAIChatCompletion(
9 | "gpt-4", // Azure OpenAI Deployment Name
10 | endpoint, // Azure OpenAI Endpoint
11 | key); // Azure OpenAI Key
12 | var kernel = builder.Build();
13 |
14 |
15 | // Running your first prompt with Semantic Kernel
16 | string request = "I want to know how much power my solar panels are providing.";
17 | string prompt = $"What is the intent of this request? {request}";
18 | Console.WriteLine(await kernel.InvokePromptAsync(prompt));
19 | Console.WriteLine("---------------------");
20 |
21 |
22 | // Improving the prompt with prompt engineering
23 | prompt = @$"What is the intent of this request? {request}
24 | You can choose between GetSolarEnergyToday, GetSolarPower, GetSolarBatteryPercentage, StartChargingCar.";
25 | Console.WriteLine(await kernel.InvokePromptAsync(prompt));
26 | Console.WriteLine("---------------------");
27 |
28 |
29 | // Add structure to the output with formatting
30 | prompt = @$"Instructions: What is the intent of this request?
31 | Choices: GetSolarEnergyToday, GetSolarPower, GetSolarBatteryPercentage, StartChargingCar.
32 | User Input: {request}
33 | Intent: ";
34 | Console.WriteLine(await kernel.InvokePromptAsync(prompt));
35 | Console.WriteLine("---------------------");
36 |
37 | prompt = $$"""
38 | ## Instructions
39 | Provide the intent of the request using the following format:
40 |
41 | ```json
42 | {
43 | "intent": {intent}
44 | }
45 | ```
46 |
47 | ## Choices
48 | You can choose between the following intents:
49 |
50 | ```json
51 | ["GetSolarEnergyToday", "GetSolarPower", "GetSolarBatteryPercentage", "StartChargingCar"]
52 | ```
53 |
54 | ## User Input
55 | The user input is:
56 |
57 | ```json
58 | {
59 | "request": "{{request}}"
60 | }
61 | ```
62 |
63 | ## Intent
64 | """;
65 | Console.WriteLine(await kernel.InvokePromptAsync(prompt));
66 | Console.WriteLine("---------------------");
67 |
68 |
69 | // Provide examples with few-shot prompting
70 | prompt = @$"Instructions: What is the intent of this request?
71 | Choices: GetSolarEnergyToday, GetSolarPower, GetSolarBatteryPercentage, StartChargingCar.
72 |
73 | User Input: How much energy did my solar panels provide today?
74 | Intent: GetSolarEnergyToday
75 |
76 | User Input: Can you start charging my car?
77 | Intent: StartChargingCar
78 |
79 | User Input: {request}
80 | Intent: ";
81 | Console.WriteLine(await kernel.InvokePromptAsync(prompt));
82 | Console.WriteLine("---------------------");
83 |
84 |
85 | // Tell the AI what to do to avoid doing something wrong
86 | prompt = $"""
87 | Instructions: What is the intent of this request?
88 | If you don't know the intent, don't guess; instead respond with "Unknown".
89 | Choices: GetSolarEnergyToday, GetSolarPower, GetSolarBatteryPercentage, StartChargingCar.
90 |
91 | User Input: How much energy did my solar panels provide today?
92 | Intent: GetSolarEnergyToday
93 |
94 | User Input: Can you start charging my car?
95 | Intent: StartChargingCar
96 |
97 | User Input: {request}
98 | Intent:
99 | """;
100 | Console.WriteLine(await kernel.InvokePromptAsync(prompt));
101 | Console.WriteLine("---------------------");
102 |
103 |
104 | Console.ReadKey();
--------------------------------------------------------------------------------
/Example-1/SemanticKernel.Prompt.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 | enable
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Example-1/SemanticKernel.Prompt.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.9.34728.123
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemanticKernel.Prompt", "SemanticKernel.Prompt.csproj", "{1F33C0FB-012C-4ABE-A83E-FB88A8B2A3C3}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {1F33C0FB-012C-4ABE-A83E-FB88A8B2A3C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {1F33C0FB-012C-4ABE-A83E-FB88A8B2A3C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {1F33C0FB-012C-4ABE-A83E-FB88A8B2A3C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {1F33C0FB-012C-4ABE-A83E-FB88A8B2A3C3}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {13714658-4F3B-4848-84F0-E52D432BF954}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/Example-2/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.SemanticKernel;
2 | using Microsoft.SemanticKernel.ChatCompletion;
3 |
4 |
5 | var endpoint = Environment.GetEnvironmentVariable("OPENAI_ENDPOINT");
6 | var key = Environment.GetEnvironmentVariable("OPENAI_KEY");
7 |
8 | var builder = Kernel.CreateBuilder();
9 | builder.AddAzureOpenAIChatCompletion(
10 | "gpt-4", // Azure OpenAI Deployment Name
11 | endpoint, // Azure OpenAI Endpoint
12 | key); // Azure OpenAI Key
13 | var kernel = builder.Build();
14 |
15 | var chatCompletionService = kernel.GetRequiredService();
16 |
17 | while (true)
18 | {
19 | Console.ForegroundColor = ConsoleColor.Green;
20 | Console.Write("User > ");
21 | Console.ForegroundColor = ConsoleColor.White;
22 | var request = Console.ReadLine();
23 |
24 | var result = chatCompletionService.GetStreamingChatMessageContentsAsync(request!, kernel: kernel);
25 |
26 | string fullMessage = "";
27 | Console.ForegroundColor = ConsoleColor.Cyan;
28 | Console.Write("Assistant > ");
29 |
30 | await foreach (var content in result)
31 | {
32 | Console.Write(content.Content);
33 | fullMessage += content.Content;
34 | }
35 |
36 | Console.WriteLine();
37 | }
--------------------------------------------------------------------------------
/Example-2/SemanticKernel.Chat.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 | enable
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Example-2/SemanticKernel.Chat.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.9.34728.123
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemanticKernel.Chat", "SemanticKernel.Chat.csproj", "{1131EBC7-9805-4EEE-B0B8-7D6B1025DE03}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {1131EBC7-9805-4EEE-B0B8-7D6B1025DE03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {1131EBC7-9805-4EEE-B0B8-7D6B1025DE03}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {1131EBC7-9805-4EEE-B0B8-7D6B1025DE03}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {1131EBC7-9805-4EEE-B0B8-7D6B1025DE03}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {A12C9460-2C5B-435D-992E-C595D85C2847}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/Example-3/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.SemanticKernel;
2 | using Microsoft.SemanticKernel.ChatCompletion;
3 |
4 |
5 | var endpoint = Environment.GetEnvironmentVariable("OPENAI_ENDPOINT");
6 | var key = Environment.GetEnvironmentVariable("OPENAI_KEY");
7 |
8 | var builder = Kernel.CreateBuilder();
9 | builder.AddAzureOpenAIChatCompletion(
10 | "gpt-4", // Azure OpenAI Deployment Name
11 | endpoint, // Azure OpenAI Endpoint
12 | key); // Azure OpenAI Key
13 | var kernel = builder.Build();
14 |
15 | ChatHistory history = [];
16 |
17 | var chatCompletionService = kernel.GetRequiredService();
18 |
19 | while (true)
20 | {
21 | Console.ForegroundColor = ConsoleColor.Green;
22 | Console.Write("User > ");
23 | Console.ForegroundColor = ConsoleColor.White;
24 | var request = Console.ReadLine();
25 | history.AddUserMessage(request!);
26 |
27 | var result = chatCompletionService.GetStreamingChatMessageContentsAsync(history, kernel: kernel);
28 |
29 | string fullMessage = "";
30 | Console.ForegroundColor = ConsoleColor.Cyan;
31 | Console.Write("Assistant > ");
32 | await foreach (var content in result)
33 | {
34 | Console.Write(content.Content);
35 | fullMessage += content.Content;
36 | }
37 | Console.WriteLine();
38 |
39 | history.AddAssistantMessage(fullMessage);
40 | }
--------------------------------------------------------------------------------
/Example-3/SemanticKernel.ChatHistory.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 | enable
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Example-3/SemanticKernel.ChatHistory.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.9.34728.123
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemanticKernel.ChatHistory", "SemanticKernel.ChatHistory.csproj", "{31DC6753-23B5-4E96-A1E7-800653D8EC28}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {31DC6753-23B5-4E96-A1E7-800653D8EC28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {31DC6753-23B5-4E96-A1E7-800653D8EC28}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {31DC6753-23B5-4E96-A1E7-800653D8EC28}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {31DC6753-23B5-4E96-A1E7-800653D8EC28}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {088A0F91-6DC3-45B6-99F5-33CE5A3C44DC}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/Example-4/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.SemanticKernel;
2 | using Microsoft.SemanticKernel.ChatCompletion;
3 |
4 |
5 | var endpoint = Environment.GetEnvironmentVariable("OPENAI_ENDPOINT");
6 | var key = Environment.GetEnvironmentVariable("OPENAI_KEY");
7 |
8 | var builder = Kernel.CreateBuilder();
9 | builder.AddAzureOpenAIChatCompletion(
10 | "gpt-4", // Azure OpenAI Deployment Name
11 | endpoint, // Azure OpenAI Endpoint
12 | key); // Azure OpenAI Key
13 | var kernel = builder.Build();
14 |
15 | ChatHistory history = [];
16 |
17 | var chatCompletionService = kernel.GetRequiredService();
18 |
19 | history.AddSystemMessage("You should answer as a 10-year old child.");
20 |
21 | while (true)
22 | {
23 | Console.ForegroundColor = ConsoleColor.Green;
24 | Console.Write("User > ");
25 | Console.ForegroundColor = ConsoleColor.White;
26 | var request = Console.ReadLine();
27 | history.AddUserMessage(request!);
28 |
29 | var result = chatCompletionService.GetStreamingChatMessageContentsAsync(history, kernel: kernel);
30 |
31 | string fullMessage = "";
32 | Console.ForegroundColor = ConsoleColor.Cyan;
33 | Console.Write("Assistant > ");
34 |
35 | await foreach (var content in result)
36 | {
37 | Console.Write(content.Content);
38 | fullMessage += content.Content;
39 | }
40 |
41 | Console.WriteLine();
42 |
43 | history.AddAssistantMessage(fullMessage);
44 | }
--------------------------------------------------------------------------------
/Example-4/SemanticKernel.SystemMessage.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 | enable
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Example-4/SemanticKernel.SystemMessage.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.9.34728.123
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemanticKernel.SystemMessage", "SemanticKernel.SystemMessage.csproj", "{8D1480E8-6597-4E69-A731-6FB8EC10BF2E}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {8D1480E8-6597-4E69-A731-6FB8EC10BF2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {8D1480E8-6597-4E69-A731-6FB8EC10BF2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {8D1480E8-6597-4E69-A731-6FB8EC10BF2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {8D1480E8-6597-4E69-A731-6FB8EC10BF2E}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {F8945325-D05E-447C-AC61-9E9E63EAD1A3}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/Example-5/GeneralPlugin.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.SemanticKernel;
2 | using System.ComponentModel;
3 |
4 | namespace SemanticKernel.NativeFunction;
5 |
6 | public class GeneralPlugin
7 | {
8 | [KernelFunction]
9 | [Description("Gets the current time.")]
10 | public TimeSpan GetTime()
11 | {
12 | return TimeProvider.System.GetLocalNow().TimeOfDay;
13 | }
14 |
15 | [KernelFunction]
16 | [Description("Gets the current date.")]
17 | public DateTime GetDate()
18 | {
19 | return TimeProvider.System.GetLocalNow().Date;
20 | }
21 | }
--------------------------------------------------------------------------------
/Example-5/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.SemanticKernel;
2 | using Microsoft.SemanticKernel.ChatCompletion;
3 | using Microsoft.SemanticKernel.Connectors.OpenAI;
4 | using SemanticKernel.NativeFunction;
5 |
6 |
7 | var endpoint = Environment.GetEnvironmentVariable("OPENAI_ENDPOINT");
8 | var key = Environment.GetEnvironmentVariable("OPENAI_KEY");
9 |
10 | var builder = Kernel.CreateBuilder();
11 | builder.AddAzureOpenAIChatCompletion(
12 | "gpt-4", // Azure OpenAI Deployment Name
13 | endpoint, // Azure OpenAI Endpoint
14 | key); // Azure OpenAI Key
15 |
16 | builder.Plugins.AddFromType();
17 |
18 | var kernel = builder.Build();
19 |
20 | var executionSettings = new OpenAIPromptExecutionSettings
21 | {
22 | ToolCallBehavior = ToolCallBehavior.AutoInvokeKernelFunctions
23 | };
24 |
25 | ChatHistory history = [];
26 |
27 | var chatCompletionService = kernel.GetRequiredService();
28 |
29 | while (true)
30 | {
31 | Console.ForegroundColor = ConsoleColor.Green;
32 | Console.Write("User > ");
33 | Console.ForegroundColor = ConsoleColor.White;
34 | var request = Console.ReadLine();
35 | history.AddUserMessage(request!);
36 |
37 | var result = chatCompletionService.GetStreamingChatMessageContentsAsync(history, executionSettings, kernel);
38 |
39 | string fullMessage = "";
40 | Console.ForegroundColor = ConsoleColor.Cyan;
41 | Console.Write("Assistant > ");
42 |
43 | await foreach (var content in result)
44 | {
45 | Console.Write(content.Content);
46 | fullMessage += content.Content;
47 | }
48 |
49 | Console.WriteLine();
50 |
51 | history.AddAssistantMessage(fullMessage);
52 | }
--------------------------------------------------------------------------------
/Example-5/SemanticKernel.NativeFunction.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 | enable
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Example-5/SemanticKernel.NativeFunction.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.9.34728.123
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemanticKernel.NativeFunction", "SemanticKernel.NativeFunction.csproj", "{51682527-C49D-4A80-904A-665F761A112D}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {51682527-C49D-4A80-904A-665F761A112D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {51682527-C49D-4A80-904A-665F761A112D}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {51682527-C49D-4A80-904A-665F761A112D}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {51682527-C49D-4A80-904A-665F761A112D}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {D7566360-BB54-419E-9A7C-BE1C5870FD58}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/Example-6/readme.md:
--------------------------------------------------------------------------------
1 | # NativeFunction in a real-life scenario
2 |
3 | [MijnThuis](https://github.com/Djohnnie/MijnThuis) - An application that combines all my smart-home hardware into a single dashboard including a Copilot using Speech-To-Text.
--------------------------------------------------------------------------------
/Example-8/readme.md:
--------------------------------------------------------------------------------
1 | # Handlebars in a real-life scenario
2 |
3 | [CSharpWars](https://github.com/Djohnnie/CSharpWars-Orleans) - An educational game to learn C# by scripting a virtual robot that fights in an arena.
--------------------------------------------------------------------------------
/Example-9/MathFunctions.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.SemanticKernel;
2 | using System.ComponentModel;
3 |
4 | namespace SemanticKernel.Planner;
5 |
6 | public class MathFunctions
7 | {
8 | [KernelFunction, Description("Take the square root of a number")]
9 | public static double Sqrt([Description("The number to take a square root of")] double number)
10 | {
11 | Console.WriteLine($"{nameof(Sqrt)} function has been called with {nameof(number)}={number}");
12 | return Math.Sqrt(number);
13 | }
14 |
15 | [KernelFunction, Description("Add two numbers")]
16 | public static double Add(
17 | [Description("The first number to add")] double number1,
18 | [Description("The second number to add")] double number2)
19 | {
20 | Console.WriteLine($"{nameof(Add)} function has been called with {nameof(number1)}={number1} and {nameof(number2)}={number2}");
21 | return number1 + number2;
22 | }
23 |
24 | [KernelFunction, Description("Subtract two numbers")]
25 | public static double Subtract(
26 | [Description("The first number to subtract from")] double number1,
27 | [Description("The second number to subtract away")] double number2)
28 | {
29 | Console.WriteLine($"{nameof(Subtract)} function has been called with {nameof(number1)}={number1} and {nameof(number2)}={number2}");
30 | return number1 - number2;
31 | }
32 |
33 | [KernelFunction, Description("Multiply two numbers. When increasing by a percentage, don't forget to add 1 to the percentage.")]
34 | public static double Multiply(
35 | [Description("The first number to multiply")] double number1,
36 | [Description("The second number to multiply")] double number2)
37 | {
38 | Console.WriteLine($"{nameof(Multiply)} function has been called with {nameof(number1)}={number1} and {nameof(number2)}={number2}");
39 | return number1 * number2;
40 | }
41 |
42 | [KernelFunction, Description("Divide two numbers")]
43 | public static double Divide(
44 | [Description("The first number to divide from")] double number1,
45 | [Description("The second number to divide by")] double number2)
46 | {
47 | Console.WriteLine($"{nameof(Divide)} function has been called with {nameof(number1)}={number1} and {nameof(number2)}={number2}");
48 | return number1 / number2;
49 | }
50 |
51 | [KernelFunction, Description("Raise a number to a power")]
52 | public static double Power(
53 | [Description("The number to raise")] double number1,
54 | [Description("The power to raise the number to")] double number2)
55 | {
56 | Console.WriteLine($"{nameof(Power)} function has been called with {nameof(number1)}={number1} and {nameof(number2)}={number2}");
57 | return Math.Pow(number1, number2);
58 | }
59 |
60 | [KernelFunction, Description("Take the log of a number")]
61 | public static double Log(
62 | [Description("The number to take the log of")] double number1,
63 | [Description("The base of the log")] double number2)
64 | {
65 | Console.WriteLine($"{nameof(Log)} function has been called with {nameof(number1)}={number1} and {nameof(number2)}={number2}");
66 | return Math.Log(number1, number2);
67 | }
68 |
69 | [KernelFunction, Description("Round a number to the target number of decimal places")]
70 | public static double Round(
71 | [Description("The number to round")] double number1,
72 | [Description("The number of decimal places to round to")] double number2)
73 | {
74 | Console.WriteLine($"{nameof(Round)} function has been called with {nameof(number1)}={number1} and {nameof(number2)}={number2}");
75 | return Math.Round(number1, (int)number2);
76 | }
77 |
78 | [KernelFunction, Description("Take the absolute value of a number")]
79 | public static double Abs([Description("The number to take the absolute value of")] double number)
80 | {
81 | Console.WriteLine($"{nameof(Abs)} function has been called with {nameof(number)}={number}");
82 | return Math.Abs(number);
83 | }
84 |
85 | [KernelFunction, Description("Take the floor of a number")]
86 | public static double Floor([Description("The number to take the floor of")] double number)
87 | {
88 | Console.WriteLine($"{nameof(Floor)} function has been called with {nameof(number)}={number}");
89 | return Math.Floor(number);
90 | }
91 |
92 | [KernelFunction, Description("Take the ceiling of a number")]
93 | public static double Ceiling([Description("The number to take the ceiling of")] double number)
94 | {
95 | Console.WriteLine($"{nameof(Ceiling)} function has been called with {nameof(number)}={number}");
96 | return Math.Ceiling(number);
97 | }
98 |
99 | [KernelFunction, Description("Take the sine of a number")]
100 | public static double Sin(
101 | [Description("The number to take the sine of")] double number)
102 | {
103 | Console.WriteLine($"{nameof(Sin)} function has been called with {nameof(number)}={number}");
104 | return Math.Sin(number);
105 | }
106 |
107 | [KernelFunction, Description("Take the cosine of a number")]
108 | public static double Cos([Description("The number to take the cosine of")] double number)
109 | {
110 | Console.WriteLine($"{nameof(Cos)} function has been called with {nameof(number)}={number}");
111 | return Math.Cos(number);
112 | }
113 |
114 | [KernelFunction, Description("Take the tangent of a number")]
115 | public static double Tan([Description("The number to take the tangent of")] double number)
116 | {
117 | Console.WriteLine($"{nameof(Tan)} function has been called with {nameof(number)}={number}");
118 | return Math.Tan(number);
119 | }
120 |
121 | [KernelFunction, Description("Take the arcsine of a number")]
122 | public static double Asin([Description("The number to take the arcsine of")] double number)
123 | {
124 | Console.WriteLine($"{nameof(Asin)} function has been called with {nameof(number)}={number}");
125 | return Math.Asin(number);
126 | }
127 |
128 | [KernelFunction, Description("Take the arccosine of a number")]
129 | public static double Acos([Description("The number to take the arccosine of")] double number)
130 | {
131 | Console.WriteLine($"{nameof(Acos)} function has been called with {nameof(number)}={number}");
132 | return Math.Acos(number);
133 | }
134 |
135 | [KernelFunction, Description("Take the arctangent of a number")]
136 | public static double Atan([Description("The number to take the arctangent of")] double number)
137 | {
138 | Console.WriteLine($"{nameof(Atan)} function has been called with {nameof(number)}={number}");
139 | return Math.Atan(number);
140 | }
141 | }
--------------------------------------------------------------------------------
/Example-9/MathPlanner.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.SemanticKernel;
2 | using Microsoft.SemanticKernel.Planning.Handlebars;
3 | using System.ComponentModel;
4 | namespace SemanticKernel.Planner;
5 |
6 | internal class MathPlanner
7 | {
8 | [KernelFunction]
9 | [Description("Solves a math problem.")]
10 | [return: Description("The solution to the math problem.")]
11 | public async Task SolveAsync(
12 | Kernel kernel,
13 | [Description("The math problem to solve; describe it in 2-3 sentences to ensure full context is provided")] string problem)
14 | {
15 | try
16 | {
17 | var kernelWithMath = kernel.Clone();
18 |
19 | // Remove the math solver plugin so that we don't get into an infinite loop
20 | kernelWithMath.Plugins.Remove(kernelWithMath.Plugins["MathPlanner"]);
21 |
22 | // Add the math plugin so the LLM can solve the problem
23 | kernelWithMath.Plugins.AddFromType();
24 |
25 | #pragma warning disable SKEXP0060 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
26 | var planner = new HandlebarsPlanner(new HandlebarsPlannerOptions() { AllowLoops = true });
27 |
28 | // Create a plan
29 | var plan = await planner.CreatePlanAsync(kernelWithMath, problem);
30 | Console.ForegroundColor = ConsoleColor.Cyan;
31 | Console.WriteLine($"{plan}");
32 |
33 | // Execute the plan
34 | Console.ForegroundColor = ConsoleColor.Yellow;
35 | var result = (await plan.InvokeAsync(kernelWithMath)).Trim();
36 | #pragma warning restore SKEXP0060 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
37 |
38 | Console.ForegroundColor = ConsoleColor.White;
39 | return result;
40 | }
41 | catch (Exception ex)
42 | {
43 | Console.WriteLine(ex.ToString());
44 | throw;
45 | }
46 | }
47 | }
--------------------------------------------------------------------------------
/Example-9/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.SemanticKernel;
2 | using Microsoft.SemanticKernel.ChatCompletion;
3 | using Microsoft.SemanticKernel.Connectors.OpenAI;
4 | using SemanticKernel.Planner;
5 |
6 |
7 | var endpoint = Environment.GetEnvironmentVariable("OPENAI_ENDPOINT");
8 | var key = Environment.GetEnvironmentVariable("OPENAI_KEY");
9 |
10 | var builder = Kernel.CreateBuilder();
11 | builder.AddAzureOpenAIChatCompletion(
12 | "gpt-4", // Azure OpenAI Deployment Name
13 | endpoint, // Azure OpenAI Endpoint
14 | key); // Azure OpenAI Key
15 |
16 | builder.Plugins.AddFromType();
17 |
18 | var kernel = builder.Build();
19 |
20 | var executionSettings = new OpenAIPromptExecutionSettings
21 | {
22 | ToolCallBehavior = ToolCallBehavior.AutoInvokeKernelFunctions
23 | };
24 |
25 | ChatHistory history = [];
26 |
27 | var chatCompletionService = kernel.GetRequiredService();
28 |
29 | while (true)
30 | {
31 | Console.ForegroundColor = ConsoleColor.Green;
32 | Console.Write("User > ");
33 | Console.ForegroundColor = ConsoleColor.White;
34 | var request = Console.ReadLine();
35 | history.AddUserMessage(request!);
36 |
37 | var result = chatCompletionService.GetStreamingChatMessageContentsAsync(history, executionSettings, kernel);
38 |
39 | string fullMessage = "";
40 | Console.ForegroundColor = ConsoleColor.Cyan;
41 |
42 | await foreach (var content in result)
43 | {
44 | Console.Write(content.Content);
45 | fullMessage += content.Content;
46 | }
47 |
48 | Console.WriteLine();
49 |
50 | history.AddAssistantMessage(fullMessage);
51 | }
--------------------------------------------------------------------------------
/Example-9/SemanticKernel.Planner.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 | enable
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Example-9/SemanticKernel.Planner.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.10.34916.146
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemanticKernel.Planner", "SemanticKernel.Planner.csproj", "{AEA63989-B65B-45D9-82C0-AAC4D82A5AD0}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {AEA63989-B65B-45D9-82C0-AAC4D82A5AD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {AEA63989-B65B-45D9-82C0-AAC4D82A5AD0}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {AEA63989-B65B-45D9-82C0-AAC4D82A5AD0}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {AEA63989-B65B-45D9-82C0-AAC4D82A5AD0}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {300E7610-47B1-4DE8-9844-06B491A81460}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | This is free and unencumbered software released into the public domain.
2 |
3 | Anyone is free to copy, modify, publish, use, compile, sell, or
4 | distribute this software, either in source code form or as a compiled
5 | binary, for any purpose, commercial or non-commercial, and by any
6 | means.
7 |
8 | In jurisdictions that recognize copyright laws, the author or authors
9 | of this software dedicate any and all copyright interest in the
10 | software to the public domain. We make this dedication for the benefit
11 | of the public at large and to the detriment of our heirs and
12 | successors. We intend this dedication to be an overt act of
13 | relinquishment in perpetuity of all present and future rights to this
14 | software under copyright law.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
24 | For more information, please refer to
25 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024
2 | Building your own AI Agent using Semantic Kernel - Microsoft Learn Zero to Hero Community 2024
3 |
4 | 
5 |
6 | 
7 |
8 | 
9 |
10 | 
11 |
12 | 
13 |
14 | 
15 |
16 | 
17 |
18 | 
19 |
20 | 
21 |
22 | 
23 |
24 | 
--------------------------------------------------------------------------------
/_slides/00.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/00.jpg
--------------------------------------------------------------------------------
/_slides/01.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/01.jpg
--------------------------------------------------------------------------------
/_slides/02.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/02.jpg
--------------------------------------------------------------------------------
/_slides/03.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/03.jpg
--------------------------------------------------------------------------------
/_slides/04.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/04.jpg
--------------------------------------------------------------------------------
/_slides/05.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/05.jpg
--------------------------------------------------------------------------------
/_slides/06.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/06.jpg
--------------------------------------------------------------------------------
/_slides/07.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/07.jpg
--------------------------------------------------------------------------------
/_slides/08.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/08.jpg
--------------------------------------------------------------------------------
/_slides/09.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/09.jpg
--------------------------------------------------------------------------------
/_slides/10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Djohnnie/BuildingAnAIAgentUsingSemanticKernel-MicrosoftLearnZeroToHeroCommunity-2024/dfcbc09ea298e5ee822beae773f10fb9b00a67ce/_slides/10.jpg
--------------------------------------------------------------------------------