@alicloud/dianjin20240628 1.6.5 → 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 +1082 -20
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1974 -169
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.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
|
*/
|
|
@@ -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,74 @@ 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;
|
|
815
1032
|
class GetDocumentChunkListRequest extends $tea.Model {
|
|
816
1033
|
static names() {
|
|
817
1034
|
return {
|
|
@@ -1850,6 +2067,80 @@ class ReIndexResponse extends $tea.Model {
|
|
|
1850
2067
|
}
|
|
1851
2068
|
}
|
|
1852
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;
|
|
1853
2144
|
class RebuildTaskRequest extends $tea.Model {
|
|
1854
2145
|
static names() {
|
|
1855
2146
|
return {
|
|
@@ -2246,29 +2537,105 @@ class RunLibraryChatGenerationResponse extends $tea.Model {
|
|
|
2246
2537
|
}
|
|
2247
2538
|
}
|
|
2248
2539
|
exports.RunLibraryChatGenerationResponse = RunLibraryChatGenerationResponse;
|
|
2249
|
-
class
|
|
2540
|
+
class SubmitChatQuestionRequest extends $tea.Model {
|
|
2250
2541
|
static names() {
|
|
2251
2542
|
return {
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2543
|
+
gmtService: 'gmtService',
|
|
2544
|
+
liveScriptContent: 'liveScriptContent',
|
|
2545
|
+
openSmallTalk: 'openSmallTalk',
|
|
2546
|
+
questionList: 'questionList',
|
|
2547
|
+
requestId: 'requestId',
|
|
2548
|
+
sessionId: 'sessionId',
|
|
2256
2549
|
};
|
|
2257
2550
|
}
|
|
2258
2551
|
static types() {
|
|
2259
2552
|
return {
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2553
|
+
gmtService: 'string',
|
|
2554
|
+
liveScriptContent: 'string',
|
|
2555
|
+
openSmallTalk: 'boolean',
|
|
2556
|
+
questionList: { 'type': 'array', 'itemType': SubmitChatQuestionRequestQuestionList },
|
|
2557
|
+
requestId: 'string',
|
|
2558
|
+
sessionId: 'string',
|
|
2264
2559
|
};
|
|
2265
2560
|
}
|
|
2266
2561
|
constructor(map) {
|
|
2267
2562
|
super(map);
|
|
2268
2563
|
}
|
|
2269
2564
|
}
|
|
2270
|
-
exports.
|
|
2271
|
-
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 {
|
|
2272
2639
|
static names() {
|
|
2273
2640
|
return {
|
|
2274
2641
|
cost: 'cost',
|
|
@@ -2390,6 +2757,76 @@ class UpdateLibraryResponse extends $tea.Model {
|
|
|
2390
2757
|
}
|
|
2391
2758
|
}
|
|
2392
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;
|
|
2393
2830
|
class UploadDocumentRequest extends $tea.Model {
|
|
2394
2831
|
static names() {
|
|
2395
2832
|
return {
|
|
@@ -2508,6 +2945,24 @@ class CreateAnnualDocSummaryTaskRequestDocInfos extends $tea.Model {
|
|
|
2508
2945
|
}
|
|
2509
2946
|
}
|
|
2510
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;
|
|
2511
2966
|
class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
|
|
2512
2967
|
static names() {
|
|
2513
2968
|
return {
|
|
@@ -2802,6 +3257,46 @@ class CreateQualityCheckTaskResponseBodyData extends $tea.Model {
|
|
|
2802
3257
|
}
|
|
2803
3258
|
}
|
|
2804
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;
|
|
2805
3300
|
class GetAppConfigResponseBodyData extends $tea.Model {
|
|
2806
3301
|
static names() {
|
|
2807
3302
|
return {
|
|
@@ -2828,6 +3323,52 @@ class GetAppConfigResponseBodyData extends $tea.Model {
|
|
|
2828
3323
|
}
|
|
2829
3324
|
}
|
|
2830
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;
|
|
2831
3372
|
class GetDocumentChunkListResponseBodyDataRecordsPos extends $tea.Model {
|
|
2832
3373
|
static names() {
|
|
2833
3374
|
return {
|
|
@@ -3866,6 +4407,128 @@ class PreviewDocumentResponseBodyData extends $tea.Model {
|
|
|
3866
4407
|
}
|
|
3867
4408
|
}
|
|
3868
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;
|
|
3869
4532
|
class RecallDocumentRequestFiltersAnd extends $tea.Model {
|
|
3870
4533
|
static names() {
|
|
3871
4534
|
return {
|
|
@@ -4557,23 +5220,67 @@ class RunLibraryChatGenerationRequestTextSearchParameter extends $tea.Model {
|
|
|
4557
5220
|
super(map);
|
|
4558
5221
|
}
|
|
4559
5222
|
}
|
|
4560
|
-
exports.RunLibraryChatGenerationRequestTextSearchParameter = RunLibraryChatGenerationRequestTextSearchParameter;
|
|
4561
|
-
class RunLibraryChatGenerationRequestVectorSearchParameter extends $tea.Model {
|
|
5223
|
+
exports.RunLibraryChatGenerationRequestTextSearchParameter = RunLibraryChatGenerationRequestTextSearchParameter;
|
|
5224
|
+
class RunLibraryChatGenerationRequestVectorSearchParameter extends $tea.Model {
|
|
5225
|
+
static names() {
|
|
5226
|
+
return {
|
|
5227
|
+
limit: 'limit',
|
|
5228
|
+
};
|
|
5229
|
+
}
|
|
5230
|
+
static types() {
|
|
5231
|
+
return {
|
|
5232
|
+
limit: 'number',
|
|
5233
|
+
};
|
|
5234
|
+
}
|
|
5235
|
+
constructor(map) {
|
|
5236
|
+
super(map);
|
|
5237
|
+
}
|
|
5238
|
+
}
|
|
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 {
|
|
4562
5269
|
static names() {
|
|
4563
5270
|
return {
|
|
4564
|
-
|
|
5271
|
+
batchId: 'batchId',
|
|
4565
5272
|
};
|
|
4566
5273
|
}
|
|
4567
5274
|
static types() {
|
|
4568
5275
|
return {
|
|
4569
|
-
|
|
5276
|
+
batchId: 'string',
|
|
4570
5277
|
};
|
|
4571
5278
|
}
|
|
4572
5279
|
constructor(map) {
|
|
4573
5280
|
super(map);
|
|
4574
5281
|
}
|
|
4575
5282
|
}
|
|
4576
|
-
exports.
|
|
5283
|
+
exports.SubmitChatQuestionResponseBodyData = SubmitChatQuestionResponseBodyData;
|
|
4577
5284
|
class UpdateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
|
|
4578
5285
|
static names() {
|
|
4579
5286
|
return {
|
|
@@ -4748,6 +5455,40 @@ class UpdateLibraryRequestIndexSetting extends $tea.Model {
|
|
|
4748
5455
|
}
|
|
4749
5456
|
}
|
|
4750
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;
|
|
4751
5492
|
class Client extends openapi_client_1.default {
|
|
4752
5493
|
constructor(config) {
|
|
4753
5494
|
super(config);
|
|
@@ -4818,6 +5559,66 @@ class Client extends openapi_client_1.default {
|
|
|
4818
5559
|
let headers = {};
|
|
4819
5560
|
return await this.createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime);
|
|
4820
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;
|
|
5581
|
+
}
|
|
5582
|
+
if (!tea_util_1.default.isUnset(request.playCode)) {
|
|
5583
|
+
body["playCode"] = request.playCode;
|
|
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({}));
|
|
5610
|
+
}
|
|
5611
|
+
/**
|
|
5612
|
+
* 创建外呼会话
|
|
5613
|
+
*
|
|
5614
|
+
* @param request - CreateDialogRequest
|
|
5615
|
+
* @returns CreateDialogResponse
|
|
5616
|
+
*/
|
|
5617
|
+
async createDialog(workspaceId, request) {
|
|
5618
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5619
|
+
let headers = {};
|
|
5620
|
+
return await this.createDialogWithOptions(workspaceId, request, headers, runtime);
|
|
5621
|
+
}
|
|
4821
5622
|
/**
|
|
4822
5623
|
* 创建财报总结任务
|
|
4823
5624
|
*
|
|
@@ -5271,6 +6072,54 @@ class Client extends openapi_client_1.default {
|
|
|
5271
6072
|
let headers = {};
|
|
5272
6073
|
return await this.evictTaskWithOptions(workspaceId, request, headers, runtime);
|
|
5273
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
|
+
}
|
|
5274
6123
|
/**
|
|
5275
6124
|
* 获取app配置
|
|
5276
6125
|
*
|
|
@@ -5304,6 +6153,51 @@ class Client extends openapi_client_1.default {
|
|
|
5304
6153
|
let headers = {};
|
|
5305
6154
|
return await this.getAppConfigWithOptions(workspaceId, headers, runtime);
|
|
5306
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
|
+
}
|
|
5307
6201
|
/**
|
|
5308
6202
|
* 获取文档的chunk列表
|
|
5309
6203
|
*
|
|
@@ -6006,6 +6900,69 @@ class Client extends openapi_client_1.default {
|
|
|
6006
6900
|
let headers = {};
|
|
6007
6901
|
return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
|
|
6008
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
|
+
}
|
|
6009
6966
|
/**
|
|
6010
6967
|
* 重建任务
|
|
6011
6968
|
*
|
|
@@ -6315,6 +7272,63 @@ class Client extends openapi_client_1.default {
|
|
|
6315
7272
|
let headers = {};
|
|
6316
7273
|
return await this.runLibraryChatGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
6317
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
|
+
}
|
|
6318
7332
|
/**
|
|
6319
7333
|
* 更新文档
|
|
6320
7334
|
*
|
|
@@ -6417,6 +7431,54 @@ class Client extends openapi_client_1.default {
|
|
|
6417
7431
|
let headers = {};
|
|
6418
7432
|
return await this.updateLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
6419
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
|
+
}
|
|
6420
7482
|
/**
|
|
6421
7483
|
* 上传文档到文档库
|
|
6422
7484
|
*
|