Commit Graph

34 Commits

Author SHA1 Message Date
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
Gregor Žunič
93b2de4eff switched example test to kayak 2024-11-05 15:13:22 +01:00
Gregor Žunič
b32176dbae added history 2024-11-05 15:03:10 +01:00
Gregor Žunič
dc90c7d9c4 changed examples 2024-11-05 13:56:10 +01:00
Gregor Žunič
675af9f7b9 cleanup 2024-11-05 13:41:05 +01:00
Gregor Žunič
2d27dc4f7c loggers 2024-11-05 13:03:38 +01:00
magmueller
9afceb70b6 Save file 2024-11-04 20:36:49 +01:00
magmueller
e91cd2da9d Included memory, improved prompt, and done function 2024-11-04 19:22:24 +01:00
magmueller
1fe98bc50a Change order of action output 2024-11-04 17:43:44 +01:00
magmueller
77dbc415af Webnavigation example task 2024-11-04 14:46:24 +01:00
magmueller
1dcc665802 Web navigation example 2024-11-04 14:29:54 +01:00