Commit Graph

35 Commits

Author SHA1 Message Date
PaperBoardOfficial
ae4a423e3d lint 2025-04-01 08:14:15 +05:30
PaperBoardOfficial
9f8218f556 resolved merge conflicts 2025-03-31 16:49:26 +05:30
Nick Sweeting
5fa2e133b8 fix pydantic issue causing config to be overwritten 2025-03-30 14:38:12 -07:00
PaperBoardOfficial
6f96453794 added drag drop action 2025-03-29 11:01:09 +05:30
Nick Sweeting
fb6fa259a8 apply ruff safe fixes 2025-03-28 18:11:36 -07:00
Nick Sweeting
56977be7d1 Merge branch 'main' into Improve-click-by-text-handling 2025-03-27 19:43:34 -07:00
Nick Sweeting
d2d8a7e3c6 Merge branch 'main' into Add-wait-for-element-action 2025-03-27 17:45:08 -07:00
jersobh
f6960ad80e improving the element click to fallback to js evaluate; use optional element type 2025-03-27 16:21:09 +00: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
jersobh
63f54cc100 Clicking by xpath, css selector or text 2025-03-24 12:34:01 +00: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
Henry
e174508b96 Fix inconsistent indentation in controller/views.py 2025-02-18 17:35:50 -08: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
jersobh
8db1230b9d turn selector mandatory and timeout optional with a default wait time of 10 seconds 2025-02-02 01:23:05 +00:00
jersobh
ac88cf46ee Added initial_actions and service action on registry for wait_for_element with timeout 2025-02-02 01:20:02 +00:00
magmueller
23a4481175 Enabled extraction with llm 2025-01-31 23:38:23 -08:00
j0yk1ll
7c93f6c0e8 fix: could not parse response on go_back action 2025-01-26 15:49:27 +01:00
magmueller
a9d095e365 No default value try 2025-01-13 07:18:13 -08:00
magmueller
d24e157106 Fix default is not permitted 2025-01-13 07:13:30 -08:00
magmueller
18a42db882 Only option for markdown or text depending if links are needed 2025-01-12 18:16:53 -08:00
magmueller
cb654d3ab8 Scrolling to text works 2024-12-03 11:09:43 +01:00
magmueller
90ef74aceb Removed num_clicks, fixed type valuation -> evaluation, and multiaction with output list 2024-12-01 21:49:57 +01:00
magmueller
3696a3b7ed Include xpath 2024-11-28 06:50:44 +01:00
Gregor Žunič
0019105a49 fixed merge errors 2024-11-22 15:08:58 +01:00
Gregor Žunič
5941dd2752 Merge branch 'staging' into gregorzunic/bu-56-switch-from-selenium-to-playwright 2024-11-22 15:08:30 +01:00
Gregor Žunič
b0c390f2c0 fixed multi tab management, clicking timeouts, general bugfixes 2024-11-20 17:33:49 +01:00
Gregor Žunič
f7148e3542 untested version of playwright (kinda works) 2024-11-19 18:32:31 +01:00
magmueller
1e9dee081b Core function to scroll up and down on page 2024-11-17 16:43:54 +01:00
Gregor Žunič
89c63fdd63 Added custom actions registry and fixed extraction layer (#20)
* Validator

* Test mind2web

* Cleaned up logger

* Pytest logger

* Cleaned up logger

* Disable flag for human input

* Multiple clicks per button

* Multiple clicks per button

* More structured system prompt

* Fields with description

* System prompt example

* One logger

* Cleaner logging

* Log step in step function

* Fix critical clicking error - wrong argument used

* Improved thought process of agent

* Improve system prompt

* Remove human input message

* Custome action registration

* Pydantic model for custom actions

* Pydantic model for custome output

* Runs through, model outputs functions, but not called yet

* Work in progress - description for custome actions

* Description works, but schema not yet

* Model can call the right action - but is not executed

* Seperate is_controller_action  and is_custom_action

* Works! Model can call custom function

* Use registry for action, but result is not feed back to model

* Include result in messages

* Works with custom function - but typing is not correct

* Renamed registry

* First test cases

* Captcha tests

* Pydantic for tests

* Improve prompts for multy step

* System prompt structure

* Handle errors like validation error

* Refactor error handling in agent

* Refactor error handling in agent

* Improved logging

* Update view

* Fix click parameter to index

* Simplify dynamic actions

* Use run instead of step

* Rename history

* Rename AgentService to Agent

* Rename ControllerService to Controller

* Pytest file

* Rename get state

* Rename BrowserService

* reversed dom extraction recursion to while

* Rename use_vision

* Rename use_vision

* reversed dom tree items and made browser less anoying

* Renaming and fixing type errors

* Renamed class names for agent

* updated requirements

* Update prompt

* Action registration works for user and controller

* Fix done call by returning ActionResult

* Fix if result is none

* Rename AgentOutput and ActionModel

* Improved prompt Passes 6/8 tests from test_agent_actions

* Calculate token cost

* Improve display

* Simplified logger

* Test function calling

* created super simple xpath extraction algo

* Tests logging

* tiny fixes to dom extraction

* Remove test

* Dont log number of clicks

* Pytest file

* merged per element js checks

* Check if driver is still open

* super fast processing

* fixed agent planning and stuff

* Fix example

* Fix example

* Improve error

* Improved error correction

* New line for step

* small type error fixes

* Test for pydantic

* Fix line

* Removed sample

* fixed readme and examples

---------

Co-authored-by: magmueller <mamagnus00@gmail.com>
2024-11-15 21:42:02 +01:00
Gregor Žunič
68201df624 src -> browser_use 2024-11-06 18:18:00 +01:00