Skip to content

Commit 77bd674

Browse files
committed
improved developer scenario for TechnicalSummit2024 session
1 parent 7642e84 commit 77bd674

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

SemanticKernel.Agents/Scenarios/DeveloperScenario.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ public override void InitializeScenario(bool useAzureOpenAI)
1010
{
1111
string codeValidatorName = "CodeValidator";
1212
string codeValidatorInstructions = """
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.
1414
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).
1616
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.
1818
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".
2020
""";
2121

2222
string juniorDeveloperName = "JuniorDeveloper";
2323
string juniorDeveloperInstructions = """
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.
2525
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.
2626
""";
2727

2828
string seniorDeveloperName = "ExpertDeveloper";
2929
string seniorDeveloperInstructions = """
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.
3131
The user is going to give you a task to complete, your goal is to write the best possible code to achieve the task.
3232
""";
3333

@@ -76,9 +76,9 @@ State only the name of the participant to take the next turn.
7676
Always follow these steps when selecting the next participant:
7777
1) After user input, it is {{{juniorDeveloperName}}}'s turn.
7878
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.
8080
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.
8282
8383
History:
8484
{{$history}}

0 commit comments

Comments
 (0)