We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dcae12 commit 15c5639Copy full SHA for 15c5639
src/agentlab/agents/generic_agent_hinter/generic_agent.py
@@ -8,6 +8,7 @@
8
the agent, including model arguments and flags for various behaviors.
9
"""
10
11
+import os
12
from copy import deepcopy
13
from dataclasses import asdict, dataclass
14
from functools import partial
@@ -89,6 +90,8 @@ def __init__(
89
90
self.max_retry = max_retry
91
92
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."
95
self.action_set = self.flags.action.action_set.make_action_set()
96
self._obs_preprocessor = dp.make_obs_preprocessor(flags.obs)
97
0 commit comments