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
# If no good word boundary, truncate and ensure we don't break escape sequences
993
994
clean_description=truncated.rstrip('\\') +"..."
994
995
995
-
# Insert the new system prompt before the task description
996
+
# Insert the new system prompt before the task description - properly indented for block scalar
996
997
system_prompt= (
997
-
"SETTING:\n"
998
-
"You're an autonomous programmer tasked with solving a specific problem. You are to use the commands defined below to accomplish this task. Every message you send incurs a cost—you will be informed of your usage and remaining budget by the system.\n"
999
-
"You will be evaluated based on the best-performing piece of code you produce, even if the final code doesn't work or compile (as long as it worked at some point and achieved a score, you will be eligible).\n"
1000
-
"Apart from the default Python packages, you have access to the following additional packages:\n"
"Your primary objective is to optimize the `solve` function to run as as fast as possible, while returning the optimal solution.\n"
1003
-
"You will receive better scores the quicker your solution runs, and you will be penalized for exceeding the time limit or returning non-optimal solutions.\n\n"
1004
-
"Below you find the description of the task you will have to solve. Read it carefully and understand what the problem is and what your solver should do.\n\n"
998
+
"SETTING:\n"
999
+
"You're an autonomous programmer tasked with solving a specific problem. You are to use the commands defined below to accomplish this task. Every message you send incurs a cost—you will be informed of your usage and remaining budget by the system.\n"
1000
+
"You will be evaluated based on the best-performing piece of code you produce, even if the final code doesn't work or compile (as long as it worked at some point and achieved a score, you will be eligible).\n"
1001
+
"Apart from the default Python packages, you have access to the following additional packages:\n"
"Your primary objective is to optimize the `solve` function to run as as fast as possible, while returning the optimal solution.\n"
1004
+
"You will receive better scores the quicker your solution runs, and you will be penalized for exceeding the time limit or returning non-optimal solutions.\n\n"
1005
+
"Below you find the description of the task you will have to solve. Read it carefully and understand what the problem is and what your solver should do.\n\n"
1005
1006
)
1006
1007
config=f'''# Configuration for {task_name} task with baseline comparison
system_message: "{system_prompt}You are an expert programmer specializing in {category} algorithms. Your task is to improve the {task_name} algorithm implementation with baseline comparison. The problem description is: {clean_description}. Focus on improving the solve method to correctly handle the input format and produce valid solutions efficiently. Your solution will be compared against the reference AlgoTune baseline implementation to measure speedup and correctness."
1025
+
system_message: |
1026
+
{system_prompt} You are an expert programmer specializing in {category} algorithms. Your task is to improve the {task_name} algorithm implementation with baseline comparison.
1027
+
1028
+
The problem description is:
1029
+
{clean_description}
1030
+
1031
+
Focus on improving the solve method to correctly handle the input format and produce valid solutions efficiently. Your solution will be compared against the reference AlgoTune baseline implementation to measure speedup and correctness.
0 commit comments