@ynhcj/xiaoyi-channel 0.0.77-beta → 0.0.78-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.
- package/dist/src/tools/save-file-to-phone-tool.js +3 -3
- package/dist/src/tools/save-media-to-gallery-tool.js +1 -1
- package/dist/src/tools/xiaoyi-add-collection-tool.js +1 -1
- package/dist/src/tools/xiaoyi-collection-tool.js +1 -1
- package/dist/src/tools/xiaoyi-delete-collection-tool.js +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ class ToolInputError extends Error {
|
|
|
19
19
|
* Supports local file paths (auto-uploaded to get public URL) and public URLs.
|
|
20
20
|
*/
|
|
21
21
|
export const saveFileToPhoneTool = {
|
|
22
|
-
name: "
|
|
22
|
+
name: "save_file_to_file_manager",
|
|
23
23
|
label: "Save File to Phone",
|
|
24
24
|
description: `将文件保存到手机文件管理器。
|
|
25
25
|
工具参数说明:
|
|
@@ -29,7 +29,7 @@ export const saveFileToPhoneTool = {
|
|
|
29
29
|
|
|
30
30
|
注意:
|
|
31
31
|
a. 操作超时时间为60秒,请勿重复调用此工具
|
|
32
|
-
b.
|
|
32
|
+
b. 如果遇到各类调用失败场景,不可以重试,直接返回错误。
|
|
33
33
|
c. 调用工具前需认真检查调用参数是否满足工具要求
|
|
34
34
|
|
|
35
35
|
回复约束:如果工具返回没有授权或者其他报错,只需要完整描述没有授权或者其他报错内容即可,不需要主动给用户提供解决方案,例如告诉用户如何授权,如何解决报错等都是不需要的,请严格遵守。
|
|
@@ -105,7 +105,7 @@ export const saveFileToPhoneTool = {
|
|
|
105
105
|
actionResponse: true,
|
|
106
106
|
appType: "OHOS_APP",
|
|
107
107
|
timeOut: 5,
|
|
108
|
-
timeout:
|
|
108
|
+
timeout: 55000,
|
|
109
109
|
intentParam,
|
|
110
110
|
permissionId: ["ohos.permission.WRITE_IMAGEVIDEO"],
|
|
111
111
|
achieveType: "INTENT",
|
|
@@ -19,7 +19,7 @@ class ToolInputError extends Error {
|
|
|
19
19
|
* Supports local file paths (auto-uploaded to get public URL) and public URLs.
|
|
20
20
|
*/
|
|
21
21
|
export const saveMediaToGalleryTool = {
|
|
22
|
-
name: "
|
|
22
|
+
name: "save_media_to_gallery",
|
|
23
23
|
label: "Save Media to Gallery",
|
|
24
24
|
description: `将图片文件或者视频文件保存到手机图库。
|
|
25
25
|
工具参数说明:
|
|
@@ -18,7 +18,7 @@ class ToolInputError extends Error {
|
|
|
18
18
|
* XY add collection tool - adds data to user's XiaoYi collection.
|
|
19
19
|
*/
|
|
20
20
|
export const xiaoyiAddCollectionTool = {
|
|
21
|
-
name: "
|
|
21
|
+
name: "add_collection",
|
|
22
22
|
label: "Add XiaoYi Collection",
|
|
23
23
|
description: `向小艺收藏中添加公共知识数据,可以给用户提供个性化体验。任何用户希望保存到个人化知识库中的数据都可以调用本技能。不同类型的数据对应的数据要求如下:
|
|
24
24
|
请求入参说明:
|
|
@@ -18,7 +18,7 @@ class ToolInputError extends Error {
|
|
|
18
18
|
* Returns personalized knowledge data saved in user's collection.
|
|
19
19
|
*/
|
|
20
20
|
export const xiaoyiCollectionTool = {
|
|
21
|
-
name: "
|
|
21
|
+
name: "query_collection",
|
|
22
22
|
label: "XiaoYi Collection",
|
|
23
23
|
description: `检索用户在小艺收藏中记下来的公共知识数据,本技能支持查询用户收藏的公共知识数据,也可以根据特定语义化描述进行特定内容的检索,通过参数进行控制。本技能返回结果中,linkTitle是收藏内容的标题,description是对收藏内容的总结,label是收藏内容的标签,linkUrl是可以直接访问的原始内容链接。如果你认为某条数据对用户交互有用,可以通过linkUrl抓取更加丰富的原始数据。
|
|
24
24
|
注意:
|
|
@@ -17,7 +17,7 @@ class ToolInputError extends Error {
|
|
|
17
17
|
* XY delete collection tool - deletes data from user's XiaoYi collection.
|
|
18
18
|
*/
|
|
19
19
|
export const xiaoyiDeleteCollectionTool = {
|
|
20
|
-
name: "
|
|
20
|
+
name: "delete_collection",
|
|
21
21
|
label: "Delete XiaoYi Collection",
|
|
22
22
|
description: `从小艺收藏中删除之前已保存的公共知识数据。任何用户希望删除已保存到个人知识库的数据都可以调用本技能。如果用户想更新之前的收藏数据,需要先query获取itemId然后再delete,最后执行Add,按照这个步骤完成收藏数据更新。
|
|
23
23
|
注意:
|