@ynhcj/xiaoyi-channel 0.0.35-beta → 0.0.36-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.
|
@@ -10,7 +10,9 @@ import { logger } from "../utils/logger.js";
|
|
|
10
10
|
export const calendarTool = {
|
|
11
11
|
name: "create_calendar_event",
|
|
12
12
|
label: "Create Calendar Event",
|
|
13
|
-
description:
|
|
13
|
+
description: `在用户设备上创建日程。需要提供日程标题、开始时间和结束时间。时间格式必须为:yyyy-mm-dd hh:mm:ss(例如:2024-01-15 14:30:00)。注意:该工具执行时间较长(最多60秒),请勿重复调用,超时或失败时最多重试一次。
|
|
14
|
+
注意事项:使用该工具之前需获取当前真实时间
|
|
15
|
+
`,
|
|
14
16
|
parameters: {
|
|
15
17
|
type: "object",
|
|
16
18
|
properties: {
|
|
@@ -30,7 +30,9 @@ export const createAlarmTool = {
|
|
|
30
30
|
- daysOfWakeType: 闹钟响铃类型,枚举值:0=单次响铃,1=法定节假日,2=每天,3=自定义时间,4=法定工作日,默认0
|
|
31
31
|
- daysOfWeek: 自定义响铃星期,仅当daysOfWakeType=3(自定义时间)时必需且有效,其他情况不要传递此参数。数组或JSON字符串,枚举值:Mon,Tue,Wed,Thu,Fri,Sat,Sun。注意:仅支持长度为1的数组,如果需要一周中不同的几天,需要多次调用此工具
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
注意事项:
|
|
34
|
+
a. 操作超时时间为60秒,请勿重复调用此工具,如果超时或失败,最多重试一次。
|
|
35
|
+
b. 使用该工具之前需获取当前真实时间`,
|
|
34
36
|
parameters: {
|
|
35
37
|
type: "object",
|
|
36
38
|
properties: {
|
|
@@ -31,7 +31,9 @@ export const searchAlarmTool = {
|
|
|
31
31
|
- 查询每天响铃的闹钟:{"daysOfWakeType": 2}
|
|
32
32
|
- 查询某个时间段的闹钟:{"startTime": "20240315 000000", "endTime": "20240315 235959"}
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
注意:
|
|
35
|
+
a. 操作超时时间为60秒,请勿重复调用此工具,如果超时或失败,最多重试一次。
|
|
36
|
+
b. 使用该工具之前需获取当前真实时间`,
|
|
35
37
|
parameters: {
|
|
36
38
|
type: "object",
|
|
37
39
|
properties: {
|
|
@@ -25,7 +25,10 @@ export const searchCalendarTool = {
|
|
|
25
25
|
- 查询晚上的日程:使用 18:00:00 到 23:59:59
|
|
26
26
|
- 查询某个时刻附近的日程:使用该时刻前后1小时的区间(例如:查询3点左右的日程,使用 14:00:00 到 16:00:00)
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
注意:
|
|
29
|
+
a. 该工具执行时间较长(最多60秒),请勿重复调用,超时或失败时最多重试一次。
|
|
30
|
+
b. 使用该工具之前需获取当前真实时间
|
|
31
|
+
`,
|
|
29
32
|
parameters: {
|
|
30
33
|
type: "object",
|
|
31
34
|
properties: {
|