Commit Graph

143 Commits

Author SHA1 Message Date
Nick Sweeting
f941a5cec9 add support for filtering actions by func or domain globs 2025-03-27 19:04:17 -07:00
Nick Sweeting
22e544219c add domains list to RegisteredAction 2025-03-27 18:32:42 -07:00
Nick Sweeting
cb6e2a94d4 Update service.py 2025-03-27 20:47:15 -04:00
Nick Sweeting
d2d8a7e3c6 Merge branch 'main' into Add-wait-for-element-action 2025-03-27 17:45:08 -07:00
Nick Sweeting
7eaf1e2737 Merge pull request #981 from Nimbleway/make-extraction-context-smaller
Make the context in `extract_content` action smaller
2025-03-27 17:41:16 -07:00
Nick Sweeting
b47c20c780 Merge branch 'main' into Click-on-non-indexed-elements 2025-03-26 16:50:35 -07:00
Nick Sweeting
85fc7c7e90 add support for close_tab action 2025-03-26 14:07:03 -07:00
Jeff Andrade
0e5e108e10 Merge branch 'browser-use:main' into Click-on-non-indexed-elements 2025-03-26 09:37:09 +00:00
jersobh
4a201f4c69 handling multiple elements with the same text 2025-03-26 02:53:14 +00:00
Nick Sweeting
d95527ab27 Merge branch 'main' into enhancement/add_tabGroups_chrome 2025-03-25 16:34:08 -07:00
Nick Sweeting
21dec0dc7f skip iframes that already have tabs open 2025-03-24 10:59:48 -07:00
jersobh
11e4ba4138 fix small typo 2025-03-24 12:38:11 +00:00
jersobh
63f54cc100 Clicking by xpath, css selector or text 2025-03-24 12:34:01 +00:00
Nick Sweeting
421ecd597f Merge branch 'main' into nick/tri-4-make-cross-site-iframes-work-without-disabling-chrome 2025-03-23 00:52:33 -07:00
Nick Sweeting
2f5081327b make inner text within iframes readable to LLM 2025-03-22 19:44:36 -07:00
Nick Sweeting
a742d81122 fix tab title check breaking discovery of active tab at startup 2025-03-22 19:44:13 -07:00
Anish Hiranandani
45e23bb838 removed SavePDFAction and set print bg to False 2025-03-22 14:05:11 -07:00
Anish Hiranandani
32f54739d5 Update browser_use/controller/service.py
Improvements to use simple file naming instead of LLM generated

Co-authored-by: Nick Sweeting <github@sweeting.me>
2025-03-22 14:02:06 -07:00
Anish Hiranandani
561aef038f Update browser_use/controller/service.py
No need for SavePDFAction

Co-authored-by: Nick Sweeting <github@sweeting.me>
2025-03-22 14:01:27 -07:00
Anish Hiranandani
e837081ffb changes to set media type to screen and format to A4 2025-03-22 11:42:55 -07:00
Anish Hiranandani
552d4ff81c added 2 params to action 2025-03-21 00:32:32 -07:00
Anish Hiranandani
8ccde19103 added feature to save webpage as PDF to given path 2025-03-21 00:02:34 -07:00
mkuts12
29678f60d5 allow LLM to decide whether it's needed to strip the URLs 2025-03-11 16:39:44 +02:00
mkuts12
b2fb7c42e7 Adding the strip to markdownify will keep the text but not add the url to the data.
This transformed a text of 367277 characters to 48969.
Quick fix to a more deep problem
2025-03-09 18:55:33 +02:00
guybensimhon1
dc24574e7c Separated internal output model from suplied model, and fixed a parsing bug of Enum fields 2025-03-06 19:41:20 +02:00
shudaizi1989
5b08613a27 Fix:mutable default argument. (#901) 2025-03-02 12:52:30 -08:00
Magnus Müller
ac07642b6c Improve type safety and clarify task completion instructions
- Add type hints and type ignore comments in service.py for image message handling
- Update system prompt to provide clearer guidance on done action usage
- Refine action description for done action in controller service
- Enhance documentation for task completion scenarios
2025-02-23 09:31:01 -08:00
Magnus Müller
84f5f1cf8b Instruction for unfinished tasks 2025-02-23 09:15:40 -08:00
Magnus Müller
88f018ad81 Update system prompt and service for task completion handling
- Modify system prompt to clarify done action usage when max steps are reached
- Update service to provide more descriptive action description for task completion
- Add explicit handling for task success status in done action
- Enhance documentation for done action to indicate task completion state
2025-02-23 09:03:59 -08:00
Magnus Müller
d881b9f61d Enhance agent task completion and max steps handling
- Add support for creating a done-only action model
- Modify logging to distinguish between successful and unfinished tasks
- Update agent to switch to done action model when max steps are reached
- Improve system prompt to clarify done action usage in max steps scenario
- Extend registry action model creation to support filtering actions
2025-02-23 07:46:21 -08:00
Magnus Müller
c07b5c9a94 Add last step warning and enhance action result tracking
- Introduce warning message for the last step in the agent
- Add `success` parameter to `ActionResult` and `DoneAction`
- Modify `AgentStepInfo` to check for last step
- Update `AgentHistoryList` methods to handle optional values and success status
2025-02-22 23:43:41 -08:00
Magnus Müller
1dfc72aac4 Wait function 2025-02-22 10:33:52 -08:00
Magnus Müller
bf5b180da5 Include timings for more functions 2025-02-21 16:18:43 -08:00
Magnus Müller
32445bd0d1 New selector map 2025-02-20 11:13:11 -08:00
SwapnilSonker
205679d546 removed files from service.py 2025-02-19 23:52:44 +05:30
Henry
e174508b96 Fix inconsistent indentation in controller/views.py 2025-02-18 17:35:50 -08:00
Magnus Müller
75d7e455a4 Merge remote-tracking branch 'origin/gregor/random-restructure' into dev 2025-02-18 12:05:17 -08:00
Magnus Müller
bbba06b46a Merge branch 'LIB-41-fix-extraction-for-text-fields-in-iframe-bodies' into dev 2025-02-18 11:41:27 -08:00
Magnus Müller
5b4f297f44 Include escape 2025-02-17 19:31:25 -08:00
Matic Zavadlal
a5a026b053 remove lmnr 2025-02-17 13:18:38 +01:00
Matic Zavadlal
13e643ef0c add context 2025-02-16 14:55:20 +01:00
jersobh
bba15ff4bd add a arg to avoid logging senstive data into input_text actions on controller logs 2025-02-14 11:41:36 +00:00
Gregor Žunič
aa19548eff outsourced state v1 2025-02-13 21:48:00 -08:00
Matic Zavadlal
88dfabea5b Merge branch 'main' into matic/random 2025-02-13 13:33:09 +01:00
Matic Zavadlal
7d7582586e stash 2025-02-13 13:32:18 +01:00
Magnus Müller
7a88f1afd2 Fix send_keys for words in natural langugae 2025-02-12 23:03:07 -08:00
Matic Zavadlal
543d01f250 stash 2025-02-10 22:48:23 +01:00
SwapnilSonker
92fe9212a9 #544 issue resolved , used chrometabs api 2025-02-08 22:48:46 +05:30
Morris Lee
defec5b9f6 to fix agent test by adding ExtractPageContentAction into controller views 2025-02-08 18:28:46 +08:00
magmueller
ea3fd5b083 Check if file paths are allowed 2025-02-04 22:34:15 -08:00