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
Refactor response logging in service.py to improve emoji representation based on evaluation state. Updated checks to be case-insensitive for 'success' and 'failure', enhancing robustness in response handling.
Magnus Müllerdb74f1ade34e
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex dc20235a0..bdbcaaf7f 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -83,9 +83,9 @@ def log_response(response: AgentOutput, registry=None, logger=None) -> None:if logger is None:logger = logging.getLogger(__name__)- if 'Success' in response.current_state.evaluation_previous_goal:+ if 'success' in response.current_state.evaluation_previous_goal.lower():emoji = '👍'- elif 'Failed' in response.current_state.evaluation_previous_goal:+ elif 'failure' in response.current_state.evaluation_previous_goal.lower():emoji = '⚠️'else:emoji = '❔'