Update code
Browse files- prompt_builder.py +3 -3
prompt_builder.py
CHANGED
|
@@ -171,9 +171,9 @@ def build_refactor_prompt(
|
|
| 171 |
"Follow these rules:\n"
|
| 172 |
"1. Preserve the original behavior unless the user explicitly asked for functional changes.\n"
|
| 173 |
"2. Preserve all existing function names, class names, method names, parameters, argument order, return behavior, and public interfaces.\n"
|
| 174 |
-
"3.
|
| 175 |
-
"4.
|
| 176 |
-
"5.
|
| 177 |
"6. If the code is already simple and acceptable, make only minimal improvements.\n"
|
| 178 |
"7. Return the improved code and a concise explanation of what was improved.\n\n"
|
| 179 |
f"{shared}\n\n"
|
|
|
|
| 171 |
"Follow these rules:\n"
|
| 172 |
"1. Preserve the original behavior unless the user explicitly asked for functional changes.\n"
|
| 173 |
"2. Preserve all existing function names, class names, method names, parameters, argument order, return behavior, and public interfaces.\n"
|
| 174 |
+
"3. You must keep the original callable names exactly the same.\n"
|
| 175 |
+
"4. Do not rename variables, parameters, functions, classes, or methods unless absolutely necessary.\n"
|
| 176 |
+
"5. Improve readability, maintainability, and structure only.\n"
|
| 177 |
"6. If the code is already simple and acceptable, make only minimal improvements.\n"
|
| 178 |
"7. Return the improved code and a concise explanation of what was improved.\n\n"
|
| 179 |
f"{shared}\n\n"
|