Commit Graph

1467 Commits

Author SHA1 Message Date
magmueller d2e3de97d5 Save cookies 2024-11-25 16:56:15 +01:00
Magnus Müller bd635a3108 Merge pull request #53 from gregpr07/hot-fix/max-token-message-manager
Hot fix/max token message manager
2024-11-25 08:52:46 +01:00
magmueller 21198f5904 Fix tests - now most of them are running through again 2024-11-24 22:05:17 +01:00
Gregor Žunič 89361ad05e removed input from close function 2024-11-24 14:21:45 +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č 5941dd2752 Merge branch 'staging' into gregorzunic/bu-56-switch-from-selenium-to-playwright 2024-11-22 15:08:30 +01:00
Gregor Žunič bb233e7868 fixed test_clicks 2024-11-22 14:36:11 +01:00
Gregor Žunič c91c1782e8 decreased click wait timeouts 2024-11-20 17:49:29 +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
magmueller e78ecc6ff0 Simplify browser access 2024-11-18 19:45:28 +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