@honor-claw/yoyo 1.0.7-beta.7 → 1.1.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honor-claw/yoyo",
3
- "version": "1.0.7-beta.7",
3
+ "version": "1.1.0",
4
4
  "description": "OpenClaw Honor Yoyo connection plugin",
5
5
  "keywords": [
6
6
  "ai",
@@ -177,9 +177,10 @@ Execute the following steps **in strict order** for each operation to construct
177
177
 
178
178
  当用户提出重复的请求,直接执行,不能质疑用户。
179
179
 
180
+
180
181
  ### 3.2 查询类请求的特殊处理
181
182
 
182
- **场景定义**:用户在短时间内多次要求执行相同或高度相似的操作。
183
+ **场景定义**:用户在访问查询类的请求,比如查询我的手机是否是静音模式
183
184
 
184
185
  **识别逻辑**:
185
186
 
@@ -188,8 +189,11 @@ Execute the following steps **in strict order** for each operation to construct
188
189
  │ 查询类请求特殊处理 │
189
190
  │ │
190
191
  │ - 检查当前会话历史记录 │
191
- │ - 比对:请求类型(actionType)是否为查询类操作
192
- └─ 查询闹钟 / 查询日程 / 查短信 / 查联系人 / 查通讯录 │
192
+ │ - 查看当前用户请求是否为查询类请求
193
+ - 比对:请求类型(actionType)是否为查询类操作│
194
+ │ └─ 查询闹钟 / 查询日程 / 查短信 / 查联系人 / 查通讯录 --> 特殊查询(闹钟/日程/短信/联系人/通讯录): │
195
+ │ 根据实际返回结果进行针对性交互,而非固定话术│
196
+ │ └─ 其他查询-->进行普通查询:回复"好的" │
193
197
  │ - 结果:命中查询类指令 → 触发特殊交互策略 │
194
198
  │ │
195
199
  │ 【特殊交互策略】 │
@@ -201,18 +205,10 @@ Execute the following steps **in strict order** for each operation to construct
201
205
 
202
206
  **处理策略**:
203
207
 
204
- <<<<<<< Updated upstream
205
- 正常回复用户“好的”。
206
208
  其中,特殊指令,包含查询闹钟/查询日程/查短信/查联系人/查通讯录,这些根据查询的具体返回结果进行交互。
207
- =======
208
- | 场景 | 处理方式 | 话术示例 |
209
- | ------------------- | ----------------------------- | -------------------------------------------------- |
210
- | 延迟执行(X分钟后) | 提示不支持 + 询问是否立即执行 | "我还不支持定时任务,只能现在帮你[操作],需要吗?" |
211
- | 定时触发(X点执行) | 提示不支持 + 建议替代方案 | "目前无法定时执行,你可以到点了再叫我哦" |
212
- | 序列操作(A然后B) | 拆解为即时操作 + 说明限制 | "我可以现在帮你[操作A],但[操作B]需要到时候再叫我" |
213
- | 条件触发(等X后Y) | 提示不支持条件执行 | "我做不到自动等待,你可以等[条件]满足后再叫我" |
214
-
215
- > > > > > > > Stashed changes
209
+ 除了上述特殊查询,都回复用户“好的”。
210
+
211
+
216
212
 
217
213
  ## Step 4. Invoke Node With Command and Parameters
218
214
 
@@ -303,6 +303,10 @@ openclaw nodes invoke --node <ID> --command bluetooth --params '{"actionType":"
303
303
  | item_status | bool | 功能状态(true开启/false关闭) |
304
304
  | show_string | string | 用户答复语 |
305
305
 
306
+ ## 特殊场景回复规则
307
+
308
+ - "查询"类请求,固定回复"好的"
309
+
306
310
  ## 错误处理
307
311
 
308
312
  如果工具执行错误(result_code=300/301/302),可能原因如下:
@@ -177,3 +177,7 @@ openclaw nodes invoke --node <ID> --command hotspot --params '{"actionType":"打
177
177
  ```
178
178
 
179
179
  ---
180
+
181
+ ## 特殊场景回复规则
182
+
183
+ - "查询"类请求,固定回复"好的"
@@ -251,3 +251,7 @@ openclaw nodes invoke --node <ID> --command mobile-data --params '{"actionType":
251
251
  ```
252
252
 
253
253
  ---
254
+
255
+ ## 特殊场景回复规则
256
+
257
+ - "查询"类请求,固定回复"好的"
@@ -328,3 +328,7 @@ openclaw nodes invoke --node <ID> --command no-disturb --params '{"actionType":"
328
328
  ```
329
329
 
330
330
  ---
331
+
332
+ ## 特殊场景回复规则
333
+
334
+ - "查询"类请求,固定回复"好的"
@@ -231,3 +231,7 @@ openclaw nodes invoke --node <ID> --command quiet-mode --params '{"actionType":"
231
231
  ```
232
232
 
233
233
  ---
234
+
235
+ ## 特殊场景回复规则
236
+
237
+ - "查询"类请求,固定回复"好的"
@@ -226,3 +226,7 @@ openclaw nodes invoke --node <ID> --command ringing-mode --params '{"actionType"
226
226
  ```
227
227
 
228
228
  ---
229
+
230
+ ## 特殊场景回复规则
231
+
232
+ - "查询"类请求,固定回复"好的"
@@ -4,6 +4,7 @@ description: >
4
4
  日程创建工具。用于在设备上创建新的日程安排,支持设置具体时间、日期和日程内容。
5
5
  当用户询问"创建/添加/新建日程"等意图时调用。
6
6
  用于创建日程的工具。当用户意图涉及添加日程/安排时,属于创建日程。
7
+ 如果用户未指定日程的具体时间,需要进行追问,再结合回答进行再次编排。
7
8
  ---
8
9
 
9
10
  # Schedule Create 创建日程
@@ -33,28 +34,37 @@ schedule.create
33
34
  │ - 识别创建意图: "创建/添加/新建/设置" + 日程/安排/提醒 │
34
35
  │ - 提取时间描述: 如"明天三点"、"下周二上午" → time │
35
36
  │ - 提取日程内容: 如"重要会议"、"医生预约" → event │
36
- │ - 组装 timeInfo 对象(包含类型、当前时间、推理结果)
37
- │ - type 固定值为"日程" │
37
+ │ - 检查时间完整性: 若用户未指定具体时间,标记为"待追问"
38
+ └─────────────────────────────────────────────────────────────┘
39
+
40
+ ┌─────────────────────────────────────────────────────────────┐
41
+ │ 时间完整性检查 │
42
+ │ IF 用户未提供具体时间(如只说"创建明天会议日程"): │
43
+ │ → 追问用户:"请问您想安排在什么具体时间?" │
44
+ │ → 等待用户回答后具体时间点后重新进入意图解析流程 │
45
+ │ ELSE: │
46
+ │ → 继续执行时间推理与格式化 │
38
47
  └─────────────────────────────────────────────────────────────┘
39
48
 
40
49
  ┌─────────────────────────────────────────────────────────────┐
41
50
  │ 时间推理与格式化 │
42
51
  │ - 根据用户时间描述推理具体日期时间 │
43
52
  │ - 填充 inferTime(当前时间) │
44
- │ - 填充 inferResult 各字段:
53
+ │ - 填充 inferResult 各字段:
45
54
  │ • fixedTime: 精确时间(yyyy-MM-dd HH:mm:ss) │
46
55
  │ • fixedDate: 日期(yyyy-MM-dd) │
47
56
  │ • queryDate: 查询日期(yyyy-MM-dd) │
48
57
  │ • lunar: 固定值 0 │
49
58
  │ • inferedTime: 推理后的完整时间 │
59
+ │ • inferedDate: 推理后的日期 │
50
60
  │ • originNewTime: 用户原始时间描述(缺省信息用字母占位) │
51
- │ - 确定 timeInfo.type(fixedTime/fixedDate/repeat等)
61
+ │ - 确定 timeInfo.type(fixedTime/fixedDate/repeat等)
52
62
  └─────────────────────────────────────────────────────────────┘
53
63
 
54
64
  ┌─────────────────────────────────────────────────────────────┐
55
65
  │ 生成工具调用 │
56
66
  │ - 组装完整参数 JSON 字符串 │
57
- │ - 生成平台特定的命令格式
67
+ │ - 生成平台特定的命令格式
58
68
  └─────────────────────────────────────────────────────────────┘
59
69
  ```
60
70
 
@@ -68,78 +78,122 @@ schedule.create
68
78
 
69
79
  ```json
70
80
  {
71
- "timeInfo": {
72
- "type": "object",
73
- "description": "时间相关信息",
74
- "properties": {
75
- "type": {
76
- "type": "string",
77
- "enum": [
78
- "repeat",
79
- "duration",
80
- "fixedDate",
81
- "fixedTime",
82
- "fixedPeriodDate",
83
- "fixedPeriodTime"
84
- ],
85
- "description": "日程类型"
86
- },
87
- "inferTime": {
88
- "type": "string",
89
- "description": "当前时间,格式:yyyy-MM-dd HH:mm:ss"
90
- },
91
- "inferResult": {
92
- "type": "object",
93
- "description": "时间推理结果",
94
- "properties": {
95
- "fixedTime": {
96
- "type": "string",
97
- "description": "日程精确时间,格式:yyyy-MM-dd HH:mm:ss。若type为fixedTime,该参数需有值"
98
- },
99
- "fixedDate": {
100
- "type": "string",
101
- "description": "日程日期,格式:yyyy-MM-dd。若type为fixedDate,该参数需有值"
102
- },
103
- "queryDate": {
104
- "type": "string",
105
- "description": "日程查询日期,格式:yyyy-MM-dd"
106
- },
107
- "lunar": {
108
- "type": "number",
109
- "description": "固定值为0"
110
- },
111
- "inferedTime": {
112
- "type": "string",
113
- "description": "模型推理后的完整时间,格式:yyyy-MM-dd HH:mm:ss"
114
- },
115
- "originNewTime": {
116
- "type": "string",
117
- "description": "用户原始时间描述,缺省信息用字母占位,如创建10号8点日程:yyyy-mm-10 08:00:00"
81
+ "name": "schedule_create",
82
+ "description": "该工具提供对于日程的创建功能。",
83
+ "parameters": {
84
+ "timeInfo": {
85
+ "type": "object",
86
+ "description": "时间相关信息",
87
+ "properties": {
88
+ "type": {
89
+ "type": "string",
90
+ "enum": ["repeat", "duration", "fixedTime", "fixedPeriodDate", "fixedPeriodTime"],
91
+ "description": "日程类型"
92
+ },
93
+ "inferTime": {
94
+ "type": "string",
95
+ "description": "当前时间,如:2026-03-16 16:05:56"
96
+ },
97
+ "inferResult": {
98
+ "type": "object",
99
+ "description": "时间相关信息",
100
+ "properties": {
101
+ "fixedTime": {
102
+ "type": "string",
103
+ "description": "日程时间,如:2026-03-17 10:00:00。若type为fixedTime,该参数需有值"
104
+ },
105
+ "fixedDate": {
106
+ "type": "string",
107
+ "description": "日程日期,如:2026-03-17。若type为fixedDate,该参数需有值"
108
+ },
109
+ "queryDate": {
110
+ "type": "string",
111
+ "description": "日程日期,如:2026-03-17"
112
+ },
113
+ "lunar": {
114
+ "type": "number",
115
+ "description": "固定值为0"
116
+ },
117
+ "inferedTime": {
118
+ "type": "string",
119
+ "description": "模型推理时间,如:2026-03-17 10:00:00"
120
+ },
121
+ "inferedDate": {
122
+ "type": "string",
123
+ "description": "模型推理日期,如:2026-03-17"
124
+ },
125
+ "originNewTime": {
126
+ "type": "string",
127
+ "description": "用户说的时间,如:2026-03-17 10:00:00;若缺少信息,用字母占位,比如创建10号8点日程,yyyy-mm-10 08:00:00;再比如3月25日的日程,2026-03-25 HH:MM:SS"
128
+ },
129
+ "byhour": {
130
+ "type": "string",
131
+ "description": "当type为\"repeat\",且用户指定了几点,该参数有值,为具体的小时"
132
+ },
133
+ "byminute": {
134
+ "type": "string",
135
+ "description": "当type为\"repeat\",且用户指定了几点几分,该参数有值,为具体的分钟数"
136
+ },
137
+ "bysecond": {
138
+ "type": "string",
139
+ "description": "当type为\"repeat\",且用户指定了几点几分几秒,该参数有值,为具体的秒数"
140
+ },
141
+ "bymonthday": {
142
+ "type": "string",
143
+ "description": "当type为\"repeat\",且用户指定了每月第几天,该参数有值,为具体第几天"
144
+ },
145
+ "byweekday": {
146
+ "type": "string",
147
+ "description": "当type为\"repeat\",且用户指定了每周第几天,该参数有值,取值范围从周一到周日分别对应[\"drr.MO\",\"drr.TU\",\"drr.WE\",\"drr.TH\",\"drr.FR\",\"drr.SA\",\"drr.SU\"]"
148
+ },
149
+ "repeat": {
150
+ "type": "string",
151
+ "description": "当type为\"repeat\",该参数有值,表示重复类型,每周重复为WEEKLY,每月重复为MONTHLY,每日重复为DAILY,每小时重复为HOURLY,每分钟重复为MINUTELY,每秒重复为SECONDLY,每个工作日重复为WORKDAY,每个周末重复为WEEKEND,每年重复为YEARLY"
152
+ }
118
153
  }
119
154
  }
120
155
  }
156
+ },
157
+ "time": {
158
+ "type": "string",
159
+ "description": "日程时间描述,如:明天十点"
160
+ },
161
+ "type": {
162
+ "type": "string",
163
+ "description": "固定值为:日程"
164
+ },
165
+ "event": {
166
+ "type": "string",
167
+ "description": "日程内容,如:重要会议"
121
168
  }
122
169
  },
123
- "time": {
124
- "type": "string",
125
- "description": "日程时间描述,用户原始输入,如:明天十点、下周一下午"
126
- },
127
- "type": {
128
- "type": "string",
129
- "description": "固定值为:日程"
130
- },
131
- "event": {
132
- "type": "string",
133
- "description": "日程内容/标题,如:重要会议、医生预约、生日提醒"
134
- }
170
+ "required": [],
171
+ "examples": [
172
+ {
173
+ "timeInfo": {
174
+ "type": "fixedTime",
175
+ "inferTime": "2026-03-16 16:05:56",
176
+ "inferResult": {
177
+ "fixedTime": "2026-03-17 03:00:00",
178
+ "queryDate": "2026-03-17",
179
+ "lunar": 0,
180
+ "inferedTime": "2026-03-17 03:00:00",
181
+ "inferedDate": "2026-03-17",
182
+ "originNewTime": "2026-03-17 03:00:00"
183
+ }
184
+ },
185
+ "time": "明天三点",
186
+ "type": "日程",
187
+ "event": "重要会议"
188
+ }
189
+ ]
135
190
  }
136
191
  ```
137
192
 
138
193
  ### 参数注意事项
139
194
 
140
195
  1. **timeInfo.type 枚举值**:
141
- - `fixedTime`:固定时间点(精确到时分秒)
142
- - `fixedDate`:固定日期(全天日程)
196
+ - `fixedTime`:固定时间点(精确到时分秒),如果用户未指定具体时间点(如用户说“帮我定一个明天的日程”,但未指定具体几点),则需追问用户具体几点
143
197
  - `repeat`:重复性日程
144
198
  - `duration`:持续时间日程
145
199
  - `fixedPeriodDate`:固定周期日期
@@ -148,13 +202,15 @@ schedule.create
148
202
  2. **时间格式规范**:
149
203
  - `inferTime`:当前系统时间,如 `2026-03-16 16:05:56`
150
204
  - `fixedTime`/`inferedTime`:完整时间,如 `2026-03-17 10:00:00`
151
- - `fixedDate`/`queryDate`:仅日期,如 `2026-03-17`
205
+ - `fixedDate`/`queryDate`/`inferedDate`:仅日期,如 `2026-03-17`
152
206
  - `originNewTime`:缺省信息用字母占位,如 `yyyy-mm-10 08:00:00`
153
207
 
154
208
  3. **lunar 字段**:固定值为 `0`
155
209
 
156
210
  4. **type 字段**:固定值为 `"日程"`
157
211
 
212
+ 5. **新增 inferedDate 字段**:用于存储模型推理后的日期部分
213
+
158
214
  ## Create 示例
159
215
 
160
216
  ### 示例 1: 创建明天固定时间的日程
@@ -167,6 +223,7 @@ schedule.create
167
223
  - 用户时间描述(time):`"明天三点"`
168
224
  - 日程内容(event):`"重要会议"`
169
225
  - 推理后时间(fixedTime/inferedTime):`2026-03-17 15:00:00`
226
+ - 推理后日期(inferedDate):`2026-03-17`
170
227
 
171
228
  **JSON 参数**:
172
229
 
@@ -180,6 +237,7 @@ schedule.create
180
237
  "queryDate": "2026-03-17",
181
238
  "lunar": 0,
182
239
  "inferedTime": "2026-03-17 15:00:00",
240
+ "inferedDate": "2026-03-17",
183
241
  "originNewTime": "2026-03-17 15:00:00"
184
242
  }
185
243
  },
@@ -192,64 +250,18 @@ schedule.create
192
250
  **Windows (Cmd) 执行命令**:
193
251
 
194
252
  ```bash
195
- cmd /c 'openclaw nodes invoke --node <ID> --command schedule.create --params "{\"timeInfo\":{\"type\":\"fixedTime\",\"inferTime\":\"2026-03-16 16:05:56\",\"inferResult\":{\"fixedTime\":\"2026-03-17 15:00:00\",\"queryDate\":\"2026-03-17\",\"lunar\":0,\"inferedTime\":\"2026-03-17 15:00:00\",\"originNewTime\":\"2026-03-17 15:00:00\"}},\"time\":\"明天三点\",\"type\":\"日程\",\"event\":\"重要会议\"}"'
196
- ```
197
-
198
- **Linux (Bash) 执行命令**:
199
-
200
- ```bash
201
- openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo":{"type":"fixedTime","inferTime":"2026-03-16 16:05:56","inferResult":{"fixedTime":"2026-03-17 15:00:00","queryDate":"2026-03-17","lunar":0,"inferedTime":"2026-03-17 15:00:00","originNewTime":"2026-03-17 15:00:00"}},"time":"明天三点","type":"日程","event":"重要会议"}'
202
- ```
203
-
204
- ---
205
-
206
- ### 示例 2: 创建全天日程
207
-
208
- **用户输入**: "添加一个3月25日的生日提醒"
209
-
210
- **参数组装**:
211
-
212
- - 当前时间(inferTime):`2026-03-16 10:00:00`
213
- - 用户时间描述(time):`"3月25日"`
214
- - 日程内容(event):`"生日提醒"`
215
- - 日期(fixedDate):`2026-03-25`
216
-
217
- **JSON 参数**:
218
-
219
- ```json
220
- {
221
- "timeInfo": {
222
- "type": "fixedDate",
223
- "inferTime": "2026-03-16 10:00:00",
224
- "inferResult": {
225
- "fixedDate": "2026-03-25",
226
- "queryDate": "2026-03-25",
227
- "lunar": 0,
228
- "inferedTime": "2026-03-25 00:00:00",
229
- "originNewTime": "2026-03-25 HH:MM:SS"
230
- }
231
- },
232
- "time": "3月25日",
233
- "type": "日程",
234
- "event": "生日提醒"
235
- }
236
- ```
237
-
238
- **Windows (Cmd) 执行命令**:
239
-
240
- ```bash
241
- cmd /c 'openclaw nodes invoke --node <ID> --command schedule.create --params "{\"timeInfo\":{\"type\":\"fixedDate\",\"inferTime\":\"2026-03-16 10:00:00\",\"inferResult\":{\"fixedDate\":\"2026-03-25\",\"queryDate\":\"2026-03-25\",\"lunar\":0,\"inferedTime\":\"2026-03-25 00:00:00\",\"originNewTime\":\"2026-03-25 HH:MM:SS\"}},\"time\":\"3月25日\",\"type\":\"日程\",\"event\":\"生日提醒\"}"'
253
+ cmd /c 'openclaw nodes invoke --node <ID> --command schedule.create --params "{\"timeInfo\":{\"type\":\"fixedTime\",\"inferTime\":\"2026-03-16 16:05:56\",\"inferResult\":{\"fixedTime\":\"2026-03-17 15:00:00\",\"queryDate\":\"2026-03-17\",\"lunar\":0,\"inferedTime\":\"2026-03-17 15:00:00\",\"inferedDate\":\"2026-03-17\",\"originNewTime\":\"2026-03-17 15:00:00\"}},\"time\":\"明天三点\",\"type\":\"日程\",\"event\":\"重要会议\"}"'
242
254
  ```
243
255
 
244
256
  **Linux (Bash) 执行命令**:
245
257
 
246
258
  ```bash
247
- openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo":{"type":"fixedDate","inferTime":"2026-03-16 10:00:00","inferResult":{"fixedDate":"2026-03-25","queryDate":"2026-03-25","lunar":0,"inferedTime":"2026-03-25 00:00:00","originNewTime":"2026-03-25 HH:MM:SS"}},"time":"3月25日","type":"日程","event":"生日提醒"}'
259
+ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo":{"type":"fixedTime","inferTime":"2026-03-16 16:05:56","inferResult":{"fixedTime":"2026-03-17 15:00:00","queryDate":"2026-03-17","lunar":0,"inferedTime":"2026-03-17 15:00:00","inferedDate":"2026-03-17","originNewTime":"2026-03-17 15:00:00"}},"time":"明天三点","type":"日程","event":"重要会议"}'
248
260
  ```
249
261
 
250
262
  ---
251
263
 
252
- ### 示例 3: 创建下周的日程
264
+ ### 示例 2: 创建下周的日程
253
265
 
254
266
  **用户输入**: "新建一个下周一上午十点的团队周会"
255
267
 
@@ -272,6 +284,7 @@ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo
272
284
  "queryDate": "2026-03-23",
273
285
  "lunar": 0,
274
286
  "inferedTime": "2026-03-23 10:00:00",
287
+ "inferedDate": "2026-03-23",
275
288
  "originNewTime": "2026-03-23 10:00:00"
276
289
  }
277
290
  },
@@ -284,18 +297,18 @@ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo
284
297
  **Windows (Cmd) 执行命令**:
285
298
 
286
299
  ```bash
287
- cmd /c 'openclaw nodes invoke --node <ID> --command schedule.create --params "{\"timeInfo\":{\"type\":\"fixedTime\",\"inferTime\":\"2026-03-16 09:30:00\",\"inferResult\":{\"fixedTime\":\"2026-03-23 10:00:00\",\"queryDate\":\"2026-03-23\",\"lunar\":0,\"inferedTime\":\"2026-03-23 10:00:00\",\"originNewTime\":\"2026-03-23 10:00:00\"}},\"time\":\"下周一上午十点\",\"type\":\"日程\",\"event\":\"团队周会\"}"'
300
+ cmd /c 'openclaw nodes invoke --node <ID> --command schedule.create --params "{\"timeInfo\":{\"type\":\"fixedTime\",\"inferTime\":\"2026-03-16 09:30:00\",\"inferResult\":{\"fixedTime\":\"2026-03-23 10:00:00\",\"queryDate\":\"2026-03-23\",\"lunar\":0,\"inferedTime\":\"2026-03-23 10:00:00\",\"inferedDate\":\"2026-03-23\",\"originNewTime\":\"2026-03-23 10:00:00\"}},\"time\":\"下周一上午十点\",\"type\":\"日程\",\"event\":\"团队周会\"}"'
288
301
  ```
289
302
 
290
303
  **Linux (Bash) 执行命令**:
291
304
 
292
305
  ```bash
293
- openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo":{"type":"fixedTime","inferTime":"2026-03-16 09:30:00","inferResult":{"fixedTime":"2026-03-23 10:00:00","queryDate":"2026-03-23","lunar":0,"inferedTime":"2026-03-23 10:00:00","originNewTime":"2026-03-23 10:00:00"}},"time":"下周一上午十点","type":"日程","event":"团队周会"}'
306
+ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo":{"type":"fixedTime","inferTime":"2026-03-16 09:30:00","inferResult":{"fixedTime":"2026-03-23 10:00:00","queryDate":"2026-03-23","lunar":0,"inferedTime":"2026-03-23 10:00:00","inferedDate":"2026-03-23","originNewTime":"2026-03-23 10:00:00"}},"time":"下周一上午十点","type":"日程","event":"团队周会"}'
294
307
  ```
295
308
 
296
309
  ---
297
310
 
298
- ### 示例 4: 创建重复日程
311
+ ### 示例 3: 创建重复日程
299
312
 
300
313
  **用户输入**: "添加一个每周五下午三点的健身计划"
301
314
 
@@ -318,6 +331,7 @@ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo
318
331
  "queryDate": "2026-03-20",
319
332
  "lunar": 0,
320
333
  "inferedTime": "2026-03-20 15:00:00",
334
+ "inferedDate": "2026-03-20",
321
335
  "originNewTime": "2026-03-20 15:00:00"
322
336
  }
323
337
  },
@@ -330,18 +344,18 @@ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo
330
344
  **Windows (Cmd) 执行命令**:
331
345
 
332
346
  ```bash
333
- cmd /c 'openclaw nodes invoke --node <ID> --command schedule.create --params "{\"timeInfo\":{\"type\":\"repeat\",\"inferTime\":\"2026-03-16 14:00:00\",\"inferResult\":{\"fixedTime\":\"2026-03-20 15:00:00\",\"queryDate\":\"2026-03-20\",\"lunar\":0,\"inferedTime\":\"2026-03-20 15:00:00\",\"originNewTime\":\"2026-03-20 15:00:00\"}},\"time\":\"每周五下午三点\",\"type\":\"日程\",\"event\":\"健身计划\"}"'
347
+ cmd /c 'openclaw nodes invoke --node <ID> --command schedule.create --params "{\"timeInfo\":{\"type\":\"repeat\",\"inferTime\":\"2026-03-16 14:00:00\",\"inferResult\":{\"fixedTime\":\"2026-03-20 15:00:00\",\"queryDate\":\"2026-03-20\",\"lunar\":0,\"inferedTime\":\"2026-03-20 15:00:00\",\"inferedDate\":\"2026-03-20\",\"originNewTime\":\"2026-03-20 15:00:00\"}},\"time\":\"每周五下午三点\",\"type\":\"日程\",\"event\":\"健身计划\"}"'
334
348
  ```
335
349
 
336
350
  **Linux (Bash) 执行命令**:
337
351
 
338
352
  ```bash
339
- openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo":{"type":"repeat","inferTime":"2026-03-16 14:00:00","inferResult":{"fixedTime":"2026-03-20 15:00:00","queryDate":"2026-03-20","lunar":0,"inferedTime":"2026-03-20 15:00:00","originNewTime":"2026-03-20 15:00:00"}},"time":"每周五下午三点","type":"日程","event":"健身计划"}'
353
+ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo":{"type":"repeat","inferTime":"2026-03-16 14:00:00","inferResult":{"fixedTime":"2026-03-20 15:00:00","queryDate":"2026-03-20","lunar":0,"inferedTime":"2026-03-20 15:00:00","inferedDate":"2026-03-20","originNewTime":"2026-03-20 15:00:00"}},"time":"每周五下午三点","type":"日程","event":"健身计划"}'
340
354
  ```
341
355
 
342
356
  ---
343
357
 
344
- ### 示例 5: 创建带缺省时间信息的日程
358
+ ### 示例 4: 创建带缺省时间信息的日程
345
359
 
346
360
  **用户输入**: "帮我创建10号8点的日程,内容是项目评审"
347
361
 
@@ -364,6 +378,7 @@ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo
364
378
  "queryDate": "2026-03-10",
365
379
  "lunar": 0,
366
380
  "inferedTime": "2026-03-10 08:00:00",
381
+ "inferedDate": "2026-03-10",
367
382
  "originNewTime": "yyyy-mm-10 08:00:00"
368
383
  }
369
384
  },
@@ -376,13 +391,107 @@ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo
376
391
  **Windows (Cmd) 执行命令**:
377
392
 
378
393
  ```bash
379
- cmd /c 'openclaw nodes invoke --node <ID> --command schedule.create --params "{\"timeInfo\":{\"type\":\"fixedTime\",\"inferTime\":\"2026-03-16 11:00:00\",\"inferResult\":{\"fixedTime\":\"2026-03-10 08:00:00\",\"queryDate\":\"2026-03-10\",\"lunar\":0,\"inferedTime\":\"2026-03-10 08:00:00\",\"originNewTime\":\"yyyy-mm-10 08:00:00\"}},\"time\":\"10号8点\",\"type\":\"日程\",\"event\":\"项目评审\"}"'
394
+ cmd /c 'openclaw nodes invoke --node <ID> --command schedule.create --params "{\"timeInfo\":{\"type\":\"fixedTime\",\"inferTime\":\"2026-03-16 11:00:00\",\"inferResult\":{\"fixedTime\":\"2026-03-10 08:00:00\",\"queryDate\":\"2026-03-10\",\"lunar\":0,\"inferedTime\":\"2026-03-10 08:00:00\",\"inferedDate\":\"2026-03-10\",\"originNewTime\":\"yyyy-mm-10 08:00:00\"}},\"time\":\"10号8点\",\"type\":\"日程\",\"event\":\"项目评审\"}"'
380
395
  ```
381
396
 
382
397
  **Linux (Bash) 执行命令**:
383
398
 
384
399
  ```bash
385
- openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo":{"type":"fixedTime","inferTime":"2026-03-16 11:00:00","inferResult":{"fixedTime":"2026-03-10 08:00:00","queryDate":"2026-03-10","lunar":0,"inferedTime":"2026-03-10 08:00:00","originNewTime":"yyyy-mm-10 08:00:00"}},"time":"10号8点","type":"日程","event":"项目评审"}'
400
+ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo":{"type":"fixedTime","inferTime":"2026-03-16 11:00:00","inferResult":{"fixedTime":"2026-03-10 08:00:00","queryDate":"2026-03-10","lunar":0,"inferedTime":"2026-03-10 08:00:00","inferedDate":"2026-03-10","originNewTime":"yyyy-mm-10 08:00:00"}},"time":"10号8点","type":"日程","event":"项目评审"}'
401
+ ```
402
+
403
+ ---
404
+
405
+ ### 示例 5: 未指定时间时的追问流程
406
+
407
+ **用户输入**: "帮我创建一个会议日程"
408
+
409
+ **系统处理**:
410
+
411
+ 1. 识别到创建意图,但**未提取到具体时间信息**
412
+ 2. 触发追问逻辑
413
+
414
+ **追问回复**:
415
+
416
+ > 请问您想安排在什么时间?
417
+
418
+ **用户回答**: "明天下午三点"
419
+
420
+ **参数组装**:
421
+
422
+ - 当前时间(inferTime):`2026-03-16 14:20:00`
423
+ - 用户时间描述(time):`"明天下午三点"`
424
+ - 日程内容(event):`"会议"`
425
+ - 推理后时间:`2026-03-17 15:00:00`
426
+
427
+ **JSON 参数**:
428
+
429
+ ```json
430
+ {
431
+ "timeInfo": {
432
+ "type": "fixedTime",
433
+ "inferTime": "2026-03-16 14:20:00",
434
+ "inferResult": {
435
+ "fixedTime": "2026-03-17 15:00:00",
436
+ "queryDate": "2026-03-17",
437
+ "lunar": 0,
438
+ "inferedTime": "2026-03-17 15:00:00",
439
+ "inferedDate": "2026-03-17",
440
+ "originNewTime": "2026-03-17 15:00:00"
441
+ }
442
+ },
443
+ "time": "明天下午三点",
444
+ "type": "日程",
445
+ "event": "会议"
446
+ }
447
+ ```
448
+
449
+ ### 示例 6:重复场景下的日程创建(每周)
450
+
451
+ **用户输入**: "帮我创建每周一早上9点吃早饭的日程"
452
+
453
+ **JSON 参数**:
454
+
455
+ ```json
456
+ {
457
+ "timeInfo": {
458
+ "type": "repeat",
459
+ "inferTime": "2026-03-16 16:05:56",
460
+ "inferResult": {
461
+ "byhour": "9",
462
+ "byweekday": "drr.MO",
463
+ "repeat": "WEEKLY",
464
+ "lunar": "0"
465
+ }
466
+ },
467
+ "time": "每周一早上9点",
468
+ "type": "日程",
469
+ "event": "吃早饭"
470
+ }
471
+ ```
472
+
473
+ ### 示例 7:重复场景下的日程创建(每月)
474
+
475
+ **用户输入**: "帮我创建每月1号早上9点吃早饭的日程"
476
+
477
+ **JSON 参数**:
478
+
479
+ ```json
480
+ {
481
+ "timeInfo": {
482
+ "type": "repeat",
483
+ "inferTime": "2026-03-16 16:05:56",
484
+ "inferResult": {
485
+ "byhour": "9",
486
+ "bymonthday": "1",
487
+ "repeat": "MONTHLY",
488
+ "lunar": "0"
489
+ }
490
+ },
491
+ "time": "每月1号早上9点",
492
+ "type": "日程",
493
+ "event": "吃早饭"
494
+ }
386
495
  ```
387
496
 
388
497
  ## 返回结果说明
@@ -420,8 +529,13 @@ openclaw nodes invoke --node <ID> --command schedule.create --params '{"timeInfo
420
529
  | 类型 | 场景 | 关键字段 |
421
530
  | :-------------- | :----------------------- | :------------------- |
422
531
  | fixedTime | 精确时间点(如明天三点) | fixedTime |
423
- | fixedDate | 全天日程(如3月25日) | fixedDate |
424
532
  | repeat | 重复日程(如每周五) | fixedTime + 重复规则 |
425
533
  | duration | 持续时间段 | 开始时间 + 结束时间 |
426
534
  | fixedPeriodDate | 固定周期日期 | - |
427
535
  | fixedPeriodTime | 固定周期时间 | - |
536
+
537
+ ---
538
+
539
+ ## 回复规则
540
+
541
+ - 执行成功后固定回复"好的"
@@ -37,7 +37,8 @@ schedule.delete
37
37
  │ • index: 日程索引序号(用于列表选择) │
38
38
  │ • id: 日程唯一标识(如有) │
39
39
  │ • timeInfo: 时间信息(用于确认删除对象) │
40
- │ - 如有多条结果,需用户确认或选择后再执行删除
40
+ │ - 如有多条结果,需用户确认或选择后再执行删除 |
41
+ - 如果用户选择了多条日程删除,则发送多次指令,每次只删除一条(该准则请务必遵守)│
41
42
  └─────────────────────────────────────────────────────────────┘
42
43
 
43
44
  ```
@@ -48,15 +49,17 @@ schedule.delete
48
49
  ┌─────────────────────────────────────────────────────────────┐
49
50
  │ 删除确认与参数组装 │
50
51
  │ - 向用户确认删除操作(展示待删除日程的event、时间等) │
51
- │ - 组装删除参数:
52
- │ • type: 固定为"日程"
53
- │ • date/time: 从查询结果获取
54
- │ • timeInfo: 完整时间信息对象(从查询结果透传)
55
- │ • event: 日程标题(从查询结果获取)
56
- │ • index: 日程索引(列表选择时使用)
57
- │ • selectResult: 列表选择结果(多选时使用)
58
- │ • rangeType: 范围类型(如"刚才"、"全部")
59
- │ - 用户确认后生成删除调用
52
+ │ - 组装删除参数:
53
+ │ • type: 固定为"日程"
54
+ │ • date/time: 从查询结果获取
55
+ │ • timeInfo: 完整时间信息对象(从查询结果透传)
56
+ │ • event: 日程标题(从查询结果获取)
57
+ │ • index: 日程索引(列表选择时使用)
58
+ │ • selectResult: 列表选择结果(多选时使用)
59
+ │ • rangeType: 范围类型(如"刚才"、"全部")
60
+ │ - 用户确认后生成删除调用
61
+ │ - 入参中必须包含event、type; │
62
+ │ - timeInfo的inferResult中必须包含fixedTime、inferedTime │
60
63
  └─────────────────────────────────────────────────────────────┘
61
64
 
62
65
  ```
@@ -561,3 +564,7 @@ openclaw nodes invoke --node <ID> --command schedule.delete --params '{"type":"
561
564
  | selectResult | 用户选择 | 列表选择结果 |
562
565
  | selectState | 用户选择 | 选择状态(none/all) |
563
566
  | rangeType | 用户意图 | 范围类型(刚才/全部/下一个) |
567
+
568
+ ## 回复规则
569
+
570
+ - 执行成功后固定回复"好的"
@@ -668,6 +668,6 @@ openclaw nodes invoke --node <ID> --command schedule.search --params '{"timeInfo
668
668
  | fixedPeriodDate | 固定周期日期查询 | - |
669
669
  | fixedPeriodTime | 固定周期时间查询 | - |
670
670
 
671
- ```
671
+ ## 回复规则
672
672
 
673
- ```
673
+ - 执行成功后固定回复"好的"
@@ -624,3 +624,7 @@ openclaw nodes invoke --node <ID> --command schedule.update --params '{"type":"
624
624
  | newLocation | 用户修改 | 新地点(地点变更时) |
625
625
  | sequence/selectResult | 用户选择 | 列表选择相关 |
626
626
  | rangeType | 用户意图 | 范围类型(刚才/全部/下一个) |
627
+
628
+ ## 回复规则
629
+
630
+ - 执行成功后固定回复"好的"
@@ -233,3 +233,7 @@ openclaw nodes invoke --node <ID> --command vibration-mode --params '{"actionTyp
233
233
  ```
234
234
 
235
235
  ---
236
+
237
+ ## 特殊场景回复规则
238
+
239
+ - "查询"类请求,固定回复"好的"
@@ -80,7 +80,7 @@ volume.operate
80
80
  },
81
81
  "number": {
82
82
  "type": "string",
83
- "description": "音量调整的具体数值,用于设置或变化音量大小。当 actionType 为设值、调大或调小时,可结合 numberType 一同使用以明确调整幅度。"
83
+ "description": "音量调整的具体数值,用于设置或变化音量大小。当 actionType 为设值、调大或调小时,可结合 numberType 一同使用以明确调整幅度。当numberType为“百分比”,该值需要为小数,如用户说30%对应0.3"
84
84
  },
85
85
  "numberType": {
86
86
  "type": "string",
@@ -137,16 +137,16 @@ volume.operate
137
137
 
138
138
  **Windows (Cmd) 执行命令**:
139
139
 
140
- ``Cmd
140
+ ```bash
141
141
  cmd /c 'openclaw nodes invoke --node <ID> --command volume.operate --params "{\"actionType\":\"调大\"}"'
142
142
 
143
- ````
143
+ ```
144
144
 
145
145
  **Linux (Bash) 执行命令**:
146
146
 
147
147
  ```bash
148
148
  openclaw nodes invoke --node <ID> --command volume.operate --params '{"actionType":"调大"}'
149
- ````
149
+ ```
150
150
 
151
151
  ---
152
152
 
@@ -169,16 +169,16 @@ openclaw nodes invoke --node <ID> --command volume.operate --params '{"actionTyp
169
169
 
170
170
  **Windows (Cmd) 执行命令**:
171
171
 
172
- ``Cmd
172
+ ```bash
173
173
  cmd /c 'openclaw nodes invoke --node <ID> --command volume.operate --params "{\"actionType\":\"设值\",\"device\":\"电视\",\"number\":\"0.3\",\"numberType\":\"百分比\"}"'
174
174
 
175
- ````
175
+ ```
176
176
 
177
177
  **Linux (Bash) 执行命令**:
178
178
 
179
179
  ```bash
180
180
  openclaw nodes invoke --node <ID> --command volume.operate --params '{"actionType":"设值","device":"电视","number":"0.3","numberType":"百分比"}'
181
- ````
181
+ ```
182
182
 
183
183
  ---
184
184
 
@@ -200,16 +200,16 @@ openclaw nodes invoke --node <ID> --command volume.operate --params '{"actionTyp
200
200
 
201
201
  **Windows (Cmd) 执行命令**:
202
202
 
203
- ``Cmd
203
+ ```bash
204
204
  cmd /c 'openclaw nodes invoke --node <ID> --command volume.operate --params "{\"actionType\":\"打开\",\"device\":\"电视\",\"volumeType\":\"媒体\"}"'
205
205
 
206
- ````
206
+ ```
207
207
 
208
208
  **Linux (Bash) 执行命令**:
209
209
 
210
210
  ```bash
211
211
  openclaw nodes invoke --node <ID> --command volume.operate --params '{"actionType":"打开","device":"电视","volumeType":"媒体"}'
212
- ````
212
+ ```
213
213
 
214
214
  ---
215
215
 
@@ -234,16 +234,16 @@ openclaw nodes invoke --node <ID> --command volume.operate --params '{"actionTyp
234
234
 
235
235
  **Windows (Cmd) 执行命令**:
236
236
 
237
- ``Cmd
237
+ ```bash
238
238
  cmd /c 'openclaw nodes invoke --node <ID> --command volume.operate --params "{\"actionType\":\"设值\",\"app\":\"导航\",\"device\":\"车载\",\"number\":\"0.4\",\"numberType\":\"百分比\",\"volumeType\":\"其他\"}"'
239
239
 
240
- ````
240
+ ```
241
241
 
242
242
  **Linux (Bash) 执行命令**:
243
243
 
244
244
  ```bash
245
245
  openclaw nodes invoke --node <ID> --command volume.operate --params '{"actionType":"设值","app":"导航","device":"车载","number":"0.4","numberType":"百分比","volumeType":"其他"}'
246
- ````
246
+ ```
247
247
 
248
248
  ---
249
249
 
@@ -265,15 +265,19 @@ openclaw nodes invoke --node <ID> --command volume.operate --params '{"actionTyp
265
265
 
266
266
  **Windows (Cmd) 执行命令**:
267
267
 
268
- ``Cmd
268
+ ```bash
269
269
  cmd /c 'openclaw nodes invoke --node <ID> --command volume.operate --params "{\"actionType\":\"查询\",\"device\":\"电视\",\"volumeType\":\"通话\"}"'
270
270
 
271
- ````
271
+ ```
272
272
 
273
273
  **Linux (Bash) 执行命令**:
274
274
 
275
275
  ```bash
276
276
  openclaw nodes invoke --node <ID> --command volume.operate --params '{"actionType":"查询","device":"电视","volumeType":"通话"}'
277
- ````
277
+ ```
278
278
 
279
279
  ---
280
+
281
+ ## 特殊场景回复规则
282
+
283
+ - "查询"类请求,固定回复"好的"
@@ -335,3 +335,7 @@ openclaw nodes invoke --node <ID> --command wlan --params '{"actionType":"打开
335
335
  | wlan | 基础无线网络 | WiFi开关、连接网络、流量管理 |
336
336
  | wlan+ | 网络增强功能 | 智能网络切换、网络加速 |
337
337
  | wlan直连 | 设备直连功能 | 设备间直接连接、文件传输 |
338
+
339
+ ## 特殊场景回复规则
340
+
341
+ - "查询"类请求,固定回复"好的"