@alicloud/dianjin20240628 1.6.4 → 1.7.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/client.d.ts +1271 -165
- package/dist/client.js +1114 -226
- package/dist/client.js.map +1 -1
- package/package.json +1 -2
- package/src/client.ts +2112 -481
package/dist/client.js
CHANGED
|
@@ -36,15 +36,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
39
|
+
exports.GetDocumentUrlResponse = exports.GetDocumentUrlResponseBody = exports.GetDocumentUrlRequest = exports.GetDocumentListResponse = exports.GetDocumentListResponseBody = exports.GetDocumentListRequest = exports.GetDocumentChunkListResponse = exports.GetDocumentChunkListResponseBody = exports.GetDocumentChunkListRequest = exports.GetChatQuestionRespResponse = exports.GetChatQuestionRespResponseBody = exports.GetChatQuestionRespRequest = exports.GetAppConfigResponse = exports.GetAppConfigResponseBody = exports.GenDocQaResultResponse = exports.GenDocQaResultResponseBody = exports.GenDocQaResultRequest = exports.EvictTaskResponse = exports.EvictTaskResponseBody = exports.EvictTaskRequest = exports.DeleteLibraryResponse = exports.DeleteLibraryResponseBody = exports.DeleteLibraryRequest = exports.DeleteDocumentResponse = exports.DeleteDocumentResponseBody = exports.DeleteDocumentRequest = exports.CreateQualityCheckTaskResponse = exports.CreateQualityCheckTaskResponseBody = exports.CreateQualityCheckTaskRequest = exports.CreatePredefinedDocumentResponse = exports.CreatePredefinedDocumentResponseBody = exports.CreatePredefinedDocumentRequest = exports.CreatePdfTranslateTaskResponse = exports.CreatePdfTranslateTaskResponseBody = exports.CreatePdfTranslateTaskRequest = exports.CreateLibraryResponse = exports.CreateLibraryResponseBody = exports.CreateLibraryRequest = exports.CreateFinReportSummaryTaskResponse = exports.CreateFinReportSummaryTaskResponseBody = exports.CreateFinReportSummaryTaskRequest = exports.CreateDocsSummaryTaskResponse = exports.CreateDocsSummaryTaskResponseBody = exports.CreateDocsSummaryTaskRequest = exports.CreateDialogResponse = exports.CreateDialogResponseBody = exports.CreateDialogRequest = exports.CreateAnnualDocSummaryTaskResponse = exports.CreateAnnualDocSummaryTaskResponseBody = exports.CreateAnnualDocSummaryTaskRequest = void 0;
|
|
40
|
+
exports.RunChatResultGenerationResponseBody = exports.RunChatResultGenerationRequest = exports.RecognizeIntentionResponse = exports.RecognizeIntentionResponseBody = exports.RecognizeIntentionRequest = exports.RecallDocumentResponse = exports.RecallDocumentResponseBody = exports.RecallDocumentRequest = exports.RebuildTaskResponse = exports.RebuildTaskResponseBody = exports.RebuildTaskRequest = exports.RealTimeDialogResponse = exports.RealTimeDialogResponseBody = exports.RealTimeDialogRequest = exports.ReIndexResponse = exports.ReIndexResponseBody = exports.ReIndexRequest = exports.PreviewDocumentResponse = exports.PreviewDocumentResponseBody = exports.PreviewDocumentRequest = exports.InvokePluginResponse = exports.InvokePluginResponseBody = exports.InvokePluginRequest = exports.GetTaskStatusResponse = exports.GetTaskStatusResponseBody = exports.GetTaskStatusRequest = exports.GetTaskResultResponse = exports.GetTaskResultResponseBody = exports.GetTaskResultRequest = exports.GetSummaryTaskResultResponse = exports.GetSummaryTaskResultResponseBody = exports.GetSummaryTaskResultRequest = exports.GetQualityCheckTaskResultResponse = exports.GetQualityCheckTaskResultResponseBody = exports.GetQualityCheckTaskResultRequest = exports.GetParseResultResponse = exports.GetParseResultResponseBody = exports.GetParseResultRequest = exports.GetLibraryListResponse = exports.GetLibraryListResponseBody = exports.GetLibraryListRequest = exports.GetLibraryResponse = exports.GetLibraryResponseBody = exports.GetLibraryRequest = exports.GetHistoryListByBizTypeResponse = exports.GetHistoryListByBizTypeResponseBody = exports.GetHistoryListByBizTypeRequest = exports.GetFilterDocumentListResponse = exports.GetFilterDocumentListResponseBody = exports.GetFilterDocumentListRequest = void 0;
|
|
41
|
+
exports.GetHistoryListByBizTypeResponseBodyData = exports.GetHistoryListByBizTypeResponseBodyDataRecords = exports.GetFilterDocumentListResponseBodyData = exports.GetFilterDocumentListResponseBodyDataRecords = exports.GetFilterDocumentListRequestOr = exports.GetFilterDocumentListRequestAnd = exports.GetDocumentListResponseBodyData = exports.GetDocumentListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyData = exports.GetDocumentChunkListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyDataRecordsPos = exports.GetChatQuestionRespResponseBodyData = exports.GetChatQuestionRespResponseBodyDataQuestionList = exports.GetAppConfigResponseBodyData = exports.GenDocQaResultResponseBodyData = exports.GenDocQaResultResponseBodyDataParseQaResults = exports.CreateQualityCheckTaskResponseBodyData = exports.CreateQualityCheckTaskRequestConversationList = exports.CreateQualityCheckTaskRequestConversationListDialogueList = exports.CreatePredefinedDocumentRequestChunks = exports.CreateLibraryRequestIndexSetting = exports.CreateLibraryRequestIndexSettingVectorIndexSetting = exports.CreateLibraryRequestIndexSettingTextIndexSetting = exports.CreateLibraryRequestIndexSettingRecallStrategy = exports.CreateLibraryRequestIndexSettingQueryEnhancer = exports.CreateLibraryRequestIndexSettingModelConfig = exports.CreateLibraryRequestIndexSettingChunkStrategy = exports.CreateDocsSummaryTaskRequestDocInfos = exports.CreateDialogResponseBodyData = exports.CreateAnnualDocSummaryTaskRequestDocInfos = exports.UploadDocumentResponse = exports.UploadDocumentResponseBody = exports.UploadDocumentAdvanceRequest = exports.UploadDocumentRequest = exports.UpdateQaLibraryResponse = exports.UpdateQaLibraryResponseBody = exports.UpdateQaLibraryRequest = exports.UpdateLibraryResponse = exports.UpdateLibraryResponseBody = exports.UpdateLibraryRequest = exports.UpdateDocumentResponse = exports.UpdateDocumentResponseBody = exports.UpdateDocumentRequest = exports.SubmitChatQuestionResponse = exports.SubmitChatQuestionResponseBody = exports.SubmitChatQuestionRequest = exports.RunLibraryChatGenerationResponse = exports.RunLibraryChatGenerationResponseBody = exports.RunLibraryChatGenerationRequest = exports.RunChatResultGenerationResponse = void 0;
|
|
42
|
+
exports.RunChatResultGenerationRequestMessages = exports.RecognizeIntentionResponseBodyData = exports.RecognizeIntentionRequestIntentionList = exports.RecognizeIntentionRequestHierarchicalIntentionList = exports.RecognizeIntentionRequestGlobalIntentionList = exports.RecallDocumentResponseBodyData = exports.RecallDocumentResponseBodyDataVectorChunkList = exports.RecallDocumentResponseBodyDataVectorChunkListPos = exports.RecallDocumentResponseBodyDataTextChunkList = exports.RecallDocumentResponseBodyDataTextChunkListPos = exports.RecallDocumentResponseBodyDataDocuments = exports.RecallDocumentResponseBodyDataChunkPartList = exports.RecallDocumentResponseBodyDataChunkPartListPos = exports.RecallDocumentResponseBodyDataChunkList = exports.RecallDocumentResponseBodyDataChunkListPos = exports.RecallDocumentRequestFilters = exports.RecallDocumentRequestFiltersOr = exports.RecallDocumentRequestFiltersAnd = exports.RealTimeDialogResponseBodyChoices = exports.RealTimeDialogResponseBodyChoicesMessage = exports.RealTimeDialogResponseBodyChoicesDelta = exports.RealTimeDialogRequestConversationModel = exports.PreviewDocumentResponseBodyData = exports.GetSummaryTaskResultResponseBodyData = exports.GetSummaryTaskResultResponseBodyDataUsage = exports.GetSummaryTaskResultResponseBodyDataChoices = exports.GetSummaryTaskResultResponseBodyDataChoicesMessage = exports.GetQualityCheckTaskResultResponseBodyData = exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckList = exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue = exports.GetQualityCheckTaskResultResponseBodyDataConversationList = exports.GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList = exports.GetParseResultResponseBodyData = exports.GetLibraryListResponseBodyData = exports.GetLibraryListResponseBodyDataRecords = exports.GetLibraryListResponseBodyDataRecordsIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingVectorIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingTextIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingRecallStrategy = exports.GetLibraryListResponseBodyDataRecordsIndexSettingQueryEnhancer = exports.GetLibraryListResponseBodyDataRecordsIndexSettingModelConfig = exports.GetLibraryListResponseBodyDataRecordsIndexSettingChunkStrategy = exports.GetLibraryResponseBodyData = exports.GetLibraryResponseBodyDataIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingVectorIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingTextIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingRecallStrategy = exports.GetLibraryResponseBodyDataIndexSettingQueryEnhancer = exports.GetLibraryResponseBodyDataIndexSettingModelConfig = exports.GetLibraryResponseBodyDataIndexSettingChunkStrategy = void 0;
|
|
43
|
+
exports.UpdateQaLibraryResponseBodyData = exports.UpdateQaLibraryRequestParseQaResults = exports.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = exports.UpdateLibraryRequestIndexSettingTextIndexSetting = exports.UpdateLibraryRequestIndexSettingRecallStrategy = exports.UpdateLibraryRequestIndexSettingQueryEnhancer = exports.UpdateLibraryRequestIndexSettingModelConfig = exports.UpdateLibraryRequestIndexSettingChunkStrategy = exports.SubmitChatQuestionResponseBodyData = exports.SubmitChatQuestionRequestQuestionList = exports.RunLibraryChatGenerationRequestVectorSearchParameter = exports.RunLibraryChatGenerationRequestTextSearchParameter = exports.RunLibraryChatGenerationRequestQueryCriteria = exports.RunLibraryChatGenerationRequestQueryCriteriaOr = exports.RunLibraryChatGenerationRequestQueryCriteriaAnd = exports.RunChatResultGenerationResponseBodyUsage = exports.RunChatResultGenerationResponseBodyChoices = exports.RunChatResultGenerationResponseBodyChoicesMessage = exports.RunChatResultGenerationRequestTools = exports.RunChatResultGenerationRequestToolsFunction = exports.RunChatResultGenerationRequestToolsFunctionParameters = void 0;
|
|
43
44
|
// This file is auto-generated, don't edit it
|
|
44
45
|
/**
|
|
45
46
|
*/
|
|
46
47
|
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
47
|
-
const gateway_pop_1 = __importDefault(require("@alicloud/gateway-pop"));
|
|
48
48
|
const oss_client_1 = __importStar(require("@alicloud/oss-client")), $OSS = oss_client_1;
|
|
49
49
|
const openplatform20191219_1 = __importStar(require("@alicloud/openplatform20191219")), $OpenPlatform = openplatform20191219_1;
|
|
50
50
|
const $OSSUtil = __importStar(require("@alicloud/oss-util"));
|
|
@@ -127,6 +127,84 @@ class CreateAnnualDocSummaryTaskResponse extends $tea.Model {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
exports.CreateAnnualDocSummaryTaskResponse = CreateAnnualDocSummaryTaskResponse;
|
|
130
|
+
class CreateDialogRequest extends $tea.Model {
|
|
131
|
+
static names() {
|
|
132
|
+
return {
|
|
133
|
+
channel: 'channel',
|
|
134
|
+
enableLibrary: 'enableLibrary',
|
|
135
|
+
metaData: 'metaData',
|
|
136
|
+
playCode: 'playCode',
|
|
137
|
+
qaLibraryList: 'qaLibraryList',
|
|
138
|
+
requestId: 'requestId',
|
|
139
|
+
selfDirected: 'selfDirected',
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
static types() {
|
|
143
|
+
return {
|
|
144
|
+
channel: 'string',
|
|
145
|
+
enableLibrary: 'boolean',
|
|
146
|
+
metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
147
|
+
playCode: 'string',
|
|
148
|
+
qaLibraryList: { 'type': 'array', 'itemType': 'string' },
|
|
149
|
+
requestId: 'string',
|
|
150
|
+
selfDirected: 'boolean',
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
constructor(map) {
|
|
154
|
+
super(map);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.CreateDialogRequest = CreateDialogRequest;
|
|
158
|
+
class CreateDialogResponseBody extends $tea.Model {
|
|
159
|
+
static names() {
|
|
160
|
+
return {
|
|
161
|
+
cost: 'cost',
|
|
162
|
+
data: 'data',
|
|
163
|
+
dataType: 'dataType',
|
|
164
|
+
errCode: 'errCode',
|
|
165
|
+
message: 'message',
|
|
166
|
+
requestId: 'requestId',
|
|
167
|
+
success: 'success',
|
|
168
|
+
time: 'time',
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
static types() {
|
|
172
|
+
return {
|
|
173
|
+
cost: 'number',
|
|
174
|
+
data: CreateDialogResponseBodyData,
|
|
175
|
+
dataType: 'string',
|
|
176
|
+
errCode: 'string',
|
|
177
|
+
message: 'string',
|
|
178
|
+
requestId: 'string',
|
|
179
|
+
success: 'boolean',
|
|
180
|
+
time: 'string',
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
constructor(map) {
|
|
184
|
+
super(map);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
exports.CreateDialogResponseBody = CreateDialogResponseBody;
|
|
188
|
+
class CreateDialogResponse extends $tea.Model {
|
|
189
|
+
static names() {
|
|
190
|
+
return {
|
|
191
|
+
headers: 'headers',
|
|
192
|
+
statusCode: 'statusCode',
|
|
193
|
+
body: 'body',
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
static types() {
|
|
197
|
+
return {
|
|
198
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
199
|
+
statusCode: 'number',
|
|
200
|
+
body: CreateDialogResponseBody,
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
constructor(map) {
|
|
204
|
+
super(map);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
exports.CreateDialogResponse = CreateDialogResponse;
|
|
130
208
|
class CreateDocsSummaryTaskRequest extends $tea.Model {
|
|
131
209
|
static names() {
|
|
132
210
|
return {
|
|
@@ -763,6 +841,76 @@ class EvictTaskResponse extends $tea.Model {
|
|
|
763
841
|
}
|
|
764
842
|
}
|
|
765
843
|
exports.EvictTaskResponse = EvictTaskResponse;
|
|
844
|
+
class GenDocQaResultRequest extends $tea.Model {
|
|
845
|
+
static names() {
|
|
846
|
+
return {
|
|
847
|
+
docId: 'docId',
|
|
848
|
+
libraryId: 'libraryId',
|
|
849
|
+
requestId: 'requestId',
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
static types() {
|
|
853
|
+
return {
|
|
854
|
+
docId: 'string',
|
|
855
|
+
libraryId: 'string',
|
|
856
|
+
requestId: 'string',
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
constructor(map) {
|
|
860
|
+
super(map);
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
exports.GenDocQaResultRequest = GenDocQaResultRequest;
|
|
864
|
+
class GenDocQaResultResponseBody extends $tea.Model {
|
|
865
|
+
static names() {
|
|
866
|
+
return {
|
|
867
|
+
cost: 'cost',
|
|
868
|
+
data: 'data',
|
|
869
|
+
dataType: 'dataType',
|
|
870
|
+
errCode: 'errCode',
|
|
871
|
+
message: 'message',
|
|
872
|
+
requestId: 'requestId',
|
|
873
|
+
success: 'success',
|
|
874
|
+
time: 'time',
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
static types() {
|
|
878
|
+
return {
|
|
879
|
+
cost: 'number',
|
|
880
|
+
data: GenDocQaResultResponseBodyData,
|
|
881
|
+
dataType: 'string',
|
|
882
|
+
errCode: 'string',
|
|
883
|
+
message: 'string',
|
|
884
|
+
requestId: 'string',
|
|
885
|
+
success: 'boolean',
|
|
886
|
+
time: 'string',
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
constructor(map) {
|
|
890
|
+
super(map);
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
exports.GenDocQaResultResponseBody = GenDocQaResultResponseBody;
|
|
894
|
+
class GenDocQaResultResponse extends $tea.Model {
|
|
895
|
+
static names() {
|
|
896
|
+
return {
|
|
897
|
+
headers: 'headers',
|
|
898
|
+
statusCode: 'statusCode',
|
|
899
|
+
body: 'body',
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
static types() {
|
|
903
|
+
return {
|
|
904
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
905
|
+
statusCode: 'number',
|
|
906
|
+
body: GenDocQaResultResponseBody,
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
constructor(map) {
|
|
910
|
+
super(map);
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
exports.GenDocQaResultResponse = GenDocQaResultResponse;
|
|
766
914
|
class GetAppConfigResponseBody extends $tea.Model {
|
|
767
915
|
static names() {
|
|
768
916
|
return {
|
|
@@ -813,6 +961,74 @@ class GetAppConfigResponse extends $tea.Model {
|
|
|
813
961
|
}
|
|
814
962
|
}
|
|
815
963
|
exports.GetAppConfigResponse = GetAppConfigResponse;
|
|
964
|
+
class GetChatQuestionRespRequest extends $tea.Model {
|
|
965
|
+
static names() {
|
|
966
|
+
return {
|
|
967
|
+
batchId: 'batchId',
|
|
968
|
+
sessionId: 'sessionId',
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
static types() {
|
|
972
|
+
return {
|
|
973
|
+
batchId: 'string',
|
|
974
|
+
sessionId: 'string',
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
constructor(map) {
|
|
978
|
+
super(map);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
exports.GetChatQuestionRespRequest = GetChatQuestionRespRequest;
|
|
982
|
+
class GetChatQuestionRespResponseBody extends $tea.Model {
|
|
983
|
+
static names() {
|
|
984
|
+
return {
|
|
985
|
+
cost: 'cost',
|
|
986
|
+
data: 'data',
|
|
987
|
+
dataType: 'dataType',
|
|
988
|
+
errCode: 'errCode',
|
|
989
|
+
message: 'message',
|
|
990
|
+
requestId: 'requestId',
|
|
991
|
+
success: 'success',
|
|
992
|
+
time: 'time',
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
static types() {
|
|
996
|
+
return {
|
|
997
|
+
cost: 'number',
|
|
998
|
+
data: GetChatQuestionRespResponseBodyData,
|
|
999
|
+
dataType: 'string',
|
|
1000
|
+
errCode: 'string',
|
|
1001
|
+
message: 'string',
|
|
1002
|
+
requestId: 'string',
|
|
1003
|
+
success: 'boolean',
|
|
1004
|
+
time: 'string',
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
constructor(map) {
|
|
1008
|
+
super(map);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
exports.GetChatQuestionRespResponseBody = GetChatQuestionRespResponseBody;
|
|
1012
|
+
class GetChatQuestionRespResponse extends $tea.Model {
|
|
1013
|
+
static names() {
|
|
1014
|
+
return {
|
|
1015
|
+
headers: 'headers',
|
|
1016
|
+
statusCode: 'statusCode',
|
|
1017
|
+
body: 'body',
|
|
1018
|
+
};
|
|
1019
|
+
}
|
|
1020
|
+
static types() {
|
|
1021
|
+
return {
|
|
1022
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1023
|
+
statusCode: 'number',
|
|
1024
|
+
body: GetChatQuestionRespResponseBody,
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
constructor(map) {
|
|
1028
|
+
super(map);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
exports.GetChatQuestionRespResponse = GetChatQuestionRespResponse;
|
|
816
1032
|
class GetDocumentChunkListRequest extends $tea.Model {
|
|
817
1033
|
static names() {
|
|
818
1034
|
return {
|
|
@@ -1851,6 +2067,80 @@ class ReIndexResponse extends $tea.Model {
|
|
|
1851
2067
|
}
|
|
1852
2068
|
}
|
|
1853
2069
|
exports.ReIndexResponse = ReIndexResponse;
|
|
2070
|
+
class RealTimeDialogRequest extends $tea.Model {
|
|
2071
|
+
static names() {
|
|
2072
|
+
return {
|
|
2073
|
+
analysis: 'analysis',
|
|
2074
|
+
bizType: 'bizType',
|
|
2075
|
+
conversationModel: 'conversationModel',
|
|
2076
|
+
dialogMemoryTurns: 'dialogMemoryTurns',
|
|
2077
|
+
metaData: 'metaData',
|
|
2078
|
+
recommend: 'recommend',
|
|
2079
|
+
sessionId: 'sessionId',
|
|
2080
|
+
stream: 'stream',
|
|
2081
|
+
};
|
|
2082
|
+
}
|
|
2083
|
+
static types() {
|
|
2084
|
+
return {
|
|
2085
|
+
analysis: 'boolean',
|
|
2086
|
+
bizType: 'string',
|
|
2087
|
+
conversationModel: { 'type': 'array', 'itemType': RealTimeDialogRequestConversationModel },
|
|
2088
|
+
dialogMemoryTurns: 'number',
|
|
2089
|
+
metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2090
|
+
recommend: 'boolean',
|
|
2091
|
+
sessionId: 'string',
|
|
2092
|
+
stream: 'boolean',
|
|
2093
|
+
};
|
|
2094
|
+
}
|
|
2095
|
+
constructor(map) {
|
|
2096
|
+
super(map);
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
exports.RealTimeDialogRequest = RealTimeDialogRequest;
|
|
2100
|
+
class RealTimeDialogResponseBody extends $tea.Model {
|
|
2101
|
+
static names() {
|
|
2102
|
+
return {
|
|
2103
|
+
choices: 'choices',
|
|
2104
|
+
created: 'created',
|
|
2105
|
+
id: 'id',
|
|
2106
|
+
requestId: 'requestId',
|
|
2107
|
+
success: 'success',
|
|
2108
|
+
};
|
|
2109
|
+
}
|
|
2110
|
+
static types() {
|
|
2111
|
+
return {
|
|
2112
|
+
choices: { 'type': 'array', 'itemType': RealTimeDialogResponseBodyChoices },
|
|
2113
|
+
created: 'string',
|
|
2114
|
+
id: 'string',
|
|
2115
|
+
requestId: 'string',
|
|
2116
|
+
success: 'boolean',
|
|
2117
|
+
};
|
|
2118
|
+
}
|
|
2119
|
+
constructor(map) {
|
|
2120
|
+
super(map);
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
exports.RealTimeDialogResponseBody = RealTimeDialogResponseBody;
|
|
2124
|
+
class RealTimeDialogResponse extends $tea.Model {
|
|
2125
|
+
static names() {
|
|
2126
|
+
return {
|
|
2127
|
+
headers: 'headers',
|
|
2128
|
+
statusCode: 'statusCode',
|
|
2129
|
+
body: 'body',
|
|
2130
|
+
};
|
|
2131
|
+
}
|
|
2132
|
+
static types() {
|
|
2133
|
+
return {
|
|
2134
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2135
|
+
statusCode: 'number',
|
|
2136
|
+
body: RealTimeDialogResponseBody,
|
|
2137
|
+
};
|
|
2138
|
+
}
|
|
2139
|
+
constructor(map) {
|
|
2140
|
+
super(map);
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
exports.RealTimeDialogResponse = RealTimeDialogResponse;
|
|
1854
2144
|
class RebuildTaskRequest extends $tea.Model {
|
|
1855
2145
|
static names() {
|
|
1856
2146
|
return {
|
|
@@ -2247,29 +2537,105 @@ class RunLibraryChatGenerationResponse extends $tea.Model {
|
|
|
2247
2537
|
}
|
|
2248
2538
|
}
|
|
2249
2539
|
exports.RunLibraryChatGenerationResponse = RunLibraryChatGenerationResponse;
|
|
2250
|
-
class
|
|
2540
|
+
class SubmitChatQuestionRequest extends $tea.Model {
|
|
2251
2541
|
static names() {
|
|
2252
2542
|
return {
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2543
|
+
gmtService: 'gmtService',
|
|
2544
|
+
liveScriptContent: 'liveScriptContent',
|
|
2545
|
+
openSmallTalk: 'openSmallTalk',
|
|
2546
|
+
questionList: 'questionList',
|
|
2547
|
+
requestId: 'requestId',
|
|
2548
|
+
sessionId: 'sessionId',
|
|
2257
2549
|
};
|
|
2258
2550
|
}
|
|
2259
2551
|
static types() {
|
|
2260
2552
|
return {
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2553
|
+
gmtService: 'string',
|
|
2554
|
+
liveScriptContent: 'string',
|
|
2555
|
+
openSmallTalk: 'boolean',
|
|
2556
|
+
questionList: { 'type': 'array', 'itemType': SubmitChatQuestionRequestQuestionList },
|
|
2557
|
+
requestId: 'string',
|
|
2558
|
+
sessionId: 'string',
|
|
2265
2559
|
};
|
|
2266
2560
|
}
|
|
2267
2561
|
constructor(map) {
|
|
2268
2562
|
super(map);
|
|
2269
2563
|
}
|
|
2270
2564
|
}
|
|
2271
|
-
exports.
|
|
2272
|
-
class
|
|
2565
|
+
exports.SubmitChatQuestionRequest = SubmitChatQuestionRequest;
|
|
2566
|
+
class SubmitChatQuestionResponseBody extends $tea.Model {
|
|
2567
|
+
static names() {
|
|
2568
|
+
return {
|
|
2569
|
+
cost: 'cost',
|
|
2570
|
+
data: 'data',
|
|
2571
|
+
dataType: 'dataType',
|
|
2572
|
+
errCode: 'errCode',
|
|
2573
|
+
message: 'message',
|
|
2574
|
+
requestId: 'requestId',
|
|
2575
|
+
success: 'success',
|
|
2576
|
+
time: 'time',
|
|
2577
|
+
};
|
|
2578
|
+
}
|
|
2579
|
+
static types() {
|
|
2580
|
+
return {
|
|
2581
|
+
cost: 'number',
|
|
2582
|
+
data: SubmitChatQuestionResponseBodyData,
|
|
2583
|
+
dataType: 'string',
|
|
2584
|
+
errCode: 'string',
|
|
2585
|
+
message: 'string',
|
|
2586
|
+
requestId: 'string',
|
|
2587
|
+
success: 'boolean',
|
|
2588
|
+
time: 'string',
|
|
2589
|
+
};
|
|
2590
|
+
}
|
|
2591
|
+
constructor(map) {
|
|
2592
|
+
super(map);
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
exports.SubmitChatQuestionResponseBody = SubmitChatQuestionResponseBody;
|
|
2596
|
+
class SubmitChatQuestionResponse extends $tea.Model {
|
|
2597
|
+
static names() {
|
|
2598
|
+
return {
|
|
2599
|
+
headers: 'headers',
|
|
2600
|
+
statusCode: 'statusCode',
|
|
2601
|
+
body: 'body',
|
|
2602
|
+
};
|
|
2603
|
+
}
|
|
2604
|
+
static types() {
|
|
2605
|
+
return {
|
|
2606
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2607
|
+
statusCode: 'number',
|
|
2608
|
+
body: SubmitChatQuestionResponseBody,
|
|
2609
|
+
};
|
|
2610
|
+
}
|
|
2611
|
+
constructor(map) {
|
|
2612
|
+
super(map);
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
exports.SubmitChatQuestionResponse = SubmitChatQuestionResponse;
|
|
2616
|
+
class UpdateDocumentRequest extends $tea.Model {
|
|
2617
|
+
static names() {
|
|
2618
|
+
return {
|
|
2619
|
+
docId: 'docId',
|
|
2620
|
+
libraryId: 'libraryId',
|
|
2621
|
+
meta: 'meta',
|
|
2622
|
+
title: 'title',
|
|
2623
|
+
};
|
|
2624
|
+
}
|
|
2625
|
+
static types() {
|
|
2626
|
+
return {
|
|
2627
|
+
docId: 'string',
|
|
2628
|
+
libraryId: 'string',
|
|
2629
|
+
meta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2630
|
+
title: 'string',
|
|
2631
|
+
};
|
|
2632
|
+
}
|
|
2633
|
+
constructor(map) {
|
|
2634
|
+
super(map);
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
exports.UpdateDocumentRequest = UpdateDocumentRequest;
|
|
2638
|
+
class UpdateDocumentResponseBody extends $tea.Model {
|
|
2273
2639
|
static names() {
|
|
2274
2640
|
return {
|
|
2275
2641
|
cost: 'cost',
|
|
@@ -2391,6 +2757,76 @@ class UpdateLibraryResponse extends $tea.Model {
|
|
|
2391
2757
|
}
|
|
2392
2758
|
}
|
|
2393
2759
|
exports.UpdateLibraryResponse = UpdateLibraryResponse;
|
|
2760
|
+
class UpdateQaLibraryRequest extends $tea.Model {
|
|
2761
|
+
static names() {
|
|
2762
|
+
return {
|
|
2763
|
+
parseQaResults: 'parseQaResults',
|
|
2764
|
+
qaLibraryId: 'qaLibraryId',
|
|
2765
|
+
requestId: 'requestId',
|
|
2766
|
+
};
|
|
2767
|
+
}
|
|
2768
|
+
static types() {
|
|
2769
|
+
return {
|
|
2770
|
+
parseQaResults: { 'type': 'array', 'itemType': UpdateQaLibraryRequestParseQaResults },
|
|
2771
|
+
qaLibraryId: 'string',
|
|
2772
|
+
requestId: 'string',
|
|
2773
|
+
};
|
|
2774
|
+
}
|
|
2775
|
+
constructor(map) {
|
|
2776
|
+
super(map);
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
exports.UpdateQaLibraryRequest = UpdateQaLibraryRequest;
|
|
2780
|
+
class UpdateQaLibraryResponseBody extends $tea.Model {
|
|
2781
|
+
static names() {
|
|
2782
|
+
return {
|
|
2783
|
+
cost: 'cost',
|
|
2784
|
+
data: 'data',
|
|
2785
|
+
dataType: 'dataType',
|
|
2786
|
+
errCode: 'errCode',
|
|
2787
|
+
message: 'message',
|
|
2788
|
+
requestId: 'requestId',
|
|
2789
|
+
success: 'success',
|
|
2790
|
+
time: 'time',
|
|
2791
|
+
};
|
|
2792
|
+
}
|
|
2793
|
+
static types() {
|
|
2794
|
+
return {
|
|
2795
|
+
cost: 'number',
|
|
2796
|
+
data: UpdateQaLibraryResponseBodyData,
|
|
2797
|
+
dataType: 'string',
|
|
2798
|
+
errCode: 'string',
|
|
2799
|
+
message: 'string',
|
|
2800
|
+
requestId: 'string',
|
|
2801
|
+
success: 'boolean',
|
|
2802
|
+
time: 'string',
|
|
2803
|
+
};
|
|
2804
|
+
}
|
|
2805
|
+
constructor(map) {
|
|
2806
|
+
super(map);
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
exports.UpdateQaLibraryResponseBody = UpdateQaLibraryResponseBody;
|
|
2810
|
+
class UpdateQaLibraryResponse extends $tea.Model {
|
|
2811
|
+
static names() {
|
|
2812
|
+
return {
|
|
2813
|
+
headers: 'headers',
|
|
2814
|
+
statusCode: 'statusCode',
|
|
2815
|
+
body: 'body',
|
|
2816
|
+
};
|
|
2817
|
+
}
|
|
2818
|
+
static types() {
|
|
2819
|
+
return {
|
|
2820
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2821
|
+
statusCode: 'number',
|
|
2822
|
+
body: UpdateQaLibraryResponseBody,
|
|
2823
|
+
};
|
|
2824
|
+
}
|
|
2825
|
+
constructor(map) {
|
|
2826
|
+
super(map);
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
exports.UpdateQaLibraryResponse = UpdateQaLibraryResponse;
|
|
2394
2830
|
class UploadDocumentRequest extends $tea.Model {
|
|
2395
2831
|
static names() {
|
|
2396
2832
|
return {
|
|
@@ -2509,6 +2945,24 @@ class CreateAnnualDocSummaryTaskRequestDocInfos extends $tea.Model {
|
|
|
2509
2945
|
}
|
|
2510
2946
|
}
|
|
2511
2947
|
exports.CreateAnnualDocSummaryTaskRequestDocInfos = CreateAnnualDocSummaryTaskRequestDocInfos;
|
|
2948
|
+
class CreateDialogResponseBodyData extends $tea.Model {
|
|
2949
|
+
static names() {
|
|
2950
|
+
return {
|
|
2951
|
+
openingRemarks: 'openingRemarks',
|
|
2952
|
+
sessionId: 'sessionId',
|
|
2953
|
+
};
|
|
2954
|
+
}
|
|
2955
|
+
static types() {
|
|
2956
|
+
return {
|
|
2957
|
+
openingRemarks: 'string',
|
|
2958
|
+
sessionId: 'string',
|
|
2959
|
+
};
|
|
2960
|
+
}
|
|
2961
|
+
constructor(map) {
|
|
2962
|
+
super(map);
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
exports.CreateDialogResponseBodyData = CreateDialogResponseBodyData;
|
|
2512
2966
|
class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
|
|
2513
2967
|
static names() {
|
|
2514
2968
|
return {
|
|
@@ -2803,6 +3257,46 @@ class CreateQualityCheckTaskResponseBodyData extends $tea.Model {
|
|
|
2803
3257
|
}
|
|
2804
3258
|
}
|
|
2805
3259
|
exports.CreateQualityCheckTaskResponseBodyData = CreateQualityCheckTaskResponseBodyData;
|
|
3260
|
+
class GenDocQaResultResponseBodyDataParseQaResults extends $tea.Model {
|
|
3261
|
+
static names() {
|
|
3262
|
+
return {
|
|
3263
|
+
answer: 'answer',
|
|
3264
|
+
question: 'question',
|
|
3265
|
+
};
|
|
3266
|
+
}
|
|
3267
|
+
static types() {
|
|
3268
|
+
return {
|
|
3269
|
+
answer: 'string',
|
|
3270
|
+
question: 'string',
|
|
3271
|
+
};
|
|
3272
|
+
}
|
|
3273
|
+
constructor(map) {
|
|
3274
|
+
super(map);
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
exports.GenDocQaResultResponseBodyDataParseQaResults = GenDocQaResultResponseBodyDataParseQaResults;
|
|
3278
|
+
class GenDocQaResultResponseBodyData extends $tea.Model {
|
|
3279
|
+
static names() {
|
|
3280
|
+
return {
|
|
3281
|
+
currentStatus: 'currentStatus',
|
|
3282
|
+
docId: 'docId',
|
|
3283
|
+
libraryId: 'libraryId',
|
|
3284
|
+
parseQaResults: 'parseQaResults',
|
|
3285
|
+
};
|
|
3286
|
+
}
|
|
3287
|
+
static types() {
|
|
3288
|
+
return {
|
|
3289
|
+
currentStatus: 'string',
|
|
3290
|
+
docId: 'string',
|
|
3291
|
+
libraryId: 'string',
|
|
3292
|
+
parseQaResults: { 'type': 'array', 'itemType': GenDocQaResultResponseBodyDataParseQaResults },
|
|
3293
|
+
};
|
|
3294
|
+
}
|
|
3295
|
+
constructor(map) {
|
|
3296
|
+
super(map);
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
exports.GenDocQaResultResponseBodyData = GenDocQaResultResponseBodyData;
|
|
2806
3300
|
class GetAppConfigResponseBodyData extends $tea.Model {
|
|
2807
3301
|
static names() {
|
|
2808
3302
|
return {
|
|
@@ -2829,6 +3323,52 @@ class GetAppConfigResponseBodyData extends $tea.Model {
|
|
|
2829
3323
|
}
|
|
2830
3324
|
}
|
|
2831
3325
|
exports.GetAppConfigResponseBodyData = GetAppConfigResponseBodyData;
|
|
3326
|
+
class GetChatQuestionRespResponseBodyDataQuestionList extends $tea.Model {
|
|
3327
|
+
static names() {
|
|
3328
|
+
return {
|
|
3329
|
+
content: 'content',
|
|
3330
|
+
gmtCreate: 'gmtCreate',
|
|
3331
|
+
reply: 'reply',
|
|
3332
|
+
sessionId: 'sessionId',
|
|
3333
|
+
type: 'type',
|
|
3334
|
+
userId: 'userId',
|
|
3335
|
+
userName: 'userName',
|
|
3336
|
+
};
|
|
3337
|
+
}
|
|
3338
|
+
static types() {
|
|
3339
|
+
return {
|
|
3340
|
+
content: 'string',
|
|
3341
|
+
gmtCreate: 'string',
|
|
3342
|
+
reply: 'string',
|
|
3343
|
+
sessionId: 'string',
|
|
3344
|
+
type: 'string',
|
|
3345
|
+
userId: 'string',
|
|
3346
|
+
userName: 'string',
|
|
3347
|
+
};
|
|
3348
|
+
}
|
|
3349
|
+
constructor(map) {
|
|
3350
|
+
super(map);
|
|
3351
|
+
}
|
|
3352
|
+
}
|
|
3353
|
+
exports.GetChatQuestionRespResponseBodyDataQuestionList = GetChatQuestionRespResponseBodyDataQuestionList;
|
|
3354
|
+
class GetChatQuestionRespResponseBodyData extends $tea.Model {
|
|
3355
|
+
static names() {
|
|
3356
|
+
return {
|
|
3357
|
+
currentState: 'currentState',
|
|
3358
|
+
questionList: 'questionList',
|
|
3359
|
+
};
|
|
3360
|
+
}
|
|
3361
|
+
static types() {
|
|
3362
|
+
return {
|
|
3363
|
+
currentState: 'string',
|
|
3364
|
+
questionList: { 'type': 'array', 'itemType': GetChatQuestionRespResponseBodyDataQuestionList },
|
|
3365
|
+
};
|
|
3366
|
+
}
|
|
3367
|
+
constructor(map) {
|
|
3368
|
+
super(map);
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3371
|
+
exports.GetChatQuestionRespResponseBodyData = GetChatQuestionRespResponseBodyData;
|
|
2832
3372
|
class GetDocumentChunkListResponseBodyDataRecordsPos extends $tea.Model {
|
|
2833
3373
|
static names() {
|
|
2834
3374
|
return {
|
|
@@ -3867,6 +4407,128 @@ class PreviewDocumentResponseBodyData extends $tea.Model {
|
|
|
3867
4407
|
}
|
|
3868
4408
|
}
|
|
3869
4409
|
exports.PreviewDocumentResponseBodyData = PreviewDocumentResponseBodyData;
|
|
4410
|
+
class RealTimeDialogRequestConversationModel extends $tea.Model {
|
|
4411
|
+
static names() {
|
|
4412
|
+
return {
|
|
4413
|
+
begin: 'begin',
|
|
4414
|
+
beginTime: 'beginTime',
|
|
4415
|
+
content: 'content',
|
|
4416
|
+
customerId: 'customerId',
|
|
4417
|
+
customerServiceId: 'customerServiceId',
|
|
4418
|
+
customerServiceType: 'customerServiceType',
|
|
4419
|
+
end: 'end',
|
|
4420
|
+
role: 'role',
|
|
4421
|
+
type: 'type',
|
|
4422
|
+
};
|
|
4423
|
+
}
|
|
4424
|
+
static types() {
|
|
4425
|
+
return {
|
|
4426
|
+
begin: 'number',
|
|
4427
|
+
beginTime: 'string',
|
|
4428
|
+
content: 'string',
|
|
4429
|
+
customerId: 'string',
|
|
4430
|
+
customerServiceId: 'string',
|
|
4431
|
+
customerServiceType: 'string',
|
|
4432
|
+
end: 'number',
|
|
4433
|
+
role: 'number',
|
|
4434
|
+
type: 'string',
|
|
4435
|
+
};
|
|
4436
|
+
}
|
|
4437
|
+
constructor(map) {
|
|
4438
|
+
super(map);
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4441
|
+
exports.RealTimeDialogRequestConversationModel = RealTimeDialogRequestConversationModel;
|
|
4442
|
+
class RealTimeDialogResponseBodyChoicesDelta extends $tea.Model {
|
|
4443
|
+
static names() {
|
|
4444
|
+
return {
|
|
4445
|
+
analysisProcess: 'analysisProcess',
|
|
4446
|
+
callTime: 'callTime',
|
|
4447
|
+
hangUpDialog: 'hangUpDialog',
|
|
4448
|
+
intentionCode: 'intentionCode',
|
|
4449
|
+
intentionName: 'intentionName',
|
|
4450
|
+
intentionScript: 'intentionScript',
|
|
4451
|
+
recommendIntention: 'recommendIntention',
|
|
4452
|
+
recommendScript: 'recommendScript',
|
|
4453
|
+
selfDirectedScript: 'selfDirectedScript',
|
|
4454
|
+
selfDirectedScriptFullContent: 'selfDirectedScriptFullContent',
|
|
4455
|
+
};
|
|
4456
|
+
}
|
|
4457
|
+
static types() {
|
|
4458
|
+
return {
|
|
4459
|
+
analysisProcess: 'string',
|
|
4460
|
+
callTime: 'string',
|
|
4461
|
+
hangUpDialog: 'boolean',
|
|
4462
|
+
intentionCode: 'string',
|
|
4463
|
+
intentionName: 'string',
|
|
4464
|
+
intentionScript: 'string',
|
|
4465
|
+
recommendIntention: 'string',
|
|
4466
|
+
recommendScript: 'string',
|
|
4467
|
+
selfDirectedScript: 'string',
|
|
4468
|
+
selfDirectedScriptFullContent: 'string',
|
|
4469
|
+
};
|
|
4470
|
+
}
|
|
4471
|
+
constructor(map) {
|
|
4472
|
+
super(map);
|
|
4473
|
+
}
|
|
4474
|
+
}
|
|
4475
|
+
exports.RealTimeDialogResponseBodyChoicesDelta = RealTimeDialogResponseBodyChoicesDelta;
|
|
4476
|
+
class RealTimeDialogResponseBodyChoicesMessage extends $tea.Model {
|
|
4477
|
+
static names() {
|
|
4478
|
+
return {
|
|
4479
|
+
analysisProcess: 'analysisProcess',
|
|
4480
|
+
callTime: 'callTime',
|
|
4481
|
+
hangUpDialog: 'hangUpDialog',
|
|
4482
|
+
intentionCode: 'intentionCode',
|
|
4483
|
+
intentionName: 'intentionName',
|
|
4484
|
+
intentionScript: 'intentionScript',
|
|
4485
|
+
recommendIntention: 'recommendIntention',
|
|
4486
|
+
recommendScript: 'recommendScript',
|
|
4487
|
+
selfDirectedScript: 'selfDirectedScript',
|
|
4488
|
+
selfDirectedScriptFullContent: 'selfDirectedScriptFullContent',
|
|
4489
|
+
};
|
|
4490
|
+
}
|
|
4491
|
+
static types() {
|
|
4492
|
+
return {
|
|
4493
|
+
analysisProcess: 'string',
|
|
4494
|
+
callTime: 'string',
|
|
4495
|
+
hangUpDialog: 'boolean',
|
|
4496
|
+
intentionCode: 'string',
|
|
4497
|
+
intentionName: 'string',
|
|
4498
|
+
intentionScript: 'string',
|
|
4499
|
+
recommendIntention: 'string',
|
|
4500
|
+
recommendScript: 'string',
|
|
4501
|
+
selfDirectedScript: 'string',
|
|
4502
|
+
selfDirectedScriptFullContent: 'string',
|
|
4503
|
+
};
|
|
4504
|
+
}
|
|
4505
|
+
constructor(map) {
|
|
4506
|
+
super(map);
|
|
4507
|
+
}
|
|
4508
|
+
}
|
|
4509
|
+
exports.RealTimeDialogResponseBodyChoicesMessage = RealTimeDialogResponseBodyChoicesMessage;
|
|
4510
|
+
class RealTimeDialogResponseBodyChoices extends $tea.Model {
|
|
4511
|
+
static names() {
|
|
4512
|
+
return {
|
|
4513
|
+
delta: 'delta',
|
|
4514
|
+
finishReason: 'finishReason',
|
|
4515
|
+
index: 'index',
|
|
4516
|
+
message: 'message',
|
|
4517
|
+
};
|
|
4518
|
+
}
|
|
4519
|
+
static types() {
|
|
4520
|
+
return {
|
|
4521
|
+
delta: RealTimeDialogResponseBodyChoicesDelta,
|
|
4522
|
+
finishReason: 'string',
|
|
4523
|
+
index: 'number',
|
|
4524
|
+
message: RealTimeDialogResponseBodyChoicesMessage,
|
|
4525
|
+
};
|
|
4526
|
+
}
|
|
4527
|
+
constructor(map) {
|
|
4528
|
+
super(map);
|
|
4529
|
+
}
|
|
4530
|
+
}
|
|
4531
|
+
exports.RealTimeDialogResponseBodyChoices = RealTimeDialogResponseBodyChoices;
|
|
3870
4532
|
class RecallDocumentRequestFiltersAnd extends $tea.Model {
|
|
3871
4533
|
static names() {
|
|
3872
4534
|
return {
|
|
@@ -4575,6 +5237,50 @@ class RunLibraryChatGenerationRequestVectorSearchParameter extends $tea.Model {
|
|
|
4575
5237
|
}
|
|
4576
5238
|
}
|
|
4577
5239
|
exports.RunLibraryChatGenerationRequestVectorSearchParameter = RunLibraryChatGenerationRequestVectorSearchParameter;
|
|
5240
|
+
class SubmitChatQuestionRequestQuestionList extends $tea.Model {
|
|
5241
|
+
static names() {
|
|
5242
|
+
return {
|
|
5243
|
+
content: 'content',
|
|
5244
|
+
gmtCreate: 'gmtCreate',
|
|
5245
|
+
reply: 'reply',
|
|
5246
|
+
sessionId: 'sessionId',
|
|
5247
|
+
type: 'type',
|
|
5248
|
+
userId: 'userId',
|
|
5249
|
+
userName: 'userName',
|
|
5250
|
+
};
|
|
5251
|
+
}
|
|
5252
|
+
static types() {
|
|
5253
|
+
return {
|
|
5254
|
+
content: 'string',
|
|
5255
|
+
gmtCreate: 'string',
|
|
5256
|
+
reply: 'string',
|
|
5257
|
+
sessionId: 'string',
|
|
5258
|
+
type: 'string',
|
|
5259
|
+
userId: 'string',
|
|
5260
|
+
userName: 'string',
|
|
5261
|
+
};
|
|
5262
|
+
}
|
|
5263
|
+
constructor(map) {
|
|
5264
|
+
super(map);
|
|
5265
|
+
}
|
|
5266
|
+
}
|
|
5267
|
+
exports.SubmitChatQuestionRequestQuestionList = SubmitChatQuestionRequestQuestionList;
|
|
5268
|
+
class SubmitChatQuestionResponseBodyData extends $tea.Model {
|
|
5269
|
+
static names() {
|
|
5270
|
+
return {
|
|
5271
|
+
batchId: 'batchId',
|
|
5272
|
+
};
|
|
5273
|
+
}
|
|
5274
|
+
static types() {
|
|
5275
|
+
return {
|
|
5276
|
+
batchId: 'string',
|
|
5277
|
+
};
|
|
5278
|
+
}
|
|
5279
|
+
constructor(map) {
|
|
5280
|
+
super(map);
|
|
5281
|
+
}
|
|
5282
|
+
}
|
|
5283
|
+
exports.SubmitChatQuestionResponseBodyData = SubmitChatQuestionResponseBodyData;
|
|
4578
5284
|
class UpdateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
|
|
4579
5285
|
static names() {
|
|
4580
5286
|
return {
|
|
@@ -4749,12 +5455,43 @@ class UpdateLibraryRequestIndexSetting extends $tea.Model {
|
|
|
4749
5455
|
}
|
|
4750
5456
|
}
|
|
4751
5457
|
exports.UpdateLibraryRequestIndexSetting = UpdateLibraryRequestIndexSetting;
|
|
5458
|
+
class UpdateQaLibraryRequestParseQaResults extends $tea.Model {
|
|
5459
|
+
static names() {
|
|
5460
|
+
return {
|
|
5461
|
+
answer: 'answer',
|
|
5462
|
+
question: 'question',
|
|
5463
|
+
};
|
|
5464
|
+
}
|
|
5465
|
+
static types() {
|
|
5466
|
+
return {
|
|
5467
|
+
answer: 'string',
|
|
5468
|
+
question: 'string',
|
|
5469
|
+
};
|
|
5470
|
+
}
|
|
5471
|
+
constructor(map) {
|
|
5472
|
+
super(map);
|
|
5473
|
+
}
|
|
5474
|
+
}
|
|
5475
|
+
exports.UpdateQaLibraryRequestParseQaResults = UpdateQaLibraryRequestParseQaResults;
|
|
5476
|
+
class UpdateQaLibraryResponseBodyData extends $tea.Model {
|
|
5477
|
+
static names() {
|
|
5478
|
+
return {
|
|
5479
|
+
qaLibraryId: 'qaLibraryId',
|
|
5480
|
+
};
|
|
5481
|
+
}
|
|
5482
|
+
static types() {
|
|
5483
|
+
return {
|
|
5484
|
+
qaLibraryId: 'string',
|
|
5485
|
+
};
|
|
5486
|
+
}
|
|
5487
|
+
constructor(map) {
|
|
5488
|
+
super(map);
|
|
5489
|
+
}
|
|
5490
|
+
}
|
|
5491
|
+
exports.UpdateQaLibraryResponseBodyData = UpdateQaLibraryResponseBodyData;
|
|
4752
5492
|
class Client extends openapi_client_1.default {
|
|
4753
5493
|
constructor(config) {
|
|
4754
5494
|
super(config);
|
|
4755
|
-
this._productId = "DianJin";
|
|
4756
|
-
let gatewayClient = new gateway_pop_1.default();
|
|
4757
|
-
this._spi = gatewayClient;
|
|
4758
5495
|
this._endpointRule = "";
|
|
4759
5496
|
this.checkConfig(config);
|
|
4760
5497
|
this._endpoint = this.getEndpoint("dianjin", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -4809,23 +5546,78 @@ class Client extends openapi_client_1.default {
|
|
|
4809
5546
|
reqBodyType: "json",
|
|
4810
5547
|
bodyType: "json",
|
|
4811
5548
|
});
|
|
4812
|
-
|
|
4813
|
-
|
|
5549
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
|
|
5550
|
+
}
|
|
5551
|
+
/**
|
|
5552
|
+
* 创建按年文档总结任务
|
|
5553
|
+
*
|
|
5554
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
5555
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
5556
|
+
*/
|
|
5557
|
+
async createAnnualDocSummaryTask(workspaceId, request) {
|
|
5558
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5559
|
+
let headers = {};
|
|
5560
|
+
return await this.createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime);
|
|
5561
|
+
}
|
|
5562
|
+
/**
|
|
5563
|
+
* 创建外呼会话
|
|
5564
|
+
*
|
|
5565
|
+
* @param request - CreateDialogRequest
|
|
5566
|
+
* @param headers - map
|
|
5567
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5568
|
+
* @returns CreateDialogResponse
|
|
5569
|
+
*/
|
|
5570
|
+
async createDialogWithOptions(workspaceId, request, headers, runtime) {
|
|
5571
|
+
tea_util_1.default.validateModel(request);
|
|
5572
|
+
let body = {};
|
|
5573
|
+
if (!tea_util_1.default.isUnset(request.channel)) {
|
|
5574
|
+
body["channel"] = request.channel;
|
|
5575
|
+
}
|
|
5576
|
+
if (!tea_util_1.default.isUnset(request.enableLibrary)) {
|
|
5577
|
+
body["enableLibrary"] = request.enableLibrary;
|
|
5578
|
+
}
|
|
5579
|
+
if (!tea_util_1.default.isUnset(request.metaData)) {
|
|
5580
|
+
body["metaData"] = request.metaData;
|
|
4814
5581
|
}
|
|
4815
|
-
|
|
4816
|
-
|
|
5582
|
+
if (!tea_util_1.default.isUnset(request.playCode)) {
|
|
5583
|
+
body["playCode"] = request.playCode;
|
|
4817
5584
|
}
|
|
5585
|
+
if (!tea_util_1.default.isUnset(request.qaLibraryList)) {
|
|
5586
|
+
body["qaLibraryList"] = request.qaLibraryList;
|
|
5587
|
+
}
|
|
5588
|
+
if (!tea_util_1.default.isUnset(request.requestId)) {
|
|
5589
|
+
body["requestId"] = request.requestId;
|
|
5590
|
+
}
|
|
5591
|
+
if (!tea_util_1.default.isUnset(request.selfDirected)) {
|
|
5592
|
+
body["selfDirected"] = request.selfDirected;
|
|
5593
|
+
}
|
|
5594
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5595
|
+
headers: headers,
|
|
5596
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
5597
|
+
});
|
|
5598
|
+
let params = new $OpenApi.Params({
|
|
5599
|
+
action: "CreateDialog",
|
|
5600
|
+
version: "2024-06-28",
|
|
5601
|
+
protocol: "HTTPS",
|
|
5602
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/dialog/create`,
|
|
5603
|
+
method: "POST",
|
|
5604
|
+
authType: "AK",
|
|
5605
|
+
style: "ROA",
|
|
5606
|
+
reqBodyType: "json",
|
|
5607
|
+
bodyType: "json",
|
|
5608
|
+
});
|
|
5609
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateDialogResponse({}));
|
|
4818
5610
|
}
|
|
4819
5611
|
/**
|
|
4820
|
-
*
|
|
5612
|
+
* 创建外呼会话
|
|
4821
5613
|
*
|
|
4822
|
-
* @param request -
|
|
4823
|
-
* @returns
|
|
5614
|
+
* @param request - CreateDialogRequest
|
|
5615
|
+
* @returns CreateDialogResponse
|
|
4824
5616
|
*/
|
|
4825
|
-
async
|
|
5617
|
+
async createDialog(workspaceId, request) {
|
|
4826
5618
|
let runtime = new $Util.RuntimeOptions({});
|
|
4827
5619
|
let headers = {};
|
|
4828
|
-
return await this.
|
|
5620
|
+
return await this.createDialogWithOptions(workspaceId, request, headers, runtime);
|
|
4829
5621
|
}
|
|
4830
5622
|
/**
|
|
4831
5623
|
* 创建财报总结任务
|
|
@@ -4865,12 +5657,7 @@ class Client extends openapi_client_1.default {
|
|
|
4865
5657
|
reqBodyType: "json",
|
|
4866
5658
|
bodyType: "json",
|
|
4867
5659
|
});
|
|
4868
|
-
|
|
4869
|
-
return $tea.cast(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
|
|
4870
|
-
}
|
|
4871
|
-
else {
|
|
4872
|
-
return $tea.cast(await this.execute(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
|
|
4873
|
-
}
|
|
5660
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
|
|
4874
5661
|
}
|
|
4875
5662
|
/**
|
|
4876
5663
|
* 创建财报总结任务
|
|
@@ -4933,12 +5720,7 @@ class Client extends openapi_client_1.default {
|
|
|
4933
5720
|
reqBodyType: "json",
|
|
4934
5721
|
bodyType: "json",
|
|
4935
5722
|
});
|
|
4936
|
-
|
|
4937
|
-
return $tea.cast(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
|
|
4938
|
-
}
|
|
4939
|
-
else {
|
|
4940
|
-
return $tea.cast(await this.execute(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
|
|
4941
|
-
}
|
|
5723
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
|
|
4942
5724
|
}
|
|
4943
5725
|
/**
|
|
4944
5726
|
* 创建财报总结任务
|
|
@@ -4986,12 +5768,7 @@ class Client extends openapi_client_1.default {
|
|
|
4986
5768
|
reqBodyType: "json",
|
|
4987
5769
|
bodyType: "json",
|
|
4988
5770
|
});
|
|
4989
|
-
|
|
4990
|
-
return $tea.cast(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
|
|
4991
|
-
}
|
|
4992
|
-
else {
|
|
4993
|
-
return $tea.cast(await this.execute(params, req, runtime), new CreateLibraryResponse({}));
|
|
4994
|
-
}
|
|
5771
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
|
|
4995
5772
|
}
|
|
4996
5773
|
/**
|
|
4997
5774
|
* 创建文档库
|
|
@@ -5045,12 +5822,7 @@ class Client extends openapi_client_1.default {
|
|
|
5045
5822
|
reqBodyType: "json",
|
|
5046
5823
|
bodyType: "json",
|
|
5047
5824
|
});
|
|
5048
|
-
|
|
5049
|
-
return $tea.cast(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
|
|
5050
|
-
}
|
|
5051
|
-
else {
|
|
5052
|
-
return $tea.cast(await this.execute(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
|
|
5053
|
-
}
|
|
5825
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
|
|
5054
5826
|
}
|
|
5055
5827
|
/**
|
|
5056
5828
|
* 创建PDF翻译任务
|
|
@@ -5101,12 +5873,7 @@ class Client extends openapi_client_1.default {
|
|
|
5101
5873
|
reqBodyType: "json",
|
|
5102
5874
|
bodyType: "json",
|
|
5103
5875
|
});
|
|
5104
|
-
|
|
5105
|
-
return $tea.cast(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
|
|
5106
|
-
}
|
|
5107
|
-
else {
|
|
5108
|
-
return $tea.cast(await this.execute(params, req, runtime), new CreatePredefinedDocumentResponse({}));
|
|
5109
|
-
}
|
|
5876
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
|
|
5110
5877
|
}
|
|
5111
5878
|
/**
|
|
5112
5879
|
* 创建预定义文档
|
|
@@ -5163,12 +5930,7 @@ class Client extends openapi_client_1.default {
|
|
|
5163
5930
|
reqBodyType: "json",
|
|
5164
5931
|
bodyType: "json",
|
|
5165
5932
|
});
|
|
5166
|
-
|
|
5167
|
-
return $tea.cast(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
|
|
5168
|
-
}
|
|
5169
|
-
else {
|
|
5170
|
-
return $tea.cast(await this.execute(params, req, runtime), new CreateQualityCheckTaskResponse({}));
|
|
5171
|
-
}
|
|
5933
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
|
|
5172
5934
|
}
|
|
5173
5935
|
/**
|
|
5174
5936
|
* 创建财报总结的任务
|
|
@@ -5213,12 +5975,7 @@ class Client extends openapi_client_1.default {
|
|
|
5213
5975
|
reqBodyType: "json",
|
|
5214
5976
|
bodyType: "json",
|
|
5215
5977
|
});
|
|
5216
|
-
|
|
5217
|
-
return $tea.cast(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
|
|
5218
|
-
}
|
|
5219
|
-
else {
|
|
5220
|
-
return $tea.cast(await this.execute(params, req, runtime), new DeleteDocumentResponse({}));
|
|
5221
|
-
}
|
|
5978
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
|
|
5222
5979
|
}
|
|
5223
5980
|
/**
|
|
5224
5981
|
* 删除文档
|
|
@@ -5260,12 +6017,7 @@ class Client extends openapi_client_1.default {
|
|
|
5260
6017
|
reqBodyType: "json",
|
|
5261
6018
|
bodyType: "json",
|
|
5262
6019
|
});
|
|
5263
|
-
|
|
5264
|
-
return $tea.cast(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
|
|
5265
|
-
}
|
|
5266
|
-
else {
|
|
5267
|
-
return $tea.cast(await this.execute(params, req, runtime), new DeleteLibraryResponse({}));
|
|
5268
|
-
}
|
|
6020
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
|
|
5269
6021
|
}
|
|
5270
6022
|
/**
|
|
5271
6023
|
* 删除文档库
|
|
@@ -5307,12 +6059,7 @@ class Client extends openapi_client_1.default {
|
|
|
5307
6059
|
reqBodyType: "json",
|
|
5308
6060
|
bodyType: "json",
|
|
5309
6061
|
});
|
|
5310
|
-
|
|
5311
|
-
return $tea.cast(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
|
|
5312
|
-
}
|
|
5313
|
-
else {
|
|
5314
|
-
return $tea.cast(await this.execute(params, req, runtime), new EvictTaskResponse({}));
|
|
5315
|
-
}
|
|
6062
|
+
return $tea.cast(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
|
|
5316
6063
|
}
|
|
5317
6064
|
/**
|
|
5318
6065
|
* 中断任务
|
|
@@ -5325,6 +6072,54 @@ class Client extends openapi_client_1.default {
|
|
|
5325
6072
|
let headers = {};
|
|
5326
6073
|
return await this.evictTaskWithOptions(workspaceId, request, headers, runtime);
|
|
5327
6074
|
}
|
|
6075
|
+
/**
|
|
6076
|
+
* 根据文档解析问答QA
|
|
6077
|
+
*
|
|
6078
|
+
* @param request - GenDocQaResultRequest
|
|
6079
|
+
* @param headers - map
|
|
6080
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6081
|
+
* @returns GenDocQaResultResponse
|
|
6082
|
+
*/
|
|
6083
|
+
async genDocQaResultWithOptions(workspaceId, request, headers, runtime) {
|
|
6084
|
+
tea_util_1.default.validateModel(request);
|
|
6085
|
+
let body = {};
|
|
6086
|
+
if (!tea_util_1.default.isUnset(request.docId)) {
|
|
6087
|
+
body["docId"] = request.docId;
|
|
6088
|
+
}
|
|
6089
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
6090
|
+
body["libraryId"] = request.libraryId;
|
|
6091
|
+
}
|
|
6092
|
+
if (!tea_util_1.default.isUnset(request.requestId)) {
|
|
6093
|
+
body["requestId"] = request.requestId;
|
|
6094
|
+
}
|
|
6095
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6096
|
+
headers: headers,
|
|
6097
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6098
|
+
});
|
|
6099
|
+
let params = new $OpenApi.Params({
|
|
6100
|
+
action: "GenDocQaResult",
|
|
6101
|
+
version: "2024-06-28",
|
|
6102
|
+
protocol: "HTTPS",
|
|
6103
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/qa/parse`,
|
|
6104
|
+
method: "POST",
|
|
6105
|
+
authType: "AK",
|
|
6106
|
+
style: "ROA",
|
|
6107
|
+
reqBodyType: "json",
|
|
6108
|
+
bodyType: "json",
|
|
6109
|
+
});
|
|
6110
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GenDocQaResultResponse({}));
|
|
6111
|
+
}
|
|
6112
|
+
/**
|
|
6113
|
+
* 根据文档解析问答QA
|
|
6114
|
+
*
|
|
6115
|
+
* @param request - GenDocQaResultRequest
|
|
6116
|
+
* @returns GenDocQaResultResponse
|
|
6117
|
+
*/
|
|
6118
|
+
async genDocQaResult(workspaceId, request) {
|
|
6119
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6120
|
+
let headers = {};
|
|
6121
|
+
return await this.genDocQaResultWithOptions(workspaceId, request, headers, runtime);
|
|
6122
|
+
}
|
|
5328
6123
|
/**
|
|
5329
6124
|
* 获取app配置
|
|
5330
6125
|
*
|
|
@@ -5347,12 +6142,7 @@ class Client extends openapi_client_1.default {
|
|
|
5347
6142
|
reqBodyType: "json",
|
|
5348
6143
|
bodyType: "json",
|
|
5349
6144
|
});
|
|
5350
|
-
|
|
5351
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
|
|
5352
|
-
}
|
|
5353
|
-
else {
|
|
5354
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetAppConfigResponse({}));
|
|
5355
|
-
}
|
|
6145
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
|
|
5356
6146
|
}
|
|
5357
6147
|
/**
|
|
5358
6148
|
* 获取app配置
|
|
@@ -5363,6 +6153,51 @@ class Client extends openapi_client_1.default {
|
|
|
5363
6153
|
let headers = {};
|
|
5364
6154
|
return await this.getAppConfigWithOptions(workspaceId, headers, runtime);
|
|
5365
6155
|
}
|
|
6156
|
+
/**
|
|
6157
|
+
* 获取问答结果
|
|
6158
|
+
*
|
|
6159
|
+
* @param request - GetChatQuestionRespRequest
|
|
6160
|
+
* @param headers - map
|
|
6161
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6162
|
+
* @returns GetChatQuestionRespResponse
|
|
6163
|
+
*/
|
|
6164
|
+
async getChatQuestionRespWithOptions(workspaceId, request, headers, runtime) {
|
|
6165
|
+
tea_util_1.default.validateModel(request);
|
|
6166
|
+
let body = {};
|
|
6167
|
+
if (!tea_util_1.default.isUnset(request.batchId)) {
|
|
6168
|
+
body["batchId"] = request.batchId;
|
|
6169
|
+
}
|
|
6170
|
+
if (!tea_util_1.default.isUnset(request.sessionId)) {
|
|
6171
|
+
body["sessionId"] = request.sessionId;
|
|
6172
|
+
}
|
|
6173
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6174
|
+
headers: headers,
|
|
6175
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6176
|
+
});
|
|
6177
|
+
let params = new $OpenApi.Params({
|
|
6178
|
+
action: "GetChatQuestionResp",
|
|
6179
|
+
version: "2024-06-28",
|
|
6180
|
+
protocol: "HTTPS",
|
|
6181
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/chat/query`,
|
|
6182
|
+
method: "POST",
|
|
6183
|
+
authType: "AK",
|
|
6184
|
+
style: "ROA",
|
|
6185
|
+
reqBodyType: "json",
|
|
6186
|
+
bodyType: "json",
|
|
6187
|
+
});
|
|
6188
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetChatQuestionRespResponse({}));
|
|
6189
|
+
}
|
|
6190
|
+
/**
|
|
6191
|
+
* 获取问答结果
|
|
6192
|
+
*
|
|
6193
|
+
* @param request - GetChatQuestionRespRequest
|
|
6194
|
+
* @returns GetChatQuestionRespResponse
|
|
6195
|
+
*/
|
|
6196
|
+
async getChatQuestionResp(workspaceId, request) {
|
|
6197
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6198
|
+
let headers = {};
|
|
6199
|
+
return await this.getChatQuestionRespWithOptions(workspaceId, request, headers, runtime);
|
|
6200
|
+
}
|
|
5366
6201
|
/**
|
|
5367
6202
|
* 获取文档的chunk列表
|
|
5368
6203
|
*
|
|
@@ -5413,12 +6248,7 @@ class Client extends openapi_client_1.default {
|
|
|
5413
6248
|
reqBodyType: "json",
|
|
5414
6249
|
bodyType: "json",
|
|
5415
6250
|
});
|
|
5416
|
-
|
|
5417
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
|
|
5418
|
-
}
|
|
5419
|
-
else {
|
|
5420
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetDocumentChunkListResponse({}));
|
|
5421
|
-
}
|
|
6251
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
|
|
5422
6252
|
}
|
|
5423
6253
|
/**
|
|
5424
6254
|
* 获取文档的chunk列表
|
|
@@ -5469,12 +6299,7 @@ class Client extends openapi_client_1.default {
|
|
|
5469
6299
|
reqBodyType: "json",
|
|
5470
6300
|
bodyType: "json",
|
|
5471
6301
|
});
|
|
5472
|
-
|
|
5473
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
|
|
5474
|
-
}
|
|
5475
|
-
else {
|
|
5476
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetDocumentListResponse({}));
|
|
5477
|
-
}
|
|
6302
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
|
|
5478
6303
|
}
|
|
5479
6304
|
/**
|
|
5480
6305
|
* 分页查询文档库的文档列表
|
|
@@ -5516,12 +6341,7 @@ class Client extends openapi_client_1.default {
|
|
|
5516
6341
|
reqBodyType: "json",
|
|
5517
6342
|
bodyType: "json",
|
|
5518
6343
|
});
|
|
5519
|
-
|
|
5520
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
|
|
5521
|
-
}
|
|
5522
|
-
else {
|
|
5523
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetDocumentUrlResponse({}));
|
|
5524
|
-
}
|
|
6344
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
|
|
5525
6345
|
}
|
|
5526
6346
|
/**
|
|
5527
6347
|
* 获取文档URL
|
|
@@ -5581,12 +6401,7 @@ class Client extends openapi_client_1.default {
|
|
|
5581
6401
|
reqBodyType: "json",
|
|
5582
6402
|
bodyType: "json",
|
|
5583
6403
|
});
|
|
5584
|
-
|
|
5585
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
|
|
5586
|
-
}
|
|
5587
|
-
else {
|
|
5588
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetFilterDocumentListResponse({}));
|
|
5589
|
-
}
|
|
6404
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
|
|
5590
6405
|
}
|
|
5591
6406
|
/**
|
|
5592
6407
|
* 带条件的分页查询文档库的文档列表
|
|
@@ -5637,12 +6452,7 @@ class Client extends openapi_client_1.default {
|
|
|
5637
6452
|
reqBodyType: "json",
|
|
5638
6453
|
bodyType: "json",
|
|
5639
6454
|
});
|
|
5640
|
-
|
|
5641
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
|
|
5642
|
-
}
|
|
5643
|
-
else {
|
|
5644
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
|
|
5645
|
-
}
|
|
6455
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
|
|
5646
6456
|
}
|
|
5647
6457
|
/**
|
|
5648
6458
|
* 分页查询文档库列表
|
|
@@ -5684,12 +6494,7 @@ class Client extends openapi_client_1.default {
|
|
|
5684
6494
|
reqBodyType: "json",
|
|
5685
6495
|
bodyType: "json",
|
|
5686
6496
|
});
|
|
5687
|
-
|
|
5688
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
|
|
5689
|
-
}
|
|
5690
|
-
else {
|
|
5691
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetLibraryResponse({}));
|
|
5692
|
-
}
|
|
6497
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
|
|
5693
6498
|
}
|
|
5694
6499
|
/**
|
|
5695
6500
|
* 获取文档库配置详情
|
|
@@ -5737,12 +6542,7 @@ class Client extends openapi_client_1.default {
|
|
|
5737
6542
|
reqBodyType: "json",
|
|
5738
6543
|
bodyType: "json",
|
|
5739
6544
|
});
|
|
5740
|
-
|
|
5741
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
|
|
5742
|
-
}
|
|
5743
|
-
else {
|
|
5744
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetLibraryListResponse({}));
|
|
5745
|
-
}
|
|
6545
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
|
|
5746
6546
|
}
|
|
5747
6547
|
/**
|
|
5748
6548
|
* 分页查询文档库列表
|
|
@@ -5790,12 +6590,7 @@ class Client extends openapi_client_1.default {
|
|
|
5790
6590
|
reqBodyType: "json",
|
|
5791
6591
|
bodyType: "json",
|
|
5792
6592
|
});
|
|
5793
|
-
|
|
5794
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
|
|
5795
|
-
}
|
|
5796
|
-
else {
|
|
5797
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetParseResultResponse({}));
|
|
5798
|
-
}
|
|
6593
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
|
|
5799
6594
|
}
|
|
5800
6595
|
/**
|
|
5801
6596
|
* 获取解析结果
|
|
@@ -5837,12 +6632,7 @@ class Client extends openapi_client_1.default {
|
|
|
5837
6632
|
reqBodyType: "json",
|
|
5838
6633
|
bodyType: "json",
|
|
5839
6634
|
});
|
|
5840
|
-
|
|
5841
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
|
|
5842
|
-
}
|
|
5843
|
-
else {
|
|
5844
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
|
|
5845
|
-
}
|
|
6635
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
|
|
5846
6636
|
}
|
|
5847
6637
|
/**
|
|
5848
6638
|
* 获取异步任务的结果
|
|
@@ -5884,12 +6674,7 @@ class Client extends openapi_client_1.default {
|
|
|
5884
6674
|
reqBodyType: "json",
|
|
5885
6675
|
bodyType: "json",
|
|
5886
6676
|
});
|
|
5887
|
-
|
|
5888
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
|
|
5889
|
-
}
|
|
5890
|
-
else {
|
|
5891
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetSummaryTaskResultResponse({}));
|
|
5892
|
-
}
|
|
6677
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
|
|
5893
6678
|
}
|
|
5894
6679
|
/**
|
|
5895
6680
|
* 获取财报总结任务结果
|
|
@@ -5931,12 +6716,7 @@ class Client extends openapi_client_1.default {
|
|
|
5931
6716
|
reqBodyType: "json",
|
|
5932
6717
|
bodyType: "json",
|
|
5933
6718
|
});
|
|
5934
|
-
|
|
5935
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
|
|
5936
|
-
}
|
|
5937
|
-
else {
|
|
5938
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetTaskResultResponse({}));
|
|
5939
|
-
}
|
|
6719
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
|
|
5940
6720
|
}
|
|
5941
6721
|
/**
|
|
5942
6722
|
* 获取异步任务结果
|
|
@@ -5978,12 +6758,7 @@ class Client extends openapi_client_1.default {
|
|
|
5978
6758
|
reqBodyType: "json",
|
|
5979
6759
|
bodyType: "json",
|
|
5980
6760
|
});
|
|
5981
|
-
|
|
5982
|
-
return $tea.cast(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
|
|
5983
|
-
}
|
|
5984
|
-
else {
|
|
5985
|
-
return $tea.cast(await this.execute(params, req, runtime), new GetTaskStatusResponse({}));
|
|
5986
|
-
}
|
|
6761
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
|
|
5987
6762
|
}
|
|
5988
6763
|
/**
|
|
5989
6764
|
* 获取财报总结任务结果
|
|
@@ -6028,12 +6803,7 @@ class Client extends openapi_client_1.default {
|
|
|
6028
6803
|
reqBodyType: "json",
|
|
6029
6804
|
bodyType: "json",
|
|
6030
6805
|
});
|
|
6031
|
-
|
|
6032
|
-
return $tea.cast(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
|
|
6033
|
-
}
|
|
6034
|
-
else {
|
|
6035
|
-
return $tea.cast(await this.execute(params, req, runtime), new InvokePluginResponse({}));
|
|
6036
|
-
}
|
|
6806
|
+
return $tea.cast(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
|
|
6037
6807
|
}
|
|
6038
6808
|
/**
|
|
6039
6809
|
* 插件调试接口
|
|
@@ -6075,12 +6845,7 @@ class Client extends openapi_client_1.default {
|
|
|
6075
6845
|
reqBodyType: "json",
|
|
6076
6846
|
bodyType: "json",
|
|
6077
6847
|
});
|
|
6078
|
-
|
|
6079
|
-
return $tea.cast(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
|
|
6080
|
-
}
|
|
6081
|
-
else {
|
|
6082
|
-
return $tea.cast(await this.execute(params, req, runtime), new PreviewDocumentResponse({}));
|
|
6083
|
-
}
|
|
6848
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
|
|
6084
6849
|
}
|
|
6085
6850
|
/**
|
|
6086
6851
|
* 获取文档预览
|
|
@@ -6122,12 +6887,7 @@ class Client extends openapi_client_1.default {
|
|
|
6122
6887
|
reqBodyType: "json",
|
|
6123
6888
|
bodyType: "json",
|
|
6124
6889
|
});
|
|
6125
|
-
|
|
6126
|
-
return $tea.cast(await this.callApi(params, req, runtime), new ReIndexResponse({}));
|
|
6127
|
-
}
|
|
6128
|
-
else {
|
|
6129
|
-
return $tea.cast(await this.execute(params, req, runtime), new ReIndexResponse({}));
|
|
6130
|
-
}
|
|
6890
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ReIndexResponse({}));
|
|
6131
6891
|
}
|
|
6132
6892
|
/**
|
|
6133
6893
|
* 重新索引
|
|
@@ -6140,6 +6900,69 @@ class Client extends openapi_client_1.default {
|
|
|
6140
6900
|
let headers = {};
|
|
6141
6901
|
return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
|
|
6142
6902
|
}
|
|
6903
|
+
/**
|
|
6904
|
+
* 实时对话
|
|
6905
|
+
*
|
|
6906
|
+
* @param request - RealTimeDialogRequest
|
|
6907
|
+
* @param headers - map
|
|
6908
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6909
|
+
* @returns RealTimeDialogResponse
|
|
6910
|
+
*/
|
|
6911
|
+
async realTimeDialogWithOptions(workspaceId, request, headers, runtime) {
|
|
6912
|
+
tea_util_1.default.validateModel(request);
|
|
6913
|
+
let body = {};
|
|
6914
|
+
if (!tea_util_1.default.isUnset(request.analysis)) {
|
|
6915
|
+
body["analysis"] = request.analysis;
|
|
6916
|
+
}
|
|
6917
|
+
if (!tea_util_1.default.isUnset(request.bizType)) {
|
|
6918
|
+
body["bizType"] = request.bizType;
|
|
6919
|
+
}
|
|
6920
|
+
if (!tea_util_1.default.isUnset(request.conversationModel)) {
|
|
6921
|
+
body["conversationModel"] = request.conversationModel;
|
|
6922
|
+
}
|
|
6923
|
+
if (!tea_util_1.default.isUnset(request.dialogMemoryTurns)) {
|
|
6924
|
+
body["dialogMemoryTurns"] = request.dialogMemoryTurns;
|
|
6925
|
+
}
|
|
6926
|
+
if (!tea_util_1.default.isUnset(request.metaData)) {
|
|
6927
|
+
body["metaData"] = request.metaData;
|
|
6928
|
+
}
|
|
6929
|
+
if (!tea_util_1.default.isUnset(request.recommend)) {
|
|
6930
|
+
body["recommend"] = request.recommend;
|
|
6931
|
+
}
|
|
6932
|
+
if (!tea_util_1.default.isUnset(request.sessionId)) {
|
|
6933
|
+
body["sessionId"] = request.sessionId;
|
|
6934
|
+
}
|
|
6935
|
+
if (!tea_util_1.default.isUnset(request.stream)) {
|
|
6936
|
+
body["stream"] = request.stream;
|
|
6937
|
+
}
|
|
6938
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6939
|
+
headers: headers,
|
|
6940
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6941
|
+
});
|
|
6942
|
+
let params = new $OpenApi.Params({
|
|
6943
|
+
action: "RealTimeDialog",
|
|
6944
|
+
version: "2024-06-28",
|
|
6945
|
+
protocol: "HTTPS",
|
|
6946
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/realtime/dialog/chat`,
|
|
6947
|
+
method: "POST",
|
|
6948
|
+
authType: "AK",
|
|
6949
|
+
style: "ROA",
|
|
6950
|
+
reqBodyType: "json",
|
|
6951
|
+
bodyType: "json",
|
|
6952
|
+
});
|
|
6953
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RealTimeDialogResponse({}));
|
|
6954
|
+
}
|
|
6955
|
+
/**
|
|
6956
|
+
* 实时对话
|
|
6957
|
+
*
|
|
6958
|
+
* @param request - RealTimeDialogRequest
|
|
6959
|
+
* @returns RealTimeDialogResponse
|
|
6960
|
+
*/
|
|
6961
|
+
async realTimeDialog(workspaceId, request) {
|
|
6962
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6963
|
+
let headers = {};
|
|
6964
|
+
return await this.realTimeDialogWithOptions(workspaceId, request, headers, runtime);
|
|
6965
|
+
}
|
|
6143
6966
|
/**
|
|
6144
6967
|
* 重建任务
|
|
6145
6968
|
*
|
|
@@ -6169,12 +6992,7 @@ class Client extends openapi_client_1.default {
|
|
|
6169
6992
|
reqBodyType: "json",
|
|
6170
6993
|
bodyType: "json",
|
|
6171
6994
|
});
|
|
6172
|
-
|
|
6173
|
-
return $tea.cast(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
|
|
6174
|
-
}
|
|
6175
|
-
else {
|
|
6176
|
-
return $tea.cast(await this.execute(params, req, runtime), new RebuildTaskResponse({}));
|
|
6177
|
-
}
|
|
6995
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
|
|
6178
6996
|
}
|
|
6179
6997
|
/**
|
|
6180
6998
|
* 重建任务
|
|
@@ -6225,12 +7043,7 @@ class Client extends openapi_client_1.default {
|
|
|
6225
7043
|
reqBodyType: "json",
|
|
6226
7044
|
bodyType: "json",
|
|
6227
7045
|
});
|
|
6228
|
-
|
|
6229
|
-
return $tea.cast(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
|
|
6230
|
-
}
|
|
6231
|
-
else {
|
|
6232
|
-
return $tea.cast(await this.execute(params, req, runtime), new RecallDocumentResponse({}));
|
|
6233
|
-
}
|
|
7046
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
|
|
6234
7047
|
}
|
|
6235
7048
|
/**
|
|
6236
7049
|
* 文档召回。
|
|
@@ -6296,12 +7109,7 @@ class Client extends openapi_client_1.default {
|
|
|
6296
7109
|
reqBodyType: "json",
|
|
6297
7110
|
bodyType: "json",
|
|
6298
7111
|
});
|
|
6299
|
-
|
|
6300
|
-
return $tea.cast(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
|
|
6301
|
-
}
|
|
6302
|
-
else {
|
|
6303
|
-
return $tea.cast(await this.execute(params, req, runtime), new RecognizeIntentionResponse({}));
|
|
6304
|
-
}
|
|
7112
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
|
|
6305
7113
|
}
|
|
6306
7114
|
/**
|
|
6307
7115
|
* 意图识别
|
|
@@ -6358,12 +7166,7 @@ class Client extends openapi_client_1.default {
|
|
|
6358
7166
|
reqBodyType: "json",
|
|
6359
7167
|
bodyType: "json",
|
|
6360
7168
|
});
|
|
6361
|
-
|
|
6362
|
-
return $tea.cast(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
|
|
6363
|
-
}
|
|
6364
|
-
else {
|
|
6365
|
-
return $tea.cast(await this.execute(params, req, runtime), new RunChatResultGenerationResponse({}));
|
|
6366
|
-
}
|
|
7169
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
|
|
6367
7170
|
}
|
|
6368
7171
|
/**
|
|
6369
7172
|
* 获取生成式对话结果
|
|
@@ -6456,12 +7259,7 @@ class Client extends openapi_client_1.default {
|
|
|
6456
7259
|
reqBodyType: "json",
|
|
6457
7260
|
bodyType: "json",
|
|
6458
7261
|
});
|
|
6459
|
-
|
|
6460
|
-
return $tea.cast(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
|
|
6461
|
-
}
|
|
6462
|
-
else {
|
|
6463
|
-
return $tea.cast(await this.execute(params, req, runtime), new RunLibraryChatGenerationResponse({}));
|
|
6464
|
-
}
|
|
7262
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
|
|
6465
7263
|
}
|
|
6466
7264
|
/**
|
|
6467
7265
|
* 获取生成式对话结果
|
|
@@ -6474,6 +7272,63 @@ class Client extends openapi_client_1.default {
|
|
|
6474
7272
|
let headers = {};
|
|
6475
7273
|
return await this.runLibraryChatGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
6476
7274
|
}
|
|
7275
|
+
/**
|
|
7276
|
+
* 提交问题列表
|
|
7277
|
+
*
|
|
7278
|
+
* @param request - SubmitChatQuestionRequest
|
|
7279
|
+
* @param headers - map
|
|
7280
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7281
|
+
* @returns SubmitChatQuestionResponse
|
|
7282
|
+
*/
|
|
7283
|
+
async submitChatQuestionWithOptions(workspaceId, request, headers, runtime) {
|
|
7284
|
+
tea_util_1.default.validateModel(request);
|
|
7285
|
+
let body = {};
|
|
7286
|
+
if (!tea_util_1.default.isUnset(request.gmtService)) {
|
|
7287
|
+
body["gmtService"] = request.gmtService;
|
|
7288
|
+
}
|
|
7289
|
+
if (!tea_util_1.default.isUnset(request.liveScriptContent)) {
|
|
7290
|
+
body["liveScriptContent"] = request.liveScriptContent;
|
|
7291
|
+
}
|
|
7292
|
+
if (!tea_util_1.default.isUnset(request.openSmallTalk)) {
|
|
7293
|
+
body["openSmallTalk"] = request.openSmallTalk;
|
|
7294
|
+
}
|
|
7295
|
+
if (!tea_util_1.default.isUnset(request.questionList)) {
|
|
7296
|
+
body["questionList"] = request.questionList;
|
|
7297
|
+
}
|
|
7298
|
+
if (!tea_util_1.default.isUnset(request.requestId)) {
|
|
7299
|
+
body["requestId"] = request.requestId;
|
|
7300
|
+
}
|
|
7301
|
+
if (!tea_util_1.default.isUnset(request.sessionId)) {
|
|
7302
|
+
body["sessionId"] = request.sessionId;
|
|
7303
|
+
}
|
|
7304
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7305
|
+
headers: headers,
|
|
7306
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
7307
|
+
});
|
|
7308
|
+
let params = new $OpenApi.Params({
|
|
7309
|
+
action: "SubmitChatQuestion",
|
|
7310
|
+
version: "2024-06-28",
|
|
7311
|
+
protocol: "HTTPS",
|
|
7312
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/chat/submit`,
|
|
7313
|
+
method: "POST",
|
|
7314
|
+
authType: "AK",
|
|
7315
|
+
style: "ROA",
|
|
7316
|
+
reqBodyType: "json",
|
|
7317
|
+
bodyType: "json",
|
|
7318
|
+
});
|
|
7319
|
+
return $tea.cast(await this.callApi(params, req, runtime), new SubmitChatQuestionResponse({}));
|
|
7320
|
+
}
|
|
7321
|
+
/**
|
|
7322
|
+
* 提交问题列表
|
|
7323
|
+
*
|
|
7324
|
+
* @param request - SubmitChatQuestionRequest
|
|
7325
|
+
* @returns SubmitChatQuestionResponse
|
|
7326
|
+
*/
|
|
7327
|
+
async submitChatQuestion(workspaceId, request) {
|
|
7328
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7329
|
+
let headers = {};
|
|
7330
|
+
return await this.submitChatQuestionWithOptions(workspaceId, request, headers, runtime);
|
|
7331
|
+
}
|
|
6477
7332
|
/**
|
|
6478
7333
|
* 更新文档
|
|
6479
7334
|
*
|
|
@@ -6512,12 +7367,7 @@ class Client extends openapi_client_1.default {
|
|
|
6512
7367
|
reqBodyType: "json",
|
|
6513
7368
|
bodyType: "json",
|
|
6514
7369
|
});
|
|
6515
|
-
|
|
6516
|
-
return $tea.cast(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
|
|
6517
|
-
}
|
|
6518
|
-
else {
|
|
6519
|
-
return $tea.cast(await this.execute(params, req, runtime), new UpdateDocumentResponse({}));
|
|
6520
|
-
}
|
|
7370
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
|
|
6521
7371
|
}
|
|
6522
7372
|
/**
|
|
6523
7373
|
* 更新文档
|
|
@@ -6568,12 +7418,7 @@ class Client extends openapi_client_1.default {
|
|
|
6568
7418
|
reqBodyType: "json",
|
|
6569
7419
|
bodyType: "json",
|
|
6570
7420
|
});
|
|
6571
|
-
|
|
6572
|
-
return $tea.cast(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
|
|
6573
|
-
}
|
|
6574
|
-
else {
|
|
6575
|
-
return $tea.cast(await this.execute(params, req, runtime), new UpdateLibraryResponse({}));
|
|
6576
|
-
}
|
|
7421
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
|
|
6577
7422
|
}
|
|
6578
7423
|
/**
|
|
6579
7424
|
* 更新文档库配置
|
|
@@ -6586,6 +7431,54 @@ class Client extends openapi_client_1.default {
|
|
|
6586
7431
|
let headers = {};
|
|
6587
7432
|
return await this.updateLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
6588
7433
|
}
|
|
7434
|
+
/**
|
|
7435
|
+
* 更新QA问答库
|
|
7436
|
+
*
|
|
7437
|
+
* @param request - UpdateQaLibraryRequest
|
|
7438
|
+
* @param headers - map
|
|
7439
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7440
|
+
* @returns UpdateQaLibraryResponse
|
|
7441
|
+
*/
|
|
7442
|
+
async updateQaLibraryWithOptions(workspaceId, request, headers, runtime) {
|
|
7443
|
+
tea_util_1.default.validateModel(request);
|
|
7444
|
+
let body = {};
|
|
7445
|
+
if (!tea_util_1.default.isUnset(request.parseQaResults)) {
|
|
7446
|
+
body["parseQaResults"] = request.parseQaResults;
|
|
7447
|
+
}
|
|
7448
|
+
if (!tea_util_1.default.isUnset(request.qaLibraryId)) {
|
|
7449
|
+
body["qaLibraryId"] = request.qaLibraryId;
|
|
7450
|
+
}
|
|
7451
|
+
if (!tea_util_1.default.isUnset(request.requestId)) {
|
|
7452
|
+
body["requestId"] = request.requestId;
|
|
7453
|
+
}
|
|
7454
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7455
|
+
headers: headers,
|
|
7456
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
7457
|
+
});
|
|
7458
|
+
let params = new $OpenApi.Params({
|
|
7459
|
+
action: "UpdateQaLibrary",
|
|
7460
|
+
version: "2024-06-28",
|
|
7461
|
+
protocol: "HTTPS",
|
|
7462
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/qa/upload`,
|
|
7463
|
+
method: "POST",
|
|
7464
|
+
authType: "AK",
|
|
7465
|
+
style: "ROA",
|
|
7466
|
+
reqBodyType: "json",
|
|
7467
|
+
bodyType: "json",
|
|
7468
|
+
});
|
|
7469
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateQaLibraryResponse({}));
|
|
7470
|
+
}
|
|
7471
|
+
/**
|
|
7472
|
+
* 更新QA问答库
|
|
7473
|
+
*
|
|
7474
|
+
* @param request - UpdateQaLibraryRequest
|
|
7475
|
+
* @returns UpdateQaLibraryResponse
|
|
7476
|
+
*/
|
|
7477
|
+
async updateQaLibrary(workspaceId, request) {
|
|
7478
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7479
|
+
let headers = {};
|
|
7480
|
+
return await this.updateQaLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
7481
|
+
}
|
|
6589
7482
|
/**
|
|
6590
7483
|
* 上传文档到文档库
|
|
6591
7484
|
*
|
|
@@ -6624,12 +7517,7 @@ class Client extends openapi_client_1.default {
|
|
|
6624
7517
|
reqBodyType: "json",
|
|
6625
7518
|
bodyType: "json",
|
|
6626
7519
|
});
|
|
6627
|
-
|
|
6628
|
-
return $tea.cast(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
|
|
6629
|
-
}
|
|
6630
|
-
else {
|
|
6631
|
-
return $tea.cast(await this.execute(params, req, runtime), new UploadDocumentResponse({}));
|
|
6632
|
-
}
|
|
7520
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
|
|
6633
7521
|
}
|
|
6634
7522
|
/**
|
|
6635
7523
|
* 上传文档到文档库
|