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,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "describe-faq",
|
|
4
|
+
"title": "获取问答详情",
|
|
5
|
+
"description": "获取问答详情,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "faq",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"获取问答详情",
|
|
9
|
+
"describe-faq",
|
|
10
|
+
"describe_faq"
|
|
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/describe_faq",
|
|
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
|
+
"id": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"title": "问答 ID",
|
|
32
|
+
"description": "需要查询的问答 ID。"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"id"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"response": {
|
|
42
|
+
"request_id_pointer": "/requestId",
|
|
43
|
+
"schema": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"required": [
|
|
46
|
+
"result"
|
|
47
|
+
],
|
|
48
|
+
"properties": {
|
|
49
|
+
"requestId": {
|
|
50
|
+
"type": [
|
|
51
|
+
"string",
|
|
52
|
+
"null"
|
|
53
|
+
],
|
|
54
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
55
|
+
},
|
|
56
|
+
"result": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"description": "接口返回的业务结果。",
|
|
59
|
+
"additionalProperties": true
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"additionalProperties": true
|
|
63
|
+
},
|
|
64
|
+
"sensitive_pointers": []
|
|
65
|
+
},
|
|
66
|
+
"risk": {
|
|
67
|
+
"level": "read",
|
|
68
|
+
"requires_confirmation": false,
|
|
69
|
+
"target_fields": []
|
|
70
|
+
},
|
|
71
|
+
"execution": {
|
|
72
|
+
"kind": "http"
|
|
73
|
+
},
|
|
74
|
+
"examples": [
|
|
75
|
+
{
|
|
76
|
+
"title": "查询问答详情",
|
|
77
|
+
"params": {
|
|
78
|
+
"id": 1576554
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "edit-faq",
|
|
4
|
+
"title": "编辑问答",
|
|
5
|
+
"description": "编辑问答,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "faq",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"编辑问答",
|
|
9
|
+
"edit-faq",
|
|
10
|
+
"edit_faq"
|
|
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/edit_faq",
|
|
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
|
+
"id": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"title": "问答 ID",
|
|
32
|
+
"description": "需要编辑的问答 ID。"
|
|
33
|
+
},
|
|
34
|
+
"repositoryId": {
|
|
35
|
+
"type": "integer",
|
|
36
|
+
"title": "知识库 ID",
|
|
37
|
+
"description": "目标知识库 ID,可通过知识库列表接口获取。"
|
|
38
|
+
},
|
|
39
|
+
"directoryId": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"title": "目录 ID",
|
|
42
|
+
"description": "目标目录 ID,可通过目录树接口获取。"
|
|
43
|
+
},
|
|
44
|
+
"question": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "问答标题",
|
|
47
|
+
"description": "问答问题标题。",
|
|
48
|
+
"minLength": 1
|
|
49
|
+
},
|
|
50
|
+
"answers": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"title": "答案列表",
|
|
53
|
+
"description": "问答的答案列表。",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"title": "答案",
|
|
57
|
+
"description": "问答的一个答案。",
|
|
58
|
+
"required": [
|
|
59
|
+
"content",
|
|
60
|
+
"type"
|
|
61
|
+
],
|
|
62
|
+
"properties": {
|
|
63
|
+
"content": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"title": "答案内容",
|
|
66
|
+
"description": "答案正文内容。"
|
|
67
|
+
},
|
|
68
|
+
"type": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"title": "答案类型",
|
|
71
|
+
"description": "答案内容格式。",
|
|
72
|
+
"enum": [
|
|
73
|
+
"text",
|
|
74
|
+
"html"
|
|
75
|
+
],
|
|
76
|
+
"x-enum-descriptions": {
|
|
77
|
+
"text": "普通文本",
|
|
78
|
+
"html": "富文本"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": false
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"introductionType": {
|
|
86
|
+
"type": "integer",
|
|
87
|
+
"title": "简介类型",
|
|
88
|
+
"description": "简介格式,1 为普通文本,2 为富文本。",
|
|
89
|
+
"enum": [
|
|
90
|
+
1,
|
|
91
|
+
2
|
|
92
|
+
],
|
|
93
|
+
"x-enum-descriptions": {
|
|
94
|
+
"1": "普通文本",
|
|
95
|
+
"2": "富文本"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"introduction": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"title": "简介",
|
|
101
|
+
"description": "可选的问答简介。"
|
|
102
|
+
},
|
|
103
|
+
"similars": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"title": "相似问列表",
|
|
106
|
+
"description": "覆盖保存的相似问题。",
|
|
107
|
+
"items": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"title": "相似问",
|
|
110
|
+
"description": "一条相似问题。"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"relatedIds": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"title": "关联问列表",
|
|
116
|
+
"description": "关联的问答知识 ID。",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "integer",
|
|
119
|
+
"title": "关联问 ID",
|
|
120
|
+
"description": "关联问答知识 ID。"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"onlineDateFrom": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"title": "有效开始时间",
|
|
126
|
+
"description": "问答有效开始时间,格式 yyyy/MM/dd HH:mm:ss。"
|
|
127
|
+
},
|
|
128
|
+
"onlineDateTo": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"title": "有效结束时间",
|
|
131
|
+
"description": "问答有效结束时间,格式 yyyy/MM/dd HH:mm:ss。"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"required": [
|
|
135
|
+
"id",
|
|
136
|
+
"repositoryId",
|
|
137
|
+
"directoryId",
|
|
138
|
+
"question",
|
|
139
|
+
"answers"
|
|
140
|
+
],
|
|
141
|
+
"additionalProperties": false
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"response": {
|
|
145
|
+
"request_id_pointer": "/requestId",
|
|
146
|
+
"schema": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"required": [
|
|
149
|
+
"id"
|
|
150
|
+
],
|
|
151
|
+
"properties": {
|
|
152
|
+
"requestId": {
|
|
153
|
+
"type": [
|
|
154
|
+
"string",
|
|
155
|
+
"null"
|
|
156
|
+
],
|
|
157
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
158
|
+
},
|
|
159
|
+
"id": {
|
|
160
|
+
"type": "integer",
|
|
161
|
+
"description": "编辑后的问答 ID。"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"additionalProperties": true
|
|
165
|
+
},
|
|
166
|
+
"sensitive_pointers": []
|
|
167
|
+
},
|
|
168
|
+
"risk": {
|
|
169
|
+
"level": "write",
|
|
170
|
+
"requires_confirmation": true,
|
|
171
|
+
"target_fields": []
|
|
172
|
+
},
|
|
173
|
+
"execution": {
|
|
174
|
+
"kind": "http"
|
|
175
|
+
},
|
|
176
|
+
"examples": [
|
|
177
|
+
{
|
|
178
|
+
"title": "编辑文本问答",
|
|
179
|
+
"params": {
|
|
180
|
+
"id": 1557363,
|
|
181
|
+
"repositoryId": 103681,
|
|
182
|
+
"directoryId": 160178,
|
|
183
|
+
"question": "如何使用?",
|
|
184
|
+
"answers": [
|
|
185
|
+
{
|
|
186
|
+
"content": "请查看新版手册。",
|
|
187
|
+
"type": "text"
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "list-faqs",
|
|
4
|
+
"title": "获取问答列表",
|
|
5
|
+
"description": "获取问答列表,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "faq",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"获取问答列表",
|
|
9
|
+
"list-faqs",
|
|
10
|
+
"list_faqs"
|
|
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_faqs",
|
|
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
|
+
"botId": {
|
|
35
|
+
"type": "integer",
|
|
36
|
+
"title": "机器人 ID",
|
|
37
|
+
"description": "可选,筛选绑定机器人的问答。"
|
|
38
|
+
},
|
|
39
|
+
"updateTimeStart": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "更新开始时间",
|
|
42
|
+
"description": "闭区间开始时间,需与结束时间同时提供。"
|
|
43
|
+
},
|
|
44
|
+
"updateTimeEnd": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "更新结束时间",
|
|
47
|
+
"description": "开区间结束时间,需与开始时间同时提供。"
|
|
48
|
+
},
|
|
49
|
+
"offset": {
|
|
50
|
+
"type": "integer",
|
|
51
|
+
"title": "偏移量",
|
|
52
|
+
"description": "分页偏移量,从 0 开始,最大 10000。",
|
|
53
|
+
"minimum": 0,
|
|
54
|
+
"maximum": 10000,
|
|
55
|
+
"default": 0
|
|
56
|
+
},
|
|
57
|
+
"limit": {
|
|
58
|
+
"type": "integer",
|
|
59
|
+
"title": "查询数量",
|
|
60
|
+
"description": "本次查询记录数,最大 100。",
|
|
61
|
+
"minimum": 1,
|
|
62
|
+
"maximum": 100,
|
|
63
|
+
"default": 10
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"repositoryId",
|
|
68
|
+
"offset",
|
|
69
|
+
"limit"
|
|
70
|
+
],
|
|
71
|
+
"additionalProperties": false
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"response": {
|
|
75
|
+
"request_id_pointer": "/requestId",
|
|
76
|
+
"schema": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"required": [
|
|
79
|
+
"result",
|
|
80
|
+
"pageNumber",
|
|
81
|
+
"pageSize",
|
|
82
|
+
"totalCount"
|
|
83
|
+
],
|
|
84
|
+
"properties": {
|
|
85
|
+
"requestId": {
|
|
86
|
+
"type": [
|
|
87
|
+
"string",
|
|
88
|
+
"null"
|
|
89
|
+
],
|
|
90
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
91
|
+
},
|
|
92
|
+
"result": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"description": "接口返回的业务结果列表。",
|
|
95
|
+
"items": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"description": "列表中的业务记录。",
|
|
98
|
+
"additionalProperties": true
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"pageNumber": {
|
|
102
|
+
"type": "integer",
|
|
103
|
+
"description": "当前页码。"
|
|
104
|
+
},
|
|
105
|
+
"pageSize": {
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"description": "本页容量。"
|
|
108
|
+
},
|
|
109
|
+
"totalCount": {
|
|
110
|
+
"type": "integer",
|
|
111
|
+
"description": "总记录数。"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"additionalProperties": true
|
|
115
|
+
},
|
|
116
|
+
"sensitive_pointers": []
|
|
117
|
+
},
|
|
118
|
+
"risk": {
|
|
119
|
+
"level": "read",
|
|
120
|
+
"requires_confirmation": false,
|
|
121
|
+
"target_fields": []
|
|
122
|
+
},
|
|
123
|
+
"execution": {
|
|
124
|
+
"kind": "http"
|
|
125
|
+
},
|
|
126
|
+
"examples": [
|
|
127
|
+
{
|
|
128
|
+
"title": "分页查询问答",
|
|
129
|
+
"params": {
|
|
130
|
+
"repositoryId": 103681,
|
|
131
|
+
"offset": 0,
|
|
132
|
+
"limit": 10
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "create-file",
|
|
4
|
+
"title": "创建文档",
|
|
5
|
+
"description": "创建文档,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "file",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"创建文档",
|
|
9
|
+
"create-file",
|
|
10
|
+
"create_file"
|
|
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/create_file",
|
|
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
|
+
"directoryId": {
|
|
35
|
+
"type": "integer",
|
|
36
|
+
"title": "目录 ID",
|
|
37
|
+
"description": "目标目录 ID,可通过目录树接口获取。"
|
|
38
|
+
},
|
|
39
|
+
"fileName": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "文件名称",
|
|
42
|
+
"description": "包含有效后缀的文件名称。",
|
|
43
|
+
"minLength": 1
|
|
44
|
+
},
|
|
45
|
+
"fileKey": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"title": "文件唯一编码",
|
|
48
|
+
"description": "上传文档后返回的 fileKey。",
|
|
49
|
+
"minLength": 1
|
|
50
|
+
},
|
|
51
|
+
"introduction": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"title": "文档说明",
|
|
54
|
+
"description": "可选的文档说明。"
|
|
55
|
+
},
|
|
56
|
+
"tags": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"title": "文档标签",
|
|
59
|
+
"description": "文档标签 ID 列表。",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "integer",
|
|
62
|
+
"title": "标签 ID",
|
|
63
|
+
"description": "文档标签 ID。"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"effectiveFrom": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"title": "有效开始时间",
|
|
69
|
+
"description": "文档有效期开始,格式 yyyy-MM-dd HH:mm:ss。"
|
|
70
|
+
},
|
|
71
|
+
"effectiveTo": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"title": "有效结束时间",
|
|
74
|
+
"description": "文档有效期结束,格式 yyyy-MM-dd HH:mm:ss。"
|
|
75
|
+
},
|
|
76
|
+
"autoOnline": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"title": "自动上线",
|
|
79
|
+
"description": "解析完成后是否自动上线,默认 false。",
|
|
80
|
+
"default": false
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": [
|
|
84
|
+
"repositoryId",
|
|
85
|
+
"directoryId",
|
|
86
|
+
"fileName",
|
|
87
|
+
"fileKey"
|
|
88
|
+
],
|
|
89
|
+
"additionalProperties": false
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"response": {
|
|
93
|
+
"request_id_pointer": "/requestId",
|
|
94
|
+
"schema": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"required": [
|
|
97
|
+
"result"
|
|
98
|
+
],
|
|
99
|
+
"properties": {
|
|
100
|
+
"requestId": {
|
|
101
|
+
"type": [
|
|
102
|
+
"string",
|
|
103
|
+
"null"
|
|
104
|
+
],
|
|
105
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
106
|
+
},
|
|
107
|
+
"result": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"description": "创建后的文档信息。",
|
|
110
|
+
"required": [
|
|
111
|
+
"fileId"
|
|
112
|
+
],
|
|
113
|
+
"properties": {
|
|
114
|
+
"fileId": {
|
|
115
|
+
"type": "integer",
|
|
116
|
+
"description": "创建后的文档 ID。"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"additionalProperties": true
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"additionalProperties": true
|
|
123
|
+
},
|
|
124
|
+
"sensitive_pointers": []
|
|
125
|
+
},
|
|
126
|
+
"risk": {
|
|
127
|
+
"level": "write",
|
|
128
|
+
"requires_confirmation": true,
|
|
129
|
+
"target_fields": []
|
|
130
|
+
},
|
|
131
|
+
"execution": {
|
|
132
|
+
"kind": "http"
|
|
133
|
+
},
|
|
134
|
+
"examples": [
|
|
135
|
+
{
|
|
136
|
+
"title": "创建已上传文档",
|
|
137
|
+
"params": {
|
|
138
|
+
"repositoryId": 1024,
|
|
139
|
+
"directoryId": 2048,
|
|
140
|
+
"fileName": "常见问题.md",
|
|
141
|
+
"fileKey": "example.md"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "delete-files",
|
|
4
|
+
"title": "删除文档",
|
|
5
|
+
"description": "删除文档,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "file",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"删除文档",
|
|
9
|
+
"delete-files",
|
|
10
|
+
"delete_files"
|
|
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/delete_files",
|
|
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
|
+
"fileIds": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"title": "文档 ID 列表",
|
|
37
|
+
"description": "支持同时删除多个文档。",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "integer",
|
|
40
|
+
"title": "文档 ID",
|
|
41
|
+
"description": "需要删除的文档 ID。"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"repositoryId",
|
|
47
|
+
"fileIds"
|
|
48
|
+
],
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"response": {
|
|
53
|
+
"request_id_pointer": "/requestId",
|
|
54
|
+
"schema": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"required": [
|
|
57
|
+
"result"
|
|
58
|
+
],
|
|
59
|
+
"properties": {
|
|
60
|
+
"requestId": {
|
|
61
|
+
"type": [
|
|
62
|
+
"string",
|
|
63
|
+
"null"
|
|
64
|
+
],
|
|
65
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
66
|
+
},
|
|
67
|
+
"result": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"description": "删除结果。",
|
|
70
|
+
"required": [
|
|
71
|
+
"fileIds"
|
|
72
|
+
],
|
|
73
|
+
"properties": {
|
|
74
|
+
"fileIds": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"description": "已删除的文档 ID。",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "integer",
|
|
79
|
+
"description": "一个文档 ID。"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"additionalProperties": true
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"additionalProperties": true
|
|
87
|
+
},
|
|
88
|
+
"sensitive_pointers": []
|
|
89
|
+
},
|
|
90
|
+
"risk": {
|
|
91
|
+
"level": "destructive",
|
|
92
|
+
"requires_confirmation": true,
|
|
93
|
+
"target_fields": []
|
|
94
|
+
},
|
|
95
|
+
"execution": {
|
|
96
|
+
"kind": "http"
|
|
97
|
+
},
|
|
98
|
+
"examples": [
|
|
99
|
+
{
|
|
100
|
+
"title": "批量删除文档",
|
|
101
|
+
"params": {
|
|
102
|
+
"repositoryId": 1024,
|
|
103
|
+
"fileIds": [
|
|
104
|
+
2048,
|
|
105
|
+
4096
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|