Thanks to visit codestin.com
Credit goes to github.com

Skip to content

optimass/webarena

 
 

Repository files navigation

Python 3.10 pre-commit Code style: black Checked with mypy bear-ified

WebArena: A Realistic Web Environment for Building Autonomous Agents

[Website] [Paper]

Overview

WebArena is a standalone, self-hostable web environment for building autonomous agents

Note This README is still under constructions. Stay tuned!

News

[7/29/2023] Added a well commented script to walk through the environment setup.

Install

# Python 3.10+
conda create -n webarena python=3.10; conda activate webarena
pip install -r requirements.txt
playwright install
pip install -e .

# optional, dev only
pip install -e ".[dev]"
mypy --install-types --non-interactive browser_env
pip install pre-commit
pre-commit install

Quick Walkthrough

Check out this script for a quick walkthrough on how to set up the environment and interact with it.

To Reproduce Our Results

  • Setup the environ as described in the quick walkthrough
  • python scripts/generate_test_data.py will generate individual config file for each test example in config_files
  • bash prepare.sh to obtain the auto-login cookies for all websites
  • export OPENAI_API_KEY=your_key
  • python run.py --instruction_path agent/prompts/jsons/p_cot_id_actree_2s.json --test_start_idx 0 --test_end_idx 1 --model gpt-3.5-turbo --result_dir your_result_dir to run the first example with GPT-3.5 reasoning agent. The trajectory will be saved in your_result_dir/0.html

About

Code repo for "WebArena: A Realistic Web Environment for Building Autonomous Agents"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Shell 0.4%