You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.ProcessAsync("I want to learn the C major scale. What's the exact fingering pattern for both hands?"+"I want short and concrete answer");
48
+
varresult=awaitcontext.ProcessAsync("I want to learn the C major scale. What's the exact fingering pattern for both hands?"+"I want short and concrete answer");
Copy file name to clipboardExpand all lines: Examples/Examples/Agents/AgentWithWebDataSourceOpenAiExample.cs
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
usingMaIN.Core.Hub;
3
3
usingMaIN.Core.Hub.Utils;
4
4
usingMaIN.Domain.Entities.Agents.AgentSource;
5
+
usingMaIN.Domain.Models;
5
6
6
7
namespaceExamples.Agents;
7
8
@@ -10,11 +11,11 @@ public class AgentWithWebDataSourceOpenAiExample : IExample
10
11
publicasyncTaskStart()
11
12
{
12
13
Console.WriteLine("Agent with web source (OpenAi)");
13
-
14
+
14
15
OpenAiExample.Setup();//We need to provide OpenAi API key
15
16
16
17
varcontext=awaitAIHub.Agent()
17
-
.WithModel("gpt-4o-mini")
18
+
.WithModel(Models.OpenAi.Gpt4oMini)
18
19
.WithInitialPrompt($"Find useful information about daily news, try to include title, description and link.")
19
20
.WithBehaviour("Journalist",$"Base on data provided in chat find useful information about what happen today. Build it in form of newsletter - Name of newsletter is MaIN_Letter and today`s date is {DateTime.UtcNow}")
0 commit comments