Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/agentlab/analyze/inspect_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
from IPython.display import display
from tqdm import tqdm

from agentlab.experiments.exp_utils import RESULTS_DIR

# TODO find a more portable way to code set_task_category_as_index at least
# handle dynamic imports. We don't want to always import workarena
# from browsergym.workarena import TASK_CATEGORY_MAP
Expand Down
2 changes: 1 addition & 1 deletion src/agentlab/experiments/exp_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pathlib import Path
from time import sleep, time

from browsergym.experiments.loop import ExpArgs, _move_old_exp, yield_all_exp_results
from browsergym.experiments.loop import ExpArgs, yield_all_exp_results
from tqdm import tqdm

logger = logging.getLogger(__name__) # Get logger based on module name
Expand Down
8 changes: 6 additions & 2 deletions src/agentlab/llm/llm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@ def retry_multiple(
"""
tries = 0
while tries < n_retry:
answer_list = chat(messages, num_samples=num_samples)
answer_list = chat(messages, n_samples=num_samples)
# TODO: could we change this to not use inplace modifications ?
messages.append(answer)
if not isinstance(answer_list, list):
answer_list = [answer_list]

# TODO taking the 1st hides the other generated answers in AgentXRay
messages.append(answer_list[0])
parsed_answers = []
errors = []
for answer in answer_list:
Expand Down
Loading