tinet-agent-cli 0.1.0.dev36__py3-none-any.whl
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.
- taco/__init__.py +1 -0
- taco/agent_openapi/__init__.py +1 -0
- taco/agent_openapi/catalog.py +198 -0
- taco/agent_openapi/models.py +47 -0
- taco/agent_openapi/parameters.py +111 -0
- taco/agent_openapi/service.py +73 -0
- taco/aikb/__init__.py +4 -0
- taco/aikb/catalog.py +380 -0
- taco/aikb/executors.py +157 -0
- taco/aikb/file_input.py +55 -0
- taco/aikb/models.py +42 -0
- taco/aikb/parameters.py +135 -0
- taco/aikb/service.py +68 -0
- taco/assets/__init__.py +1 -0
- taco/assets/agent_openapi/catalog.json +14 -0
- taco/assets/agent_openapi/operations/conversation/list-conversations.json +67 -0
- taco/assets/agent_openapi/operations/message/list-conversation-messages.json +80 -0
- taco/assets/agent_openapi/operations/trace/list-message-traces.json +72 -0
- taco/assets/aikb/catalog.json +41 -0
- taco/assets/aikb/operations/conversation/chat-conversation-on-open.json +99 -0
- taco/assets/aikb/operations/directory/delete-directory.json +81 -0
- taco/assets/aikb/operations/directory/edit-directory.json +97 -0
- taco/assets/aikb/operations/directory/list-directory-tree.json +106 -0
- taco/assets/aikb/operations/directory/save-directory.json +109 -0
- taco/assets/aikb/operations/faq/create-faq.json +193 -0
- taco/assets/aikb/operations/faq/delete-faq.json +81 -0
- taco/assets/aikb/operations/faq/describe-faq.json +82 -0
- taco/assets/aikb/operations/faq/edit-faq.json +193 -0
- taco/assets/aikb/operations/faq/list-faqs.json +136 -0
- taco/assets/aikb/operations/file/create-file.json +145 -0
- taco/assets/aikb/operations/file/delete-files.json +110 -0
- taco/assets/aikb/operations/file/describe-file.json +82 -0
- taco/assets/aikb/operations/file/get-file-upload-url.json +154 -0
- taco/assets/aikb/operations/file/list-files.json +146 -0
- taco/assets/aikb/operations/media/describe-faq-media-url.json +98 -0
- taco/assets/aikb/operations/media/describe-file-media-url.json +90 -0
- taco/assets/aikb/operations/oss/signature-for-upload.json +85 -0
- taco/assets/aikb/operations/recycle-bin/list-recycled-items.json +151 -0
- taco/assets/aikb/operations/repository/describe-bot-repository.json +71 -0
- taco/assets/aikb/operations/repository/list-private-repositories.json +75 -0
- taco/assets/aikb/operations/repository/list-public-repositories.json +75 -0
- taco/assets/aikb/operations/search/search-knowledge-on-open.json +180 -0
- taco/assets/examples/README.md +3 -0
- taco/assets/examples/agent-basic.json +16 -0
- taco/assets/examples/agent-builtin-tool.json +28 -0
- taco/assets/examples/agent-workflow-tool.json +30 -0
- taco/assets/examples/chatflow-basic.json +24 -0
- taco/assets/examples/workflow-http.json +34 -0
- taco/assets/manifest.json +12 -0
- taco/assets/scenarios/README.md +3 -0
- taco/assets/scenarios/agent-basic.json +80 -0
- taco/assets/scenarios/agent-builtin-tool.json +116 -0
- taco/assets/scenarios/agent-workflow-tool.json +277 -0
- taco/assets/schemas/README.md +3 -0
- taco/assets/schemas/agent-tool.json +71 -0
- taco/assets/schemas/agent.json +199 -0
- taco/assets/schemas/chatflow.json +1048 -0
- taco/assets/schemas/workflow.http.json +1052 -0
- taco/assets/schemas/workflow.json +1052 -0
- taco/assets/skills/README.md +3 -0
- taco/assets/skills/taco/SKILL.md +68 -0
- taco/assets/skills/taco/manifest.json +10 -0
- taco/cli.py +127 -0
- taco/commands/__init__.py +1 -0
- taco/commands/agent.py +760 -0
- taco/commands/aikb.py +132 -0
- taco/commands/app.py +151 -0
- taco/commands/category.py +37 -0
- taco/commands/chatflow.py +183 -0
- taco/commands/credential.py +222 -0
- taco/commands/discovery.py +409 -0
- taco/commands/model.py +55 -0
- taco/commands/profile.py +124 -0
- taco/commands/tool.py +61 -0
- taco/commands/workflow.py +714 -0
- taco/core/__init__.py +1 -0
- taco/core/access_token_manager.py +98 -0
- taco/core/api_client.py +263 -0
- taco/core/assets.py +81 -0
- taco/core/config_store.py +209 -0
- taco/core/context.py +19 -0
- taco/core/developer_center_client.py +165 -0
- taco/core/errors.py +19 -0
- taco/core/file_lock.py +80 -0
- taco/core/http_headers.py +21 -0
- taco/core/openapi_signer.py +221 -0
- taco/core/output.py +72 -0
- taco/core/profile_manager.py +217 -0
- taco/core/profile_resolver.py +151 -0
- taco/core/secure_file.py +76 -0
- taco/release.py +363 -0
- taco/services/__init__.py +1 -0
- taco/services/agent_service.py +314 -0
- taco/services/app_service.py +153 -0
- taco/services/category_service.py +57 -0
- taco/services/model_service.py +117 -0
- taco/services/tool_service.py +482 -0
- taco/services/workflow_compiler.py +1665 -0
- taco/services/workflow_service.py +652 -0
- taco/services/workflow_tool_service.py +439 -0
- tinet_agent_cli-0.1.0.dev36.dist-info/METADATA +158 -0
- tinet_agent_cli-0.1.0.dev36.dist-info/RECORD +104 -0
- tinet_agent_cli-0.1.0.dev36.dist-info/WHEEL +4 -0
- tinet_agent_cli-0.1.0.dev36.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "list-recycled-items",
|
|
4
|
+
"title": "获取回收站列表",
|
|
5
|
+
"description": "获取回收站列表,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "recycle-bin",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"获取回收站列表",
|
|
9
|
+
"list-recycled-items",
|
|
10
|
+
"list_recycled_items"
|
|
11
|
+
],
|
|
12
|
+
"source": {
|
|
13
|
+
"url": "https://develop.clink.cn/develop/api/aikb.html",
|
|
14
|
+
"anchor": "获取回收站列表",
|
|
15
|
+
"snapshot_date": "2026-08-14"
|
|
16
|
+
},
|
|
17
|
+
"http": {
|
|
18
|
+
"method": "POST",
|
|
19
|
+
"path": "/aikb/list_recycled_items",
|
|
20
|
+
"content_type": "application/json",
|
|
21
|
+
"query_schema": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {},
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
},
|
|
26
|
+
"body_schema": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"repositoryId": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"title": "知识库 ID",
|
|
32
|
+
"description": "目标知识库 ID,可通过知识库列表接口获取。"
|
|
33
|
+
},
|
|
34
|
+
"deleteUser": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"title": "删除用户",
|
|
37
|
+
"description": "可选,按删除人用户名筛选。"
|
|
38
|
+
},
|
|
39
|
+
"keyword": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "关键词",
|
|
42
|
+
"description": "可选,按名称关键词筛选。"
|
|
43
|
+
},
|
|
44
|
+
"type": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "回收站类型",
|
|
47
|
+
"description": "回收站项目类型;不传默认全部。",
|
|
48
|
+
"enum": [
|
|
49
|
+
"ALL",
|
|
50
|
+
"FAQ",
|
|
51
|
+
"FILE",
|
|
52
|
+
"FAQ_DIR",
|
|
53
|
+
"FILE_DIR"
|
|
54
|
+
],
|
|
55
|
+
"x-enum-descriptions": {
|
|
56
|
+
"ALL": "全部",
|
|
57
|
+
"FAQ": "问答知识",
|
|
58
|
+
"FILE": "文档知识",
|
|
59
|
+
"FAQ_DIR": "问答目录",
|
|
60
|
+
"FILE_DIR": "文档目录"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"offset": {
|
|
64
|
+
"type": "integer",
|
|
65
|
+
"title": "偏移量",
|
|
66
|
+
"description": "分页偏移量,从 0 开始,最大 10000。",
|
|
67
|
+
"minimum": 0,
|
|
68
|
+
"maximum": 10000,
|
|
69
|
+
"default": 0
|
|
70
|
+
},
|
|
71
|
+
"limit": {
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"title": "查询数量",
|
|
74
|
+
"description": "本次查询记录数,最大 100。",
|
|
75
|
+
"minimum": 1,
|
|
76
|
+
"maximum": 100,
|
|
77
|
+
"default": 10
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"repositoryId",
|
|
82
|
+
"offset",
|
|
83
|
+
"limit"
|
|
84
|
+
],
|
|
85
|
+
"additionalProperties": false
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"response": {
|
|
89
|
+
"request_id_pointer": "/requestId",
|
|
90
|
+
"schema": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"required": [
|
|
93
|
+
"result",
|
|
94
|
+
"pageNumber",
|
|
95
|
+
"pageSize",
|
|
96
|
+
"totalCount"
|
|
97
|
+
],
|
|
98
|
+
"properties": {
|
|
99
|
+
"requestId": {
|
|
100
|
+
"type": [
|
|
101
|
+
"string",
|
|
102
|
+
"null"
|
|
103
|
+
],
|
|
104
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
105
|
+
},
|
|
106
|
+
"result": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"description": "接口返回的业务结果列表。",
|
|
109
|
+
"items": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"description": "列表中的业务记录。",
|
|
112
|
+
"additionalProperties": true
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"pageNumber": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"description": "当前页码。"
|
|
118
|
+
},
|
|
119
|
+
"pageSize": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"description": "本页容量。"
|
|
122
|
+
},
|
|
123
|
+
"totalCount": {
|
|
124
|
+
"type": "integer",
|
|
125
|
+
"description": "总记录数。"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"additionalProperties": true
|
|
129
|
+
},
|
|
130
|
+
"sensitive_pointers": []
|
|
131
|
+
},
|
|
132
|
+
"risk": {
|
|
133
|
+
"level": "read",
|
|
134
|
+
"requires_confirmation": false,
|
|
135
|
+
"target_fields": []
|
|
136
|
+
},
|
|
137
|
+
"execution": {
|
|
138
|
+
"kind": "http"
|
|
139
|
+
},
|
|
140
|
+
"examples": [
|
|
141
|
+
{
|
|
142
|
+
"title": "查询问答回收站",
|
|
143
|
+
"params": {
|
|
144
|
+
"repositoryId": 104027,
|
|
145
|
+
"type": "FAQ",
|
|
146
|
+
"offset": 0,
|
|
147
|
+
"limit": 10
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "describe-bot-repository",
|
|
4
|
+
"title": "获取机器人知识库信息",
|
|
5
|
+
"description": "获取机器人知识库信息,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "repository",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"获取机器人知识库信息",
|
|
9
|
+
"describe-bot-repository",
|
|
10
|
+
"describe_bot_repository"
|
|
11
|
+
],
|
|
12
|
+
"source": {
|
|
13
|
+
"url": "https://develop.clink.cn/develop/api/aikb.html",
|
|
14
|
+
"anchor": "获取机器人知识库信息",
|
|
15
|
+
"snapshot_date": "2026-08-14"
|
|
16
|
+
},
|
|
17
|
+
"http": {
|
|
18
|
+
"method": "GET",
|
|
19
|
+
"path": "/aikb/describe_bot_repository",
|
|
20
|
+
"content_type": "application/json",
|
|
21
|
+
"query_schema": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {},
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
},
|
|
26
|
+
"body_schema": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {},
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"response": {
|
|
33
|
+
"request_id_pointer": "/requestId",
|
|
34
|
+
"schema": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"required": [
|
|
37
|
+
"result"
|
|
38
|
+
],
|
|
39
|
+
"properties": {
|
|
40
|
+
"requestId": {
|
|
41
|
+
"type": [
|
|
42
|
+
"string",
|
|
43
|
+
"null"
|
|
44
|
+
],
|
|
45
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
46
|
+
},
|
|
47
|
+
"result": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"description": "接口返回的业务结果。",
|
|
50
|
+
"additionalProperties": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"additionalProperties": true
|
|
54
|
+
},
|
|
55
|
+
"sensitive_pointers": []
|
|
56
|
+
},
|
|
57
|
+
"risk": {
|
|
58
|
+
"level": "read",
|
|
59
|
+
"requires_confirmation": false,
|
|
60
|
+
"target_fields": []
|
|
61
|
+
},
|
|
62
|
+
"execution": {
|
|
63
|
+
"kind": "http"
|
|
64
|
+
},
|
|
65
|
+
"examples": [
|
|
66
|
+
{
|
|
67
|
+
"title": "调用示例",
|
|
68
|
+
"params": {}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "list-private-repositories",
|
|
4
|
+
"title": "获取个人知识库列表",
|
|
5
|
+
"description": "获取个人知识库列表,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "repository",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"获取个人知识库列表",
|
|
9
|
+
"list-private-repositories",
|
|
10
|
+
"list_private_repositories"
|
|
11
|
+
],
|
|
12
|
+
"source": {
|
|
13
|
+
"url": "https://develop.clink.cn/develop/api/aikb.html",
|
|
14
|
+
"anchor": "获取个人知识库列表",
|
|
15
|
+
"snapshot_date": "2026-08-14"
|
|
16
|
+
},
|
|
17
|
+
"http": {
|
|
18
|
+
"method": "GET",
|
|
19
|
+
"path": "/aikb/list_private_repositories",
|
|
20
|
+
"content_type": "application/json",
|
|
21
|
+
"query_schema": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {},
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
},
|
|
26
|
+
"body_schema": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {},
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"response": {
|
|
33
|
+
"request_id_pointer": "/requestId",
|
|
34
|
+
"schema": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"required": [
|
|
37
|
+
"result"
|
|
38
|
+
],
|
|
39
|
+
"properties": {
|
|
40
|
+
"requestId": {
|
|
41
|
+
"type": [
|
|
42
|
+
"string",
|
|
43
|
+
"null"
|
|
44
|
+
],
|
|
45
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
46
|
+
},
|
|
47
|
+
"result": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"description": "接口返回的业务结果列表。",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"description": "列表中的业务记录。",
|
|
53
|
+
"additionalProperties": true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"additionalProperties": true
|
|
58
|
+
},
|
|
59
|
+
"sensitive_pointers": []
|
|
60
|
+
},
|
|
61
|
+
"risk": {
|
|
62
|
+
"level": "read",
|
|
63
|
+
"requires_confirmation": false,
|
|
64
|
+
"target_fields": []
|
|
65
|
+
},
|
|
66
|
+
"execution": {
|
|
67
|
+
"kind": "http"
|
|
68
|
+
},
|
|
69
|
+
"examples": [
|
|
70
|
+
{
|
|
71
|
+
"title": "调用示例",
|
|
72
|
+
"params": {}
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "list-public-repositories",
|
|
4
|
+
"title": "获取公共知识库列表",
|
|
5
|
+
"description": "获取公共知识库列表,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "repository",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"获取公共知识库列表",
|
|
9
|
+
"list-public-repositories",
|
|
10
|
+
"list_public_repositories"
|
|
11
|
+
],
|
|
12
|
+
"source": {
|
|
13
|
+
"url": "https://develop.clink.cn/develop/api/aikb.html",
|
|
14
|
+
"anchor": "获取公共知识库列表",
|
|
15
|
+
"snapshot_date": "2026-08-14"
|
|
16
|
+
},
|
|
17
|
+
"http": {
|
|
18
|
+
"method": "GET",
|
|
19
|
+
"path": "/aikb/list_public_repositories",
|
|
20
|
+
"content_type": "application/json",
|
|
21
|
+
"query_schema": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {},
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
},
|
|
26
|
+
"body_schema": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {},
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"response": {
|
|
33
|
+
"request_id_pointer": "/requestId",
|
|
34
|
+
"schema": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"required": [
|
|
37
|
+
"result"
|
|
38
|
+
],
|
|
39
|
+
"properties": {
|
|
40
|
+
"requestId": {
|
|
41
|
+
"type": [
|
|
42
|
+
"string",
|
|
43
|
+
"null"
|
|
44
|
+
],
|
|
45
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
46
|
+
},
|
|
47
|
+
"result": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"description": "接口返回的业务结果列表。",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"description": "列表中的业务记录。",
|
|
53
|
+
"additionalProperties": true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"additionalProperties": true
|
|
58
|
+
},
|
|
59
|
+
"sensitive_pointers": []
|
|
60
|
+
},
|
|
61
|
+
"risk": {
|
|
62
|
+
"level": "read",
|
|
63
|
+
"requires_confirmation": false,
|
|
64
|
+
"target_fields": []
|
|
65
|
+
},
|
|
66
|
+
"execution": {
|
|
67
|
+
"kind": "http"
|
|
68
|
+
},
|
|
69
|
+
"examples": [
|
|
70
|
+
{
|
|
71
|
+
"title": "调用示例",
|
|
72
|
+
"params": {}
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "search-knowledge-on-open",
|
|
4
|
+
"title": "知识搜索",
|
|
5
|
+
"description": "知识搜索,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "search",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"知识搜索",
|
|
9
|
+
"search-knowledge-on-open",
|
|
10
|
+
"search_knowledge_on_open"
|
|
11
|
+
],
|
|
12
|
+
"source": {
|
|
13
|
+
"url": "https://develop.clink.cn/develop/api/aikb.html",
|
|
14
|
+
"anchor": "知识搜索",
|
|
15
|
+
"snapshot_date": "2026-08-14"
|
|
16
|
+
},
|
|
17
|
+
"http": {
|
|
18
|
+
"method": "POST",
|
|
19
|
+
"path": "/aikb/search_knowledge_on_open",
|
|
20
|
+
"content_type": "application/json",
|
|
21
|
+
"query_schema": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"username": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"title": "用户登录名",
|
|
27
|
+
"description": "可选,发起搜索的用户登录名。"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
},
|
|
32
|
+
"body_schema": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"keyword": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"title": "搜索关键词",
|
|
38
|
+
"description": "可选的知识搜索关键词。"
|
|
39
|
+
},
|
|
40
|
+
"orderField": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"title": "排序字段",
|
|
43
|
+
"description": "知识搜索排序字段。",
|
|
44
|
+
"enum": [
|
|
45
|
+
"createTime",
|
|
46
|
+
"searchCount",
|
|
47
|
+
"likeCount",
|
|
48
|
+
"updateTime",
|
|
49
|
+
"actionCount"
|
|
50
|
+
],
|
|
51
|
+
"x-enum-descriptions": {
|
|
52
|
+
"createTime": "创建时间",
|
|
53
|
+
"searchCount": "热度",
|
|
54
|
+
"likeCount": "点赞数",
|
|
55
|
+
"updateTime": "修改时间",
|
|
56
|
+
"actionCount": "浏览量"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"knowledgeType": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"title": "知识类型",
|
|
62
|
+
"description": "限制搜索的知识类型。",
|
|
63
|
+
"enum": [
|
|
64
|
+
"FAQ",
|
|
65
|
+
"FILE"
|
|
66
|
+
],
|
|
67
|
+
"x-enum-descriptions": {
|
|
68
|
+
"FAQ": "问答知识",
|
|
69
|
+
"FILE": "文档知识"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"repositoryIds": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"title": "知识库范围",
|
|
75
|
+
"description": "限定搜索的知识库 ID 列表。",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"title": "知识库 ID",
|
|
79
|
+
"description": "限定搜索的知识库 ID。"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"directoryIds": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"title": "目录范围",
|
|
85
|
+
"description": "限定搜索的目录 ID 列表。",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"title": "目录 ID",
|
|
89
|
+
"description": "限定搜索的目录 ID。"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"offset": {
|
|
93
|
+
"type": "integer",
|
|
94
|
+
"title": "偏移量",
|
|
95
|
+
"description": "分页偏移量,从 0 开始,最大 10000。",
|
|
96
|
+
"minimum": 0,
|
|
97
|
+
"maximum": 10000,
|
|
98
|
+
"default": 0
|
|
99
|
+
},
|
|
100
|
+
"limit": {
|
|
101
|
+
"type": "integer",
|
|
102
|
+
"title": "查询数量",
|
|
103
|
+
"description": "本次查询记录数,最大 100。",
|
|
104
|
+
"minimum": 1,
|
|
105
|
+
"maximum": 100,
|
|
106
|
+
"default": 10
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": [
|
|
110
|
+
"offset",
|
|
111
|
+
"limit"
|
|
112
|
+
],
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"response": {
|
|
117
|
+
"request_id_pointer": "/requestId",
|
|
118
|
+
"schema": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"required": [
|
|
121
|
+
"result",
|
|
122
|
+
"pageNumber",
|
|
123
|
+
"pageSize",
|
|
124
|
+
"totalCount"
|
|
125
|
+
],
|
|
126
|
+
"properties": {
|
|
127
|
+
"requestId": {
|
|
128
|
+
"type": [
|
|
129
|
+
"string",
|
|
130
|
+
"null"
|
|
131
|
+
],
|
|
132
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
133
|
+
},
|
|
134
|
+
"result": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"description": "接口返回的业务结果列表。",
|
|
137
|
+
"items": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"description": "列表中的业务记录。",
|
|
140
|
+
"additionalProperties": true
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"pageNumber": {
|
|
144
|
+
"type": "integer",
|
|
145
|
+
"description": "当前页码。"
|
|
146
|
+
},
|
|
147
|
+
"pageSize": {
|
|
148
|
+
"type": "integer",
|
|
149
|
+
"description": "本页容量。"
|
|
150
|
+
},
|
|
151
|
+
"totalCount": {
|
|
152
|
+
"type": "integer",
|
|
153
|
+
"description": "总记录数。"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"additionalProperties": true
|
|
157
|
+
},
|
|
158
|
+
"sensitive_pointers": []
|
|
159
|
+
},
|
|
160
|
+
"risk": {
|
|
161
|
+
"level": "read",
|
|
162
|
+
"requires_confirmation": false,
|
|
163
|
+
"target_fields": []
|
|
164
|
+
},
|
|
165
|
+
"execution": {
|
|
166
|
+
"kind": "http"
|
|
167
|
+
},
|
|
168
|
+
"examples": [
|
|
169
|
+
{
|
|
170
|
+
"title": "按创建时间搜索",
|
|
171
|
+
"params": {
|
|
172
|
+
"username": "agent-user",
|
|
173
|
+
"keyword": "呼叫中心",
|
|
174
|
+
"orderField": "createTime",
|
|
175
|
+
"offset": 0,
|
|
176
|
+
"limit": 10
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"model": {
|
|
3
|
+
"provider": "<from taco agent model list>",
|
|
4
|
+
"name": "<from taco agent model list>",
|
|
5
|
+
"mode": "chat",
|
|
6
|
+
"completion_params": {}
|
|
7
|
+
},
|
|
8
|
+
"pre_prompt": "你是一个专业、简洁的智能助手。",
|
|
9
|
+
"agent_mode": {
|
|
10
|
+
"enabled": false,
|
|
11
|
+
"strategy": null,
|
|
12
|
+
"tools": []
|
|
13
|
+
},
|
|
14
|
+
"opening_statement": "您好,请问有什么可以帮助您?",
|
|
15
|
+
"suggested_questions": []
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"model": {
|
|
3
|
+
"provider": "<from taco agent model list>",
|
|
4
|
+
"name": "<from taco agent model list>",
|
|
5
|
+
"mode": "chat",
|
|
6
|
+
"completion_params": {}
|
|
7
|
+
},
|
|
8
|
+
"pre_prompt": "你是一个专业、简洁的智能助手。需要实时外部信息时调用已挂载工具;工具失败或结果不足时明确说明,不得编造结果。",
|
|
9
|
+
"agent_mode": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"strategy": "function_call",
|
|
12
|
+
"tools": [
|
|
13
|
+
{
|
|
14
|
+
"provider_type": "builtin",
|
|
15
|
+
"provider_id": "<from taco agent tool catalog provider list>",
|
|
16
|
+
"provider_name": "<from discovered provider name>",
|
|
17
|
+
"tool_name": "<from taco agent tool catalog list>",
|
|
18
|
+
"tool_label": "<from taco agent tool catalog describe>",
|
|
19
|
+
"tool_parameters": {
|
|
20
|
+
"<non-secret form parameter>": "<schema-compatible value>"
|
|
21
|
+
},
|
|
22
|
+
"enabled": true
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"opening_statement": "您好,请问有什么可以帮助您?",
|
|
27
|
+
"suggested_questions": []
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"model": {
|
|
3
|
+
"provider": "<from taco agent model list>",
|
|
4
|
+
"name": "<from taco agent model list>",
|
|
5
|
+
"mode": "chat",
|
|
6
|
+
"completion_params": {}
|
|
7
|
+
},
|
|
8
|
+
"pre_prompt": "你是一个专业、谨慎的客户查询助手。仅当用户明确要求查询客户信息且已提供手机号时,调用已挂载的 Workflow Tool;缺少手机号时先追问,普通问答不得调用工具。只能依据工具返回结果回答,工具失败、超时或结果不足时必须明确说明,不得编造客户信息、工具结果或任何 ID。",
|
|
9
|
+
"agent_mode": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"strategy": "function_call",
|
|
12
|
+
"tools": [
|
|
13
|
+
{
|
|
14
|
+
"provider_type": "workflow",
|
|
15
|
+
"provider_id": "<from taco agent workflow tool get data.workflow_tool_id>",
|
|
16
|
+
"provider_name": "<from taco agent workflow tool get data.name>",
|
|
17
|
+
"tool_name": "<from taco agent workflow tool get data.name>",
|
|
18
|
+
"tool_label": "<from taco agent workflow tool get data.label>",
|
|
19
|
+
"tool_parameters": {
|
|
20
|
+
"phone": ""
|
|
21
|
+
},
|
|
22
|
+
"enabled": true
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"opening_statement": "您好,请提供手机号并说明需要查询的客户信息。",
|
|
27
|
+
"suggested_questions": [
|
|
28
|
+
"查询手机号 13800138000 对应的客户信息"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "chatflow",
|
|
3
|
+
"name": "基础 Chatflow",
|
|
4
|
+
"description": "调用 HTTP 接口并返回 Answer。",
|
|
5
|
+
"inputs": {
|
|
6
|
+
"topic": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"required": true,
|
|
9
|
+
"description": "查询主题"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"nodes": [
|
|
13
|
+
{
|
|
14
|
+
"id": "lookup",
|
|
15
|
+
"type": "http",
|
|
16
|
+
"method": "GET",
|
|
17
|
+
"url": "https://example.com/api/echo",
|
|
18
|
+
"query": {
|
|
19
|
+
"q": "{{ inputs.topic }}"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"answer": "查询结果:{{ lookup.body }}"
|
|
24
|
+
}
|