- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
Latest commit
18 lines (15 loc) · 816 Bytes
/
Copy pathProgram.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
usingAutoGen.BasicSamples;
usingMicrosoft.SemanticKernel;
usingMicrosoft.SemanticKernel.Connectors.OpenAI;
Console.WriteLine("Hello, World!");
varsettings=newOpenAIPromptExecutionSettings
{
Temperature=0
};
varkernelBuilder=Kernel.CreateBuilder()
.AddOpenAIChatCompletion(modelId:GlobalConfiguration.modelId,apiKey:GlobalConfiguration.openAIKey,httpClient:newHttpClient(newOpenAiHttpClientHandler(GlobalConfiguration.url)));
// await Example01_AssistantAgent.RunAsync(kernelBuilder, settings);
// await Example02_TwoAgent_MathChat.RunAsync(kernelBuilder, settings);
// await Example03_Agent_FunctionCall.RunAsync(kernelBuilder, settings);
awaitExample04_Dynamic_GroupChat_Coding_Task.RunAsync(kernelBuilder,settings);