-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
18 lines (15 loc) · 816 Bytes
/
Program.cs
File metadata and controls
18 lines (15 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// See https://aka.ms/new-console-template for more information
using AutoGen.BasicSamples;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Connectors.OpenAI;
Console.WriteLine("Hello, World!");
var settings = new OpenAIPromptExecutionSettings
{
Temperature = 0
};
var kernelBuilder = Kernel.CreateBuilder()
.AddOpenAIChatCompletion(modelId: GlobalConfiguration.modelId, apiKey: GlobalConfiguration.openAIKey, httpClient: new HttpClient(new OpenAiHttpClientHandler(GlobalConfiguration.url)));
// await Example01_AssistantAgent.RunAsync(kernelBuilder, settings);
// await Example02_TwoAgent_MathChat.RunAsync(kernelBuilder, settings);
// await Example03_Agent_FunctionCall.RunAsync(kernelBuilder, settings);
await Example04_Dynamic_GroupChat_Coding_Task.RunAsync(kernelBuilder, settings);