Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
chc012 committed Feb 26, 2025
1 parent e8982ea commit c907842
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
Empty file.
35 changes: 35 additions & 0 deletions browsergym/subtaskbench/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[build-system]
requires = ["hatchling", "hatch-requirements-txt"]
build-backend = "hatchling.build"

[project]
name = "browsergym-subtaskbench"
description = "SubTaskBench benchmark for BrowserGym"
authors = [
{name = "Cheng Chang"},
{name = "Sanjari Srivastava"},
]
readme = "README.md"
requires-python = ">3.7"
license = {text = "Apache-2.0"}
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: Apache Software License",
]
dynamic = ["dependencies", "version"]

[project.urls]
homepage = "https://github.com/ServiceNow/BrowserGym"

[tool.hatch.version]
path = "../core/src/browsergym/core/__init__.py"

[tool.hatch.metadata.hooks.requirements_txt]
files = ["requirements.txt"]

[tool.hatch.build.targets.wheel]
packages = ["src/browsergym"]
Empty file.
14 changes: 14 additions & 0 deletions browsergym/subtaskbench/src/browsergym/subtaskbench/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from browsergym.core.registration import register_task
from . import config, task

ALL_SUBTASKBENCH_TASK_IDS = []

# register all SubTaskBench tasks
for task_id in config.TASK_IDS:
gym_id = f"subtaskbench.{task_id}"
register_task(
gym_id,
task.GenericSubTaskBenchTask,
task_kwargs={"task_id": task_id},
)
ALL_SUBTASKBENCH_TASK_IDS.append(gym_id)
Empty file.
Empty file.

0 comments on commit c907842

Please # to comment.