Commit Graph

22 Commits

Author SHA1 Message Date
Gregor Žunič
45a46f8fbd tiny improvements to css selector generation 2024-12-04 15:22:07 +01:00
Gregor Žunič
cf27d9e1c5 allows parralelized agents 2024-12-01 20:17:10 +01:00
Gregor Žunič
d4e9257c4c renamed service to browser 2024-12-01 14:14:48 +01:00
magmueller
9dfc1f3faf Seperate class for browserhistory - fixed type errors 2024-11-28 23:59:49 +01:00
magmueller
c39bf65da1 Merge remote-tracking branch 'origin/main' into feature/reexecutable-script 2024-11-28 23:28:06 +01:00
magmueller
58657f1217 Fix type errors 2024-11-28 23:11:52 +01:00
Gregor Žunič
0d86bbb317 wait for traffic load, better browser config 2024-11-28 22:41:01 +01:00
magmueller
de7e38b75c History is saved and loaded 2024-11-28 19:37:18 +01:00
Gregor Žunič
34bb36d6f5 make css selectors more robust 2024-11-28 15:35:56 +01:00
Gregor Žunič
d64448923f option to disable chrome security, cross site iframes work 2024-11-26 18:23:27 +01:00
Gregor Žunič
829ed138fd clicking version - still missing iframe/shadow elements penetration 2024-11-25 21:45:05 +01:00
magmueller
21198f5904 Fix tests - now most of them are running through again 2024-11-24 22:05:17 +01:00
magmueller
60fbd16730 When page not loaded return empty state - fixes break for not loading page 2024-11-23 15:39:47 +01:00
Gregor Žunič
03b83d60a6 bumped up version 2024-11-22 21:36:03 +01:00
Gregor Žunič
bb233e7868 fixed test_clicks 2024-11-22 14:36:11 +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
Gregor Žunič
155f49acc4 started the switch from selenium to playwright 2024-11-18 20:38:00 +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č
7729da6971 testig element highlighting 2024-11-13 13:52:28 +01:00
Gregor Žunič
f11c37388d added highlighting of items 2024-11-07 19:02:02 +01:00
Gregor Žunič
68201df624 src -> browser_use 2024-11-06 18:18:00 +01:00