File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ class ToolUseAgentArgs(AgentArgs):
6565 model_args : OpenAIResponseModelArgs = None
6666 use_first_obs : bool = True
6767 tag_screenshot : bool = True
68+ use_raw_page_output : bool = True
6869
6970 def __post_init__ (self ):
7071 try :
Original file line number Diff line number Diff line change @@ -401,11 +401,15 @@ def run(self):
401401 agent = self .agent_args .make_agent ()
402402 logger .debug ("Agent created." )
403403
404+ if hasattr (self .agent_args , "use_raw_page_output" ):
405+ use_raw_page_output = self .agent_args .use_raw_page_output
406+ else :
407+ use_raw_page_output = False
408+
404409 env = self .env_args .make_env (
405410 action_mapping = agent .action_set .to_python_code ,
406411 exp_dir = self .exp_dir ,
407- use_raw_page_output = True , # TODO:thibault Parametrize this one way or the other.
408- # Could be smth like self.agent_args.use_raw_page_output
412+ use_raw_page_output = use_raw_page_output ,
409413 )
410414
411415 logger .debug ("Environment created." )
You can’t perform that action at this time.
0 commit comments