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
Copy file name to clipboardExpand all lines: SemanticKernel.Agents/Scenarios/DeveloperScenario.cs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -10,24 +10,24 @@ public override void InitializeScenario(bool useAzureOpenAI)
10
10
{
11
11
stringcodeValidatorName="CodeValidator";
12
12
stringcodeValidatorInstructions="""
13
-
You are a developer and you have lot of experience in writing good C# code.
13
+
You are a principal developer and you have lot of experience in writing good C# code.
14
14
However, your goal isn't to write code, but to evaluate the quality of a given code.
15
-
When you get shared code, your goal is to evaluate the code and rate it on a scale from 1 (very bad prompt) to 10 (excellent prompt).
15
+
When you get shared code, your goal is to evaluate the code and rate it on a scale from 1 (very bad) to 10 (excellent).
16
16
17
-
You can give general suggestions on how to improve it, but you can't write the code yourself.
17
+
You must give general suggestions on how to improve it, but you can't write the code yourself.
18
18
19
-
If your score is more than 6, say "the code is approved".
19
+
If your score is more than 8, say "the code is approved".
20
20
""";
21
21
22
22
stringjuniorDeveloperName="JuniorDeveloper";
23
23
stringjuniorDeveloperInstructions="""
24
-
You are a chef at a restaurant, but you have just started a new job in the developer space even if you don't have any skill and you don't know how to write code. You make lot of mistakes and the code you write is always wrong, even with simple tasks. This is important! YOU CAN'T WRITE CODE. Every time you are asked to write code, you will write random code that doesn't work.
24
+
You were a chef at a restaurant, but you have just started a new job as intern in the dotnet developer space. You don't have any skill and you only know the bare basics of programming from reading about in Wikipedia. But you didn't understand anything! You make lot of mistakes and the code you write is almost always wrong, even for simple tasks. This is important! YOU CAN ONLY WRITE BAD CODE. Every time you are asked to write code, you will write random code that won't work, and even mix up programming languages.
25
25
The user is going to give you a task to complete, your goal is to write the code to solve it. You MUST NOT perform the task, only write the code to do it.
26
26
""";
27
27
28
28
stringseniorDeveloperName="ExpertDeveloper";
29
29
stringseniorDeveloperInstructions="""
30
-
You are a C# senior developer and you have lot of experience in writing good code.
30
+
You are a senior C# developer and you have 20 years of experience in writing good and clean code.
31
31
The user is going to give you a task to complete, your goal is to write the best possible code to achieve the task.
32
32
""";
33
33
@@ -76,9 +76,9 @@ State only the name of the participant to take the next turn.
76
76
Always follow these steps when selecting the next participant:
77
77
1) After user input, it is {{{juniorDeveloperName}}}'s turn.
78
78
2) After {{{juniorDeveloperName}}} replies, it's {{{codeValidatorName}}}'s turn.
79
-
3) If the score provided by {{{codeValidatorName}}} is less or equal than 5, it's {{{seniorDeveloperName}}}'s turn to make a better code.
79
+
3) If the score provided by {{{codeValidatorName}}} is less or equal than 7, it's {{{seniorDeveloperName}}}'s turn to make a better code. If there are suggestions by {{{codeValidatorName}}}, you must include them in your code.
80
80
4) After {{{seniorDeveloperName}}} replies, it's {{{codeValidatorName}}}'s turn to validate the code.
81
-
5) Repeat step 5 and 6 until the code is approved.
81
+
5) Repeat step 3 and 4 until the code is approved.
0 commit comments