@ynhcj/xiaoyi-channel 0.0.25-beta → 0.0.26-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,18 +21,18 @@ export const xiaoyiGuiTool = {
|
|
|
21
21
|
- 需要在APP中发布或发送内容
|
|
22
22
|
- 需要修改APP或手机设置
|
|
23
23
|
|
|
24
|
-
理论上,所有可以通过人在手机上操作完成的任务,该Agent都可以尝试执行。
|
|
25
|
-
|
|
26
24
|
注意事项:
|
|
27
|
-
- 操作超时时间为
|
|
25
|
+
- 操作超时时间为3分钟(180秒)
|
|
28
26
|
- 该工具执行时间较长,请勿重复调用
|
|
29
|
-
-
|
|
27
|
+
- 该工具执行期间不要执行别的工具调用,必须等到该工具有结果返回或者超时之后才能执行别的操作,无论是新的文本回复还是下一步的工具调用,在此工具执行期间必须严格等待
|
|
28
|
+
- 如果超时或失败,最多重试一次
|
|
29
|
+
- 如果用户指令中包含备忘录读写,日程查看,不需要将这类操作放在gui tool的query参数中,需要使用预置的note相关工具与calendar相关工具完成相关操作`,
|
|
30
30
|
parameters: {
|
|
31
31
|
type: "object",
|
|
32
32
|
properties: {
|
|
33
33
|
query: {
|
|
34
34
|
type: "string",
|
|
35
|
-
description: "
|
|
35
|
+
description: "操作手机的指令以及期望返回的结果。",
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
required: ["query"],
|
|
@@ -87,7 +87,7 @@ export const xiaoyiGuiTool = {
|
|
|
87
87
|
logger.error(`[XIAOYI_GUI_TOOL] ⏰ Timeout: No response received within 300 seconds (5 minutes)`);
|
|
88
88
|
wsManager.off("gui-agent-response", handler);
|
|
89
89
|
reject(new Error("XiaoYi GUI Agent 操作超时(5分钟)"));
|
|
90
|
-
},
|
|
90
|
+
}, 180000); // 5 minutes timeout
|
|
91
91
|
// Listen for GUI agent response events
|
|
92
92
|
const handler = (event) => {
|
|
93
93
|
logger.log(`[XIAOYI_GUI_TOOL] 📨 Received event:`, JSON.stringify(event));
|