Skip to content

Commit ff7c7f1

Browse files
committed
feat: template attempt unknown changes
1 parent 3187e67 commit ff7c7f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

openevolve/prompt/sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def _format_evolution_history(
247247

248248
for i, program in enumerate(reversed(selected_previous)):
249249
attempt_number = len(previous_programs) - i
250-
changes = program.get("metadata", {}).get("changes", "Unknown changes")
250+
changes = program.get("metadata", {}).get("changes", self.template_manager.get_fragment("attempt_no_changes"))
251251

252252
# Format performance metrics using safe formatting
253253
performance_parts = []

openevolve/prompts/defaults/fragments.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"no_feature_coordinates": "No feature coordinates",
1919
"artifact_title": "Last Execution Output",
2020
"diverse_programs_title": "Diverse Programs",
21+
"attempt_unknown_changes": "Unknown changes",
2122
"attempt_all_metrics_improved": "Improvement in all metrics",
2223
"attempt_all_metrics_regressed": "Regression in all metrics",
2324
"attempt_mixed_metrics": "Mixed results",

0 commit comments

Comments
 (0)