Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Improve judge system history processing
Magnus Müller46ba7b79a9b7
diff --git a/eval/judge_system.py b/eval/judge_system.pyindex 814eed9d4..639f77669 100644--- a/eval/judge_system.py+++ b/eval/judge_system.py@@ -158,15 +158,16 @@ def prepare_agent_steps(complete_history: list[dict]) -> list[str]:is already included in the final_result."""# Check if last step contains a 'done' action- history_to_process = complete_history.copy()- if complete_history:- last_step = complete_history[-1]- if last_step.get('result'):- for result in last_step['result']:- if isinstance(result, dict) and result.get('is_done'):- # Exclude the last step since it's a 'done' action- history_to_process = complete_history[:-1]- break+ # history_to_process = complete_history.copy()+ # if complete_history:+ # last_step = complete_history[-1]+ # if last_step.get('result'):+ # for result in last_step['result']:+ # if isinstance(result, dict) and result.get('is_done'):+ # # Exclude the last step since it's a 'done' action+ # history_to_process = complete_history[:-1]+ # break+ history_to_process = complete_historysteps = []for i, step in enumerate(history_to_process):