Commit Graph

969 Commits

Author SHA1 Message Date
Nick Sweeting b9d27856df Merge pull request #973 from pppp606/feature/add_logger_use_tokens 2025-04-16 15:56:30 -07:00
Nick Sweeting 3fa7b21305 Update browser_use/agent/service.py 2025-04-16 18:56:14 -04:00
Nick Sweeting 8ba3e570e6 Merge branch 'main' into bot-detection-batch 2025-04-16 15:19:02 -07:00
Dev-Khant 99604656e4 Mem0: Embedder config for different LLMs 2025-04-16 09:03:26 +05:30
Alezander9 a03aa443de Fix AgentHookFunc type to be awaitable to correctly reflect usage of await on_step_start(self) and await on_step_end(self) in the agent service 2025-04-14 15:25:24 -07:00
Gregor Žunič 28aa38c7d5 set enable_memory to False 2025-04-14 11:47:23 +02:00
mathisarends-viadee 075d776bb3 Add extend function for planning system prompt 2025-04-14 09:27:31 +02:00
Gregor Žunič be0a3eb564 added *[]* for elements newly app; fixes 2025-04-08 16:39:00 +02:00
Gregor Žunič 27b22a3986 Update extraction branch (#1296)
* Add http_credentials to browser context.

* Detect index change caused by page change in `multi_act`

* Fix: Add sameSite cookie validation and auto-correction

* added drag drop action

* added drag drop action

* pre-commit run -a (again)

* added active_tab state management

* add anthropic RateLimitError to list of defined rate limit errors

* Add Retry handling to bedrock example

* fix pydantic issue causing config to be overwritten

* fix config setup

* Add botocore, organize imports

* ignore langchain beta warnings

* silence pydantic deprecation warnings

* Update bedrock_claude for ruff

* ruff checks

* Update pyproject.toml and bedrock_claude.py

* ignore signal registration errors in edge case environments

* ruff fixes

* add example of getting 2FA code from 1password

* add rebrowser and creepjs to stealth tests

* Fix typos discovered by codespell

* uv add --dev codespell

* Update browser_use/browser/context.py

* lint

* Add explanations override_system_message and extend_system_message

* Update custom-functions.mdx

.get_current_page() is an async function which have to be awaited.

* Fix: Remove unnecessary await from _verified_api_keys

* Fix: Correct indentation for cookie loading log message in BrowserContext

* Fix: resolve undefined response variable in Deepseek model raw tool calling mode

* fix: increment consecutive_failure on every step error

* Fix azure example not working due to agent memory changes

* dont expose debug port on all addresses and keep security enabled by default

* custom browser addition

---------

Co-authored-by: Bartlomiej Wietrak <bartekwietrak@gmail.com>
Co-authored-by: Alin Jiang <alineveryday@outlook.com>
Co-authored-by: dipfocus <dipfocus@gmail.com>
Co-authored-by: PaperBoardOfficial <hiremohitforsoftwarerole@gmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Alezander9 <alexander.j.yue@gmail.com>
Co-authored-by: dheerajoruganty <db2winfb@gmail.com>
Co-authored-by: Nick Sweeting <git@sweeting.me>
Co-authored-by: Dheeraj Oruganty <53569374+dheerajoruganty@users.noreply.github.com>
Co-authored-by: Bart <46058081+b0rgcube@users.noreply.github.com>
Co-authored-by: Nick Sweeting <github@sweeting.me>
Co-authored-by: pppp606 <ppppp303@gmail.com>
Co-authored-by: Oswy <74738120+oswy-cpu@users.noreply.github.com>
Co-authored-by: BurnyCoder <happymancz@email.cz>
Co-authored-by: zhushijie <mr.zhushijie@gmail.com>
Co-authored-by: john-rtr <jonathan.ratier@gmail.com>
Co-authored-by: mathisarends-viadee <mathis.arends@viadee.de>
Co-authored-by: lorenss-m <saeclmusic@gmail.com>
Co-authored-by: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
2025-04-05 19:08:50 +02:00
neo773 0672162cf4 Merge branch 'main' into bot-detection-batch 2025-04-05 04:10:50 +05:30
Nick Sweeting 01abdc414b Merge pull request #945 from AlinJiang/detect-index-change-pr
[bug][multi_act] Detect index change caused by page change in multi_act
2025-04-04 15:29:22 -07:00
Nick Sweeting 750ccb573c Merge branch 'main' into bot-detection-batch 2025-04-04 14:51:20 -07:00
john-rtr 75e1ad3596 fix: increment consecutive_failure on every step error 2025-04-03 09:01:13 +02:00
zhushijie ac38207b1a Fix: resolve undefined response variable in Deepseek model raw tool calling mode 2025-04-02 18:07:19 +08:00
neo773 94c2493b97 Merge branch 'main' into bot-detection-batch 2025-04-02 07:05:54 +05:30
neo773 c5dc3d7cfa fix CSP, Shadow DOM & Migrate to Patchright 2025-04-02 07:05:39 +05:30
BurnyCoder 02f2863fed Fix: Remove unnecessary await from _verified_api_keys 2025-04-01 22:49:14 +02:00
Nick Sweeting 36770697c1 ruff fixes 2025-03-30 15:50:48 -07:00
Nick Sweeting 4c1014f46a Merge pull request #1230 from Alezander9/anthropic-rate-limit-handling
add anthropic RateLimitError to list of defined rate limit errors
2025-03-30 15:03:13 -07:00
Nick Sweeting 153e3eeeba silence pydantic deprecation warnings 2025-03-30 14:55:58 -07:00
Alezander9 207fc7fca4 add anthropic RateLimitError to list of defined rate limit errors 2025-03-30 13:59:05 -07:00
Nick Sweeting b365e755ee fix planner getting current page 2025-03-30 13:45:13 -07:00
Nick Sweeting 482953f2ea Merge branch 'main' into user/dyadav/add-mem0-procedural-memory 2025-03-30 11:27:48 -07:00
Federico Villa 4e2765b59a Merge branch 'browser-use:main' into main 2025-03-30 10:48:07 +02:00
Nick Sweeting 8ba9934542 make it not a hard error if no required keys are set for a model 2025-03-29 20:56:35 -07:00
Deshraj Yadav 056dbe20e3 Add example and minor improvements 2025-03-29 17:24:21 -07:00
Federico Villa 4bc480523a Log active LLM models on agent startup
Add logs for the three types of language models:
- Main LLM
- Planner LLM
- Extraction LLM
2025-03-29 22:24:03 +01:00
Deshraj Yadav f0dbcff77d Incorporate suggestions 2025-03-28 19:05:37 -07:00
Deshraj Yadav 55e5e2168e Add support for procedural memory 2025-03-28 19:05:21 -07:00
Anish Hiranandani 3710687850 commit after running ruff check 2025-03-28 17:53:38 -07:00
Anish Hiranandani f5833ad53d Merge branch 'main' into feature/support-reasoning-models 2025-03-28 17:20:08 -07:00
Nick Sweeting b5ec945b74 check platform at startup 2025-03-28 14:41:28 -07:00
Nick Sweeting a881ab9c34 rename available_actions to unfiltered_actions to better describe it 2025-03-28 00:46:54 -07:00
Nick Sweeting b89476e38a make sure models that dont support tool calling have correct context 2025-03-27 23:50:43 -07:00
Nick Sweeting 5535a1ec0a update pydantic action models exposed to LLM on each page 2025-03-27 23:43:31 -07:00
Nick Sweeting f941a5cec9 add support for filtering actions by func or domain globs 2025-03-27 19:04:17 -07:00
Nick Sweeting b0f48fdaa2 more truthies 2025-03-27 18:23:25 -07:00
Nick Sweeting 6d36cc1dc1 add env var to SKIP_LLM_API_KEY_VERIFICATION on cloud 2025-03-27 18:22:20 -07:00
Nick Sweeting 1d0ff6617b Merge pull request #1179 from browser-use/ctrl-c-improvements
Refactor ctrl-c handling to separate class
2025-03-27 17:36:49 -07:00
Nick Sweeting 88611d6561 dont store pause msgs in memory 2025-03-27 17:36:36 -07:00
Nick Sweeting 3bbb0bece7 Merge pull request #1028 from carlosplanchon/direct_html_manipulation
Adding parameter to Agent.run() in order to allow the developer to execute a custom Python function after Agent.step() (updated)
2025-03-27 17:33:03 -07:00
Nick Sweeting 363382a5bc better handling of cancelled tasks, more DRY second ctrlc handling, and colorized output 2025-03-27 17:32:12 -07:00
Nick Sweeting ad3080353b refactor ctrl-c handling to separate class 2025-03-27 17:13:00 -07:00
Nick Sweeting 56aae21033 implement pause and resume with Ctrl+C 2025-03-27 16:30:15 -07:00
Nick Sweeting bc71fd6d46 implement pause and resume with Ctrl+C 2025-03-27 16:29:59 -07:00
Nick Sweeting 251e041933 properly cancel current step when browser is closed or disconnected 2025-03-27 16:01:59 -07:00
Nick Sweeting aabd8bb172 properly verify LLM api keys on startup 2025-03-27 16:01:25 -07:00
Carlos Andrés Planchón Prestes 5f20a1c994 Rewriting AgentHookFunc definition as AgentHookFunc = Callable[['Agent'], None] 2025-03-27 19:17:29 -03:00
Carlos Andrés Planchón Prestes a97212cb53 Adding AgentHookFunc = Callable 2025-03-27 18:56:14 -03:00
Carlos Andrés Planchón Prestes a1c0719ee2 Renaming before_step_func and after_step_func to on_step_start and on_step_end. 2025-03-27 18:54:33 -03:00