@alicloud/dianjin20240628 1.6.5 → 1.8.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 +1508 -214
- package/dist/client.js +1283 -15
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2808 -685
package/dist/client.js
CHANGED
|
@@ -36,10 +36,11 @@ 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.GetDocumentListResponse = exports.GetDocumentListResponseBody = exports.GetDocumentListRequest = exports.GetDocumentChunkListResponse = exports.GetDocumentChunkListResponseBody = exports.GetDocumentChunkListRequest = exports.GetDialogAnalysisResultResponse = exports.GetDialogAnalysisResultResponseBody = exports.GetDialogAnalysisResultRequest = 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.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 = exports.GetDocumentUrlResponse = exports.GetDocumentUrlResponseBody = exports.GetDocumentUrlRequest = void 0;
|
|
41
|
+
exports.GetDocumentListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyData = exports.GetDocumentChunkListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyDataRecordsPos = exports.GetDialogAnalysisResultResponseBodyData = exports.GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespList = exports.GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp = exports.GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels = 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 = exports.RunChatResultGenerationResponseBody = exports.RunChatResultGenerationRequest = exports.RecognizeIntentionResponse = void 0;
|
|
42
|
+
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 = exports.GetHistoryListByBizTypeResponseBodyData = exports.GetHistoryListByBizTypeResponseBodyDataRecords = exports.GetFilterDocumentListResponseBodyData = exports.GetFilterDocumentListResponseBodyDataRecords = exports.GetFilterDocumentListRequestOr = exports.GetFilterDocumentListRequestAnd = exports.GetDocumentListResponseBodyData = 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 = exports.RunChatResultGenerationRequestMessages = exports.RecognizeIntentionResponseBodyData = exports.RecognizeIntentionRequestIntentionList = exports.RecognizeIntentionRequestHierarchicalIntentionList = exports.RecognizeIntentionRequestGlobalIntentionList = exports.RecallDocumentResponseBodyData = exports.RecallDocumentResponseBodyDataVectorChunkList = void 0;
|
|
43
44
|
// This file is auto-generated, don't edit it
|
|
44
45
|
/**
|
|
45
46
|
*/
|
|
@@ -126,6 +127,84 @@ class CreateAnnualDocSummaryTaskResponse extends $tea.Model {
|
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
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;
|
|
129
208
|
class CreateDocsSummaryTaskRequest extends $tea.Model {
|
|
130
209
|
static names() {
|
|
131
210
|
return {
|
|
@@ -762,6 +841,76 @@ class EvictTaskResponse extends $tea.Model {
|
|
|
762
841
|
}
|
|
763
842
|
}
|
|
764
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;
|
|
765
914
|
class GetAppConfigResponseBody extends $tea.Model {
|
|
766
915
|
static names() {
|
|
767
916
|
return {
|
|
@@ -812,6 +961,148 @@ class GetAppConfigResponse extends $tea.Model {
|
|
|
812
961
|
}
|
|
813
962
|
}
|
|
814
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;
|
|
1032
|
+
class GetDialogAnalysisResultRequest extends $tea.Model {
|
|
1033
|
+
static names() {
|
|
1034
|
+
return {
|
|
1035
|
+
asc: 'asc',
|
|
1036
|
+
endTime: 'endTime',
|
|
1037
|
+
sessionIds: 'sessionIds',
|
|
1038
|
+
startTime: 'startTime',
|
|
1039
|
+
useUrl: 'useUrl',
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
static types() {
|
|
1043
|
+
return {
|
|
1044
|
+
asc: 'boolean',
|
|
1045
|
+
endTime: 'string',
|
|
1046
|
+
sessionIds: { 'type': 'array', 'itemType': 'string' },
|
|
1047
|
+
startTime: 'string',
|
|
1048
|
+
useUrl: 'boolean',
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
constructor(map) {
|
|
1052
|
+
super(map);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
exports.GetDialogAnalysisResultRequest = GetDialogAnalysisResultRequest;
|
|
1056
|
+
class GetDialogAnalysisResultResponseBody extends $tea.Model {
|
|
1057
|
+
static names() {
|
|
1058
|
+
return {
|
|
1059
|
+
cost: 'cost',
|
|
1060
|
+
data: 'data',
|
|
1061
|
+
dataType: 'dataType',
|
|
1062
|
+
errCode: 'errCode',
|
|
1063
|
+
message: 'message',
|
|
1064
|
+
requestId: 'requestId',
|
|
1065
|
+
success: 'success',
|
|
1066
|
+
time: 'time',
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
static types() {
|
|
1070
|
+
return {
|
|
1071
|
+
cost: 'number',
|
|
1072
|
+
data: GetDialogAnalysisResultResponseBodyData,
|
|
1073
|
+
dataType: 'string',
|
|
1074
|
+
errCode: 'string',
|
|
1075
|
+
message: 'string',
|
|
1076
|
+
requestId: 'string',
|
|
1077
|
+
success: 'boolean',
|
|
1078
|
+
time: 'string',
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
constructor(map) {
|
|
1082
|
+
super(map);
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
exports.GetDialogAnalysisResultResponseBody = GetDialogAnalysisResultResponseBody;
|
|
1086
|
+
class GetDialogAnalysisResultResponse extends $tea.Model {
|
|
1087
|
+
static names() {
|
|
1088
|
+
return {
|
|
1089
|
+
headers: 'headers',
|
|
1090
|
+
statusCode: 'statusCode',
|
|
1091
|
+
body: 'body',
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
static types() {
|
|
1095
|
+
return {
|
|
1096
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1097
|
+
statusCode: 'number',
|
|
1098
|
+
body: GetDialogAnalysisResultResponseBody,
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
constructor(map) {
|
|
1102
|
+
super(map);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
exports.GetDialogAnalysisResultResponse = GetDialogAnalysisResultResponse;
|
|
815
1106
|
class GetDocumentChunkListRequest extends $tea.Model {
|
|
816
1107
|
static names() {
|
|
817
1108
|
return {
|
|
@@ -1850,30 +2141,104 @@ class ReIndexResponse extends $tea.Model {
|
|
|
1850
2141
|
}
|
|
1851
2142
|
}
|
|
1852
2143
|
exports.ReIndexResponse = ReIndexResponse;
|
|
1853
|
-
class
|
|
2144
|
+
class RealTimeDialogRequest extends $tea.Model {
|
|
1854
2145
|
static names() {
|
|
1855
2146
|
return {
|
|
1856
|
-
|
|
2147
|
+
analysis: 'analysis',
|
|
2148
|
+
bizType: 'bizType',
|
|
2149
|
+
conversationModel: 'conversationModel',
|
|
2150
|
+
dialogMemoryTurns: 'dialogMemoryTurns',
|
|
2151
|
+
metaData: 'metaData',
|
|
2152
|
+
recommend: 'recommend',
|
|
2153
|
+
sessionId: 'sessionId',
|
|
2154
|
+
stream: 'stream',
|
|
1857
2155
|
};
|
|
1858
2156
|
}
|
|
1859
2157
|
static types() {
|
|
1860
2158
|
return {
|
|
1861
|
-
|
|
2159
|
+
analysis: 'boolean',
|
|
2160
|
+
bizType: 'string',
|
|
2161
|
+
conversationModel: { 'type': 'array', 'itemType': RealTimeDialogRequestConversationModel },
|
|
2162
|
+
dialogMemoryTurns: 'number',
|
|
2163
|
+
metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2164
|
+
recommend: 'boolean',
|
|
2165
|
+
sessionId: 'string',
|
|
2166
|
+
stream: 'boolean',
|
|
1862
2167
|
};
|
|
1863
2168
|
}
|
|
1864
2169
|
constructor(map) {
|
|
1865
2170
|
super(map);
|
|
1866
2171
|
}
|
|
1867
2172
|
}
|
|
1868
|
-
exports.
|
|
1869
|
-
class
|
|
2173
|
+
exports.RealTimeDialogRequest = RealTimeDialogRequest;
|
|
2174
|
+
class RealTimeDialogResponseBody extends $tea.Model {
|
|
1870
2175
|
static names() {
|
|
1871
2176
|
return {
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
2177
|
+
choices: 'choices',
|
|
2178
|
+
created: 'created',
|
|
2179
|
+
id: 'id',
|
|
2180
|
+
requestId: 'requestId',
|
|
2181
|
+
success: 'success',
|
|
2182
|
+
};
|
|
2183
|
+
}
|
|
2184
|
+
static types() {
|
|
2185
|
+
return {
|
|
2186
|
+
choices: { 'type': 'array', 'itemType': RealTimeDialogResponseBodyChoices },
|
|
2187
|
+
created: 'string',
|
|
2188
|
+
id: 'string',
|
|
2189
|
+
requestId: 'string',
|
|
2190
|
+
success: 'boolean',
|
|
2191
|
+
};
|
|
2192
|
+
}
|
|
2193
|
+
constructor(map) {
|
|
2194
|
+
super(map);
|
|
2195
|
+
}
|
|
2196
|
+
}
|
|
2197
|
+
exports.RealTimeDialogResponseBody = RealTimeDialogResponseBody;
|
|
2198
|
+
class RealTimeDialogResponse extends $tea.Model {
|
|
2199
|
+
static names() {
|
|
2200
|
+
return {
|
|
2201
|
+
headers: 'headers',
|
|
2202
|
+
statusCode: 'statusCode',
|
|
2203
|
+
body: 'body',
|
|
2204
|
+
};
|
|
2205
|
+
}
|
|
2206
|
+
static types() {
|
|
2207
|
+
return {
|
|
2208
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2209
|
+
statusCode: 'number',
|
|
2210
|
+
body: RealTimeDialogResponseBody,
|
|
2211
|
+
};
|
|
2212
|
+
}
|
|
2213
|
+
constructor(map) {
|
|
2214
|
+
super(map);
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
exports.RealTimeDialogResponse = RealTimeDialogResponse;
|
|
2218
|
+
class RebuildTaskRequest extends $tea.Model {
|
|
2219
|
+
static names() {
|
|
2220
|
+
return {
|
|
2221
|
+
taskIds: 'taskIds',
|
|
2222
|
+
};
|
|
2223
|
+
}
|
|
2224
|
+
static types() {
|
|
2225
|
+
return {
|
|
2226
|
+
taskIds: { 'type': 'array', 'itemType': 'string' },
|
|
2227
|
+
};
|
|
2228
|
+
}
|
|
2229
|
+
constructor(map) {
|
|
2230
|
+
super(map);
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
exports.RebuildTaskRequest = RebuildTaskRequest;
|
|
2234
|
+
class RebuildTaskResponseBody extends $tea.Model {
|
|
2235
|
+
static names() {
|
|
2236
|
+
return {
|
|
2237
|
+
cost: 'cost',
|
|
2238
|
+
data: 'data',
|
|
2239
|
+
dataType: 'dataType',
|
|
2240
|
+
errCode: 'errCode',
|
|
2241
|
+
message: 'message',
|
|
1877
2242
|
requestId: 'requestId',
|
|
1878
2243
|
success: 'success',
|
|
1879
2244
|
time: 'time',
|
|
@@ -2246,6 +2611,82 @@ class RunLibraryChatGenerationResponse extends $tea.Model {
|
|
|
2246
2611
|
}
|
|
2247
2612
|
}
|
|
2248
2613
|
exports.RunLibraryChatGenerationResponse = RunLibraryChatGenerationResponse;
|
|
2614
|
+
class SubmitChatQuestionRequest extends $tea.Model {
|
|
2615
|
+
static names() {
|
|
2616
|
+
return {
|
|
2617
|
+
gmtService: 'gmtService',
|
|
2618
|
+
liveScriptContent: 'liveScriptContent',
|
|
2619
|
+
openSmallTalk: 'openSmallTalk',
|
|
2620
|
+
questionList: 'questionList',
|
|
2621
|
+
requestId: 'requestId',
|
|
2622
|
+
sessionId: 'sessionId',
|
|
2623
|
+
};
|
|
2624
|
+
}
|
|
2625
|
+
static types() {
|
|
2626
|
+
return {
|
|
2627
|
+
gmtService: 'string',
|
|
2628
|
+
liveScriptContent: 'string',
|
|
2629
|
+
openSmallTalk: 'boolean',
|
|
2630
|
+
questionList: { 'type': 'array', 'itemType': SubmitChatQuestionRequestQuestionList },
|
|
2631
|
+
requestId: 'string',
|
|
2632
|
+
sessionId: 'string',
|
|
2633
|
+
};
|
|
2634
|
+
}
|
|
2635
|
+
constructor(map) {
|
|
2636
|
+
super(map);
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
exports.SubmitChatQuestionRequest = SubmitChatQuestionRequest;
|
|
2640
|
+
class SubmitChatQuestionResponseBody extends $tea.Model {
|
|
2641
|
+
static names() {
|
|
2642
|
+
return {
|
|
2643
|
+
cost: 'cost',
|
|
2644
|
+
data: 'data',
|
|
2645
|
+
dataType: 'dataType',
|
|
2646
|
+
errCode: 'errCode',
|
|
2647
|
+
message: 'message',
|
|
2648
|
+
requestId: 'requestId',
|
|
2649
|
+
success: 'success',
|
|
2650
|
+
time: 'time',
|
|
2651
|
+
};
|
|
2652
|
+
}
|
|
2653
|
+
static types() {
|
|
2654
|
+
return {
|
|
2655
|
+
cost: 'number',
|
|
2656
|
+
data: SubmitChatQuestionResponseBodyData,
|
|
2657
|
+
dataType: 'string',
|
|
2658
|
+
errCode: 'string',
|
|
2659
|
+
message: 'string',
|
|
2660
|
+
requestId: 'string',
|
|
2661
|
+
success: 'boolean',
|
|
2662
|
+
time: 'string',
|
|
2663
|
+
};
|
|
2664
|
+
}
|
|
2665
|
+
constructor(map) {
|
|
2666
|
+
super(map);
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
exports.SubmitChatQuestionResponseBody = SubmitChatQuestionResponseBody;
|
|
2670
|
+
class SubmitChatQuestionResponse extends $tea.Model {
|
|
2671
|
+
static names() {
|
|
2672
|
+
return {
|
|
2673
|
+
headers: 'headers',
|
|
2674
|
+
statusCode: 'statusCode',
|
|
2675
|
+
body: 'body',
|
|
2676
|
+
};
|
|
2677
|
+
}
|
|
2678
|
+
static types() {
|
|
2679
|
+
return {
|
|
2680
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2681
|
+
statusCode: 'number',
|
|
2682
|
+
body: SubmitChatQuestionResponseBody,
|
|
2683
|
+
};
|
|
2684
|
+
}
|
|
2685
|
+
constructor(map) {
|
|
2686
|
+
super(map);
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
exports.SubmitChatQuestionResponse = SubmitChatQuestionResponse;
|
|
2249
2690
|
class UpdateDocumentRequest extends $tea.Model {
|
|
2250
2691
|
static names() {
|
|
2251
2692
|
return {
|
|
@@ -2390,6 +2831,76 @@ class UpdateLibraryResponse extends $tea.Model {
|
|
|
2390
2831
|
}
|
|
2391
2832
|
}
|
|
2392
2833
|
exports.UpdateLibraryResponse = UpdateLibraryResponse;
|
|
2834
|
+
class UpdateQaLibraryRequest extends $tea.Model {
|
|
2835
|
+
static names() {
|
|
2836
|
+
return {
|
|
2837
|
+
parseQaResults: 'parseQaResults',
|
|
2838
|
+
qaLibraryId: 'qaLibraryId',
|
|
2839
|
+
requestId: 'requestId',
|
|
2840
|
+
};
|
|
2841
|
+
}
|
|
2842
|
+
static types() {
|
|
2843
|
+
return {
|
|
2844
|
+
parseQaResults: { 'type': 'array', 'itemType': UpdateQaLibraryRequestParseQaResults },
|
|
2845
|
+
qaLibraryId: 'string',
|
|
2846
|
+
requestId: 'string',
|
|
2847
|
+
};
|
|
2848
|
+
}
|
|
2849
|
+
constructor(map) {
|
|
2850
|
+
super(map);
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
exports.UpdateQaLibraryRequest = UpdateQaLibraryRequest;
|
|
2854
|
+
class UpdateQaLibraryResponseBody extends $tea.Model {
|
|
2855
|
+
static names() {
|
|
2856
|
+
return {
|
|
2857
|
+
cost: 'cost',
|
|
2858
|
+
data: 'data',
|
|
2859
|
+
dataType: 'dataType',
|
|
2860
|
+
errCode: 'errCode',
|
|
2861
|
+
message: 'message',
|
|
2862
|
+
requestId: 'requestId',
|
|
2863
|
+
success: 'success',
|
|
2864
|
+
time: 'time',
|
|
2865
|
+
};
|
|
2866
|
+
}
|
|
2867
|
+
static types() {
|
|
2868
|
+
return {
|
|
2869
|
+
cost: 'number',
|
|
2870
|
+
data: UpdateQaLibraryResponseBodyData,
|
|
2871
|
+
dataType: 'string',
|
|
2872
|
+
errCode: 'string',
|
|
2873
|
+
message: 'string',
|
|
2874
|
+
requestId: 'string',
|
|
2875
|
+
success: 'boolean',
|
|
2876
|
+
time: 'string',
|
|
2877
|
+
};
|
|
2878
|
+
}
|
|
2879
|
+
constructor(map) {
|
|
2880
|
+
super(map);
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
exports.UpdateQaLibraryResponseBody = UpdateQaLibraryResponseBody;
|
|
2884
|
+
class UpdateQaLibraryResponse extends $tea.Model {
|
|
2885
|
+
static names() {
|
|
2886
|
+
return {
|
|
2887
|
+
headers: 'headers',
|
|
2888
|
+
statusCode: 'statusCode',
|
|
2889
|
+
body: 'body',
|
|
2890
|
+
};
|
|
2891
|
+
}
|
|
2892
|
+
static types() {
|
|
2893
|
+
return {
|
|
2894
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2895
|
+
statusCode: 'number',
|
|
2896
|
+
body: UpdateQaLibraryResponseBody,
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2899
|
+
constructor(map) {
|
|
2900
|
+
super(map);
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
exports.UpdateQaLibraryResponse = UpdateQaLibraryResponse;
|
|
2393
2904
|
class UploadDocumentRequest extends $tea.Model {
|
|
2394
2905
|
static names() {
|
|
2395
2906
|
return {
|
|
@@ -2508,6 +3019,24 @@ class CreateAnnualDocSummaryTaskRequestDocInfos extends $tea.Model {
|
|
|
2508
3019
|
}
|
|
2509
3020
|
}
|
|
2510
3021
|
exports.CreateAnnualDocSummaryTaskRequestDocInfos = CreateAnnualDocSummaryTaskRequestDocInfos;
|
|
3022
|
+
class CreateDialogResponseBodyData extends $tea.Model {
|
|
3023
|
+
static names() {
|
|
3024
|
+
return {
|
|
3025
|
+
openingRemarks: 'openingRemarks',
|
|
3026
|
+
sessionId: 'sessionId',
|
|
3027
|
+
};
|
|
3028
|
+
}
|
|
3029
|
+
static types() {
|
|
3030
|
+
return {
|
|
3031
|
+
openingRemarks: 'string',
|
|
3032
|
+
sessionId: 'string',
|
|
3033
|
+
};
|
|
3034
|
+
}
|
|
3035
|
+
constructor(map) {
|
|
3036
|
+
super(map);
|
|
3037
|
+
}
|
|
3038
|
+
}
|
|
3039
|
+
exports.CreateDialogResponseBodyData = CreateDialogResponseBodyData;
|
|
2511
3040
|
class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
|
|
2512
3041
|
static names() {
|
|
2513
3042
|
return {
|
|
@@ -2802,6 +3331,46 @@ class CreateQualityCheckTaskResponseBodyData extends $tea.Model {
|
|
|
2802
3331
|
}
|
|
2803
3332
|
}
|
|
2804
3333
|
exports.CreateQualityCheckTaskResponseBodyData = CreateQualityCheckTaskResponseBodyData;
|
|
3334
|
+
class GenDocQaResultResponseBodyDataParseQaResults extends $tea.Model {
|
|
3335
|
+
static names() {
|
|
3336
|
+
return {
|
|
3337
|
+
answer: 'answer',
|
|
3338
|
+
question: 'question',
|
|
3339
|
+
};
|
|
3340
|
+
}
|
|
3341
|
+
static types() {
|
|
3342
|
+
return {
|
|
3343
|
+
answer: 'string',
|
|
3344
|
+
question: 'string',
|
|
3345
|
+
};
|
|
3346
|
+
}
|
|
3347
|
+
constructor(map) {
|
|
3348
|
+
super(map);
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
exports.GenDocQaResultResponseBodyDataParseQaResults = GenDocQaResultResponseBodyDataParseQaResults;
|
|
3352
|
+
class GenDocQaResultResponseBodyData extends $tea.Model {
|
|
3353
|
+
static names() {
|
|
3354
|
+
return {
|
|
3355
|
+
currentStatus: 'currentStatus',
|
|
3356
|
+
docId: 'docId',
|
|
3357
|
+
libraryId: 'libraryId',
|
|
3358
|
+
parseQaResults: 'parseQaResults',
|
|
3359
|
+
};
|
|
3360
|
+
}
|
|
3361
|
+
static types() {
|
|
3362
|
+
return {
|
|
3363
|
+
currentStatus: 'string',
|
|
3364
|
+
docId: 'string',
|
|
3365
|
+
libraryId: 'string',
|
|
3366
|
+
parseQaResults: { 'type': 'array', 'itemType': GenDocQaResultResponseBodyDataParseQaResults },
|
|
3367
|
+
};
|
|
3368
|
+
}
|
|
3369
|
+
constructor(map) {
|
|
3370
|
+
super(map);
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
exports.GenDocQaResultResponseBodyData = GenDocQaResultResponseBodyData;
|
|
2805
3374
|
class GetAppConfigResponseBodyData extends $tea.Model {
|
|
2806
3375
|
static names() {
|
|
2807
3376
|
return {
|
|
@@ -2828,6 +3397,130 @@ class GetAppConfigResponseBodyData extends $tea.Model {
|
|
|
2828
3397
|
}
|
|
2829
3398
|
}
|
|
2830
3399
|
exports.GetAppConfigResponseBodyData = GetAppConfigResponseBodyData;
|
|
3400
|
+
class GetChatQuestionRespResponseBodyDataQuestionList extends $tea.Model {
|
|
3401
|
+
static names() {
|
|
3402
|
+
return {
|
|
3403
|
+
content: 'content',
|
|
3404
|
+
gmtCreate: 'gmtCreate',
|
|
3405
|
+
reply: 'reply',
|
|
3406
|
+
sessionId: 'sessionId',
|
|
3407
|
+
type: 'type',
|
|
3408
|
+
userId: 'userId',
|
|
3409
|
+
userName: 'userName',
|
|
3410
|
+
};
|
|
3411
|
+
}
|
|
3412
|
+
static types() {
|
|
3413
|
+
return {
|
|
3414
|
+
content: 'string',
|
|
3415
|
+
gmtCreate: 'string',
|
|
3416
|
+
reply: 'string',
|
|
3417
|
+
sessionId: 'string',
|
|
3418
|
+
type: 'string',
|
|
3419
|
+
userId: 'string',
|
|
3420
|
+
userName: 'string',
|
|
3421
|
+
};
|
|
3422
|
+
}
|
|
3423
|
+
constructor(map) {
|
|
3424
|
+
super(map);
|
|
3425
|
+
}
|
|
3426
|
+
}
|
|
3427
|
+
exports.GetChatQuestionRespResponseBodyDataQuestionList = GetChatQuestionRespResponseBodyDataQuestionList;
|
|
3428
|
+
class GetChatQuestionRespResponseBodyData extends $tea.Model {
|
|
3429
|
+
static names() {
|
|
3430
|
+
return {
|
|
3431
|
+
currentState: 'currentState',
|
|
3432
|
+
questionList: 'questionList',
|
|
3433
|
+
};
|
|
3434
|
+
}
|
|
3435
|
+
static types() {
|
|
3436
|
+
return {
|
|
3437
|
+
currentState: 'string',
|
|
3438
|
+
questionList: { 'type': 'array', 'itemType': GetChatQuestionRespResponseBodyDataQuestionList },
|
|
3439
|
+
};
|
|
3440
|
+
}
|
|
3441
|
+
constructor(map) {
|
|
3442
|
+
super(map);
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
exports.GetChatQuestionRespResponseBodyData = GetChatQuestionRespResponseBodyData;
|
|
3446
|
+
class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels extends $tea.Model {
|
|
3447
|
+
static names() {
|
|
3448
|
+
return {
|
|
3449
|
+
name: 'name',
|
|
3450
|
+
value: 'value',
|
|
3451
|
+
};
|
|
3452
|
+
}
|
|
3453
|
+
static types() {
|
|
3454
|
+
return {
|
|
3455
|
+
name: 'string',
|
|
3456
|
+
value: 'string',
|
|
3457
|
+
};
|
|
3458
|
+
}
|
|
3459
|
+
constructor(map) {
|
|
3460
|
+
super(map);
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
exports.GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels = GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels;
|
|
3464
|
+
class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp extends $tea.Model {
|
|
3465
|
+
static names() {
|
|
3466
|
+
return {
|
|
3467
|
+
dialogExecPlan: 'dialogExecPlan',
|
|
3468
|
+
dialogLabels: 'dialogLabels',
|
|
3469
|
+
dialogSummary: 'dialogSummary',
|
|
3470
|
+
};
|
|
3471
|
+
}
|
|
3472
|
+
static types() {
|
|
3473
|
+
return {
|
|
3474
|
+
dialogExecPlan: 'string',
|
|
3475
|
+
dialogLabels: { 'type': 'array', 'itemType': GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels },
|
|
3476
|
+
dialogSummary: 'string',
|
|
3477
|
+
};
|
|
3478
|
+
}
|
|
3479
|
+
constructor(map) {
|
|
3480
|
+
super(map);
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
exports.GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp = GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp;
|
|
3484
|
+
class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespList extends $tea.Model {
|
|
3485
|
+
static names() {
|
|
3486
|
+
return {
|
|
3487
|
+
analysisResp: 'analysisResp',
|
|
3488
|
+
gmtCreate: 'gmtCreate',
|
|
3489
|
+
ossUrl: 'ossUrl',
|
|
3490
|
+
sessionId: 'sessionId',
|
|
3491
|
+
status: 'status',
|
|
3492
|
+
};
|
|
3493
|
+
}
|
|
3494
|
+
static types() {
|
|
3495
|
+
return {
|
|
3496
|
+
analysisResp: GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp,
|
|
3497
|
+
gmtCreate: 'string',
|
|
3498
|
+
ossUrl: 'string',
|
|
3499
|
+
sessionId: 'string',
|
|
3500
|
+
status: 'string',
|
|
3501
|
+
};
|
|
3502
|
+
}
|
|
3503
|
+
constructor(map) {
|
|
3504
|
+
super(map);
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
exports.GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespList = GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespList;
|
|
3508
|
+
class GetDialogAnalysisResultResponseBodyData extends $tea.Model {
|
|
3509
|
+
static names() {
|
|
3510
|
+
return {
|
|
3511
|
+
dialogAnalysisRespList: 'dialogAnalysisRespList',
|
|
3512
|
+
};
|
|
3513
|
+
}
|
|
3514
|
+
static types() {
|
|
3515
|
+
return {
|
|
3516
|
+
dialogAnalysisRespList: { 'type': 'array', 'itemType': GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespList },
|
|
3517
|
+
};
|
|
3518
|
+
}
|
|
3519
|
+
constructor(map) {
|
|
3520
|
+
super(map);
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
3523
|
+
exports.GetDialogAnalysisResultResponseBodyData = GetDialogAnalysisResultResponseBodyData;
|
|
2831
3524
|
class GetDocumentChunkListResponseBodyDataRecordsPos extends $tea.Model {
|
|
2832
3525
|
static names() {
|
|
2833
3526
|
return {
|
|
@@ -3866,6 +4559,128 @@ class PreviewDocumentResponseBodyData extends $tea.Model {
|
|
|
3866
4559
|
}
|
|
3867
4560
|
}
|
|
3868
4561
|
exports.PreviewDocumentResponseBodyData = PreviewDocumentResponseBodyData;
|
|
4562
|
+
class RealTimeDialogRequestConversationModel extends $tea.Model {
|
|
4563
|
+
static names() {
|
|
4564
|
+
return {
|
|
4565
|
+
begin: 'begin',
|
|
4566
|
+
beginTime: 'beginTime',
|
|
4567
|
+
content: 'content',
|
|
4568
|
+
customerId: 'customerId',
|
|
4569
|
+
customerServiceId: 'customerServiceId',
|
|
4570
|
+
customerServiceType: 'customerServiceType',
|
|
4571
|
+
end: 'end',
|
|
4572
|
+
role: 'role',
|
|
4573
|
+
type: 'type',
|
|
4574
|
+
};
|
|
4575
|
+
}
|
|
4576
|
+
static types() {
|
|
4577
|
+
return {
|
|
4578
|
+
begin: 'number',
|
|
4579
|
+
beginTime: 'string',
|
|
4580
|
+
content: 'string',
|
|
4581
|
+
customerId: 'string',
|
|
4582
|
+
customerServiceId: 'string',
|
|
4583
|
+
customerServiceType: 'string',
|
|
4584
|
+
end: 'number',
|
|
4585
|
+
role: 'number',
|
|
4586
|
+
type: 'string',
|
|
4587
|
+
};
|
|
4588
|
+
}
|
|
4589
|
+
constructor(map) {
|
|
4590
|
+
super(map);
|
|
4591
|
+
}
|
|
4592
|
+
}
|
|
4593
|
+
exports.RealTimeDialogRequestConversationModel = RealTimeDialogRequestConversationModel;
|
|
4594
|
+
class RealTimeDialogResponseBodyChoicesDelta extends $tea.Model {
|
|
4595
|
+
static names() {
|
|
4596
|
+
return {
|
|
4597
|
+
analysisProcess: 'analysisProcess',
|
|
4598
|
+
callTime: 'callTime',
|
|
4599
|
+
hangUpDialog: 'hangUpDialog',
|
|
4600
|
+
intentionCode: 'intentionCode',
|
|
4601
|
+
intentionName: 'intentionName',
|
|
4602
|
+
intentionScript: 'intentionScript',
|
|
4603
|
+
recommendIntention: 'recommendIntention',
|
|
4604
|
+
recommendScript: 'recommendScript',
|
|
4605
|
+
selfDirectedScript: 'selfDirectedScript',
|
|
4606
|
+
selfDirectedScriptFullContent: 'selfDirectedScriptFullContent',
|
|
4607
|
+
};
|
|
4608
|
+
}
|
|
4609
|
+
static types() {
|
|
4610
|
+
return {
|
|
4611
|
+
analysisProcess: 'string',
|
|
4612
|
+
callTime: 'string',
|
|
4613
|
+
hangUpDialog: 'boolean',
|
|
4614
|
+
intentionCode: 'string',
|
|
4615
|
+
intentionName: 'string',
|
|
4616
|
+
intentionScript: 'string',
|
|
4617
|
+
recommendIntention: 'string',
|
|
4618
|
+
recommendScript: 'string',
|
|
4619
|
+
selfDirectedScript: 'string',
|
|
4620
|
+
selfDirectedScriptFullContent: 'string',
|
|
4621
|
+
};
|
|
4622
|
+
}
|
|
4623
|
+
constructor(map) {
|
|
4624
|
+
super(map);
|
|
4625
|
+
}
|
|
4626
|
+
}
|
|
4627
|
+
exports.RealTimeDialogResponseBodyChoicesDelta = RealTimeDialogResponseBodyChoicesDelta;
|
|
4628
|
+
class RealTimeDialogResponseBodyChoicesMessage extends $tea.Model {
|
|
4629
|
+
static names() {
|
|
4630
|
+
return {
|
|
4631
|
+
analysisProcess: 'analysisProcess',
|
|
4632
|
+
callTime: 'callTime',
|
|
4633
|
+
hangUpDialog: 'hangUpDialog',
|
|
4634
|
+
intentionCode: 'intentionCode',
|
|
4635
|
+
intentionName: 'intentionName',
|
|
4636
|
+
intentionScript: 'intentionScript',
|
|
4637
|
+
recommendIntention: 'recommendIntention',
|
|
4638
|
+
recommendScript: 'recommendScript',
|
|
4639
|
+
selfDirectedScript: 'selfDirectedScript',
|
|
4640
|
+
selfDirectedScriptFullContent: 'selfDirectedScriptFullContent',
|
|
4641
|
+
};
|
|
4642
|
+
}
|
|
4643
|
+
static types() {
|
|
4644
|
+
return {
|
|
4645
|
+
analysisProcess: 'string',
|
|
4646
|
+
callTime: 'string',
|
|
4647
|
+
hangUpDialog: 'boolean',
|
|
4648
|
+
intentionCode: 'string',
|
|
4649
|
+
intentionName: 'string',
|
|
4650
|
+
intentionScript: 'string',
|
|
4651
|
+
recommendIntention: 'string',
|
|
4652
|
+
recommendScript: 'string',
|
|
4653
|
+
selfDirectedScript: 'string',
|
|
4654
|
+
selfDirectedScriptFullContent: 'string',
|
|
4655
|
+
};
|
|
4656
|
+
}
|
|
4657
|
+
constructor(map) {
|
|
4658
|
+
super(map);
|
|
4659
|
+
}
|
|
4660
|
+
}
|
|
4661
|
+
exports.RealTimeDialogResponseBodyChoicesMessage = RealTimeDialogResponseBodyChoicesMessage;
|
|
4662
|
+
class RealTimeDialogResponseBodyChoices extends $tea.Model {
|
|
4663
|
+
static names() {
|
|
4664
|
+
return {
|
|
4665
|
+
delta: 'delta',
|
|
4666
|
+
finishReason: 'finishReason',
|
|
4667
|
+
index: 'index',
|
|
4668
|
+
message: 'message',
|
|
4669
|
+
};
|
|
4670
|
+
}
|
|
4671
|
+
static types() {
|
|
4672
|
+
return {
|
|
4673
|
+
delta: RealTimeDialogResponseBodyChoicesDelta,
|
|
4674
|
+
finishReason: 'string',
|
|
4675
|
+
index: 'number',
|
|
4676
|
+
message: RealTimeDialogResponseBodyChoicesMessage,
|
|
4677
|
+
};
|
|
4678
|
+
}
|
|
4679
|
+
constructor(map) {
|
|
4680
|
+
super(map);
|
|
4681
|
+
}
|
|
4682
|
+
}
|
|
4683
|
+
exports.RealTimeDialogResponseBodyChoices = RealTimeDialogResponseBodyChoices;
|
|
3869
4684
|
class RecallDocumentRequestFiltersAnd extends $tea.Model {
|
|
3870
4685
|
static names() {
|
|
3871
4686
|
return {
|
|
@@ -4574,6 +5389,50 @@ class RunLibraryChatGenerationRequestVectorSearchParameter extends $tea.Model {
|
|
|
4574
5389
|
}
|
|
4575
5390
|
}
|
|
4576
5391
|
exports.RunLibraryChatGenerationRequestVectorSearchParameter = RunLibraryChatGenerationRequestVectorSearchParameter;
|
|
5392
|
+
class SubmitChatQuestionRequestQuestionList extends $tea.Model {
|
|
5393
|
+
static names() {
|
|
5394
|
+
return {
|
|
5395
|
+
content: 'content',
|
|
5396
|
+
gmtCreate: 'gmtCreate',
|
|
5397
|
+
reply: 'reply',
|
|
5398
|
+
sessionId: 'sessionId',
|
|
5399
|
+
type: 'type',
|
|
5400
|
+
userId: 'userId',
|
|
5401
|
+
userName: 'userName',
|
|
5402
|
+
};
|
|
5403
|
+
}
|
|
5404
|
+
static types() {
|
|
5405
|
+
return {
|
|
5406
|
+
content: 'string',
|
|
5407
|
+
gmtCreate: 'string',
|
|
5408
|
+
reply: 'string',
|
|
5409
|
+
sessionId: 'string',
|
|
5410
|
+
type: 'string',
|
|
5411
|
+
userId: 'string',
|
|
5412
|
+
userName: 'string',
|
|
5413
|
+
};
|
|
5414
|
+
}
|
|
5415
|
+
constructor(map) {
|
|
5416
|
+
super(map);
|
|
5417
|
+
}
|
|
5418
|
+
}
|
|
5419
|
+
exports.SubmitChatQuestionRequestQuestionList = SubmitChatQuestionRequestQuestionList;
|
|
5420
|
+
class SubmitChatQuestionResponseBodyData extends $tea.Model {
|
|
5421
|
+
static names() {
|
|
5422
|
+
return {
|
|
5423
|
+
batchId: 'batchId',
|
|
5424
|
+
};
|
|
5425
|
+
}
|
|
5426
|
+
static types() {
|
|
5427
|
+
return {
|
|
5428
|
+
batchId: 'string',
|
|
5429
|
+
};
|
|
5430
|
+
}
|
|
5431
|
+
constructor(map) {
|
|
5432
|
+
super(map);
|
|
5433
|
+
}
|
|
5434
|
+
}
|
|
5435
|
+
exports.SubmitChatQuestionResponseBodyData = SubmitChatQuestionResponseBodyData;
|
|
4577
5436
|
class UpdateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
|
|
4578
5437
|
static names() {
|
|
4579
5438
|
return {
|
|
@@ -4747,7 +5606,41 @@ class UpdateLibraryRequestIndexSetting extends $tea.Model {
|
|
|
4747
5606
|
super(map);
|
|
4748
5607
|
}
|
|
4749
5608
|
}
|
|
4750
|
-
exports.UpdateLibraryRequestIndexSetting = UpdateLibraryRequestIndexSetting;
|
|
5609
|
+
exports.UpdateLibraryRequestIndexSetting = UpdateLibraryRequestIndexSetting;
|
|
5610
|
+
class UpdateQaLibraryRequestParseQaResults extends $tea.Model {
|
|
5611
|
+
static names() {
|
|
5612
|
+
return {
|
|
5613
|
+
answer: 'answer',
|
|
5614
|
+
question: 'question',
|
|
5615
|
+
};
|
|
5616
|
+
}
|
|
5617
|
+
static types() {
|
|
5618
|
+
return {
|
|
5619
|
+
answer: 'string',
|
|
5620
|
+
question: 'string',
|
|
5621
|
+
};
|
|
5622
|
+
}
|
|
5623
|
+
constructor(map) {
|
|
5624
|
+
super(map);
|
|
5625
|
+
}
|
|
5626
|
+
}
|
|
5627
|
+
exports.UpdateQaLibraryRequestParseQaResults = UpdateQaLibraryRequestParseQaResults;
|
|
5628
|
+
class UpdateQaLibraryResponseBodyData extends $tea.Model {
|
|
5629
|
+
static names() {
|
|
5630
|
+
return {
|
|
5631
|
+
qaLibraryId: 'qaLibraryId',
|
|
5632
|
+
};
|
|
5633
|
+
}
|
|
5634
|
+
static types() {
|
|
5635
|
+
return {
|
|
5636
|
+
qaLibraryId: 'string',
|
|
5637
|
+
};
|
|
5638
|
+
}
|
|
5639
|
+
constructor(map) {
|
|
5640
|
+
super(map);
|
|
5641
|
+
}
|
|
5642
|
+
}
|
|
5643
|
+
exports.UpdateQaLibraryResponseBodyData = UpdateQaLibraryResponseBodyData;
|
|
4751
5644
|
class Client extends openapi_client_1.default {
|
|
4752
5645
|
constructor(config) {
|
|
4753
5646
|
super(config);
|
|
@@ -4818,6 +5711,66 @@ class Client extends openapi_client_1.default {
|
|
|
4818
5711
|
let headers = {};
|
|
4819
5712
|
return await this.createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime);
|
|
4820
5713
|
}
|
|
5714
|
+
/**
|
|
5715
|
+
* 创建外呼会话
|
|
5716
|
+
*
|
|
5717
|
+
* @param request - CreateDialogRequest
|
|
5718
|
+
* @param headers - map
|
|
5719
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5720
|
+
* @returns CreateDialogResponse
|
|
5721
|
+
*/
|
|
5722
|
+
async createDialogWithOptions(workspaceId, request, headers, runtime) {
|
|
5723
|
+
tea_util_1.default.validateModel(request);
|
|
5724
|
+
let body = {};
|
|
5725
|
+
if (!tea_util_1.default.isUnset(request.channel)) {
|
|
5726
|
+
body["channel"] = request.channel;
|
|
5727
|
+
}
|
|
5728
|
+
if (!tea_util_1.default.isUnset(request.enableLibrary)) {
|
|
5729
|
+
body["enableLibrary"] = request.enableLibrary;
|
|
5730
|
+
}
|
|
5731
|
+
if (!tea_util_1.default.isUnset(request.metaData)) {
|
|
5732
|
+
body["metaData"] = request.metaData;
|
|
5733
|
+
}
|
|
5734
|
+
if (!tea_util_1.default.isUnset(request.playCode)) {
|
|
5735
|
+
body["playCode"] = request.playCode;
|
|
5736
|
+
}
|
|
5737
|
+
if (!tea_util_1.default.isUnset(request.qaLibraryList)) {
|
|
5738
|
+
body["qaLibraryList"] = request.qaLibraryList;
|
|
5739
|
+
}
|
|
5740
|
+
if (!tea_util_1.default.isUnset(request.requestId)) {
|
|
5741
|
+
body["requestId"] = request.requestId;
|
|
5742
|
+
}
|
|
5743
|
+
if (!tea_util_1.default.isUnset(request.selfDirected)) {
|
|
5744
|
+
body["selfDirected"] = request.selfDirected;
|
|
5745
|
+
}
|
|
5746
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5747
|
+
headers: headers,
|
|
5748
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
5749
|
+
});
|
|
5750
|
+
let params = new $OpenApi.Params({
|
|
5751
|
+
action: "CreateDialog",
|
|
5752
|
+
version: "2024-06-28",
|
|
5753
|
+
protocol: "HTTPS",
|
|
5754
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/dialog/create`,
|
|
5755
|
+
method: "POST",
|
|
5756
|
+
authType: "AK",
|
|
5757
|
+
style: "ROA",
|
|
5758
|
+
reqBodyType: "json",
|
|
5759
|
+
bodyType: "json",
|
|
5760
|
+
});
|
|
5761
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateDialogResponse({}));
|
|
5762
|
+
}
|
|
5763
|
+
/**
|
|
5764
|
+
* 创建外呼会话
|
|
5765
|
+
*
|
|
5766
|
+
* @param request - CreateDialogRequest
|
|
5767
|
+
* @returns CreateDialogResponse
|
|
5768
|
+
*/
|
|
5769
|
+
async createDialog(workspaceId, request) {
|
|
5770
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5771
|
+
let headers = {};
|
|
5772
|
+
return await this.createDialogWithOptions(workspaceId, request, headers, runtime);
|
|
5773
|
+
}
|
|
4821
5774
|
/**
|
|
4822
5775
|
* 创建财报总结任务
|
|
4823
5776
|
*
|
|
@@ -5271,6 +6224,54 @@ class Client extends openapi_client_1.default {
|
|
|
5271
6224
|
let headers = {};
|
|
5272
6225
|
return await this.evictTaskWithOptions(workspaceId, request, headers, runtime);
|
|
5273
6226
|
}
|
|
6227
|
+
/**
|
|
6228
|
+
* 根据文档解析问答QA
|
|
6229
|
+
*
|
|
6230
|
+
* @param request - GenDocQaResultRequest
|
|
6231
|
+
* @param headers - map
|
|
6232
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6233
|
+
* @returns GenDocQaResultResponse
|
|
6234
|
+
*/
|
|
6235
|
+
async genDocQaResultWithOptions(workspaceId, request, headers, runtime) {
|
|
6236
|
+
tea_util_1.default.validateModel(request);
|
|
6237
|
+
let body = {};
|
|
6238
|
+
if (!tea_util_1.default.isUnset(request.docId)) {
|
|
6239
|
+
body["docId"] = request.docId;
|
|
6240
|
+
}
|
|
6241
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
6242
|
+
body["libraryId"] = request.libraryId;
|
|
6243
|
+
}
|
|
6244
|
+
if (!tea_util_1.default.isUnset(request.requestId)) {
|
|
6245
|
+
body["requestId"] = request.requestId;
|
|
6246
|
+
}
|
|
6247
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6248
|
+
headers: headers,
|
|
6249
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6250
|
+
});
|
|
6251
|
+
let params = new $OpenApi.Params({
|
|
6252
|
+
action: "GenDocQaResult",
|
|
6253
|
+
version: "2024-06-28",
|
|
6254
|
+
protocol: "HTTPS",
|
|
6255
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/qa/parse`,
|
|
6256
|
+
method: "POST",
|
|
6257
|
+
authType: "AK",
|
|
6258
|
+
style: "ROA",
|
|
6259
|
+
reqBodyType: "json",
|
|
6260
|
+
bodyType: "json",
|
|
6261
|
+
});
|
|
6262
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GenDocQaResultResponse({}));
|
|
6263
|
+
}
|
|
6264
|
+
/**
|
|
6265
|
+
* 根据文档解析问答QA
|
|
6266
|
+
*
|
|
6267
|
+
* @param request - GenDocQaResultRequest
|
|
6268
|
+
* @returns GenDocQaResultResponse
|
|
6269
|
+
*/
|
|
6270
|
+
async genDocQaResult(workspaceId, request) {
|
|
6271
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6272
|
+
let headers = {};
|
|
6273
|
+
return await this.genDocQaResultWithOptions(workspaceId, request, headers, runtime);
|
|
6274
|
+
}
|
|
5274
6275
|
/**
|
|
5275
6276
|
* 获取app配置
|
|
5276
6277
|
*
|
|
@@ -5304,6 +6305,105 @@ class Client extends openapi_client_1.default {
|
|
|
5304
6305
|
let headers = {};
|
|
5305
6306
|
return await this.getAppConfigWithOptions(workspaceId, headers, runtime);
|
|
5306
6307
|
}
|
|
6308
|
+
/**
|
|
6309
|
+
* 获取问答结果
|
|
6310
|
+
*
|
|
6311
|
+
* @param request - GetChatQuestionRespRequest
|
|
6312
|
+
* @param headers - map
|
|
6313
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6314
|
+
* @returns GetChatQuestionRespResponse
|
|
6315
|
+
*/
|
|
6316
|
+
async getChatQuestionRespWithOptions(workspaceId, request, headers, runtime) {
|
|
6317
|
+
tea_util_1.default.validateModel(request);
|
|
6318
|
+
let body = {};
|
|
6319
|
+
if (!tea_util_1.default.isUnset(request.batchId)) {
|
|
6320
|
+
body["batchId"] = request.batchId;
|
|
6321
|
+
}
|
|
6322
|
+
if (!tea_util_1.default.isUnset(request.sessionId)) {
|
|
6323
|
+
body["sessionId"] = request.sessionId;
|
|
6324
|
+
}
|
|
6325
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6326
|
+
headers: headers,
|
|
6327
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6328
|
+
});
|
|
6329
|
+
let params = new $OpenApi.Params({
|
|
6330
|
+
action: "GetChatQuestionResp",
|
|
6331
|
+
version: "2024-06-28",
|
|
6332
|
+
protocol: "HTTPS",
|
|
6333
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/chat/query`,
|
|
6334
|
+
method: "POST",
|
|
6335
|
+
authType: "AK",
|
|
6336
|
+
style: "ROA",
|
|
6337
|
+
reqBodyType: "json",
|
|
6338
|
+
bodyType: "json",
|
|
6339
|
+
});
|
|
6340
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetChatQuestionRespResponse({}));
|
|
6341
|
+
}
|
|
6342
|
+
/**
|
|
6343
|
+
* 获取问答结果
|
|
6344
|
+
*
|
|
6345
|
+
* @param request - GetChatQuestionRespRequest
|
|
6346
|
+
* @returns GetChatQuestionRespResponse
|
|
6347
|
+
*/
|
|
6348
|
+
async getChatQuestionResp(workspaceId, request) {
|
|
6349
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6350
|
+
let headers = {};
|
|
6351
|
+
return await this.getChatQuestionRespWithOptions(workspaceId, request, headers, runtime);
|
|
6352
|
+
}
|
|
6353
|
+
/**
|
|
6354
|
+
* 获取外呼会话分析结果
|
|
6355
|
+
*
|
|
6356
|
+
* @param request - GetDialogAnalysisResultRequest
|
|
6357
|
+
* @param headers - map
|
|
6358
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6359
|
+
* @returns GetDialogAnalysisResultResponse
|
|
6360
|
+
*/
|
|
6361
|
+
async getDialogAnalysisResultWithOptions(workspaceId, request, headers, runtime) {
|
|
6362
|
+
tea_util_1.default.validateModel(request);
|
|
6363
|
+
let body = {};
|
|
6364
|
+
if (!tea_util_1.default.isUnset(request.asc)) {
|
|
6365
|
+
body["asc"] = request.asc;
|
|
6366
|
+
}
|
|
6367
|
+
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
6368
|
+
body["endTime"] = request.endTime;
|
|
6369
|
+
}
|
|
6370
|
+
if (!tea_util_1.default.isUnset(request.sessionIds)) {
|
|
6371
|
+
body["sessionIds"] = request.sessionIds;
|
|
6372
|
+
}
|
|
6373
|
+
if (!tea_util_1.default.isUnset(request.startTime)) {
|
|
6374
|
+
body["startTime"] = request.startTime;
|
|
6375
|
+
}
|
|
6376
|
+
if (!tea_util_1.default.isUnset(request.useUrl)) {
|
|
6377
|
+
body["useUrl"] = request.useUrl;
|
|
6378
|
+
}
|
|
6379
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6380
|
+
headers: headers,
|
|
6381
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6382
|
+
});
|
|
6383
|
+
let params = new $OpenApi.Params({
|
|
6384
|
+
action: "GetDialogAnalysisResult",
|
|
6385
|
+
version: "2024-06-28",
|
|
6386
|
+
protocol: "HTTPS",
|
|
6387
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/dialog/analysis`,
|
|
6388
|
+
method: "POST",
|
|
6389
|
+
authType: "AK",
|
|
6390
|
+
style: "ROA",
|
|
6391
|
+
reqBodyType: "json",
|
|
6392
|
+
bodyType: "json",
|
|
6393
|
+
});
|
|
6394
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetDialogAnalysisResultResponse({}));
|
|
6395
|
+
}
|
|
6396
|
+
/**
|
|
6397
|
+
* 获取外呼会话分析结果
|
|
6398
|
+
*
|
|
6399
|
+
* @param request - GetDialogAnalysisResultRequest
|
|
6400
|
+
* @returns GetDialogAnalysisResultResponse
|
|
6401
|
+
*/
|
|
6402
|
+
async getDialogAnalysisResult(workspaceId, request) {
|
|
6403
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6404
|
+
let headers = {};
|
|
6405
|
+
return await this.getDialogAnalysisResultWithOptions(workspaceId, request, headers, runtime);
|
|
6406
|
+
}
|
|
5307
6407
|
/**
|
|
5308
6408
|
* 获取文档的chunk列表
|
|
5309
6409
|
*
|
|
@@ -6006,6 +7106,69 @@ class Client extends openapi_client_1.default {
|
|
|
6006
7106
|
let headers = {};
|
|
6007
7107
|
return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
|
|
6008
7108
|
}
|
|
7109
|
+
/**
|
|
7110
|
+
* 实时对话
|
|
7111
|
+
*
|
|
7112
|
+
* @param request - RealTimeDialogRequest
|
|
7113
|
+
* @param headers - map
|
|
7114
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7115
|
+
* @returns RealTimeDialogResponse
|
|
7116
|
+
*/
|
|
7117
|
+
async realTimeDialogWithOptions(workspaceId, request, headers, runtime) {
|
|
7118
|
+
tea_util_1.default.validateModel(request);
|
|
7119
|
+
let body = {};
|
|
7120
|
+
if (!tea_util_1.default.isUnset(request.analysis)) {
|
|
7121
|
+
body["analysis"] = request.analysis;
|
|
7122
|
+
}
|
|
7123
|
+
if (!tea_util_1.default.isUnset(request.bizType)) {
|
|
7124
|
+
body["bizType"] = request.bizType;
|
|
7125
|
+
}
|
|
7126
|
+
if (!tea_util_1.default.isUnset(request.conversationModel)) {
|
|
7127
|
+
body["conversationModel"] = request.conversationModel;
|
|
7128
|
+
}
|
|
7129
|
+
if (!tea_util_1.default.isUnset(request.dialogMemoryTurns)) {
|
|
7130
|
+
body["dialogMemoryTurns"] = request.dialogMemoryTurns;
|
|
7131
|
+
}
|
|
7132
|
+
if (!tea_util_1.default.isUnset(request.metaData)) {
|
|
7133
|
+
body["metaData"] = request.metaData;
|
|
7134
|
+
}
|
|
7135
|
+
if (!tea_util_1.default.isUnset(request.recommend)) {
|
|
7136
|
+
body["recommend"] = request.recommend;
|
|
7137
|
+
}
|
|
7138
|
+
if (!tea_util_1.default.isUnset(request.sessionId)) {
|
|
7139
|
+
body["sessionId"] = request.sessionId;
|
|
7140
|
+
}
|
|
7141
|
+
if (!tea_util_1.default.isUnset(request.stream)) {
|
|
7142
|
+
body["stream"] = request.stream;
|
|
7143
|
+
}
|
|
7144
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7145
|
+
headers: headers,
|
|
7146
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
7147
|
+
});
|
|
7148
|
+
let params = new $OpenApi.Params({
|
|
7149
|
+
action: "RealTimeDialog",
|
|
7150
|
+
version: "2024-06-28",
|
|
7151
|
+
protocol: "HTTPS",
|
|
7152
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/realtime/dialog/chat`,
|
|
7153
|
+
method: "POST",
|
|
7154
|
+
authType: "AK",
|
|
7155
|
+
style: "ROA",
|
|
7156
|
+
reqBodyType: "json",
|
|
7157
|
+
bodyType: "json",
|
|
7158
|
+
});
|
|
7159
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RealTimeDialogResponse({}));
|
|
7160
|
+
}
|
|
7161
|
+
/**
|
|
7162
|
+
* 实时对话
|
|
7163
|
+
*
|
|
7164
|
+
* @param request - RealTimeDialogRequest
|
|
7165
|
+
* @returns RealTimeDialogResponse
|
|
7166
|
+
*/
|
|
7167
|
+
async realTimeDialog(workspaceId, request) {
|
|
7168
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7169
|
+
let headers = {};
|
|
7170
|
+
return await this.realTimeDialogWithOptions(workspaceId, request, headers, runtime);
|
|
7171
|
+
}
|
|
6009
7172
|
/**
|
|
6010
7173
|
* 重建任务
|
|
6011
7174
|
*
|
|
@@ -6315,6 +7478,63 @@ class Client extends openapi_client_1.default {
|
|
|
6315
7478
|
let headers = {};
|
|
6316
7479
|
return await this.runLibraryChatGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
6317
7480
|
}
|
|
7481
|
+
/**
|
|
7482
|
+
* 提交问题列表
|
|
7483
|
+
*
|
|
7484
|
+
* @param request - SubmitChatQuestionRequest
|
|
7485
|
+
* @param headers - map
|
|
7486
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7487
|
+
* @returns SubmitChatQuestionResponse
|
|
7488
|
+
*/
|
|
7489
|
+
async submitChatQuestionWithOptions(workspaceId, request, headers, runtime) {
|
|
7490
|
+
tea_util_1.default.validateModel(request);
|
|
7491
|
+
let body = {};
|
|
7492
|
+
if (!tea_util_1.default.isUnset(request.gmtService)) {
|
|
7493
|
+
body["gmtService"] = request.gmtService;
|
|
7494
|
+
}
|
|
7495
|
+
if (!tea_util_1.default.isUnset(request.liveScriptContent)) {
|
|
7496
|
+
body["liveScriptContent"] = request.liveScriptContent;
|
|
7497
|
+
}
|
|
7498
|
+
if (!tea_util_1.default.isUnset(request.openSmallTalk)) {
|
|
7499
|
+
body["openSmallTalk"] = request.openSmallTalk;
|
|
7500
|
+
}
|
|
7501
|
+
if (!tea_util_1.default.isUnset(request.questionList)) {
|
|
7502
|
+
body["questionList"] = request.questionList;
|
|
7503
|
+
}
|
|
7504
|
+
if (!tea_util_1.default.isUnset(request.requestId)) {
|
|
7505
|
+
body["requestId"] = request.requestId;
|
|
7506
|
+
}
|
|
7507
|
+
if (!tea_util_1.default.isUnset(request.sessionId)) {
|
|
7508
|
+
body["sessionId"] = request.sessionId;
|
|
7509
|
+
}
|
|
7510
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7511
|
+
headers: headers,
|
|
7512
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
7513
|
+
});
|
|
7514
|
+
let params = new $OpenApi.Params({
|
|
7515
|
+
action: "SubmitChatQuestion",
|
|
7516
|
+
version: "2024-06-28",
|
|
7517
|
+
protocol: "HTTPS",
|
|
7518
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/chat/submit`,
|
|
7519
|
+
method: "POST",
|
|
7520
|
+
authType: "AK",
|
|
7521
|
+
style: "ROA",
|
|
7522
|
+
reqBodyType: "json",
|
|
7523
|
+
bodyType: "json",
|
|
7524
|
+
});
|
|
7525
|
+
return $tea.cast(await this.callApi(params, req, runtime), new SubmitChatQuestionResponse({}));
|
|
7526
|
+
}
|
|
7527
|
+
/**
|
|
7528
|
+
* 提交问题列表
|
|
7529
|
+
*
|
|
7530
|
+
* @param request - SubmitChatQuestionRequest
|
|
7531
|
+
* @returns SubmitChatQuestionResponse
|
|
7532
|
+
*/
|
|
7533
|
+
async submitChatQuestion(workspaceId, request) {
|
|
7534
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7535
|
+
let headers = {};
|
|
7536
|
+
return await this.submitChatQuestionWithOptions(workspaceId, request, headers, runtime);
|
|
7537
|
+
}
|
|
6318
7538
|
/**
|
|
6319
7539
|
* 更新文档
|
|
6320
7540
|
*
|
|
@@ -6417,6 +7637,54 @@ class Client extends openapi_client_1.default {
|
|
|
6417
7637
|
let headers = {};
|
|
6418
7638
|
return await this.updateLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
6419
7639
|
}
|
|
7640
|
+
/**
|
|
7641
|
+
* 更新QA问答库
|
|
7642
|
+
*
|
|
7643
|
+
* @param request - UpdateQaLibraryRequest
|
|
7644
|
+
* @param headers - map
|
|
7645
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7646
|
+
* @returns UpdateQaLibraryResponse
|
|
7647
|
+
*/
|
|
7648
|
+
async updateQaLibraryWithOptions(workspaceId, request, headers, runtime) {
|
|
7649
|
+
tea_util_1.default.validateModel(request);
|
|
7650
|
+
let body = {};
|
|
7651
|
+
if (!tea_util_1.default.isUnset(request.parseQaResults)) {
|
|
7652
|
+
body["parseQaResults"] = request.parseQaResults;
|
|
7653
|
+
}
|
|
7654
|
+
if (!tea_util_1.default.isUnset(request.qaLibraryId)) {
|
|
7655
|
+
body["qaLibraryId"] = request.qaLibraryId;
|
|
7656
|
+
}
|
|
7657
|
+
if (!tea_util_1.default.isUnset(request.requestId)) {
|
|
7658
|
+
body["requestId"] = request.requestId;
|
|
7659
|
+
}
|
|
7660
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7661
|
+
headers: headers,
|
|
7662
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
7663
|
+
});
|
|
7664
|
+
let params = new $OpenApi.Params({
|
|
7665
|
+
action: "UpdateQaLibrary",
|
|
7666
|
+
version: "2024-06-28",
|
|
7667
|
+
protocol: "HTTPS",
|
|
7668
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/virtualHuman/qa/upload`,
|
|
7669
|
+
method: "POST",
|
|
7670
|
+
authType: "AK",
|
|
7671
|
+
style: "ROA",
|
|
7672
|
+
reqBodyType: "json",
|
|
7673
|
+
bodyType: "json",
|
|
7674
|
+
});
|
|
7675
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateQaLibraryResponse({}));
|
|
7676
|
+
}
|
|
7677
|
+
/**
|
|
7678
|
+
* 更新QA问答库
|
|
7679
|
+
*
|
|
7680
|
+
* @param request - UpdateQaLibraryRequest
|
|
7681
|
+
* @returns UpdateQaLibraryResponse
|
|
7682
|
+
*/
|
|
7683
|
+
async updateQaLibrary(workspaceId, request) {
|
|
7684
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7685
|
+
let headers = {};
|
|
7686
|
+
return await this.updateQaLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
7687
|
+
}
|
|
6420
7688
|
/**
|
|
6421
7689
|
* 上传文档到文档库
|
|
6422
7690
|
*
|