Skip to content

Commit 64bb6f0

Browse files
修复对齐问题
1 parent 9c6e88b commit 64bb6f0

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

veadk/tools/builtin_tools/mobile_run.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,12 @@ def get_available_count(self) -> int:
246246

247247

248248
def _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

390391
def 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

Comments
 (0)