Commit Graph

1112 Commits

Author SHA1 Message Date
Magnus Müller
01acf052cd Remove recovery_attempted attribute from AgentState model to streamline state management. 2025-09-04 17:33:41 -07:00
Magnus Müller
c54b4efab5 Spelling 2025-09-04 17:32:37 -07:00
Magnus Müller
4460a8b7cb Update failure handling logic in Agent class to account for final response after failure. Adjusted logging messages for clarity and improved failure threshold checks. 2025-09-04 17:32:15 -07:00
Magnus Müller
f474e24b28 force-llm-output-after-failure 2025-09-04 17:22:32 -07:00
Magnus Müller
9c6e3371fd fix-system-prompt-for-new-interactive-elements 2025-09-04 07:55:52 -07:00
Magnus Müller
73fa1c2d10 Merge branch 'main' into dont-wait-10-seconds-if-alloweddomains-not-set 2025-09-03 13:58:18 -07:00
Magnus Müller
601cfc3e23 dont wait 10 seconds if allowed_domains not set 2025-09-03 13:54:29 -07:00
Magnus Müller
82566c3efd Delete browser_use/agent/system_prompt_sample.md 2025-09-03 11:09:01 -07:00
Magnus Müller
23b5a2b8d4 Merge branch 'main' into feature/sample_images 2025-09-03 11:06:50 -07:00
Magnus Müller
15054a75c9 Update max_actions_per_step to 4 2025-09-03 09:51:36 -07:00
Magnus Müller
570b15d26a Add LLM models module and update agent initialization for default LLM 2025-09-03 09:00:57 -07:00
zhcn
714bf9c8ad Merge branch 'main' into feature/sample_images 2025-09-03 10:54:22 +08:00
Magnus Müller
883585ad4c Remove self._log_first_step_startup() from step 2025-09-02 12:27:00 -07:00
Magnus Müller
148c83c8b7 add first step logging to take step 2025-09-02 12:13:38 -07:00
zhcn
a99971f39c Merge branch 'main' into feature/sample_images 2025-09-02 18:51:03 +08:00
Magnus Müller
fb6b29cd9b Merge branch 'main' into clean-up-prompt-to-reduce-confusion 2025-09-01 23:55:15 -07:00
Magnus Müller
3f9b1cb650 Include max steps back in 2025-09-01 23:54:37 -07:00
Magnus Müller
4cb585e8a0 Update prompts and adjust temperature setting
- Fixed the closing tag for the file_system section in agent prompts for proper formatting.
- Increased the temperature parameter in ChatOpenAI from 0.05 to 0.2 to allow for more varied responses.
2025-09-01 23:50:07 -07:00
zhcn
2ce7b62609 Merge branch 'main' into feature/sample_images 2025-09-02 13:21:46 +08:00
zhcn
963ec67472 Update code style 2025-09-02 13:07:43 +08:00
zhcn
0fc797b9f6 Update sample_images type 2025-09-02 13:01:41 +08:00
zhcn
69ce9995ed Update browser_use/agent/prompts.py 2025-09-02 12:49:13 +08:00
zhcn
ea74a986ac Update 2025-09-02 12:39:31 +08:00
zhcn
15f0bef1b6 Update browser_use/agent/service.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-09-02 12:35:20 +08:00
zhcn
f68c0865f7 Add sample_images to enable browseruse to learn how to operate a platform. 2025-09-02 12:33:04 +08:00
Magnus Müller
cd0248f046 Update logging messages in Agent class and enhance quickstart documentation for clarity 2025-09-01 10:44:51 -07:00
Magnus Müller
ba148ebb86 Update action messages for clarity in agent and dropdown tool
- Refined log message in the agent service to improve clarity regarding unexecuted actions.
- Enhanced description for dropdown options action to specify usage limitations more clearly.
2025-08-31 19:51:04 -07:00
Magnus Müller
c3d0c800a2 Refactor agent prompts for clarity and consistency
- Updated page info text format to enhance readability and structure.
- Changed date format in agent state description to display only the current date.
- Simplified action results formatting in message manager for better clarity.
- Adjusted history item string representation to streamline output and remove unnecessary prefixes.
2025-08-31 19:20:45 -07:00
Magnus Müller
85426d7a79 clean-up-prompt-to-reduce-confusion 2025-08-31 19:04:56 -07:00
Magnus Müller
37c177e840 reduce frequency_penalty 2025-08-31 14:19:39 -07:00
Magnus Müller
af9ab97f4a Update browser_use/agent/system_prompt_no_thinking.md
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-31 14:04:49 -07:00
Magnus Müller
32e02000e9 concise next goal 2025-08-31 13:52:34 -07:00
Magnus Müller
21b1295793 Revert "Rename extract_structured_data to get_markdown"
This reverts commit 3b46999b95.
2025-08-31 13:33:53 -07:00
Magnus Müller
3b46999b95 Rename extract_structured_data to get_markdown 2025-08-31 12:59:02 -07:00
Magnus Müller
33f69b1525 less-timeouts 2025-08-31 11:18:47 -07:00
Magnus Müller
0caa3546c3 Merge branch 'smaller-highlights' of https://github.com/browser-use/browser-use into smaller-highlights 2025-08-31 08:14:35 -07:00
Magnus Müller
8ecc46daf6 Update system prompts for clarity and adjust bounding box rendering in Python highlights
- Revised system prompt descriptions to clarify the provision of screenshots and bounding boxes for interactive elements.
- Enhanced bounding box positioning logic in `python_highlights.py` to improve visibility and avoid content blocking.
- Updated screenshot logging to reflect dynamic filename usage.
2025-08-31 08:14:32 -07:00
mertunsall
145b319d83 update sys prompts 2025-08-31 11:58:15 +02:00
Magnus Müller
1596f25a5a System prompt efficiency_guidelines 2025-08-30 18:39:10 -07:00
Magnus Müller
30b2d631f9 Merge commit 'cb63d579bd61c4239125780d1d658d2eada36a1b' into remove-efficiency-rules 2025-08-30 18:33:56 -07:00
mertunsall
ca05521b0c try to prevent overusage of extract_structured_data 2025-08-31 02:52:50 +02:00
Mert Unsal
e07ad3bc32 Merge branch 'main' into os-font-fix 2025-08-31 00:48:49 +02:00
Magnus Müller
2c40bd23a8 Fix url preload 2025-08-30 10:42:25 -07:00
Magnus Müller
b9ab642d0c Update efficiency guidelines to include new scrolling instructions for extracting structured data. Clarified usage of the scroll action to enhance clarity and efficiency in multi-step processes. 2025-08-30 10:39:50 -07:00
Magnus Müller
3d8f793406 Enhance efficiency guidelines by clarifying action chaining restrictions and emphasizing the importance of clear goals per step. Added instructions to avoid multiple state changes in a single action sequence. 2025-08-30 10:24:26 -07:00
Magnus Müller
d97462e49a New efficiency guidelines 2025-08-30 09:54:40 -07:00
Magnus Müller
b638958bb5 Revert "Remove efficiency_guidelines"
This reverts commit 781f2131ee.
2025-08-30 09:46:48 -07:00
Magnus Müller
781f2131ee Remove efficiency_guidelines 2025-08-30 01:00:48 -07:00
Magnus Müller
a31ae9dffb Refactor bounding box drawing and enhance LLM text representation
- Removed the `_raise_if_stopped_or_paused` method from the `Agent` class to streamline functionality.
- Updated `draw_enhanced_bounding_box_with_text` to improve font size and padding for better visibility of index boxes.
- Introduced `get_meaningful_text_for_llm` method in `EnhancedDOMTreeNode` to provide more relevant text for LLM processing.
- Enhanced `llm_representation` method with observability features for better debugging.
2025-08-29 21:30:11 -07:00
Magnus Müller
d80549038b Enhance element interaction handling
- Added logging for new elements detected during actions in the Agent class.
- Implemented a human-like text field clearing method in DefaultActionWatchdog, utilizing Ctrl+A and Backspace.
- Improved focus handling for label elements, ensuring they are only interactive if they do not have a 'for' attribute.
- Updated clickable element detection logic to account for labels pointing to inputs.

These changes improve the robustness of user interactions and enhance debugging capabilities.
2025-08-29 18:01:34 -07:00