Commit Graph

22 Commits

Author SHA1 Message Date
magmueller
0bbb32902f Draft example to apply for job 2024-11-18 19:45:36 +01: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