Commit Graph

21 Commits

Author SHA1 Message Date
Nick Sweeting
84e2cc653f update tests to use new BrowserProfile and BrowserSession 2025-05-20 02:33:22 -07:00
Anirudha619
6d1f10b396 change action name from click_element to click_element_by_index 2025-04-21 22:55:53 +05:30
Gregor Žunič
830eae1864 fixed core functionality test 2024-12-02 20:44:10 +01:00
Gregor Žunič
36fabb799c fixed tests, now headless, no more asyncio errors (hopefully) 2024-12-02 10:09:22 +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
Gregor Žunič
0d86bbb317 wait for traffic load, better browser config 2024-11-28 22:41:01 +01:00
Gregor Žunič
34bb36d6f5 make css selectors more robust 2024-11-28 15:35:56 +01:00
magmueller
21198f5904 Fix tests - now most of them are running through again 2024-11-24 22:05:17 +01:00
magmueller
cd688d0b6e Improved naming of output history 2024-11-23 13:12:14 +01:00
magmueller
674849a965 Run core test with -s 2024-11-22 23:40:20 +01:00
magmueller
9525e21f5b Update tests with easier output functions 2024-11-22 23:32:42 +01:00
magmueller
ef6311b22c Merge remote-tracking branch 'origin/main' into output-history 2024-11-22 22:41:58 +01:00
Gregor Žunič
5574220b91 fixed old tests 2024-11-22 15:34:21 +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č
2e7040c4e8 all tests pass 2024-11-22 13:23:27 +01:00
magmueller
e5d7dc2e3f Agent history tests included 2024-11-22 13:08:37 +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