| 
									
										
										
										
											2024-10-30 11:53:37 -07:00
										 |  |  | // Copyright (c) Microsoft Corporation. All rights reserved. | 
					
						
							|  |  |  | // DeveloperPrompts.cs | 
					
						
							| 
									
										
										
										
											2023-06-09 17:10:41 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-24 19:24:00 -08:00
										 |  |  | namespace DevTeam.Backend.Agents.Developer; | 
					
						
							| 
									
										
										
										
											2024-06-19 17:25:18 -07:00
										 |  |  | public static class DeveloperSkills | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     public const string Implement = """
 | 
					
						
							| 
									
										
										
										
											2023-06-09 17:10:41 +02:00
										 |  |  |         You are a Developer for an application.  | 
					
						
							|  |  |  |         Please output the code required to accomplish the task assigned to you below and wrap it in a bash script that creates the files. | 
					
						
							|  |  |  |         Do not use any IDE commands and do not build and run the code. | 
					
						
							|  |  |  |         Make specific choices about implementation. Do not offer a range of options. | 
					
						
							|  |  |  |         Use comments in the code to describe the intent. Do not include other text other than code and code comments. | 
					
						
							|  |  |  |         Input: {{$input}} | 
					
						
							| 
									
										
										
										
											2024-05-14 14:18:24 +02:00
										 |  |  |         {{$waf}} | 
					
						
							| 
									
										
										
										
											2024-02-19 11:38:51 +01:00
										 |  |  |         """;
 | 
					
						
							| 
									
										
										
										
											2023-06-16 19:22:55 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-19 17:25:18 -07:00
										 |  |  |     public const string Improve = """
 | 
					
						
							| 
									
										
										
										
											2023-06-16 19:22:55 +00:00
										 |  |  |         You are a Developer for an application. Your job is to imrove the code that you are given in the input below.  | 
					
						
							|  |  |  |         Please output a new version of code that fixes any problems with this version.  | 
					
						
							|  |  |  |         If there is an error message in the input you should fix that error in the code.  | 
					
						
							|  |  |  |         Wrap the code output up in a bash script that creates the necessary files by overwriting any previous files.  | 
					
						
							|  |  |  |         Do not use any IDE commands and do not build and run the code. | 
					
						
							|  |  |  |         Make specific choices about implementation. Do not offer a range of options. | 
					
						
							|  |  |  |         Use comments in the code to describe the intent. Do not include other text other than code and code comments. | 
					
						
							|  |  |  |         Input: {{$input}} | 
					
						
							| 
									
										
										
										
											2024-05-14 14:18:24 +02:00
										 |  |  |         {{$waf}} | 
					
						
							| 
									
										
										
										
											2024-02-19 11:38:51 +01:00
										 |  |  |         """;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-19 17:25:18 -07:00
										 |  |  |     public const string Explain = """
 | 
					
						
							| 
									
										
										
										
											2024-02-19 11:38:51 +01:00
										 |  |  |         You are an experienced software developer, with strong experience in Azure and Microsoft technologies. | 
					
						
							|  |  |  |         Extract the key features and capabilities of the code file below, with the intent to build an understanding of an entire code repository. | 
					
						
							|  |  |  |         You can include references or documentation links in your explanation. Also where appropriate please output a list of keywords to describe the code or its capabilities. | 
					
						
							|  |  |  |         Example: | 
					
						
							|  |  |  |             Keywords: Azure, networking, security, authentication | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         ===code===   | 
					
						
							|  |  |  |          {{$input}} | 
					
						
							|  |  |  |         ===end-code=== | 
					
						
							|  |  |  |         Only include the points in a bullet point format and DON'T add anything outside of the bulleted list. | 
					
						
							|  |  |  |         Be short and concise.  | 
					
						
							|  |  |  |         If the code's purpose is not clear output an error:   | 
					
						
							|  |  |  |         Error: The model could not determine the purpose of the code. | 
					
						
							|  |  |  |         """;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-19 17:25:18 -07:00
										 |  |  |     public const string ConsolidateUnderstanding = """
 | 
					
						
							| 
									
										
										
										
											2024-02-19 11:38:51 +01:00
										 |  |  |         You are an experienced software developer, with strong experience in Azure and Microsoft technologies. | 
					
						
							|  |  |  |         You are trying to build an understanding of the codebase from code files. This is the current understanding of the project: | 
					
						
							|  |  |  |         ===current-understanding=== | 
					
						
							|  |  |  |          {{$input}} | 
					
						
							|  |  |  |         ===end-current-understanding=== | 
					
						
							|  |  |  |         and this is the new information that surfaced | 
					
						
							|  |  |  |         ===new-understanding=== | 
					
						
							|  |  |  |          {{$newUnderstanding}} | 
					
						
							|  |  |  |         ===end-new-understanding=== | 
					
						
							|  |  |  |         Your job is to update your current understanding with the new information. | 
					
						
							|  |  |  |         Only include the points in a bullet point format and DON'T add anything outside of the bulleted list. | 
					
						
							|  |  |  |         Be short and concise.  | 
					
						
							|  |  |  |         """;
 | 
					
						
							| 
									
										
										
										
											2024-10-02 11:42:27 -07:00
										 |  |  | } |