Commit Graph

60 Commits

Author SHA1 Message Date
magmueller
9d44efb9bf Change window size 2024-12-02 18:36:35 +01:00
magmueller
8e31e82919 Improve prompt 2024-12-02 11:21:15 +01:00
magmueller
34ca52ea3a Fix small actions - improve prompt for multiaction - improve logging 2024-12-01 22:34:17 +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
d6e684f66f Reload history in agent 2024-11-28 23:09:35 +01:00
Gregor Žunič
0d86bbb317 wait for traffic load, better browser config 2024-11-28 22:41:01 +01:00
magmueller
85bdf707f7 Rerun in agent 2024-11-28 22:34:04 +01:00
magmueller
519881a7b3 Rerun works 2024-11-28 21:10:25 +01:00
magmueller
de7e38b75c History is saved and loaded 2024-11-28 19:37:18 +01:00
magmueller
ef50a8b712 Update flight search 2024-11-28 11:52:01 +01:00
magmueller
d35b1ebc71 Draft rerun - but breaks if index change 2024-11-27 10:36:50 +01:00
magmueller
cb9006aada Fix system prompt return 2024-11-25 16:56:03 +01:00
magmueller
ebf4a5e772 Example how to use custom output pydantic model and parse it 2024-11-25 16:06:38 +01:00
magmueller
d46ce11fc5 Example how to use validator 2024-11-25 16:01:39 +01:00
magmueller
727191892d One file path 2024-11-25 09:48:48 +01:00
magmueller
07bba9ae32 Example apply to jobs 2024-11-25 09:45:02 +01:00
magmueller
e326844fa9 First remove state - dont remove old messages 2024-11-25 08:40:26 +01:00
magmueller
8b008c9e48 Remove link which is not reachable 2024-11-25 07:46:50 +01:00
magmueller
801220b5c1 Try file upload 2024-11-24 19:56:12 +01:00
magmueller
dedb7a998f Removed examples 2024-11-23 13:14:32 +01:00
magmueller
e4bd5b51c3 More examples 2024-11-23 13:13:29 +01:00
magmueller
cd688d0b6e Improved naming of output history 2024-11-23 13:12:14 +01:00
magmueller
87fe4c0a84 Change example browser live time 2024-11-23 13:01:24 +01:00
magmueller
5c66a38534 Example how to print result 2024-11-23 12:46:16 +01:00
magmueller
4f8b61d389 Example output 2024-11-23 00:38:41 +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
Magnus Müller
08802a7530 Included demos videos for flight search, captcha, and custom functions (#38)
* Add captcha demo gif

* Captcha demo

* Host gif at imgur

* Try to include from other repo

* Hugging face example

* Try to display mp4

* Include mp4 with raw link

* Try with git user content .com

* More methods

* Update README.md

* Add custom function

* Try with only the link

* Readme update

* Display video

* Flight search example

* Update README.md

* Update prompts

* Prompts above videos

* Space between div and video

* Font size
2024-11-20 11:17:03 +01:00
Gregor Žunič
f7148e3542 untested version of playwright (kinda works) 2024-11-19 18:32:31 +01:00
magmueller
dbdc812b1b Print not unset 2024-11-19 16:55:08 +01:00
magmueller
3d33a4ff94 Example for system prompt change 2024-11-19 16:53:56 +01:00
magmueller
a0f96b76b4 Release version 0.1.5 2024-11-19 00:03:31 +01:00
Magnus Müller
45c054434f Merge pull request #30 from Ahmetemintek/tek
example added
2024-11-18 23:52:54 +01:00
magmueller
2bb4626af4 Example job application 2024-11-18 23:51:09 +01:00
magmueller
92b972590f Example how to upload files 2024-11-18 22:20:53 +01:00
magmueller
0bbb32902f Draft example to apply for job 2024-11-18 19:45:36 +01:00
ahmet emin
3f457a395f example added 2024-11-18 13:42:52 +00:00
Magnus Müller
a70854af63 Merge pull request #24 from gregpr07/Demos
Example files
2024-11-17 23:27:31 +01:00
magmueller
1e9dee081b Core function to scroll up and down on page 2024-11-17 16:43:54 +01:00
magmueller
eacd575548 Included examples to run 2024-11-17 15:05:36 +01:00
Gregor Žunič
4f74170685 Added anonymized posthog telemetry (#22)
* added anonymized telemetry

* collect data with posthog readme
2024-11-17 01:17:01 +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
magmueller
df2358d1bd Keep browser open 2024-11-06 02:24:26 +01:00
magmueller
2e189852ab Fix use vision model for openai in try 2024-11-06 01:03:08 +01:00
Gregor Žunič
d1c78a7d2a created try.py and downloaded readme 2024-11-05 16:17:07 +01:00
magmueller
86cf02ab4a Merge branch 'main' of https://github.com/gregpr07/agentweb 2024-11-05 16:07:25 +01:00
magmueller
c8b37059af Example updates 2024-11-05 16:07:01 +01:00