Skip to content

Commit 5614458

Browse files
删除不需要的tos配置,增加获取id的link
1 parent 17e1ac3 commit 5614458

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

veadk/tools/builtin_tools/mobile_run.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@
2323
2. 环境变量配置(必需,运行前需手动设置):
2424
- VOLCENGINE_ACCESS_KEY: 火山引擎访问密钥 AK(需具备 IPAAS + TOS 操作权限)
2525
- VOLCENGINE_SECRET_KEY: 火山引擎访问密钥 SK
26-
- TOOL_MOBILE_USE_TOS_BUCKET: 任务结果(如截图)存储的 TOS 桶名
27-
- TOOL_MOBILE_USE_TOS_ENDPOINT: TOS 服务端点(示例:tos-cn-north-1.volces.com)
28-
- TOOL_MOBILE_USE_TOS_REGION: TOS 地域(需与端点一致,示例:cn-north-1)
2926
- TOOL_MOBILE_USE_POD_ID: 虚拟手机 Pod 唯一标识(从火山引擎控制台获取),如果希望复杂任务多个pod并行执行,则传入多个
30-
- TOOL_MOBILE_USE_PRODUCT_ID: 产品 ID(关联虚拟手机资源池,从控制台获取)
27+
- TOOL_MOBILE_USE_PRODUCT_ID: 产品 ID(关联虚拟手机资源池,从控制台获取, https://console.volcengine.com/ACEP/Business/5
3128
3229
yaml文件配置格式
3330
tool:
@@ -36,9 +33,6 @@
3633
pod_id:
3734
- xxxx
3835
- xxxx
39-
tos_bucket: xxx
40-
tos_region: xxx
41-
tos_endpoint: xxx
4236
volcengine:
4337
access_key: xxx
4438
secret_key: xxx
@@ -98,9 +92,6 @@ async def main():
9892

9993
ak = os.getenv("VOLCENGINE_ACCESS_KEY")
10094
sk = os.getenv("VOLCENGINE_SECRET_KEY")
101-
tos_bucket = os.getenv("TOOL_MOBILE_USE_TOS_BUCKET")
102-
tos_endpoint = os.getenv("TOOL_MOBILE_USE_TOS_ENDPOINT")
103-
tos_region = os.getenv("TOOL_MOBILE_USE_TOS_REGION")
10495
pod_ids = ast.literal_eval(os.getenv("TOOL_MOBILE_USE_POD_ID", "[]"))
10596
product_id = os.getenv("TOOL_MOBILE_USE_PRODUCT_ID")
10697

@@ -113,9 +104,6 @@ async def main():
113104
REQUIRED_ENV_VARS = [
114105
"VOLCENGINE_ACCESS_KEY",
115106
"VOLCENGINE_SECRET_KEY",
116-
"TOOL_MOBILE_USE_TOS_BUCKET",
117-
"TOOL_MOBILE_USE_TOS_ENDPOINT",
118-
"TOOL_MOBILE_USE_TOS_REGION",
119107
"TOOL_MOBILE_USE_POD_ID",
120108
"TOOL_MOBILE_USE_PRODUCT_ID",
121109
]
@@ -273,7 +261,6 @@ def _run_agent_task(system_prompt: str, user_prompt: str, pid: str, max_step: in
273261
"ProductId": product_id,
274262
"SystemPrompt": system_prompt,
275263
"UserPrompt": user_prompt,
276-
"EndpointId": tos_endpoint,
277264
"MaxStep": max_step,
278265
"StepInterval": step_interval,
279266
"Timeout": timeout

0 commit comments

Comments
 (0)