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,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "delete-directory",
|
|
4
|
+
"title": "删除目录",
|
|
5
|
+
"description": "删除目录,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "directory",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"删除目录",
|
|
9
|
+
"delete-directory",
|
|
10
|
+
"delete_directory"
|
|
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_directory",
|
|
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
|
+
"directoryId": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"title": "目录 ID",
|
|
32
|
+
"description": "目标目录 ID,可通过目录树接口获取。"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"directoryId"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"response": {
|
|
42
|
+
"request_id_pointer": "/requestId",
|
|
43
|
+
"schema": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"required": [
|
|
46
|
+
"id"
|
|
47
|
+
],
|
|
48
|
+
"properties": {
|
|
49
|
+
"requestId": {
|
|
50
|
+
"type": [
|
|
51
|
+
"string",
|
|
52
|
+
"null"
|
|
53
|
+
],
|
|
54
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
55
|
+
},
|
|
56
|
+
"id": {
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"description": "已删除的目录 ID。"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"additionalProperties": true
|
|
62
|
+
},
|
|
63
|
+
"sensitive_pointers": []
|
|
64
|
+
},
|
|
65
|
+
"risk": {
|
|
66
|
+
"level": "destructive",
|
|
67
|
+
"requires_confirmation": true,
|
|
68
|
+
"target_fields": []
|
|
69
|
+
},
|
|
70
|
+
"execution": {
|
|
71
|
+
"kind": "http"
|
|
72
|
+
},
|
|
73
|
+
"examples": [
|
|
74
|
+
{
|
|
75
|
+
"title": "删除目录",
|
|
76
|
+
"params": {
|
|
77
|
+
"directoryId": 162399
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "edit-directory",
|
|
4
|
+
"title": "修改目录",
|
|
5
|
+
"description": "修改目录,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "directory",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"修改目录",
|
|
9
|
+
"edit-directory",
|
|
10
|
+
"edit_directory"
|
|
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_directory",
|
|
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
|
+
"directoryId": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"title": "目录 ID",
|
|
32
|
+
"description": "目标目录 ID,可通过目录树接口获取。"
|
|
33
|
+
},
|
|
34
|
+
"targetRepositoryId": {
|
|
35
|
+
"type": "integer",
|
|
36
|
+
"title": "目标知识库 ID",
|
|
37
|
+
"description": "移动目录后归属的知识库 ID。"
|
|
38
|
+
},
|
|
39
|
+
"name": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "目录名称",
|
|
42
|
+
"description": "修改后的目录名称。"
|
|
43
|
+
},
|
|
44
|
+
"targetDirectoryId": {
|
|
45
|
+
"type": "integer",
|
|
46
|
+
"title": "目标父目录 ID",
|
|
47
|
+
"description": "移动后的父目录 ID;不传表示根目录。"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": [
|
|
51
|
+
"directoryId"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"response": {
|
|
57
|
+
"request_id_pointer": "/requestId",
|
|
58
|
+
"schema": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"required": [
|
|
61
|
+
"id"
|
|
62
|
+
],
|
|
63
|
+
"properties": {
|
|
64
|
+
"requestId": {
|
|
65
|
+
"type": [
|
|
66
|
+
"string",
|
|
67
|
+
"null"
|
|
68
|
+
],
|
|
69
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
70
|
+
},
|
|
71
|
+
"id": {
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"description": "修改后的目录 ID。"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"additionalProperties": true
|
|
77
|
+
},
|
|
78
|
+
"sensitive_pointers": []
|
|
79
|
+
},
|
|
80
|
+
"risk": {
|
|
81
|
+
"level": "write",
|
|
82
|
+
"requires_confirmation": true,
|
|
83
|
+
"target_fields": []
|
|
84
|
+
},
|
|
85
|
+
"execution": {
|
|
86
|
+
"kind": "http"
|
|
87
|
+
},
|
|
88
|
+
"examples": [
|
|
89
|
+
{
|
|
90
|
+
"title": "重命名目录",
|
|
91
|
+
"params": {
|
|
92
|
+
"directoryId": 162399,
|
|
93
|
+
"name": "产品资料"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "list-directory-tree",
|
|
4
|
+
"title": "获取目录列表",
|
|
5
|
+
"description": "获取目录列表,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "directory",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"获取目录列表",
|
|
9
|
+
"list-directory-tree",
|
|
10
|
+
"list_directory_tree"
|
|
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_directory_tree",
|
|
20
|
+
"content_type": "application/json",
|
|
21
|
+
"query_schema": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"repositoryId": {
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"title": "知识库 ID",
|
|
27
|
+
"description": "目标知识库 ID,可通过知识库列表接口获取。"
|
|
28
|
+
},
|
|
29
|
+
"botId": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"title": "机器人 ID",
|
|
32
|
+
"description": "可选,筛选绑定指定机器人的目录。"
|
|
33
|
+
},
|
|
34
|
+
"type": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"title": "知识类型",
|
|
37
|
+
"description": "目录或知识所属类型。",
|
|
38
|
+
"enum": [
|
|
39
|
+
"FAQ",
|
|
40
|
+
"FILE"
|
|
41
|
+
],
|
|
42
|
+
"x-enum-descriptions": {
|
|
43
|
+
"FAQ": "问答知识",
|
|
44
|
+
"FILE": "文档知识"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"repositoryId",
|
|
50
|
+
"type"
|
|
51
|
+
],
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
},
|
|
54
|
+
"body_schema": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {},
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"response": {
|
|
61
|
+
"request_id_pointer": "/requestId",
|
|
62
|
+
"schema": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"required": [
|
|
65
|
+
"result"
|
|
66
|
+
],
|
|
67
|
+
"properties": {
|
|
68
|
+
"requestId": {
|
|
69
|
+
"type": [
|
|
70
|
+
"string",
|
|
71
|
+
"null"
|
|
72
|
+
],
|
|
73
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
74
|
+
},
|
|
75
|
+
"result": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"description": "接口返回的业务结果列表。",
|
|
78
|
+
"items": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"description": "列表中的业务记录。",
|
|
81
|
+
"additionalProperties": true
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"additionalProperties": true
|
|
86
|
+
},
|
|
87
|
+
"sensitive_pointers": []
|
|
88
|
+
},
|
|
89
|
+
"risk": {
|
|
90
|
+
"level": "read",
|
|
91
|
+
"requires_confirmation": false,
|
|
92
|
+
"target_fields": []
|
|
93
|
+
},
|
|
94
|
+
"execution": {
|
|
95
|
+
"kind": "http"
|
|
96
|
+
},
|
|
97
|
+
"examples": [
|
|
98
|
+
{
|
|
99
|
+
"title": "查询 FAQ 目录",
|
|
100
|
+
"params": {
|
|
101
|
+
"repositoryId": 103681,
|
|
102
|
+
"type": "FAQ"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "save-directory",
|
|
4
|
+
"title": "创建目录",
|
|
5
|
+
"description": "创建目录,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "directory",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"创建目录",
|
|
9
|
+
"save-directory",
|
|
10
|
+
"save_directory"
|
|
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/save_directory",
|
|
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
|
+
"name": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"title": "目录名称",
|
|
37
|
+
"description": "需要创建的目录名称。",
|
|
38
|
+
"minLength": 1
|
|
39
|
+
},
|
|
40
|
+
"type": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"title": "知识类型",
|
|
43
|
+
"description": "目录或知识所属类型。",
|
|
44
|
+
"enum": [
|
|
45
|
+
"FAQ",
|
|
46
|
+
"FILE"
|
|
47
|
+
],
|
|
48
|
+
"x-enum-descriptions": {
|
|
49
|
+
"FAQ": "问答知识",
|
|
50
|
+
"FILE": "文档知识"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"parentId": {
|
|
54
|
+
"type": "integer",
|
|
55
|
+
"title": "上级目录 ID",
|
|
56
|
+
"description": "可选,不传时在知识库根目录创建。"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"repositoryId",
|
|
61
|
+
"name",
|
|
62
|
+
"type"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"response": {
|
|
68
|
+
"request_id_pointer": "/requestId",
|
|
69
|
+
"schema": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"required": [
|
|
72
|
+
"id"
|
|
73
|
+
],
|
|
74
|
+
"properties": {
|
|
75
|
+
"requestId": {
|
|
76
|
+
"type": [
|
|
77
|
+
"string",
|
|
78
|
+
"null"
|
|
79
|
+
],
|
|
80
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
81
|
+
},
|
|
82
|
+
"id": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"description": "创建后的目录 ID。"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"additionalProperties": true
|
|
88
|
+
},
|
|
89
|
+
"sensitive_pointers": []
|
|
90
|
+
},
|
|
91
|
+
"risk": {
|
|
92
|
+
"level": "write",
|
|
93
|
+
"requires_confirmation": true,
|
|
94
|
+
"target_fields": []
|
|
95
|
+
},
|
|
96
|
+
"execution": {
|
|
97
|
+
"kind": "http"
|
|
98
|
+
},
|
|
99
|
+
"examples": [
|
|
100
|
+
{
|
|
101
|
+
"title": "创建 FAQ 目录",
|
|
102
|
+
"params": {
|
|
103
|
+
"repositoryId": 103681,
|
|
104
|
+
"name": "常见问题",
|
|
105
|
+
"type": "FAQ"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "create-faq",
|
|
4
|
+
"title": "创建问答",
|
|
5
|
+
"description": "创建问答,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "faq",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"创建问答",
|
|
9
|
+
"create-faq",
|
|
10
|
+
"create_faq"
|
|
11
|
+
],
|
|
12
|
+
"source": {
|
|
13
|
+
"url": "https://develop.clink.cn/develop/api/aikb.html",
|
|
14
|
+
"anchor": "创建问答",
|
|
15
|
+
"snapshot_date": "2026-08-17"
|
|
16
|
+
},
|
|
17
|
+
"http": {
|
|
18
|
+
"method": "POST",
|
|
19
|
+
"path": "/aikb/create_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
|
+
"repositoryId": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"title": "知识库 ID",
|
|
32
|
+
"description": "目标知识库 ID,可通过知识库列表接口获取。"
|
|
33
|
+
},
|
|
34
|
+
"directoryId": {
|
|
35
|
+
"type": "integer",
|
|
36
|
+
"title": "目录 ID",
|
|
37
|
+
"description": "目标目录 ID,可通过目录树接口获取。"
|
|
38
|
+
},
|
|
39
|
+
"question": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "问答标题",
|
|
42
|
+
"description": "问答问题标题。",
|
|
43
|
+
"minLength": 1
|
|
44
|
+
},
|
|
45
|
+
"answers": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"title": "答案列表",
|
|
48
|
+
"description": "问答的答案列表。",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"title": "答案",
|
|
52
|
+
"description": "问答的一个答案。",
|
|
53
|
+
"required": [
|
|
54
|
+
"content",
|
|
55
|
+
"type"
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"content": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"title": "答案内容",
|
|
61
|
+
"description": "答案正文内容。"
|
|
62
|
+
},
|
|
63
|
+
"type": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"title": "答案类型",
|
|
66
|
+
"description": "答案内容格式。",
|
|
67
|
+
"enum": [
|
|
68
|
+
"text",
|
|
69
|
+
"html"
|
|
70
|
+
],
|
|
71
|
+
"x-enum-descriptions": {
|
|
72
|
+
"text": "普通文本",
|
|
73
|
+
"html": "富文本"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"introductionType": {
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"title": "简介类型",
|
|
83
|
+
"description": "简介格式,1 为普通文本,2 为富文本。",
|
|
84
|
+
"enum": [
|
|
85
|
+
1,
|
|
86
|
+
2
|
|
87
|
+
],
|
|
88
|
+
"x-enum-descriptions": {
|
|
89
|
+
"1": "普通文本",
|
|
90
|
+
"2": "富文本"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"introduction": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"title": "简介",
|
|
96
|
+
"description": "可选的问答简介。"
|
|
97
|
+
},
|
|
98
|
+
"similars": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"title": "相似问列表",
|
|
101
|
+
"description": "覆盖保存的相似问题。",
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"title": "相似问",
|
|
105
|
+
"description": "一条相似问题。"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"relatedIds": {
|
|
109
|
+
"type": "array",
|
|
110
|
+
"title": "关联问列表",
|
|
111
|
+
"description": "关联的问答知识 ID。",
|
|
112
|
+
"items": {
|
|
113
|
+
"type": "integer",
|
|
114
|
+
"title": "关联问 ID",
|
|
115
|
+
"description": "关联问答知识 ID。"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"onlineDateFrom": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"title": "有效开始时间",
|
|
121
|
+
"description": "问答有效开始时间,格式 yyyy/MM/dd HH:mm:ss。"
|
|
122
|
+
},
|
|
123
|
+
"onlineDateTo": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"title": "有效结束时间",
|
|
126
|
+
"description": "问答有效结束时间,格式 yyyy/MM/dd HH:mm:ss。"
|
|
127
|
+
},
|
|
128
|
+
"autoOnline": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"title": "自动上线",
|
|
131
|
+
"description": "创建后是否自动上线,默认 false;知识库开启审核时该参数将被忽略。",
|
|
132
|
+
"default": false
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
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
|
+
"repositoryId": 103681,
|
|
181
|
+
"directoryId": 160178,
|
|
182
|
+
"question": "如何使用?",
|
|
183
|
+
"answers": [
|
|
184
|
+
{
|
|
185
|
+
"content": "请查看手册。",
|
|
186
|
+
"type": "text"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"autoOnline": true
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"id": "delete-faq",
|
|
4
|
+
"title": "删除问答",
|
|
5
|
+
"description": "删除问答,参数和返回结构依据开发者中心 AIKB 文档快照。",
|
|
6
|
+
"group": "faq",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"删除问答",
|
|
9
|
+
"delete-faq",
|
|
10
|
+
"delete_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/delete_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
|
+
"id"
|
|
47
|
+
],
|
|
48
|
+
"properties": {
|
|
49
|
+
"requestId": {
|
|
50
|
+
"type": [
|
|
51
|
+
"string",
|
|
52
|
+
"null"
|
|
53
|
+
],
|
|
54
|
+
"description": "开发者中心请求 ID;部分接口可能返回 null。"
|
|
55
|
+
},
|
|
56
|
+
"id": {
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"description": "已删除的问答 ID。"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"additionalProperties": true
|
|
62
|
+
},
|
|
63
|
+
"sensitive_pointers": []
|
|
64
|
+
},
|
|
65
|
+
"risk": {
|
|
66
|
+
"level": "destructive",
|
|
67
|
+
"requires_confirmation": true,
|
|
68
|
+
"target_fields": []
|
|
69
|
+
},
|
|
70
|
+
"execution": {
|
|
71
|
+
"kind": "http"
|
|
72
|
+
},
|
|
73
|
+
"examples": [
|
|
74
|
+
{
|
|
75
|
+
"title": "删除问答",
|
|
76
|
+
"params": {
|
|
77
|
+
"id": 1576554
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|