Commit Graph

3027 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
770955e0b0 Update PopupsWatchdog to automatically accept JavaScript dialogs instead of dismissing them. Adjust logging messages accordingly and remove unused post-dialog recovery method. 2025-09-04 16:32:37 -07:00
Magnus Müller
3a7ae8d8d6 popup works 2025-09-04 16:07:05 -07:00
Magnus Müller
9c6e3371fd fix-system-prompt-for-new-interactive-elements 2025-09-04 07:55:52 -07:00
Magnus Müller
dc1eb696b3 remove lmnr from examples 2025-09-03 18:11:45 -07:00
Magnus Müller
8177a2c586 Merge branch 'main' into dont-wait-10-seconds-if-alloweddomains-not-set 2025-09-03 15:23:27 -07:00
Magnus Müller
2bb18c899c Remove unused observability decorator from detect_display_configuration method in profile.py 2025-09-03 15:22:15 -07:00
Magnus Müller
e7897a90d9 Remove overlays 2025-09-03 15:14:18 -07:00
Magnus Müller
4f891cd5f6 Remove gc 2025-09-03 15:14:00 -07:00
Magnus Müller
198f343c6a Refactor type hint for font cache and function return type in python_highlights.py
Updated the type hint for the _FONT_CACHE dictionary to use a union type for better clarity. Modified the return type of get_cross_platform_font function to reflect the same change, enhancing type safety and readability.
2025-09-03 14:21:19 -07:00
Magnus Müller
53e5858d8e fix-pil-import 2025-09-03 14:19:23 -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
4ccaf27df6 Update maximum wait time to 30 sec 2025-09-03 13:58:04 -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
00fd2e8a99 Merge branch 'main' into fix-allowed-urls-patterns 2025-09-03 11:01:25 -07:00
Magnus Müller
b87657dd22 Enhance error handling in __getattr__ to catch ImportError in addition to AttributeError for improved robustness. 2025-09-03 10:47:30 -07:00
Magnus Müller
e26eceb7fc fix-wildcard-imports 2025-09-03 10:38:42 -07:00
Magnus Müller
2bbd452a39 Merge branch 'main' into update-agent-mail-example 2025-09-03 09:56:49 -07:00
Magnus Müller
15054a75c9 Update max_actions_per_step to 4 2025-09-03 09:51:36 -07:00
Magnus Müller
488ddc1f6b Fix linter 2025-09-03 09:19:02 -07:00
Magnus Müller
48b98de1df Rename import from llm to models 2025-09-03 09:13:30 -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
e1b343e842 Remove comment 2025-09-02 14:54:57 -07:00
Magnus Müller
f3bab2d781 change parameter chat google 2025-09-02 14:54:18 -07: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
Magnus Müller
9e04ab19b1 change tool error message from DOM to browser-state 2025-09-02 11:39:13 -07:00
Magnus Müller
97f321bcea update error message for scroll 2025-09-02 11:32:03 -07:00
zhcn
a99971f39c Merge branch 'main' into feature/sample_images 2025-09-02 18:51:03 +08:00
Pierre Lalet
973b585905 Fix patterns use in allowed_domains
This will make "https://www.example.com" match "https://*.example.com", which
is currently no longer the case.

Also, update the exact match logic to match the logic in pattern matching.
2025-09-02 09:47:21 +02: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
542f375e9f Degrease temperature 2025-08-31 21:02:49 -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