Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

ask for shorter judge output

mertunsallf3961e0b3969
diff --git a/browser_use/agent/judge.py b/browser_use/agent/judge.py
index 32cf63690..2f102241b 100644
--- a/browser_use/agent/judge.py
+++ b/browser_use/agent/judge.py
@@ -160,7 +160,7 @@ Respond with EXACTLY this JSON structure (no additional text before or after):
{{
"reasoning": "Breakdown of user task into key points. Detailed analysis covering: what went well, what didn't work, trajectory quality assessment, tool usage evaluation, output quality review, and overall user satisfaction prediction.",
"verdict": true or false,
- "failure_reason": "A brief explanation of key reasons why the task was not completed successfully in case of failure. If verdict is true, use an empty string. Keep it concise and easy to read.",
+ "failure_reason": "Max 5 sentences explanation of why the task was not completed successfully in case of failure. If verdict is true, use an empty string.",
"impossible_task": true or false,
"reached_captcha": true or false
}}
diff --git a/browser_use/agent/views.py b/browser_use/agent/views.py
index e65c9d953..b29be6361 100644
--- a/browser_use/agent/views.py
+++ b/browser_use/agent/views.py
@@ -95,7 +95,7 @@ class JudgementResult(BaseModel):
verdict: bool = Field(description='Whether the trace was successful or not')
failure_reason: str | None = Field(
default=None,
- description='A brief explanation of key reasons why the task was not completed successfully in case of failure. If verdict is true, use an empty string. Keep it concise and easy to read.',
+ description='Max 5 sentences explanation of why the task was not completed successfully in case of failure. If verdict is true, use an empty string.',
)
impossible_task: bool = Field(
default=False,