-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathhello_miniwob.py
More file actions
36 lines (30 loc) · 973 Bytes
/
hello_miniwob.py
File metadata and controls
36 lines (30 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "cube-harness",
# "miniwob-cube",
# ]
#
# [tool.uv.sources]
# cube-harness = { path = "..", editable = true }
# miniwob-cube = { path = "../cubes/miniwob", editable = true }
# ///
"""Reference recipe: Genny on MiniWoB. The simplest end-to-end example.
This file IS the config — copy it and edit the values. It is not a CLI;
`run()` provides a fixed generic CLI (see `cube_harness.recipe`).
"""
from miniwob_cube import MINIWOB_CONFIGS
from cube_harness.agents.genny_configs import GENNY_CONFIGS
from cube_harness.experiment import Experiment
from cube_harness.llm import LLMConfig
from cube_harness.recipe import run
agent = GENNY_CONFIGS["default"]
agent.llm_config = LLMConfig(model_name="gpt-5.4-mini", temperature=1.0)
exp = Experiment(
name="miniwob",
agent_config=agent,
benchmark_config=MINIWOB_CONFIGS["default"],
max_steps=10,
)
if __name__ == "__main__":
run(exp)