@blueking/ai-ui-sdk 0.1.17-beta.1 → 0.1.18-beta.10
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/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +4 -4
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +1 -1
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +9 -11
- package/dist/components/render-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +5 -5
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-like/index.script.vue.js.js +304 -0
- package/dist/components/render-like/index.vue.css +19 -0
- package/dist/components/render-like/index.vue.d.ts +30 -0
- package/dist/components/render-like/index.vue.js +5 -0
- package/dist/components/render-markdown/mark-down.postcss.css +4 -3
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components.d.ts +2 -1
- package/dist/components.ts.js +2 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +6 -0
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/iconcool.js +1 -1
- package/dist/css/style.css +6 -0
- package/dist/css/tailwind.css +929 -0
- package/dist/hooks/use-chat.d.ts +68 -0
- package/dist/hooks/use-chat.ts.js +2 -0
- package/dist/hooks/use-form-rule.d.ts +3 -3
- package/dist/hooks/use-meta-http.d.ts +3 -3
- package/dist/hooks/use-permission.d.ts +1 -1
- package/dist/hooks/use-permission.ts.js +7 -4
- package/dist/hooks/use-session-http.d.ts +5 -1
- package/dist/hooks/use-session-http.ts.js +32 -2
- package/dist/hooks/use-style.d.ts +1 -0
- package/dist/hooks/use-style.ts.js +1 -0
- package/dist/http/helper/agent.ts.js +7 -1
- package/dist/http/helper/dataset.d.ts +1 -1
- package/dist/http/helper/dataset.ts.js +5 -1
- package/dist/http/helper/knowledge.ts.js +2 -0
- package/dist/http/helper/permission.ts.js +8 -1
- package/dist/http/helper/session.d.ts +25 -1
- package/dist/http/helper/session.ts.js +26 -0
- package/dist/http/helper/tool.ts.js +2 -0
- package/dist/types/agent.d.ts +14 -0
- package/dist/types/enum.d.ts +9 -2
- package/dist/types/enum.ts.js +23 -16
- package/dist/types/knowledge.d.ts +2 -0
- package/dist/types/permission.d.ts +14 -0
- package/dist/types/session.d.ts +37 -0
- package/dist/types/tool.d.ts +2 -0
- package/package.json +1 -1
|
@@ -232,3 +232,29 @@ import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
+
/**
|
|
236
|
+
* 将前端使用的 session 反馈数据转换为 API 使用的 session 反馈数据
|
|
237
|
+
* @param data 前端使用的 session 反馈数据
|
|
238
|
+
* @returns API 使用的 session 反馈数据
|
|
239
|
+
*/ export const transferSessionFeedback2SessionFeedbackApi = (data)=>{
|
|
240
|
+
return {
|
|
241
|
+
session_code: data.sessionCode,
|
|
242
|
+
session_content_ids: data.sessionContentIds,
|
|
243
|
+
rate: data.rate,
|
|
244
|
+
comment: data.comment,
|
|
245
|
+
labels: data.labels
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* 将 API 返回的 session 反馈数据转换为前端使用的 session 反馈数据
|
|
250
|
+
* @param data API 返回的 session 反馈数据
|
|
251
|
+
* @returns 前端使用的 session 反馈数据
|
|
252
|
+
*/ export const transferSessionFeedbackApi2SessionFeedback = (data)=>{
|
|
253
|
+
return {
|
|
254
|
+
sessionCode: data.session_code,
|
|
255
|
+
sessionContentIds: data.session_content_ids,
|
|
256
|
+
rate: data.rate,
|
|
257
|
+
comment: data.comment,
|
|
258
|
+
labels: data.lables
|
|
259
|
+
};
|
|
260
|
+
};
|
|
@@ -18,6 +18,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
18
18
|
method: data.method,
|
|
19
19
|
url: data.url,
|
|
20
20
|
generateType: data.generate_type,
|
|
21
|
+
isPublic: data.is_public,
|
|
21
22
|
id: data.tool_id,
|
|
22
23
|
spaceId: data.space_id,
|
|
23
24
|
status: data.status,
|
|
@@ -41,6 +42,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
41
42
|
method: data.method,
|
|
42
43
|
url: data.url,
|
|
43
44
|
generate_type: data.generateType,
|
|
45
|
+
is_public: data.isPublic,
|
|
44
46
|
tool_id: data.id,
|
|
45
47
|
status: data.status,
|
|
46
48
|
is_sensitive: data.isSensitive,
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface IAgentCommandApi {
|
|
|
21
21
|
content: string | null;
|
|
22
22
|
agent_id: number;
|
|
23
23
|
status: string;
|
|
24
|
+
selectedText?: string | null;
|
|
24
25
|
}
|
|
25
26
|
export interface IAgentInfoApi {
|
|
26
27
|
conversation_settings?: {
|
|
@@ -33,6 +34,12 @@ export interface IAgentInfoApi {
|
|
|
33
34
|
content?: ISessionPrompt[];
|
|
34
35
|
};
|
|
35
36
|
agent_name: string;
|
|
37
|
+
chat_group?: {
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
staff: string[];
|
|
40
|
+
username: string;
|
|
41
|
+
};
|
|
42
|
+
saas_url?: string;
|
|
36
43
|
}
|
|
37
44
|
export interface IAgentCommandComponent {
|
|
38
45
|
type: string;
|
|
@@ -48,6 +55,7 @@ export interface IAgentCommandComponent {
|
|
|
48
55
|
max?: number | null;
|
|
49
56
|
options?: any;
|
|
50
57
|
hide?: boolean;
|
|
58
|
+
selectedText?: string | null;
|
|
51
59
|
}
|
|
52
60
|
export interface IAgentCommand {
|
|
53
61
|
id: string;
|
|
@@ -69,4 +77,10 @@ export interface IAgentInfo {
|
|
|
69
77
|
content?: ISessionPrompt[];
|
|
70
78
|
};
|
|
71
79
|
agentName?: string;
|
|
80
|
+
chatGroup?: {
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
staff: string[];
|
|
83
|
+
username: string;
|
|
84
|
+
};
|
|
85
|
+
saasUrl?: string;
|
|
72
86
|
}
|
package/dist/types/enum.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export declare enum DatasetDataOperatRecordResultCode {
|
|
|
135
135
|
Success = 0,
|
|
136
136
|
Failed = 1
|
|
137
137
|
}
|
|
138
|
-
export declare enum
|
|
138
|
+
export declare enum Module {
|
|
139
139
|
Knowledgebase = "knowledgebase",
|
|
140
140
|
Knowledge = "knowledge",
|
|
141
141
|
Prompt = "prompt",
|
|
@@ -156,28 +156,35 @@ export declare enum ResourcePermissionAction {
|
|
|
156
156
|
ViewSpace = "view_space",
|
|
157
157
|
ManageSpace = "manage_space",
|
|
158
158
|
ViewAgent = "view_agent",
|
|
159
|
+
UseAgent = "use_agent",
|
|
159
160
|
CreateAgent = "create_agent",
|
|
160
161
|
ManageAgent = "manage_agent",
|
|
161
162
|
ViewPrompt = "view_prompt",
|
|
163
|
+
UsePrompt = "use_prompt",
|
|
162
164
|
CreatePrompt = "create_prompt",
|
|
163
165
|
ManagePrompt = "manage_prompt",
|
|
164
166
|
ViewCollection = "view_collection",
|
|
167
|
+
UseCollection = "use_collection",
|
|
165
168
|
CreateCollection = "create_collection",
|
|
166
169
|
ManageCollection = "manage_collection",
|
|
167
170
|
ViewTool = "view_tool",
|
|
171
|
+
UseTool = "use_tool",
|
|
168
172
|
CreateTool = "create_tool",
|
|
169
173
|
ManageTool = "manage_tool",
|
|
170
174
|
ViewKnowledgebase = "view_knowledgebase",
|
|
175
|
+
UseKnowledgebase = "use_knowledgebase",
|
|
171
176
|
CreateKnowledgebase = "create_knowledgebase",
|
|
172
177
|
ManageKnowledgebase = "manage_knowledgebase",
|
|
173
178
|
ViewQueryTemplate = "view_query_template",
|
|
179
|
+
UseQueryTemplate = "use_query_template",
|
|
174
180
|
CreateQueryTemplate = "create_query_template",
|
|
175
181
|
ManageQueryTemplate = "manage_query_template",
|
|
176
182
|
ViewDataset = "view_dataset",
|
|
177
183
|
ManageDataset = "manage_dataset",
|
|
178
184
|
CreateMcp = "create_mcp",
|
|
179
185
|
ManageMcp = "manage_mcp",
|
|
180
|
-
ViewMcp = "view_mcp"
|
|
186
|
+
ViewMcp = "view_mcp",
|
|
187
|
+
UseMcp = "use_mcp"
|
|
181
188
|
}
|
|
182
189
|
export declare enum PlatformPermissionAction {
|
|
183
190
|
AccessPlatform = "access_platform",
|
package/dist/types/enum.ts.js
CHANGED
|
@@ -154,22 +154,22 @@ export var DatasetDataOperatRecordResultCode;
|
|
|
154
154
|
DatasetDataOperatRecordResultCode[DatasetDataOperatRecordResultCode["Success"] = 0] = "Success";
|
|
155
155
|
DatasetDataOperatRecordResultCode[DatasetDataOperatRecordResultCode["Failed"] = 1] = "Failed";
|
|
156
156
|
})(DatasetDataOperatRecordResultCode || (DatasetDataOperatRecordResultCode = {}));
|
|
157
|
-
export var
|
|
158
|
-
(function(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
})(
|
|
157
|
+
export var Module;
|
|
158
|
+
(function(Module) {
|
|
159
|
+
Module["Knowledgebase"] = "knowledgebase";
|
|
160
|
+
Module["Knowledge"] = "knowledge";
|
|
161
|
+
Module["Prompt"] = "prompt";
|
|
162
|
+
Module["Tool"] = "tool";
|
|
163
|
+
Module["Collection"] = "collection";
|
|
164
|
+
Module["Agent"] = "agent";
|
|
165
|
+
Module["AgentCommand"] = "agent_command";
|
|
166
|
+
Module["AgentCommandComponent"] = "agent_command_component";
|
|
167
|
+
Module["LLM"] = "llm";
|
|
168
|
+
Module["Tag"] = "tag";
|
|
169
|
+
Module["Mcp"] = "mcp";
|
|
170
|
+
Module["Default"] = "default";
|
|
171
|
+
Module["PromptVariables"] = "prompt_variables";
|
|
172
|
+
})(Module || (Module = {}));
|
|
173
173
|
export var ResourcePermissionAction;
|
|
174
174
|
(function(ResourcePermissionAction) {
|
|
175
175
|
ResourcePermissionAction["AccessModel"] = "access_model";
|
|
@@ -177,21 +177,27 @@ export var ResourcePermissionAction;
|
|
|
177
177
|
ResourcePermissionAction["ViewSpace"] = "view_space";
|
|
178
178
|
ResourcePermissionAction["ManageSpace"] = "manage_space";
|
|
179
179
|
ResourcePermissionAction["ViewAgent"] = "view_agent";
|
|
180
|
+
ResourcePermissionAction["UseAgent"] = "use_agent";
|
|
180
181
|
ResourcePermissionAction["CreateAgent"] = "create_agent";
|
|
181
182
|
ResourcePermissionAction["ManageAgent"] = "manage_agent";
|
|
182
183
|
ResourcePermissionAction["ViewPrompt"] = "view_prompt";
|
|
184
|
+
ResourcePermissionAction["UsePrompt"] = "use_prompt";
|
|
183
185
|
ResourcePermissionAction["CreatePrompt"] = "create_prompt";
|
|
184
186
|
ResourcePermissionAction["ManagePrompt"] = "manage_prompt";
|
|
185
187
|
ResourcePermissionAction["ViewCollection"] = "view_collection";
|
|
188
|
+
ResourcePermissionAction["UseCollection"] = "use_collection";
|
|
186
189
|
ResourcePermissionAction["CreateCollection"] = "create_collection";
|
|
187
190
|
ResourcePermissionAction["ManageCollection"] = "manage_collection";
|
|
188
191
|
ResourcePermissionAction["ViewTool"] = "view_tool";
|
|
192
|
+
ResourcePermissionAction["UseTool"] = "use_tool";
|
|
189
193
|
ResourcePermissionAction["CreateTool"] = "create_tool";
|
|
190
194
|
ResourcePermissionAction["ManageTool"] = "manage_tool";
|
|
191
195
|
ResourcePermissionAction["ViewKnowledgebase"] = "view_knowledgebase";
|
|
196
|
+
ResourcePermissionAction["UseKnowledgebase"] = "use_knowledgebase";
|
|
192
197
|
ResourcePermissionAction["CreateKnowledgebase"] = "create_knowledgebase";
|
|
193
198
|
ResourcePermissionAction["ManageKnowledgebase"] = "manage_knowledgebase";
|
|
194
199
|
ResourcePermissionAction["ViewQueryTemplate"] = "view_query_template";
|
|
200
|
+
ResourcePermissionAction["UseQueryTemplate"] = "use_query_template";
|
|
195
201
|
ResourcePermissionAction["CreateQueryTemplate"] = "create_query_template";
|
|
196
202
|
ResourcePermissionAction["ManageQueryTemplate"] = "manage_query_template";
|
|
197
203
|
ResourcePermissionAction["ViewDataset"] = "view_dataset";
|
|
@@ -199,6 +205,7 @@ export var ResourcePermissionAction;
|
|
|
199
205
|
ResourcePermissionAction["CreateMcp"] = "create_mcp";
|
|
200
206
|
ResourcePermissionAction["ManageMcp"] = "manage_mcp";
|
|
201
207
|
ResourcePermissionAction["ViewMcp"] = "view_mcp";
|
|
208
|
+
ResourcePermissionAction["UseMcp"] = "use_mcp";
|
|
202
209
|
})(ResourcePermissionAction || (ResourcePermissionAction = {}));
|
|
203
210
|
export var PlatformPermissionAction;
|
|
204
211
|
(function(PlatformPermissionAction) {
|
|
@@ -105,6 +105,7 @@ export interface IKnowledgebaseApi {
|
|
|
105
105
|
status?: ResourceStatus;
|
|
106
106
|
description?: string;
|
|
107
107
|
generate_type?: EnumCharacter;
|
|
108
|
+
is_public?: boolean;
|
|
108
109
|
knowledge_count?: number;
|
|
109
110
|
folder_num?: number;
|
|
110
111
|
updated_by?: string;
|
|
@@ -128,6 +129,7 @@ export interface IKnowledgebase {
|
|
|
128
129
|
type?: KnowledgebaseType;
|
|
129
130
|
status?: ResourceStatus;
|
|
130
131
|
generateType?: EnumCharacter;
|
|
132
|
+
isPublic?: boolean;
|
|
131
133
|
pathType?: KnowledgePathType;
|
|
132
134
|
createdType?: KnowledgeType;
|
|
133
135
|
number?: number;
|
|
@@ -28,21 +28,27 @@ export interface IResourcePermissionApi {
|
|
|
28
28
|
view_space?: boolean;
|
|
29
29
|
manage_space?: boolean;
|
|
30
30
|
view_agent?: boolean;
|
|
31
|
+
use_agent?: boolean;
|
|
31
32
|
create_agent?: boolean;
|
|
32
33
|
manage_agent?: boolean;
|
|
33
34
|
view_prompt?: boolean;
|
|
35
|
+
use_prompt?: boolean;
|
|
34
36
|
create_prompt?: boolean;
|
|
35
37
|
manage_prompt?: boolean;
|
|
36
38
|
view_collection?: boolean;
|
|
39
|
+
use_collection?: boolean;
|
|
37
40
|
create_collection?: boolean;
|
|
38
41
|
manage_collection?: boolean;
|
|
39
42
|
view_tool?: boolean;
|
|
43
|
+
use_tool?: boolean;
|
|
40
44
|
create_tool?: boolean;
|
|
41
45
|
manage_tool?: boolean;
|
|
42
46
|
view_knowledgebase?: boolean;
|
|
47
|
+
use_knowledgebase?: boolean;
|
|
43
48
|
create_knowledgebase?: boolean;
|
|
44
49
|
manage_knowledgebase?: boolean;
|
|
45
50
|
view_query_template?: boolean;
|
|
51
|
+
use_query_template?: boolean;
|
|
46
52
|
create_query_template?: boolean;
|
|
47
53
|
manage_query_template?: boolean;
|
|
48
54
|
view_dataset?: boolean;
|
|
@@ -50,6 +56,7 @@ export interface IResourcePermissionApi {
|
|
|
50
56
|
create_mcp?: boolean;
|
|
51
57
|
manage_mcp?: boolean;
|
|
52
58
|
view_mcp?: boolean;
|
|
59
|
+
use_mcp?: boolean;
|
|
53
60
|
}
|
|
54
61
|
export interface IResourcePermission {
|
|
55
62
|
accessModel?: boolean;
|
|
@@ -57,21 +64,27 @@ export interface IResourcePermission {
|
|
|
57
64
|
viewSpace?: boolean;
|
|
58
65
|
manageSpace?: boolean;
|
|
59
66
|
viewAgent?: boolean;
|
|
67
|
+
useAgent?: boolean;
|
|
60
68
|
createAgent?: boolean;
|
|
61
69
|
manageAgent?: boolean;
|
|
62
70
|
viewPrompt?: boolean;
|
|
71
|
+
usePrompt?: boolean;
|
|
63
72
|
createPrompt?: boolean;
|
|
64
73
|
managePrompt?: boolean;
|
|
65
74
|
viewCollection?: boolean;
|
|
75
|
+
useCollection?: boolean;
|
|
66
76
|
createCollection?: boolean;
|
|
67
77
|
manageCollection?: boolean;
|
|
68
78
|
viewTool?: boolean;
|
|
79
|
+
useTool?: boolean;
|
|
69
80
|
createTool?: boolean;
|
|
70
81
|
manageTool?: boolean;
|
|
71
82
|
viewKnowledgebase?: boolean;
|
|
83
|
+
useKnowledgebase?: boolean;
|
|
72
84
|
createKnowledgebase?: boolean;
|
|
73
85
|
manageKnowledgebase?: boolean;
|
|
74
86
|
viewQueryTemplate?: boolean;
|
|
87
|
+
useQueryTemplate?: boolean;
|
|
75
88
|
createQueryTemplate?: boolean;
|
|
76
89
|
manageQueryTemplate?: boolean;
|
|
77
90
|
viewDataset?: boolean;
|
|
@@ -79,6 +92,7 @@ export interface IResourcePermission {
|
|
|
79
92
|
createMcp?: boolean;
|
|
80
93
|
manageMcp?: boolean;
|
|
81
94
|
viewMcp?: boolean;
|
|
95
|
+
useMcp?: boolean;
|
|
82
96
|
}
|
|
83
97
|
export interface IPlatformPermission {
|
|
84
98
|
access_platform: boolean;
|
package/dist/types/session.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export interface ISessionContentApi {
|
|
|
18
18
|
role: SessionContentRole;
|
|
19
19
|
content: string;
|
|
20
20
|
rate?: number;
|
|
21
|
+
comment?: string;
|
|
22
|
+
labels?: string[];
|
|
21
23
|
status?: SessionContentStatus;
|
|
22
24
|
session_code: string;
|
|
23
25
|
property?: {
|
|
@@ -43,6 +45,8 @@ export interface ISessionContent {
|
|
|
43
45
|
role: SessionContentRole;
|
|
44
46
|
content: string;
|
|
45
47
|
rate?: number;
|
|
48
|
+
comment?: string;
|
|
49
|
+
labels?: string[];
|
|
46
50
|
status?: SessionContentStatus;
|
|
47
51
|
sessionCode: string;
|
|
48
52
|
cite?: string;
|
|
@@ -158,3 +162,36 @@ export type ISendChat = {
|
|
|
158
162
|
content: BasicChatContent | ShortcutChatContent;
|
|
159
163
|
callback?: () => void;
|
|
160
164
|
};
|
|
165
|
+
export interface IChatGroupMessage {
|
|
166
|
+
role: 'ai' | 'user';
|
|
167
|
+
content: string;
|
|
168
|
+
}
|
|
169
|
+
export interface IChatGroupRequest {
|
|
170
|
+
chat_group_name: string;
|
|
171
|
+
messages: IChatGroupMessage[];
|
|
172
|
+
session_code: string;
|
|
173
|
+
}
|
|
174
|
+
export interface IChatGroup {
|
|
175
|
+
result: boolean;
|
|
176
|
+
data: {
|
|
177
|
+
group_id: string;
|
|
178
|
+
task_status: string;
|
|
179
|
+
error_message: string | null;
|
|
180
|
+
};
|
|
181
|
+
code: string;
|
|
182
|
+
message: string;
|
|
183
|
+
}
|
|
184
|
+
export interface ISessionFeedbackApi {
|
|
185
|
+
session_code: string;
|
|
186
|
+
session_content_ids: number[];
|
|
187
|
+
rate: number;
|
|
188
|
+
comment: string;
|
|
189
|
+
lables: string[];
|
|
190
|
+
}
|
|
191
|
+
export interface ISessionFeedback {
|
|
192
|
+
sessionCode: string;
|
|
193
|
+
sessionContentIds: number[];
|
|
194
|
+
rate: number;
|
|
195
|
+
comment: string;
|
|
196
|
+
labels: string[];
|
|
197
|
+
}
|
package/dist/types/tool.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export interface IToolApi {
|
|
|
34
34
|
method: string;
|
|
35
35
|
url: string;
|
|
36
36
|
generate_type: EnumCharacter;
|
|
37
|
+
is_public: boolean;
|
|
37
38
|
tool_id?: number;
|
|
38
39
|
status?: ResourceStatus;
|
|
39
40
|
is_sensitive?: boolean;
|
|
@@ -57,6 +58,7 @@ export interface ITool {
|
|
|
57
58
|
method: string;
|
|
58
59
|
url: string;
|
|
59
60
|
generateType: EnumCharacter;
|
|
61
|
+
isPublic: boolean;
|
|
60
62
|
id?: number;
|
|
61
63
|
status?: ResourceStatus;
|
|
62
64
|
isSensitive?: boolean;
|