Skip to content

Commit aa59a4a

Browse files
authored
Fix prompt formatting in Observation and add static method to Study class (#110)
1 parent dab1a48 commit aa59a4a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/agentlab/agents/dynamic_prompting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def shrink(self):
443443
def _prompt(self) -> str:
444444
return f"""
445445
# Observation of current step:
446-
{self.tabs}{self.html.prompt}{self.ax_tree.prompt}{self.focused_element.prompt}{self.error.prompt}
446+
{self.tabs.prompt}{self.html.prompt}{self.ax_tree.prompt}{self.focused_element.prompt}{self.error.prompt}
447447
448448
"""
449449

src/agentlab/experiments/study.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ def get_report(self, ignore_cache=False, ignore_stale=False):
246246
self.dir, ignore_cache=ignore_cache, ignore_stale=ignore_stale
247247
)
248248

249+
@staticmethod
249250
def load(dir: Path) -> "Study":
250251
dir = Path(dir)
251252
study_path = dir / "study.pkl.gz"

0 commit comments

Comments
 (0)