@oscloudlab/vgen-agent-assistant 0.0.8 → 0.0.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.
@@ -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
- dataBtype?: number;
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;
@@ -1,4 +1,4 @@
1
- import { VgenAgentProps } from './type';
1
+ import { VgenAgentProps, VgenAgentRefProps } from './type';
2
2
 
3
- declare const VgenAgent: import('react').ForwardRefExoticComponent<VgenAgentProps & import('react').RefAttributes<unknown>>;
3
+ declare const VgenAgent: import('react').ForwardRefExoticComponent<VgenAgentProps & import('react').RefAttributes<VgenAgentRefProps>>;
4
4
  export default VgenAgent;
@@ -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;
@@ -220,3 +227,10 @@ export interface sessionProps {
220
227
  id: number;
221
228
  summary: string;
222
229
  }
230
+ /** VgenAgent 组件 Ref 类型定义 */
231
+ export interface VgenAgentRefProps {
232
+ /** 设置引用文本并打开输入面板 */
233
+ setQuotedText: (val: string) => void;
234
+ /** 发送消息 */
235
+ sendMsg: (val: string) => void;
236
+ }