WebArena benchmark for BrowserGym
Project description
WebArena benchmark for BrowserGym
This package provides browsergym.webarena, which is an unofficial port of the WebArena benchmark for BrowserGym.
Note: the original WebArena codebase has been slightly adapted to ensure compatibility.
Server installation
You have two options to setup your webarena instance:
- option 1: follow the official webarena README
- option 2: use our unofficial setup scripts
We recommend option 2 as it allows you to easily customize the ports of each webarena domain, and offers a reset functionality that allows browsergym to trigger a full instance reset remotely.
Setup
- Install the package
pip install browsergym-webarena
- Download tokenizer resources
python -c "import nltk; nltk.download('punkt_tab')"
- Setup the URLs as environment variables. The ports for each domain here should correspond to those you used when setting up your webarena instance. Note also the
WA_prefix which is specific to browsergym.
BASE_URL=<YOUR_SERVER_URL_HERE> # example: "http://myazuremachine.eastus.cloudapp.azure.com"
# webarena environment variables (change ports as needed)
export WA_SHOPPING="$BASE_URL:8082/"
export WA_SHOPPING_ADMIN="$BASE_URL:8083/admin"
export WA_REDDIT="$BASE_URL:8080"
export WA_GITLAB="$BASE_URL:9001"
export WA_WIKIPEDIA="$BASE_URL:8081/wikipedia_en_all_maxi_2022-05/A/User:The_other_Kiwix_guy/Landing"
export WA_MAP="$BASE_URL:443"
export WA_HOMEPAGE="$BASE_URL:80"
# if your webarena instance offers the FULL_RESET feature (optional)
export WA_FULL_RESET="$BASE_URL:7565"
# otherwise, be sure to NOT set WA_FULL_RESET, or set it to an empty string
export WA_FULL_RESET=""
- Setup an OpenAI API key
export OPENAI_API_KEY=...
NOTE: be mindful of costs, as WebArena will call GPT4 for certain evaluations (llm_fuzzy_match).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file browsergym_webarena-0.14.3.dev3.tar.gz.
File metadata
- Download URL: browsergym_webarena-0.14.3.dev3.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c4e28b47f5e6e9129c07435e25c5f89dd5a4c1bb9941c8964124bd93398fd88
|
|
| MD5 |
37a38c995c1f629d335cfe872ddfa5bf
|
|
| BLAKE2b-256 |
8f07aaa6f43572982e80068c9674906a3ab957b6f971efb461752c221f8c5d16
|
Provenance
The following attestation bundles were made for browsergym_webarena-0.14.3.dev3.tar.gz:
Publisher:
pypi.yml on ServiceNow/BrowserGym
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
browsergym_webarena-0.14.3.dev3.tar.gz -
Subject digest:
0c4e28b47f5e6e9129c07435e25c5f89dd5a4c1bb9941c8964124bd93398fd88 - Sigstore transparency entry: 765799224
- Sigstore integration time:
-
Permalink:
ServiceNow/BrowserGym@ddeb2e7f48a08e13f8e455e72c27dd1373255225 -
Branch / Tag:
refs/tags/v0.14.3.dev3 - Owner: https://github.com/ServiceNow
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@ddeb2e7f48a08e13f8e455e72c27dd1373255225 -
Trigger Event:
push
-
Statement type:
File details
Details for the file browsergym_webarena-0.14.3.dev3-py3-none-any.whl.
File metadata
- Download URL: browsergym_webarena-0.14.3.dev3-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed12af48eb50b07932e748c809b200b0749cbb3d7a7edce44eae32f29bf51237
|
|
| MD5 |
2f6ca2c3fd21a504f17d5d898f927a89
|
|
| BLAKE2b-256 |
de3e7e2109c3e425baf97bcf35bdd904fdeecd3ff4e583a6d068690426a2f654
|
Provenance
The following attestation bundles were made for browsergym_webarena-0.14.3.dev3-py3-none-any.whl:
Publisher:
pypi.yml on ServiceNow/BrowserGym
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
browsergym_webarena-0.14.3.dev3-py3-none-any.whl -
Subject digest:
ed12af48eb50b07932e748c809b200b0749cbb3d7a7edce44eae32f29bf51237 - Sigstore transparency entry: 765777799
- Sigstore integration time:
-
Permalink:
ServiceNow/BrowserGym@ddeb2e7f48a08e13f8e455e72c27dd1373255225 -
Branch / Tag:
refs/tags/v0.14.3.dev3 - Owner: https://github.com/ServiceNow
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@ddeb2e7f48a08e13f8e455e72c27dd1373255225 -
Trigger Event:
push
-
Statement type: