Skip to content

Commit e065509

Browse files
添加mobile use描述
1 parent 0f6ed2e commit e065509

File tree

4 files changed

+46
-1
lines changed

4 files changed

+46
-1
lines changed
166 KB
Loading
361 KB
Loading
1.87 MB
Loading

docs/docs/tools/builtin.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ veADK 集成了以下火山引擎工具:
209209
name: doubao-seedream-4-0-250828
210210
api_base: https://ark.cn-beijing.volces.com/api/v3/
211211
api_key: your-api-key-here
212-
213212
```
214213

215214
运行结果:
@@ -359,6 +358,52 @@ veADK 集成了以下火山引擎工具:
359358
![运行结果](../assets/images/tools/las1.png)
360359
![运行结果](../assets/images/tools/las2.png)
361360

361+
362+
363+
### 手机指令执行 (Mobile Run)
364+
`mobile_run` 该工具可以让Agent在云手机上完成手机任务。
365+
366+
!!! warning "使用 `mobile_run` 工具的附加要求"
367+
1. 需要在火山购买云手机服务,并订购pod
368+
2. 根据自己的需要在云手机上配置环境,必须下载app,登录账号等。
369+
370+
371+
=== "代码"
372+
373+
```python
374+
--8<-- "examples/tools/mobile_run/agent.py"
375+
```
376+
377+
=== "环境变量"
378+
379+
必须配置在环境变量的配置项:
380+
- `TOOL_MOBIL_USE_TOOL_ID`: 用于执行命令的云手机id
381+
382+
或在 `config.yaml` 中定义:
383+
384+
```yaml title="config.yaml"
385+
tool:
386+
mobile_use:
387+
tool_id:
388+
- product_id-pod_id
389+
- product_id-pod_id
390+
391+
volcengine:
392+
access_key: xxx
393+
secret_key: xxx
394+
```
395+
396+
获取方式:
397+
1. 登录火山,进入云手机产品控制界面
398+
![云手机产品控制界面](../assets/images/tools/mua_1.png)
399+
![实例管理界面](../assets/images/tools/mua_2.png)
400+
2. tool_id 格式为:product_id-pod_id
401+
402+
运行结果:
403+
![img_2.png](../assets/images/tools/mua_3.png)
404+
405+
406+
362407
## 系统工具
363408

364409
- `load_knowledgebase`:检索知识库工具,在你给 Agent 传入 `knowledgebase` 参数后,将会自动挂载该工具,Agent 将在运行时自主决定何时查询知识库;

0 commit comments

Comments
 (0)