Skip to content

Commit daee88e

Browse files
cosmetic changes
1 parent f302744 commit daee88e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/agentlab/experiments/loop.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ class EnvArgs(DataClassJsonMixin):
5353
storage_state: Optional[str | Path | dict] = None
5454
task_kwargs: Optional[dict] = None # use default value from BrowserGym
5555
pre_observation_delay: float = None # seconds, wait for JS events to be fired
56+
use_chat_ui: bool = False
57+
use_hint_labeling_ui: bool = False
5658

5759
def make_env(
5860
self, action_mapping, exp_dir, exp_task_kwargs: dict = {}, use_raw_page_output=True
@@ -100,6 +102,8 @@ def make_env(
100102
wait_for_user_message=self.wait_for_user_message,
101103
action_mapping=action_mapping, # action mapping is provided by the agent
102104
use_raw_page_output=use_raw_page_output,
105+
use_chat_ui=self.use_chat_ui,
106+
use_hint_labeling_ui=self.use_hint_labeling_ui,
103107
**extra_kwargs,
104108
)
105109

@@ -408,7 +412,7 @@ def _make_dir(self, exp_root):
408412
def run(self):
409413
"""Run the experiment and save the results"""
410414
# start writing logs to run logfile
411-
# self._set_logger()
415+
self._set_logger()
412416

413417
# log python environment info
414418
save_package_versions(Path(self.exp_dir))
@@ -991,7 +995,7 @@ def _update_hint_labeling(hint_labeling: HintLabeling, action: str, agent: Agent
991995
agent.flags.extra_instructions = hint
992996
seen_actions = set()
993997
suggestions = []
994-
for i in tqdm(range(5)):
998+
for _ in range(5):
995999
# TODO: make this more optimal
9961000
action = step_info.from_action(agent)
9971001
think = step_info.agent_info.think

0 commit comments

Comments
 (0)