PathOnAI / LiteWebAgent

The Library for LLM-based web-agent applications
Other
15 stars 3 forks source link

Error while trying example - state.json #51

Closed aksj98 closed 3 weeks ago

aksj98 commented 3 weeks ago

When I tried one of the examples :

python -m litewebagent.main --agent_type HighLevelPlanningAgent --starting_url https://www.airbnb.com --goal "set destination as San Francisco, then search the results" --plan "(1) enter the 'San Francisco' as destination, (2) and click search"

I get the following error: image

The problem seems to be in the browser's context initialization and the state.json required for it

Tata0703 commented 3 weeks ago

Hi @aksj98

Thanks for pointing this out, I have pushed a commit to fix this error: https://github.com/PathOnAI/LiteWebAgent/commit/793b97ce1a76f92fc125281b1fe92fdc182d73bc

The state.json file is used for automating logins on websites, but it's not necessary to get started with this repository. It works by storing login session data after a manual login, which Playwright can then use as a storage state for automatic logins in future runs. However, this functionality isn't currently implemented in the repo and will be added later. You can begin using the basic features of the repository without worrying about this file for now. Thanks!