@blueking/chat-helper 0.0.13-dev.5 → 2.4.0
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/agent/type.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ export interface IAgentInfo {
|
|
|
73
73
|
conversationSettings?: {
|
|
74
74
|
commands?: IAgentCommand[];
|
|
75
75
|
enableChatSession?: boolean;
|
|
76
|
+
enableWordSelectionPopup?: boolean;
|
|
76
77
|
openingRemark?: string;
|
|
77
78
|
predefinedQuestions?: string[];
|
|
78
79
|
};
|
|
@@ -97,6 +98,7 @@ export interface IAgentInfoApi {
|
|
|
97
98
|
conversation_settings?: {
|
|
98
99
|
commands?: IAgentCommandApi[];
|
|
99
100
|
enable_chat_session?: boolean;
|
|
101
|
+
enable_word_selection_popup?: boolean;
|
|
100
102
|
opening_remark?: string;
|
|
101
103
|
predefined_questions?: string[];
|
|
102
104
|
};
|
|
@@ -65,6 +65,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
65
65
|
};
|
|
66
66
|
}[];
|
|
67
67
|
enableChatSession?: boolean;
|
|
68
|
+
enableWordSelectionPopup?: boolean;
|
|
68
69
|
openingRemark?: string;
|
|
69
70
|
predefinedQuestions?: string[];
|
|
70
71
|
};
|
|
@@ -1082,6 +1083,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
1082
1083
|
};
|
|
1083
1084
|
}[];
|
|
1084
1085
|
enableChatSession?: boolean;
|
|
1086
|
+
enableWordSelectionPopup?: boolean;
|
|
1085
1087
|
openingRemark?: string;
|
|
1086
1088
|
predefinedQuestions?: string[];
|
|
1087
1089
|
};
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* @param data API 返回的 agent 信息数据
|
|
28
28
|
* @returns 前端使用的 agent 信息数据
|
|
29
29
|
*/ export const transferAgentInfoApi2AgentInfo = (data)=>{
|
|
30
|
-
var _data_conversation_settings, _data_conversation_settings1, _data_conversation_settings_commands, _data_conversation_settings2, _data_conversation_settings3, _data_related_skills;
|
|
30
|
+
var _data_conversation_settings, _data_conversation_settings1, _data_conversation_settings_commands, _data_conversation_settings2, _data_conversation_settings3, _data_conversation_settings4, _data_related_skills;
|
|
31
31
|
return {
|
|
32
32
|
conversationSettings: {
|
|
33
33
|
openingRemark: data === null || data === void 0 ? void 0 : (_data_conversation_settings = data.conversation_settings) === null || _data_conversation_settings === void 0 ? void 0 : _data_conversation_settings.opening_remark,
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
status: command.status,
|
|
57
57
|
supportUpload: command.support_upload
|
|
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
|
+
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,
|
|
60
|
+
enableWordSelectionPopup: data === null || data === void 0 ? void 0 : (_data_conversation_settings4 = data.conversation_settings) === null || _data_conversation_settings4 === void 0 ? void 0 : _data_conversation_settings4.enable_word_selection_popup
|
|
60
61
|
},
|
|
61
62
|
promptSetting: (data === null || data === void 0 ? void 0 : data.prompt_setting) ? {
|
|
62
63
|
content: data.prompt_setting.content,
|
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
67
67
|
};
|
|
68
68
|
}[];
|
|
69
69
|
enableChatSession?: boolean;
|
|
70
|
+
enableWordSelectionPopup?: boolean;
|
|
70
71
|
openingRemark?: string;
|
|
71
72
|
predefinedQuestions?: string[];
|
|
72
73
|
};
|
|
@@ -1084,6 +1085,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1084
1085
|
};
|
|
1085
1086
|
}[];
|
|
1086
1087
|
enableChatSession?: boolean;
|
|
1088
|
+
enableWordSelectionPopup?: boolean;
|
|
1087
1089
|
openingRemark?: string;
|
|
1088
1090
|
predefinedQuestions?: string[];
|
|
1089
1091
|
};
|