Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(score): skip missing log files in scoring

Steven Enamakel01f355c2f21c
diff --git a/scripts/prompt-eval/score.py b/scripts/prompt-eval/score.py
index e7d4bd83bc..cf67df5b66 100755
--- a/scripts/prompt-eval/score.py
+++ b/scripts/prompt-eval/score.py
@@ -165,6 +165,8 @@ def score(doc, case, ws, secs, run=1):
log = ""
since = float(os.environ.get("PROMPT_EVAL_SINCE") or 0)
for path in [os.path.join(ws, "core.log")] + glob.glob(os.path.join(ws, "**", "*.log"), recursive=True):
+ if not os.path.exists(path):
+ continue
if os.path.getmtime(path) <= since:
continue
try: