@blueking/chat-helper 0.0.1-beta.26 → 0.0.1-beta.27

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.
@@ -1,4 +1,7 @@
1
1
  import type { IMessage } from '../message/type';
2
+ export interface ISupportUpload {
3
+ vision: boolean;
4
+ }
2
5
  export interface IAgentCommand {
3
6
  agentId: number;
4
7
  alias?: string;
@@ -8,6 +11,7 @@ export interface IAgentCommand {
8
11
  id: string;
9
12
  name: string;
10
13
  status: string;
14
+ supportUpload?: ISupportUpload;
11
15
  }
12
16
  export interface IAgentCommandApi {
13
17
  agent_id: number;
@@ -19,6 +23,7 @@ export interface IAgentCommandApi {
19
23
  name: string;
20
24
  selectedText?: null | string;
21
25
  status: string;
26
+ support_upload?: ISupportUpload;
22
27
  }
23
28
  export interface IAgentCommandComponent {
24
29
  default?: null | string;
@@ -68,6 +73,7 @@ export interface IAgentInfo {
68
73
  };
69
74
  promptSetting?: {
70
75
  content?: IMessage[];
76
+ supportUpload?: ISupportUpload;
71
77
  };
72
78
  }
73
79
  export interface IAgentInfoApi {
@@ -87,6 +93,7 @@ export interface IAgentInfoApi {
87
93
  };
88
94
  prompt_setting?: {
89
95
  content?: IMessage[];
96
+ support_upload?: ISupportUpload;
90
97
  };
91
98
  }
92
99
  export interface IAgentResourceItem {
@@ -50,6 +50,9 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
50
50
  id: string;
51
51
  name: string;
52
52
  status: string;
53
+ supportUpload?: {
54
+ vision: boolean;
55
+ };
53
56
  }[];
54
57
  enableChatSession?: boolean;
55
58
  openingRemark?: string;
@@ -295,6 +298,9 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
295
298
  sessionCode?: string;
296
299
  status: MessageStatus;
297
300
  })[];
301
+ supportUpload?: {
302
+ vision: boolean;
303
+ };
298
304
  };
299
305
  }, IAgentInfo | {
300
306
  agentName?: string;
@@ -337,6 +343,9 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
337
343
  id: string;
338
344
  name: string;
339
345
  status: string;
346
+ supportUpload?: {
347
+ vision: boolean;
348
+ };
340
349
  }[];
341
350
  enableChatSession?: boolean;
342
351
  openingRemark?: string;
@@ -582,6 +591,9 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
582
591
  sessionCode?: string;
583
592
  status: MessageStatus;
584
593
  })[];
594
+ supportUpload?: {
595
+ vision: boolean;
596
+ };
585
597
  };
586
598
  }>;
587
599
  isInfoLoading: import("vue").Ref<boolean, boolean>;
@@ -53,11 +53,15 @@
53
53
  })),
54
54
  content: command.content,
55
55
  agentId: command.agent_id,
56
- status: command.status
56
+ status: command.status,
57
+ supportUpload: command.support_upload
57
58
  })),
58
59
  enableChatSession: data === null || data === void 0 ? void 0 : (_data_conversation_settings3 = data.conversation_settings) === null || _data_conversation_settings3 === void 0 ? void 0 : _data_conversation_settings3.enable_chat_session
59
60
  },
60
- promptSetting: data === null || data === void 0 ? void 0 : data.prompt_setting,
61
+ promptSetting: (data === null || data === void 0 ? void 0 : data.prompt_setting) ? {
62
+ content: data.prompt_setting.content,
63
+ supportUpload: data.prompt_setting.support_upload
64
+ } : undefined,
61
65
  agentName: data === null || data === void 0 ? void 0 : data.agent_name,
62
66
  chatGroup: (data === null || data === void 0 ? void 0 : data.chat_group) ? {
63
67
  enabled: data.chat_group.enabled,
package/dist/index.d.ts CHANGED
@@ -52,6 +52,9 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
52
52
  id: string;
53
53
  name: string;
54
54
  status: string;
55
+ supportUpload?: {
56
+ vision: boolean;
57
+ };
55
58
  }[];
56
59
  enableChatSession?: boolean;
57
60
  openingRemark?: string;
@@ -297,6 +300,9 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
297
300
  sessionCode?: string;
298
301
  status: import("./message").MessageStatus;
299
302
  })[];
303
+ supportUpload?: {
304
+ vision: boolean;
305
+ };
300
306
  };
301
307
  }, import("./agent").IAgentInfo | {
302
308
  agentName?: string;
@@ -339,6 +345,9 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
339
345
  id: string;
340
346
  name: string;
341
347
  status: string;
348
+ supportUpload?: {
349
+ vision: boolean;
350
+ };
342
351
  }[];
343
352
  enableChatSession?: boolean;
344
353
  openingRemark?: string;
@@ -584,6 +593,9 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
584
593
  sessionCode?: string;
585
594
  status: import("./message").MessageStatus;
586
595
  })[];
596
+ supportUpload?: {
597
+ vision: boolean;
598
+ };
587
599
  };
588
600
  }>;
589
601
  isInfoLoading: import("vue").Ref<boolean, boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/chat-helper",
3
- "version": "0.0.1-beta.26",
3
+ "version": "0.0.1-beta.27",
4
4
  "description": "",
5
5
  "main": "./dist/index.ts.js",
6
6
  "types": "./dist/index.d.ts",
@@ -25,4 +25,4 @@
25
25
  "typescript": "^5.5.4",
26
26
  "vue-tsc": "^3.1.4"
27
27
  }
28
- }
28
+ }