Skip to content

Commit 15c5639

Browse files
committed
check that hints db exists
1 parent 0dcae12 commit 15c5639

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/agentlab/agents/generic_agent_hinter/generic_agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
the agent, including model arguments and flags for various behaviors.
99
"""
1010

11+
import os
1112
from copy import deepcopy
1213
from dataclasses import asdict, dataclass
1314
from functools import partial
@@ -89,6 +90,8 @@ def __init__(
8990
self.max_retry = max_retry
9091

9192
self.flags = flags
93+
if self.flags.hint_db_path is not None:
94+
assert os.path.exists(self.flags.hint_db_path), f"Hint database path {self.flags.hint_db_path} does not exist."
9295
self.action_set = self.flags.action.action_set.make_action_set()
9396
self._obs_preprocessor = dp.make_obs_preprocessor(flags.obs)
9497

0 commit comments

Comments
 (0)