2020
2121import bgym
2222from browsergym .experiments .agent import AgentInfo
23- from browsergym .experiments .loop import ExpArgs , ExpResult , yield_all_exp_results
2423from bs4 import BeautifulSoup
25- from langchain .schema import AIMessage , BaseMessage
26- from langchain_community .adapters .openai import convert_message_to_dict
2724
2825from agentlab .agents .agent_args import AgentArgs
29- from agentlab .agents . dynamic_prompting import ActionFlags
26+ from agentlab .experiments . loop import ExpArgs , ExpResult , yield_all_exp_results
3027from agentlab .experiments .study import Study
3128from agentlab .llm .chat_api import make_assistant_message
3229from agentlab .llm .llm_utils import Discussion , messages_to_dict
@@ -65,7 +62,6 @@ def get_stats(self):
6562
6663@dataclass
6764class ReproAgentArgs (GenericAgentArgs ):
68-
6965 # starting with "_" will prevent from being part of the index in the load_results function
7066 _repro_dir : str = None
7167
@@ -81,7 +77,6 @@ def make_agent(self):
8177
8278
8379class ReproAgent (GenericAgent ):
84-
8580 def __init__ (
8681 self ,
8782 chat_model_args ,
@@ -93,7 +88,6 @@ def __init__(
9388 super ().__init__ (chat_model_args , flags , max_retry )
9489
9590 def get_action (self , obs ):
96-
9791 # replace the chat model with a reproducible chat that will mimic the
9892 # same answers
9993 step = len (self .actions )
0 commit comments