@oscloudlab/vgen-agent-assistant 0.0.8 → 0.0.9
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/types/src/api/index.d.ts +3 -3
- package/dist/types/src/components/TagsTextarea/index.d.ts +1 -0
- package/dist/types/src/components/VgenAgent/components/KnowledgeContinueMsg.d.ts +14 -0
- package/dist/types/src/components/VgenAgent/components/KnowledgeStartMsg.d.ts +14 -0
- package/dist/types/src/components/VgenAgent/type.d.ts +8 -1
- package/dist/vgen-agent-assistant.css +1 -1
- package/dist/vgen-agent-assistant.css.gz +0 -0
- package/dist/vgen-agent-assistant.es.js +437 -276
- package/dist/vgen-agent-assistant.es.js.gz +0 -0
- package/dist/vgen-agent-assistant.umd.js +8 -8
- package/dist/vgen-agent-assistant.umd.js.gz +0 -0
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import { SSEChatEvents } from '../../utils/sseForChat';
|
|
|
3
3
|
export declare const getUserInfo: () => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
4
4
|
export declare const createSession: (params: {
|
|
5
5
|
btype: number;
|
|
6
|
-
|
|
7
|
-
dataId?: string;
|
|
6
|
+
dataType?: number;
|
|
7
|
+
dataId?: string | number;
|
|
8
8
|
}) => any;
|
|
9
9
|
export declare const getSesstionList: (params: {
|
|
10
10
|
sessionId: number;
|
|
@@ -87,7 +87,7 @@ export declare const getSessionListByBiz: (params: {
|
|
|
87
87
|
"asc": boolean;
|
|
88
88
|
}[];
|
|
89
89
|
"dataBtype": number;
|
|
90
|
-
"dataId": string;
|
|
90
|
+
"dataId": string | number;
|
|
91
91
|
}) => any;
|
|
92
92
|
export declare const deleteSession: (params: {
|
|
93
93
|
ids: number[];
|
|
@@ -15,6 +15,7 @@ export interface TagsTextareaRef {
|
|
|
15
15
|
getStructuredData: () => structuredDataProps[];
|
|
16
16
|
addText: (text: string) => void;
|
|
17
17
|
addTag: (tag: string) => void;
|
|
18
|
+
addQuotedText: (text: string) => void;
|
|
18
19
|
addInput: (input: string, placeholder: string) => void;
|
|
19
20
|
addDropdown: (options: string[], defaultValue: string) => void;
|
|
20
21
|
focusInput: () => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { knowledgeInfoProps } from '../type';
|
|
3
|
+
|
|
4
|
+
interface VideoStartMsgProps {
|
|
5
|
+
knowledgeInfo: knowledgeInfoProps;
|
|
6
|
+
handleSendMessage: (props: {
|
|
7
|
+
input: string;
|
|
8
|
+
isInitial?: boolean;
|
|
9
|
+
scene?: string;
|
|
10
|
+
chatId?: number;
|
|
11
|
+
}) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.NamedExoticComponent<VideoStartMsgProps>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { knowledgeInfoProps } from '../type';
|
|
3
|
+
|
|
4
|
+
interface VideoStartMsgProps {
|
|
5
|
+
knowledgeInfo: knowledgeInfoProps;
|
|
6
|
+
handleSendMessage: (props: {
|
|
7
|
+
input: string;
|
|
8
|
+
isInitial?: boolean;
|
|
9
|
+
scene?: string;
|
|
10
|
+
chatId?: number;
|
|
11
|
+
}) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.NamedExoticComponent<VideoStartMsgProps>;
|
|
14
|
+
export default _default;
|
|
@@ -6,17 +6,24 @@ export interface VgenAgentProps {
|
|
|
6
6
|
viewMode?: viewModeType;
|
|
7
7
|
courseInfo?: courseInfoProps;
|
|
8
8
|
videoInfo?: videoInfoProps;
|
|
9
|
+
knowledgeInfo?: knowledgeInfoProps;
|
|
9
10
|
initPos?: CSSProperties;
|
|
10
11
|
initStyle?: CSSProperties;
|
|
11
12
|
hoverTip?: string;
|
|
12
13
|
isDev?: boolean;
|
|
14
|
+
chatId?: number;
|
|
13
15
|
}
|
|
14
|
-
export type viewModeType = 'video' | 'course' | 'default';
|
|
16
|
+
export type viewModeType = 'video' | 'course' | 'knowledgeCard' | 'default';
|
|
15
17
|
export interface videoInfoProps {
|
|
16
18
|
name: string;
|
|
17
19
|
recordId: string;
|
|
18
20
|
description: string;
|
|
19
21
|
}
|
|
22
|
+
export interface knowledgeInfoProps {
|
|
23
|
+
knowledgeId: number;
|
|
24
|
+
content: string;
|
|
25
|
+
title: string;
|
|
26
|
+
}
|
|
20
27
|
export interface courseInfoProps {
|
|
21
28
|
id: number;
|
|
22
29
|
name: string;
|