@@ -246,12 +246,12 @@ def get_available_count(self) -> int:
246246
247247
248248def _run_agent_task (
249- system_prompt : str ,
250- user_prompt : str ,
251- pid : str ,
252- max_step : int ,
253- step_interval : int ,
254- timeout : int ,
249+ system_prompt : str ,
250+ user_prompt : str ,
251+ pid : str ,
252+ max_step : int ,
253+ step_interval : int ,
254+ timeout : int ,
255255) -> RunAgentTaskResponse :
256256 try :
257257 run_task = ve_request (
@@ -279,9 +279,9 @@ def _run_agent_task(
279279
280280 run_task_response = _dict_to_dataclass (run_task , RunAgentTaskResponse )
281281 if (
282- not getattr (run_task_response , "Result" , None )
283- or not run_task_response .Result
284- or not run_task_response .Result .RunId
282+ not getattr (run_task_response , "Result" , None )
283+ or not run_task_response .Result
284+ or not run_task_response .Result .RunId
285285 ):
286286 raise MobileUseToolError (f"RunAgentTask returned invalid result: { run_task } " )
287287 logger .debug (f"Agent run started: { run_task_response } " )
@@ -384,14 +384,15 @@ def _get_product_and_pod():
384384 pod_ids = [tool_id .split ("-" )[1 ] for tool_id in tool_ids ]
385385 else :
386386 raise MobileUseToolError (
387- "TOOL_MOBILE_USE_TOOL_ID is invalid, please check the tool id from https://console.volcengine.com/ACEP/" )
387+ "TOOL_MOBILE_USE_TOOL_ID is invalid, please check the tool id from https://console.volcengine.com/ACEP/"
388+ )
388389
389390
390391def create_mobile_use_tool (
391- system_prompt : str ,
392- timeout_seconds : int = 900 ,
393- max_step : int = 100 ,
394- step_interval_seconds : int = 1 ,
392+ system_prompt : str ,
393+ timeout_seconds : int = 900 ,
394+ max_step : int = 100 ,
395+ step_interval_seconds : int = 1 ,
395396):
396397 """
397398 Outer closure: initialize fixed configuration for the virtual mobile tool
0 commit comments