@@ -25,7 +25,7 @@ class OpenAIComputerUseAgentArgs(AbstractAgentArgs):
2525 environment : str = "browser"
2626 reasoning_summary : str = "concise"
2727 truncation : str = "auto" # Always set to "auto" for OpenAI API
28- wait_time : int = 2000 # wait for 2 seconds for noop() actions
28+ wait_time : int = 2000 # wait for 2 seconds for noop() actions
2929 action_set : HighLevelActionSetArgs = None
3030 enable_safety_checks : bool = False # Optional, default to False, only use in demo mode
3131 implicit_agreement : bool = True # Whether to require explicit agreement for actions or not
@@ -89,7 +89,7 @@ def __init__(
8989 self .pending_checks = []
9090 self .previous_response_id = None
9191 self .last_call_id = None
92- self .initialized = False
92+ self .initialized = False
9393 self .user_answer = None # Store the user answer to send to the assistant
9494
9595 self .tools = [
@@ -100,8 +100,9 @@ def __init__(
100100 "environment" : environment ,
101101 }
102102 ]
103+
103104 self .inputs = []
104-
105+
105106 def reset (self ):
106107 self .computer_calls = []
107108 self .pending_checks = []
@@ -214,14 +215,14 @@ def start_session(self, goal: str, screenshot_base64: str):
214215 }
215216 ]
216217 response = self .call_api (
217- input = inputs
218+ inputs = inputs ,
218219 reasoning = {
219220 "summary" : self .reasoning_summary ,
220- }
221+ },
221222 )
222223 agent_info = AgentInfo (
223224 think = self .reasoning_summary if self .reasoning_summary else None ,
224- chat_messages = inputs
225+ chat_messages = inputs ,
225226 )
226227 return response , agent_info
227228
0 commit comments