@oscloudlab/vgen-agent-assistant 0.0.12 → 0.0.14
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/index.css +1 -1
- package/dist/index.css.br +0 -0
- package/dist/index.css.gz +0 -0
- package/dist/types/src/api/index.d.ts +5 -1
- package/dist/types/src/components/VgenAgent/components/MessageContent.d.ts +4 -1
- package/dist/types/src/components/VgenAgent/messageTypeContainer/MessageEditTask.d.ts +7 -0
- package/dist/types/src/components/VgenAgent/messageTypeContainer/ThinkingContent.d.ts +13 -0
- package/dist/types/src/components/VgenAgent/type.d.ts +22 -1
- package/dist/vgen-agent-assistant.es.js +835 -648
- package/dist/vgen-agent-assistant.es.js.br +0 -0
- package/dist/vgen-agent-assistant.es.js.gz +0 -0
- package/dist/vgen-agent-assistant.umd.js +2 -2
- package/dist/vgen-agent-assistant.umd.js.br +0 -0
- package/dist/vgen-agent-assistant.umd.js.gz +0 -0
- package/package.json +1 -1
package/dist/index.css.br
CHANGED
|
Binary file
|
package/dist/index.css.gz
CHANGED
|
Binary file
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SSEChatEvents } from '../../utils/sseForChat';
|
|
2
|
+
import { addTaskProps } from '../components/VgenAgent/type';
|
|
2
3
|
|
|
3
4
|
export declare const getUserInfo: () => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
4
5
|
export declare const createSession: (params: {
|
|
@@ -31,6 +32,7 @@ export interface getTraceIdProps {
|
|
|
31
32
|
export declare const getTraceId: (params: getTraceIdProps) => any;
|
|
32
33
|
export declare const chatSse: (query: any, params: any, receiverObj: SSEChatEvents, enableGlobalSearch?: boolean, traceId?: string) => import('../../utils/sseForChat').SSEChatController;
|
|
33
34
|
export declare const chatSseSaas: (query: any, params: any, receiverObj: SSEChatEvents, traceId?: string) => import('../../utils/sseForChat').SSEChatController;
|
|
35
|
+
export declare const chatAgent: (query: any, params: any, receiverObj: SSEChatEvents, enableGlobalSearch?: boolean, traceId?: string) => import('../../utils/sseForChat').SSEChatController;
|
|
34
36
|
export declare const saveKnowledges: (params: {
|
|
35
37
|
btype: number;
|
|
36
38
|
data: any;
|
|
@@ -74,7 +76,7 @@ export declare const startAnalyze: (params: {
|
|
|
74
76
|
bvid: string;
|
|
75
77
|
cid: string;
|
|
76
78
|
}[];
|
|
77
|
-
}[], traceId?: string) => any;
|
|
79
|
+
}[], traceId?: string, sessionId?: number | string) => any;
|
|
78
80
|
export declare const getAgentFormFields: () => any;
|
|
79
81
|
export declare const batchSaveQuestionNew: (params: {
|
|
80
82
|
"questionList": string;
|
|
@@ -110,3 +112,5 @@ export declare const saveEvalutionDir: (params: {
|
|
|
110
112
|
}[];
|
|
111
113
|
}) => any;
|
|
112
114
|
export declare const queryEvalutionRecordDetail: (id: number) => any;
|
|
115
|
+
export declare const getTaskDetail: (id: number) => any;
|
|
116
|
+
export declare const updateTask: (params: addTaskProps) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { agentScene } from '../../../../utils/consts';
|
|
3
|
-
import { MessageProps, recommendVideosProps } from '../type';
|
|
3
|
+
import { MessageProps, recommendVideosProps, saveMsgProps } from '../type';
|
|
4
4
|
|
|
5
5
|
interface MessageContentProps {
|
|
6
6
|
messages: MessageProps[];
|
|
@@ -32,6 +32,9 @@ interface MessageContentProps {
|
|
|
32
32
|
isTaskPage?: boolean;
|
|
33
33
|
isDev?: boolean;
|
|
34
34
|
userInfo: any;
|
|
35
|
+
cookieConsume?: number;
|
|
36
|
+
progress?: number;
|
|
37
|
+
saveMsg?: (msg: saveMsgProps) => void;
|
|
35
38
|
}
|
|
36
39
|
declare const _default: React.NamedExoticComponent<MessageContentProps>;
|
|
37
40
|
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { agentScene } from '../../../../utils/consts';
|
|
3
|
+
|
|
4
|
+
interface ThinkingContentProps {
|
|
5
|
+
thinkContent: string;
|
|
6
|
+
answerIsDone: boolean;
|
|
7
|
+
isLast: boolean;
|
|
8
|
+
recommendScene?: agentScene;
|
|
9
|
+
progress?: number;
|
|
10
|
+
cookieConsume?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const ThinkingContent: React.FC<ThinkingContentProps>;
|
|
13
|
+
export default ThinkingContent;
|
|
@@ -47,7 +47,9 @@ export declare enum msgType {
|
|
|
47
47
|
REL_LEARN_TASK = "rel_learn_task",// 学习任务锚点
|
|
48
48
|
INVISIBLE_TEXT = "invisible_text",// 不可见文本消息
|
|
49
49
|
REL_PLAN_TASK = "rel_plan_task",// 计划任务锚点
|
|
50
|
-
REL_EVALUATION = "rel_evaluation"
|
|
50
|
+
REL_EVALUATION = "rel_evaluation",// 评测记录锚点
|
|
51
|
+
TASK_TIP = "task_tip",// 任务提醒
|
|
52
|
+
TASK_EDIT = "task_edit"
|
|
51
53
|
}
|
|
52
54
|
export interface MessageProps {
|
|
53
55
|
id: number | string;
|
|
@@ -237,3 +239,22 @@ export interface VgenAgentRefProps {
|
|
|
237
239
|
/** 发送消息 */
|
|
238
240
|
sendMsg: (val: string) => void;
|
|
239
241
|
}
|
|
242
|
+
export interface addTaskProps {
|
|
243
|
+
id?: number;
|
|
244
|
+
taskName: string;
|
|
245
|
+
btype: number;
|
|
246
|
+
reminderTimeDesc: string;
|
|
247
|
+
cycleType: number;
|
|
248
|
+
cycleDays: number[];
|
|
249
|
+
cardsPerDay?: number;
|
|
250
|
+
effectiveDate: string;
|
|
251
|
+
endType?: number;
|
|
252
|
+
endCount?: number;
|
|
253
|
+
endDate?: string;
|
|
254
|
+
targets: {
|
|
255
|
+
dataType: number;
|
|
256
|
+
dataId: string;
|
|
257
|
+
targetOrder: string;
|
|
258
|
+
}[];
|
|
259
|
+
remark?: string;
|
|
260
|
+
}
|