Commit Graph

1448 Commits

Author SHA1 Message Date
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
Magnus Müller e1f95ca574 create _execute_initial_actions 2025-08-29 14:52:43 -07:00
Magnus Müller 1a31aefd38 Merge remote-tracking branch 'origin/main' into fix-tab-switching 2025-08-29 14:48:46 -07:00
Magnus Müller c70abf6cf6 update result 1 to mention that its was automatically loaded 2025-08-29 12:52:19 -07:00
Magnus Müller fbba5ba035 Dont cache the first step 2025-08-29 12:34:04 -07:00
Magnus Müller 84cdd34743 Return the agent the result from init actions 2025-08-29 12:33:51 -07:00
Magnus Müller 01da257d04 Simplify initial_actions & url preloading 2025-08-29 12:01:11 -07:00
Magnus Müller 9915ea41a9 Remove 📍 from logs 2025-08-29 11:02:50 -07:00
Saurav Panda ba6626d0e7 Merge branch 'main' into os-font-fix 2025-08-28 10:31:33 -07:00
Saurav Panda 4bfaa266b3 explicit check for sensitive data field 2025-08-27 16:38:30 -07:00
Saurav Panda 6a8dc3b8e2 fix: Add sensitive data placeholder names to LLM prompts 2025-08-27 15:54:18 -07:00
Cfomodz ed387f2fe3 Update gif.py
fixes os related font error at gif creation
2025-08-27 16:28:33 -06:00
Magnus Müller 8c32861c4c Add logging if setup complete 2025-08-27 11:51:47 -07:00
Magnus Müller 5ab7ccd414 Throw error if we can not connect in the agent 2025-08-27 10:07:40 -07:00
Magnus Müller d1c7c675c5 Fix spelling 2025-08-26 17:12:23 -07:00
Magnus Müller 59e31a9f44 Remove unused ValueError 2025-08-26 15:22:07 -07:00
Magnus Müller 51af27aac5 Rename preload to directly_open_url 2025-08-26 15:15:37 -07:00
Magnus Müller 49ea4ff03a Remove context 2025-08-26 15:13:30 -07:00
Magnus Müller 43df3ddb8e Removevalidate_output 2025-08-26 15:01:48 -07:00
Magnus Müller f8a281fc35 Remove retry delay for rate limits, because we do this inside the llm call 2025-08-26 14:59:41 -07:00
Magnus Müller 89e7fd02d8 Remove enable_memory 2025-08-26 14:53:14 -07:00
Magnus Müller 147ed30d02 Remove planner llm 2025-08-26 14:50:14 -07:00
Magnus Müller 4abb5cea81 Remove _logger 2025-08-26 14:44:41 -07:00
Magnus Müller 5fc3000aa2 Remove duplicate browser_session 2025-08-26 14:44:06 -07:00
Magnus Müller 29685aa7ce Merge remote-tracking branch 'origin/main' into rename-controller-to-tools 2025-08-26 13:58:21 -07:00
Magnus Müller 5df2eb0985 Use controller as fallback 2025-08-26 13:10:24 -07:00