@alicloud/dianjin20240628 1.8.1 → 1.9.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 +281 -0
- package/dist/client.js +556 -45
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +750 -41
package/dist/client.js
CHANGED
|
@@ -37,10 +37,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
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 = 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 = void 0;
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
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 = exports.RecognizeIntentionResponseBody = exports.RecognizeIntentionRequest = exports.RecallDocumentResponse = exports.RecallDocumentResponseBody = exports.RecallDocumentRequest = exports.RebuildTaskResponse = void 0;
|
|
40
|
+
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.RunAgentResponseBodyData = exports.RunAgentResponseBodyDataResponse = exports.RunAgentResponseBodyDataResponseChoices = exports.RunAgentResponseBodyDataResponseChoicesMessage = exports.RunAgentResponseBodyDataFunctionCallResponses = 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 = void 0;
|
|
41
|
+
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 = exports.UpdateQaLibraryResponseBodyData = exports.UpdateQaLibraryRequestParseQaResults = exports.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = exports.UpdateLibraryRequestIndexSettingTextIndexSetting = exports.UpdateLibraryRequestIndexSettingRecallStrategy = exports.UpdateLibraryRequestIndexSettingQueryEnhancer = exports.UpdateLibraryRequestIndexSettingModelConfig = exports.UpdateLibraryRequestIndexSettingChunkStrategy = exports.SubmitChatQuestionResponseBodyData = exports.SubmitChatQuestionRequestQuestionList = void 0;
|
|
42
|
+
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 = exports.GetDocumentListResponse = exports.GetDocumentListResponseBody = exports.GetDocumentListRequest = exports.GetDocumentChunkListResponse = exports.GetDocumentChunkListResponseBody = exports.GetDocumentChunkListRequest = exports.GetDialogAnalysisResultResponse = exports.GetDialogAnalysisResultResponseBody = exports.GetDialogAnalysisResultRequest = exports.GetChatQuestionRespResponse = exports.GetChatQuestionRespResponseBody = void 0;
|
|
43
|
+
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.RunAgentResponse = exports.RunAgentResponseBody = exports.RunAgentRequest = exports.RecognizeIntentionResponse = exports.RecognizeIntentionResponseBody = exports.RecognizeIntentionRequest = exports.RecallDocumentResponse = exports.RecallDocumentResponseBody = exports.RecallDocumentRequest = exports.RebuildTaskResponse = exports.RebuildTaskResponseBody = exports.RebuildTaskRequest = exports.RealTimeDialogResponse = exports.RealTimeDialogResponseBody = exports.RealTimeDialogRequest = void 0;
|
|
44
44
|
// This file is auto-generated, don't edit it
|
|
45
45
|
/**
|
|
46
46
|
*/
|
|
@@ -2709,6 +2709,151 @@ class RecognizeIntentionResponseBodyData extends $dara.Model {
|
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
2711
|
exports.RecognizeIntentionResponseBodyData = RecognizeIntentionResponseBodyData;
|
|
2712
|
+
class RunAgentResponseBodyDataFunctionCallResponses extends $dara.Model {
|
|
2713
|
+
static names() {
|
|
2714
|
+
return {
|
|
2715
|
+
displayName: 'displayName',
|
|
2716
|
+
endTime: 'endTime',
|
|
2717
|
+
functionArgs: 'functionArgs',
|
|
2718
|
+
functionName: 'functionName',
|
|
2719
|
+
result: 'result',
|
|
2720
|
+
startTime: 'startTime',
|
|
2721
|
+
};
|
|
2722
|
+
}
|
|
2723
|
+
static types() {
|
|
2724
|
+
return {
|
|
2725
|
+
displayName: 'string',
|
|
2726
|
+
endTime: 'string',
|
|
2727
|
+
functionArgs: 'string',
|
|
2728
|
+
functionName: 'string',
|
|
2729
|
+
result: 'string',
|
|
2730
|
+
startTime: 'string',
|
|
2731
|
+
};
|
|
2732
|
+
}
|
|
2733
|
+
validate() {
|
|
2734
|
+
super.validate();
|
|
2735
|
+
}
|
|
2736
|
+
constructor(map) {
|
|
2737
|
+
super(map);
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2740
|
+
exports.RunAgentResponseBodyDataFunctionCallResponses = RunAgentResponseBodyDataFunctionCallResponses;
|
|
2741
|
+
class RunAgentResponseBodyDataResponseChoicesMessage extends $dara.Model {
|
|
2742
|
+
static names() {
|
|
2743
|
+
return {
|
|
2744
|
+
content: 'content',
|
|
2745
|
+
role: 'role',
|
|
2746
|
+
roleDisplayName: 'roleDisplayName',
|
|
2747
|
+
};
|
|
2748
|
+
}
|
|
2749
|
+
static types() {
|
|
2750
|
+
return {
|
|
2751
|
+
content: 'string',
|
|
2752
|
+
role: 'string',
|
|
2753
|
+
roleDisplayName: 'string',
|
|
2754
|
+
};
|
|
2755
|
+
}
|
|
2756
|
+
validate() {
|
|
2757
|
+
super.validate();
|
|
2758
|
+
}
|
|
2759
|
+
constructor(map) {
|
|
2760
|
+
super(map);
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
exports.RunAgentResponseBodyDataResponseChoicesMessage = RunAgentResponseBodyDataResponseChoicesMessage;
|
|
2764
|
+
class RunAgentResponseBodyDataResponseChoices extends $dara.Model {
|
|
2765
|
+
static names() {
|
|
2766
|
+
return {
|
|
2767
|
+
finishReason: 'finishReason',
|
|
2768
|
+
index: 'index',
|
|
2769
|
+
message: 'message',
|
|
2770
|
+
};
|
|
2771
|
+
}
|
|
2772
|
+
static types() {
|
|
2773
|
+
return {
|
|
2774
|
+
finishReason: 'string',
|
|
2775
|
+
index: 'number',
|
|
2776
|
+
message: RunAgentResponseBodyDataResponseChoicesMessage,
|
|
2777
|
+
};
|
|
2778
|
+
}
|
|
2779
|
+
validate() {
|
|
2780
|
+
if (this.message && typeof this.message.validate === 'function') {
|
|
2781
|
+
this.message.validate();
|
|
2782
|
+
}
|
|
2783
|
+
super.validate();
|
|
2784
|
+
}
|
|
2785
|
+
constructor(map) {
|
|
2786
|
+
super(map);
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
exports.RunAgentResponseBodyDataResponseChoices = RunAgentResponseBodyDataResponseChoices;
|
|
2790
|
+
class RunAgentResponseBodyDataResponse extends $dara.Model {
|
|
2791
|
+
static names() {
|
|
2792
|
+
return {
|
|
2793
|
+
choices: 'choices',
|
|
2794
|
+
created: 'created',
|
|
2795
|
+
id: 'id',
|
|
2796
|
+
modelId: 'modelId',
|
|
2797
|
+
time: 'time',
|
|
2798
|
+
};
|
|
2799
|
+
}
|
|
2800
|
+
static types() {
|
|
2801
|
+
return {
|
|
2802
|
+
choices: { 'type': 'array', 'itemType': RunAgentResponseBodyDataResponseChoices },
|
|
2803
|
+
created: 'number',
|
|
2804
|
+
id: 'string',
|
|
2805
|
+
modelId: 'string',
|
|
2806
|
+
time: 'string',
|
|
2807
|
+
};
|
|
2808
|
+
}
|
|
2809
|
+
validate() {
|
|
2810
|
+
if (Array.isArray(this.choices)) {
|
|
2811
|
+
$dara.Model.validateArray(this.choices);
|
|
2812
|
+
}
|
|
2813
|
+
super.validate();
|
|
2814
|
+
}
|
|
2815
|
+
constructor(map) {
|
|
2816
|
+
super(map);
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
exports.RunAgentResponseBodyDataResponse = RunAgentResponseBodyDataResponse;
|
|
2820
|
+
class RunAgentResponseBodyData extends $dara.Model {
|
|
2821
|
+
static names() {
|
|
2822
|
+
return {
|
|
2823
|
+
functionCallResponses: 'functionCallResponses',
|
|
2824
|
+
inputTokens: 'inputTokens',
|
|
2825
|
+
outputTokens: 'outputTokens',
|
|
2826
|
+
response: 'response',
|
|
2827
|
+
threadId: 'threadId',
|
|
2828
|
+
traceId: 'traceId',
|
|
2829
|
+
versionId: 'versionId',
|
|
2830
|
+
};
|
|
2831
|
+
}
|
|
2832
|
+
static types() {
|
|
2833
|
+
return {
|
|
2834
|
+
functionCallResponses: { 'type': 'array', 'itemType': RunAgentResponseBodyDataFunctionCallResponses },
|
|
2835
|
+
inputTokens: 'number',
|
|
2836
|
+
outputTokens: 'number',
|
|
2837
|
+
response: RunAgentResponseBodyDataResponse,
|
|
2838
|
+
threadId: 'string',
|
|
2839
|
+
traceId: 'string',
|
|
2840
|
+
versionId: 'string',
|
|
2841
|
+
};
|
|
2842
|
+
}
|
|
2843
|
+
validate() {
|
|
2844
|
+
if (Array.isArray(this.functionCallResponses)) {
|
|
2845
|
+
$dara.Model.validateArray(this.functionCallResponses);
|
|
2846
|
+
}
|
|
2847
|
+
if (this.response && typeof this.response.validate === 'function') {
|
|
2848
|
+
this.response.validate();
|
|
2849
|
+
}
|
|
2850
|
+
super.validate();
|
|
2851
|
+
}
|
|
2852
|
+
constructor(map) {
|
|
2853
|
+
super(map);
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
exports.RunAgentResponseBodyData = RunAgentResponseBodyData;
|
|
2712
2857
|
class RunChatResultGenerationRequestMessages extends $dara.Model {
|
|
2713
2858
|
static names() {
|
|
2714
2859
|
return {
|
|
@@ -6341,6 +6486,102 @@ class RecognizeIntentionResponse extends $dara.Model {
|
|
|
6341
6486
|
}
|
|
6342
6487
|
}
|
|
6343
6488
|
exports.RecognizeIntentionResponse = RecognizeIntentionResponse;
|
|
6489
|
+
class RunAgentRequest extends $dara.Model {
|
|
6490
|
+
static names() {
|
|
6491
|
+
return {
|
|
6492
|
+
botId: 'botId',
|
|
6493
|
+
modelId: 'modelId',
|
|
6494
|
+
stream: 'stream',
|
|
6495
|
+
threadId: 'threadId',
|
|
6496
|
+
useDraft: 'useDraft',
|
|
6497
|
+
userContent: 'userContent',
|
|
6498
|
+
versionId: 'versionId',
|
|
6499
|
+
};
|
|
6500
|
+
}
|
|
6501
|
+
static types() {
|
|
6502
|
+
return {
|
|
6503
|
+
botId: 'string',
|
|
6504
|
+
modelId: 'string',
|
|
6505
|
+
stream: 'boolean',
|
|
6506
|
+
threadId: 'string',
|
|
6507
|
+
useDraft: 'boolean',
|
|
6508
|
+
userContent: 'string',
|
|
6509
|
+
versionId: 'string',
|
|
6510
|
+
};
|
|
6511
|
+
}
|
|
6512
|
+
validate() {
|
|
6513
|
+
super.validate();
|
|
6514
|
+
}
|
|
6515
|
+
constructor(map) {
|
|
6516
|
+
super(map);
|
|
6517
|
+
}
|
|
6518
|
+
}
|
|
6519
|
+
exports.RunAgentRequest = RunAgentRequest;
|
|
6520
|
+
class RunAgentResponseBody extends $dara.Model {
|
|
6521
|
+
static names() {
|
|
6522
|
+
return {
|
|
6523
|
+
cost: 'cost',
|
|
6524
|
+
data: 'data',
|
|
6525
|
+
dataType: 'dataType',
|
|
6526
|
+
errCode: 'errCode',
|
|
6527
|
+
message: 'message',
|
|
6528
|
+
requestId: 'requestId',
|
|
6529
|
+
success: 'success',
|
|
6530
|
+
time: 'time',
|
|
6531
|
+
};
|
|
6532
|
+
}
|
|
6533
|
+
static types() {
|
|
6534
|
+
return {
|
|
6535
|
+
cost: 'number',
|
|
6536
|
+
data: RunAgentResponseBodyData,
|
|
6537
|
+
dataType: 'string',
|
|
6538
|
+
errCode: 'string',
|
|
6539
|
+
message: 'string',
|
|
6540
|
+
requestId: 'string',
|
|
6541
|
+
success: 'boolean',
|
|
6542
|
+
time: 'string',
|
|
6543
|
+
};
|
|
6544
|
+
}
|
|
6545
|
+
validate() {
|
|
6546
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
6547
|
+
this.data.validate();
|
|
6548
|
+
}
|
|
6549
|
+
super.validate();
|
|
6550
|
+
}
|
|
6551
|
+
constructor(map) {
|
|
6552
|
+
super(map);
|
|
6553
|
+
}
|
|
6554
|
+
}
|
|
6555
|
+
exports.RunAgentResponseBody = RunAgentResponseBody;
|
|
6556
|
+
class RunAgentResponse extends $dara.Model {
|
|
6557
|
+
static names() {
|
|
6558
|
+
return {
|
|
6559
|
+
headers: 'headers',
|
|
6560
|
+
statusCode: 'statusCode',
|
|
6561
|
+
body: 'body',
|
|
6562
|
+
};
|
|
6563
|
+
}
|
|
6564
|
+
static types() {
|
|
6565
|
+
return {
|
|
6566
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6567
|
+
statusCode: 'number',
|
|
6568
|
+
body: RunAgentResponseBody,
|
|
6569
|
+
};
|
|
6570
|
+
}
|
|
6571
|
+
validate() {
|
|
6572
|
+
if (this.headers) {
|
|
6573
|
+
$dara.Model.validateMap(this.headers);
|
|
6574
|
+
}
|
|
6575
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
6576
|
+
this.body.validate();
|
|
6577
|
+
}
|
|
6578
|
+
super.validate();
|
|
6579
|
+
}
|
|
6580
|
+
constructor(map) {
|
|
6581
|
+
super(map);
|
|
6582
|
+
}
|
|
6583
|
+
}
|
|
6584
|
+
exports.RunAgentResponse = RunAgentResponse;
|
|
6344
6585
|
class RunChatResultGenerationRequest extends $dara.Model {
|
|
6345
6586
|
static names() {
|
|
6346
6587
|
return {
|
|
@@ -7114,7 +7355,12 @@ class Client extends openapi_core_1.default {
|
|
|
7114
7355
|
reqBodyType: "json",
|
|
7115
7356
|
bodyType: "json",
|
|
7116
7357
|
});
|
|
7117
|
-
|
|
7358
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7359
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
|
|
7360
|
+
}
|
|
7361
|
+
else {
|
|
7362
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
|
|
7363
|
+
}
|
|
7118
7364
|
}
|
|
7119
7365
|
/**
|
|
7120
7366
|
* 创建按年文档总结任务
|
|
@@ -7174,7 +7420,12 @@ class Client extends openapi_core_1.default {
|
|
|
7174
7420
|
reqBodyType: "json",
|
|
7175
7421
|
bodyType: "json",
|
|
7176
7422
|
});
|
|
7177
|
-
|
|
7423
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7424
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateDialogResponse({}));
|
|
7425
|
+
}
|
|
7426
|
+
else {
|
|
7427
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateDialogResponse({}));
|
|
7428
|
+
}
|
|
7178
7429
|
}
|
|
7179
7430
|
/**
|
|
7180
7431
|
* 创建外呼会话
|
|
@@ -7225,7 +7476,12 @@ class Client extends openapi_core_1.default {
|
|
|
7225
7476
|
reqBodyType: "json",
|
|
7226
7477
|
bodyType: "json",
|
|
7227
7478
|
});
|
|
7228
|
-
|
|
7479
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7480
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
|
|
7481
|
+
}
|
|
7482
|
+
else {
|
|
7483
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
|
|
7484
|
+
}
|
|
7229
7485
|
}
|
|
7230
7486
|
/**
|
|
7231
7487
|
* 创建财报总结任务
|
|
@@ -7288,7 +7544,12 @@ class Client extends openapi_core_1.default {
|
|
|
7288
7544
|
reqBodyType: "json",
|
|
7289
7545
|
bodyType: "json",
|
|
7290
7546
|
});
|
|
7291
|
-
|
|
7547
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7548
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
|
|
7549
|
+
}
|
|
7550
|
+
else {
|
|
7551
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
|
|
7552
|
+
}
|
|
7292
7553
|
}
|
|
7293
7554
|
/**
|
|
7294
7555
|
* 创建财报总结任务
|
|
@@ -7336,7 +7597,12 @@ class Client extends openapi_core_1.default {
|
|
|
7336
7597
|
reqBodyType: "json",
|
|
7337
7598
|
bodyType: "json",
|
|
7338
7599
|
});
|
|
7339
|
-
|
|
7600
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7601
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
|
|
7602
|
+
}
|
|
7603
|
+
else {
|
|
7604
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateLibraryResponse({}));
|
|
7605
|
+
}
|
|
7340
7606
|
}
|
|
7341
7607
|
/**
|
|
7342
7608
|
* 创建文档库
|
|
@@ -7390,7 +7656,12 @@ class Client extends openapi_core_1.default {
|
|
|
7390
7656
|
reqBodyType: "json",
|
|
7391
7657
|
bodyType: "json",
|
|
7392
7658
|
});
|
|
7393
|
-
|
|
7659
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7660
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
|
|
7661
|
+
}
|
|
7662
|
+
else {
|
|
7663
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
|
|
7664
|
+
}
|
|
7394
7665
|
}
|
|
7395
7666
|
/**
|
|
7396
7667
|
* 创建PDF翻译任务
|
|
@@ -7441,7 +7712,12 @@ class Client extends openapi_core_1.default {
|
|
|
7441
7712
|
reqBodyType: "json",
|
|
7442
7713
|
bodyType: "json",
|
|
7443
7714
|
});
|
|
7444
|
-
|
|
7715
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7716
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
|
|
7717
|
+
}
|
|
7718
|
+
else {
|
|
7719
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreatePredefinedDocumentResponse({}));
|
|
7720
|
+
}
|
|
7445
7721
|
}
|
|
7446
7722
|
/**
|
|
7447
7723
|
* 创建预定义文档
|
|
@@ -7498,7 +7774,12 @@ class Client extends openapi_core_1.default {
|
|
|
7498
7774
|
reqBodyType: "json",
|
|
7499
7775
|
bodyType: "json",
|
|
7500
7776
|
});
|
|
7501
|
-
|
|
7777
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7778
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
|
|
7779
|
+
}
|
|
7780
|
+
else {
|
|
7781
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateQualityCheckTaskResponse({}));
|
|
7782
|
+
}
|
|
7502
7783
|
}
|
|
7503
7784
|
/**
|
|
7504
7785
|
* 创建财报总结的任务
|
|
@@ -7543,7 +7824,12 @@ class Client extends openapi_core_1.default {
|
|
|
7543
7824
|
reqBodyType: "json",
|
|
7544
7825
|
bodyType: "json",
|
|
7545
7826
|
});
|
|
7546
|
-
|
|
7827
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7828
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
|
|
7829
|
+
}
|
|
7830
|
+
else {
|
|
7831
|
+
return $dara.cast(await this.execute(params, req, runtime), new DeleteDocumentResponse({}));
|
|
7832
|
+
}
|
|
7547
7833
|
}
|
|
7548
7834
|
/**
|
|
7549
7835
|
* 删除文档
|
|
@@ -7585,7 +7871,12 @@ class Client extends openapi_core_1.default {
|
|
|
7585
7871
|
reqBodyType: "json",
|
|
7586
7872
|
bodyType: "json",
|
|
7587
7873
|
});
|
|
7588
|
-
|
|
7874
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7875
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
|
|
7876
|
+
}
|
|
7877
|
+
else {
|
|
7878
|
+
return $dara.cast(await this.execute(params, req, runtime), new DeleteLibraryResponse({}));
|
|
7879
|
+
}
|
|
7589
7880
|
}
|
|
7590
7881
|
/**
|
|
7591
7882
|
* 删除文档库
|
|
@@ -7627,7 +7918,12 @@ class Client extends openapi_core_1.default {
|
|
|
7627
7918
|
reqBodyType: "json",
|
|
7628
7919
|
bodyType: "json",
|
|
7629
7920
|
});
|
|
7630
|
-
|
|
7921
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7922
|
+
return $dara.cast(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
|
|
7923
|
+
}
|
|
7924
|
+
else {
|
|
7925
|
+
return $dara.cast(await this.execute(params, req, runtime), new EvictTaskResponse({}));
|
|
7926
|
+
}
|
|
7631
7927
|
}
|
|
7632
7928
|
/**
|
|
7633
7929
|
* 中断任务
|
|
@@ -7675,7 +7971,12 @@ class Client extends openapi_core_1.default {
|
|
|
7675
7971
|
reqBodyType: "json",
|
|
7676
7972
|
bodyType: "json",
|
|
7677
7973
|
});
|
|
7678
|
-
|
|
7974
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7975
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GenDocQaResultResponse({}));
|
|
7976
|
+
}
|
|
7977
|
+
else {
|
|
7978
|
+
return $dara.cast(await this.execute(params, req, runtime), new GenDocQaResultResponse({}));
|
|
7979
|
+
}
|
|
7679
7980
|
}
|
|
7680
7981
|
/**
|
|
7681
7982
|
* 根据文档解析问答QA
|
|
@@ -7710,7 +8011,12 @@ class Client extends openapi_core_1.default {
|
|
|
7710
8011
|
reqBodyType: "json",
|
|
7711
8012
|
bodyType: "json",
|
|
7712
8013
|
});
|
|
7713
|
-
|
|
8014
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8015
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
|
|
8016
|
+
}
|
|
8017
|
+
else {
|
|
8018
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetAppConfigResponse({}));
|
|
8019
|
+
}
|
|
7714
8020
|
}
|
|
7715
8021
|
/**
|
|
7716
8022
|
* 获取app配置
|
|
@@ -7753,7 +8059,12 @@ class Client extends openapi_core_1.default {
|
|
|
7753
8059
|
reqBodyType: "json",
|
|
7754
8060
|
bodyType: "json",
|
|
7755
8061
|
});
|
|
7756
|
-
|
|
8062
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8063
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetChatQuestionRespResponse({}));
|
|
8064
|
+
}
|
|
8065
|
+
else {
|
|
8066
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetChatQuestionRespResponse({}));
|
|
8067
|
+
}
|
|
7757
8068
|
}
|
|
7758
8069
|
/**
|
|
7759
8070
|
* 获取问答结果
|
|
@@ -7807,7 +8118,12 @@ class Client extends openapi_core_1.default {
|
|
|
7807
8118
|
reqBodyType: "json",
|
|
7808
8119
|
bodyType: "json",
|
|
7809
8120
|
});
|
|
7810
|
-
|
|
8121
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8122
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetDialogAnalysisResultResponse({}));
|
|
8123
|
+
}
|
|
8124
|
+
else {
|
|
8125
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetDialogAnalysisResultResponse({}));
|
|
8126
|
+
}
|
|
7811
8127
|
}
|
|
7812
8128
|
/**
|
|
7813
8129
|
* 获取外呼会话分析结果
|
|
@@ -7870,7 +8186,12 @@ class Client extends openapi_core_1.default {
|
|
|
7870
8186
|
reqBodyType: "json",
|
|
7871
8187
|
bodyType: "json",
|
|
7872
8188
|
});
|
|
7873
|
-
|
|
8189
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8190
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
|
|
8191
|
+
}
|
|
8192
|
+
else {
|
|
8193
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetDocumentChunkListResponse({}));
|
|
8194
|
+
}
|
|
7874
8195
|
}
|
|
7875
8196
|
/**
|
|
7876
8197
|
* 获取文档的chunk列表
|
|
@@ -7921,7 +8242,12 @@ class Client extends openapi_core_1.default {
|
|
|
7921
8242
|
reqBodyType: "json",
|
|
7922
8243
|
bodyType: "json",
|
|
7923
8244
|
});
|
|
7924
|
-
|
|
8245
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8246
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
|
|
8247
|
+
}
|
|
8248
|
+
else {
|
|
8249
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetDocumentListResponse({}));
|
|
8250
|
+
}
|
|
7925
8251
|
}
|
|
7926
8252
|
/**
|
|
7927
8253
|
* 分页查询文档库的文档列表
|
|
@@ -7963,7 +8289,12 @@ class Client extends openapi_core_1.default {
|
|
|
7963
8289
|
reqBodyType: "json",
|
|
7964
8290
|
bodyType: "json",
|
|
7965
8291
|
});
|
|
7966
|
-
|
|
8292
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8293
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
|
|
8294
|
+
}
|
|
8295
|
+
else {
|
|
8296
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetDocumentUrlResponse({}));
|
|
8297
|
+
}
|
|
7967
8298
|
}
|
|
7968
8299
|
/**
|
|
7969
8300
|
* 获取文档URL
|
|
@@ -8023,7 +8354,12 @@ class Client extends openapi_core_1.default {
|
|
|
8023
8354
|
reqBodyType: "json",
|
|
8024
8355
|
bodyType: "json",
|
|
8025
8356
|
});
|
|
8026
|
-
|
|
8357
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8358
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
|
|
8359
|
+
}
|
|
8360
|
+
else {
|
|
8361
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetFilterDocumentListResponse({}));
|
|
8362
|
+
}
|
|
8027
8363
|
}
|
|
8028
8364
|
/**
|
|
8029
8365
|
* 带条件的分页查询文档库的文档列表
|
|
@@ -8074,7 +8410,12 @@ class Client extends openapi_core_1.default {
|
|
|
8074
8410
|
reqBodyType: "json",
|
|
8075
8411
|
bodyType: "json",
|
|
8076
8412
|
});
|
|
8077
|
-
|
|
8413
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8414
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
|
|
8415
|
+
}
|
|
8416
|
+
else {
|
|
8417
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
|
|
8418
|
+
}
|
|
8078
8419
|
}
|
|
8079
8420
|
/**
|
|
8080
8421
|
* 分页查询文档库列表
|
|
@@ -8116,7 +8457,12 @@ class Client extends openapi_core_1.default {
|
|
|
8116
8457
|
reqBodyType: "json",
|
|
8117
8458
|
bodyType: "json",
|
|
8118
8459
|
});
|
|
8119
|
-
|
|
8460
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8461
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
|
|
8462
|
+
}
|
|
8463
|
+
else {
|
|
8464
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetLibraryResponse({}));
|
|
8465
|
+
}
|
|
8120
8466
|
}
|
|
8121
8467
|
/**
|
|
8122
8468
|
* 获取文档库配置详情
|
|
@@ -8164,7 +8510,12 @@ class Client extends openapi_core_1.default {
|
|
|
8164
8510
|
reqBodyType: "json",
|
|
8165
8511
|
bodyType: "json",
|
|
8166
8512
|
});
|
|
8167
|
-
|
|
8513
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8514
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
|
|
8515
|
+
}
|
|
8516
|
+
else {
|
|
8517
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetLibraryListResponse({}));
|
|
8518
|
+
}
|
|
8168
8519
|
}
|
|
8169
8520
|
/**
|
|
8170
8521
|
* 分页查询文档库列表
|
|
@@ -8212,7 +8563,12 @@ class Client extends openapi_core_1.default {
|
|
|
8212
8563
|
reqBodyType: "json",
|
|
8213
8564
|
bodyType: "json",
|
|
8214
8565
|
});
|
|
8215
|
-
|
|
8566
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8567
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
|
|
8568
|
+
}
|
|
8569
|
+
else {
|
|
8570
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetParseResultResponse({}));
|
|
8571
|
+
}
|
|
8216
8572
|
}
|
|
8217
8573
|
/**
|
|
8218
8574
|
* 获取解析结果
|
|
@@ -8254,7 +8610,12 @@ class Client extends openapi_core_1.default {
|
|
|
8254
8610
|
reqBodyType: "json",
|
|
8255
8611
|
bodyType: "json",
|
|
8256
8612
|
});
|
|
8257
|
-
|
|
8613
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8614
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
|
|
8615
|
+
}
|
|
8616
|
+
else {
|
|
8617
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
|
|
8618
|
+
}
|
|
8258
8619
|
}
|
|
8259
8620
|
/**
|
|
8260
8621
|
* 获取异步任务的结果
|
|
@@ -8296,7 +8657,12 @@ class Client extends openapi_core_1.default {
|
|
|
8296
8657
|
reqBodyType: "json",
|
|
8297
8658
|
bodyType: "json",
|
|
8298
8659
|
});
|
|
8299
|
-
|
|
8660
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8661
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
|
|
8662
|
+
}
|
|
8663
|
+
else {
|
|
8664
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetSummaryTaskResultResponse({}));
|
|
8665
|
+
}
|
|
8300
8666
|
}
|
|
8301
8667
|
/**
|
|
8302
8668
|
* 获取财报总结任务结果
|
|
@@ -8338,7 +8704,12 @@ class Client extends openapi_core_1.default {
|
|
|
8338
8704
|
reqBodyType: "json",
|
|
8339
8705
|
bodyType: "json",
|
|
8340
8706
|
});
|
|
8341
|
-
|
|
8707
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8708
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
|
|
8709
|
+
}
|
|
8710
|
+
else {
|
|
8711
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetTaskResultResponse({}));
|
|
8712
|
+
}
|
|
8342
8713
|
}
|
|
8343
8714
|
/**
|
|
8344
8715
|
* 获取异步任务结果
|
|
@@ -8380,7 +8751,12 @@ class Client extends openapi_core_1.default {
|
|
|
8380
8751
|
reqBodyType: "json",
|
|
8381
8752
|
bodyType: "json",
|
|
8382
8753
|
});
|
|
8383
|
-
|
|
8754
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8755
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
|
|
8756
|
+
}
|
|
8757
|
+
else {
|
|
8758
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetTaskStatusResponse({}));
|
|
8759
|
+
}
|
|
8384
8760
|
}
|
|
8385
8761
|
/**
|
|
8386
8762
|
* 获取财报总结任务结果
|
|
@@ -8425,7 +8801,12 @@ class Client extends openapi_core_1.default {
|
|
|
8425
8801
|
reqBodyType: "json",
|
|
8426
8802
|
bodyType: "json",
|
|
8427
8803
|
});
|
|
8428
|
-
|
|
8804
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8805
|
+
return $dara.cast(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
|
|
8806
|
+
}
|
|
8807
|
+
else {
|
|
8808
|
+
return $dara.cast(await this.execute(params, req, runtime), new InvokePluginResponse({}));
|
|
8809
|
+
}
|
|
8429
8810
|
}
|
|
8430
8811
|
/**
|
|
8431
8812
|
* 插件调试接口
|
|
@@ -8467,7 +8848,12 @@ class Client extends openapi_core_1.default {
|
|
|
8467
8848
|
reqBodyType: "json",
|
|
8468
8849
|
bodyType: "json",
|
|
8469
8850
|
});
|
|
8470
|
-
|
|
8851
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8852
|
+
return $dara.cast(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
|
|
8853
|
+
}
|
|
8854
|
+
else {
|
|
8855
|
+
return $dara.cast(await this.execute(params, req, runtime), new PreviewDocumentResponse({}));
|
|
8856
|
+
}
|
|
8471
8857
|
}
|
|
8472
8858
|
/**
|
|
8473
8859
|
* 获取文档预览
|
|
@@ -8509,7 +8895,12 @@ class Client extends openapi_core_1.default {
|
|
|
8509
8895
|
reqBodyType: "json",
|
|
8510
8896
|
bodyType: "json",
|
|
8511
8897
|
});
|
|
8512
|
-
|
|
8898
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8899
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ReIndexResponse({}));
|
|
8900
|
+
}
|
|
8901
|
+
else {
|
|
8902
|
+
return $dara.cast(await this.execute(params, req, runtime), new ReIndexResponse({}));
|
|
8903
|
+
}
|
|
8513
8904
|
}
|
|
8514
8905
|
/**
|
|
8515
8906
|
* 重新索引
|
|
@@ -8572,7 +8963,12 @@ class Client extends openapi_core_1.default {
|
|
|
8572
8963
|
reqBodyType: "json",
|
|
8573
8964
|
bodyType: "json",
|
|
8574
8965
|
});
|
|
8575
|
-
|
|
8966
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8967
|
+
return $dara.cast(await this.callApi(params, req, runtime), new RealTimeDialogResponse({}));
|
|
8968
|
+
}
|
|
8969
|
+
else {
|
|
8970
|
+
return $dara.cast(await this.execute(params, req, runtime), new RealTimeDialogResponse({}));
|
|
8971
|
+
}
|
|
8576
8972
|
}
|
|
8577
8973
|
/**
|
|
8578
8974
|
* 实时对话
|
|
@@ -8614,7 +9010,12 @@ class Client extends openapi_core_1.default {
|
|
|
8614
9010
|
reqBodyType: "json",
|
|
8615
9011
|
bodyType: "json",
|
|
8616
9012
|
});
|
|
8617
|
-
|
|
9013
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9014
|
+
return $dara.cast(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
|
|
9015
|
+
}
|
|
9016
|
+
else {
|
|
9017
|
+
return $dara.cast(await this.execute(params, req, runtime), new RebuildTaskResponse({}));
|
|
9018
|
+
}
|
|
8618
9019
|
}
|
|
8619
9020
|
/**
|
|
8620
9021
|
* 重建任务
|
|
@@ -8665,7 +9066,12 @@ class Client extends openapi_core_1.default {
|
|
|
8665
9066
|
reqBodyType: "json",
|
|
8666
9067
|
bodyType: "json",
|
|
8667
9068
|
});
|
|
8668
|
-
|
|
9069
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9070
|
+
return $dara.cast(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
|
|
9071
|
+
}
|
|
9072
|
+
else {
|
|
9073
|
+
return $dara.cast(await this.execute(params, req, runtime), new RecallDocumentResponse({}));
|
|
9074
|
+
}
|
|
8669
9075
|
}
|
|
8670
9076
|
/**
|
|
8671
9077
|
* 文档召回。
|
|
@@ -8731,7 +9137,12 @@ class Client extends openapi_core_1.default {
|
|
|
8731
9137
|
reqBodyType: "json",
|
|
8732
9138
|
bodyType: "json",
|
|
8733
9139
|
});
|
|
8734
|
-
|
|
9140
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9141
|
+
return $dara.cast(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
|
|
9142
|
+
}
|
|
9143
|
+
else {
|
|
9144
|
+
return $dara.cast(await this.execute(params, req, runtime), new RecognizeIntentionResponse({}));
|
|
9145
|
+
}
|
|
8735
9146
|
}
|
|
8736
9147
|
/**
|
|
8737
9148
|
* 意图识别
|
|
@@ -8744,6 +9155,71 @@ class Client extends openapi_core_1.default {
|
|
|
8744
9155
|
let headers = {};
|
|
8745
9156
|
return await this.recognizeIntentionWithOptions(workspaceId, request, headers, runtime);
|
|
8746
9157
|
}
|
|
9158
|
+
/**
|
|
9159
|
+
* 运行智能体
|
|
9160
|
+
*
|
|
9161
|
+
* @param request - RunAgentRequest
|
|
9162
|
+
* @param headers - map
|
|
9163
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9164
|
+
* @returns RunAgentResponse
|
|
9165
|
+
*/
|
|
9166
|
+
async runAgentWithOptions(workspaceId, request, headers, runtime) {
|
|
9167
|
+
request.validate();
|
|
9168
|
+
let body = {};
|
|
9169
|
+
if (!$dara.isNull(request.botId)) {
|
|
9170
|
+
body["botId"] = request.botId;
|
|
9171
|
+
}
|
|
9172
|
+
if (!$dara.isNull(request.modelId)) {
|
|
9173
|
+
body["modelId"] = request.modelId;
|
|
9174
|
+
}
|
|
9175
|
+
if (!$dara.isNull(request.stream)) {
|
|
9176
|
+
body["stream"] = request.stream;
|
|
9177
|
+
}
|
|
9178
|
+
if (!$dara.isNull(request.threadId)) {
|
|
9179
|
+
body["threadId"] = request.threadId;
|
|
9180
|
+
}
|
|
9181
|
+
if (!$dara.isNull(request.useDraft)) {
|
|
9182
|
+
body["useDraft"] = request.useDraft;
|
|
9183
|
+
}
|
|
9184
|
+
if (!$dara.isNull(request.userContent)) {
|
|
9185
|
+
body["userContent"] = request.userContent;
|
|
9186
|
+
}
|
|
9187
|
+
if (!$dara.isNull(request.versionId)) {
|
|
9188
|
+
body["versionId"] = request.versionId;
|
|
9189
|
+
}
|
|
9190
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
9191
|
+
headers: headers,
|
|
9192
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
9193
|
+
});
|
|
9194
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
9195
|
+
action: "RunAgent",
|
|
9196
|
+
version: "2024-06-28",
|
|
9197
|
+
protocol: "HTTPS",
|
|
9198
|
+
pathname: `/${$dara.URL.percentEncode(workspaceId)}/api/bot/thread/run`,
|
|
9199
|
+
method: "POST",
|
|
9200
|
+
authType: "AK",
|
|
9201
|
+
style: "ROA",
|
|
9202
|
+
reqBodyType: "json",
|
|
9203
|
+
bodyType: "json",
|
|
9204
|
+
});
|
|
9205
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9206
|
+
return $dara.cast(await this.callApi(params, req, runtime), new RunAgentResponse({}));
|
|
9207
|
+
}
|
|
9208
|
+
else {
|
|
9209
|
+
return $dara.cast(await this.execute(params, req, runtime), new RunAgentResponse({}));
|
|
9210
|
+
}
|
|
9211
|
+
}
|
|
9212
|
+
/**
|
|
9213
|
+
* 运行智能体
|
|
9214
|
+
*
|
|
9215
|
+
* @param request - RunAgentRequest
|
|
9216
|
+
* @returns RunAgentResponse
|
|
9217
|
+
*/
|
|
9218
|
+
async runAgent(workspaceId, request) {
|
|
9219
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
9220
|
+
let headers = {};
|
|
9221
|
+
return await this.runAgentWithOptions(workspaceId, request, headers, runtime);
|
|
9222
|
+
}
|
|
8747
9223
|
/**
|
|
8748
9224
|
* 获取生成式对话结果
|
|
8749
9225
|
*
|
|
@@ -8788,7 +9264,12 @@ class Client extends openapi_core_1.default {
|
|
|
8788
9264
|
reqBodyType: "json",
|
|
8789
9265
|
bodyType: "json",
|
|
8790
9266
|
});
|
|
8791
|
-
|
|
9267
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9268
|
+
return $dara.cast(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
|
|
9269
|
+
}
|
|
9270
|
+
else {
|
|
9271
|
+
return $dara.cast(await this.execute(params, req, runtime), new RunChatResultGenerationResponse({}));
|
|
9272
|
+
}
|
|
8792
9273
|
}
|
|
8793
9274
|
/**
|
|
8794
9275
|
* 获取生成式对话结果
|
|
@@ -8881,7 +9362,12 @@ class Client extends openapi_core_1.default {
|
|
|
8881
9362
|
reqBodyType: "json",
|
|
8882
9363
|
bodyType: "json",
|
|
8883
9364
|
});
|
|
8884
|
-
|
|
9365
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9366
|
+
return $dara.cast(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
|
|
9367
|
+
}
|
|
9368
|
+
else {
|
|
9369
|
+
return $dara.cast(await this.execute(params, req, runtime), new RunLibraryChatGenerationResponse({}));
|
|
9370
|
+
}
|
|
8885
9371
|
}
|
|
8886
9372
|
/**
|
|
8887
9373
|
* 获取生成式对话结果
|
|
@@ -8938,7 +9424,12 @@ class Client extends openapi_core_1.default {
|
|
|
8938
9424
|
reqBodyType: "json",
|
|
8939
9425
|
bodyType: "json",
|
|
8940
9426
|
});
|
|
8941
|
-
|
|
9427
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9428
|
+
return $dara.cast(await this.callApi(params, req, runtime), new SubmitChatQuestionResponse({}));
|
|
9429
|
+
}
|
|
9430
|
+
else {
|
|
9431
|
+
return $dara.cast(await this.execute(params, req, runtime), new SubmitChatQuestionResponse({}));
|
|
9432
|
+
}
|
|
8942
9433
|
}
|
|
8943
9434
|
/**
|
|
8944
9435
|
* 提交问题列表
|
|
@@ -8989,7 +9480,12 @@ class Client extends openapi_core_1.default {
|
|
|
8989
9480
|
reqBodyType: "json",
|
|
8990
9481
|
bodyType: "json",
|
|
8991
9482
|
});
|
|
8992
|
-
|
|
9483
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9484
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
|
|
9485
|
+
}
|
|
9486
|
+
else {
|
|
9487
|
+
return $dara.cast(await this.execute(params, req, runtime), new UpdateDocumentResponse({}));
|
|
9488
|
+
}
|
|
8993
9489
|
}
|
|
8994
9490
|
/**
|
|
8995
9491
|
* 更新文档
|
|
@@ -9040,7 +9536,12 @@ class Client extends openapi_core_1.default {
|
|
|
9040
9536
|
reqBodyType: "json",
|
|
9041
9537
|
bodyType: "json",
|
|
9042
9538
|
});
|
|
9043
|
-
|
|
9539
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9540
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
|
|
9541
|
+
}
|
|
9542
|
+
else {
|
|
9543
|
+
return $dara.cast(await this.execute(params, req, runtime), new UpdateLibraryResponse({}));
|
|
9544
|
+
}
|
|
9044
9545
|
}
|
|
9045
9546
|
/**
|
|
9046
9547
|
* 更新文档库配置
|
|
@@ -9088,7 +9589,12 @@ class Client extends openapi_core_1.default {
|
|
|
9088
9589
|
reqBodyType: "json",
|
|
9089
9590
|
bodyType: "json",
|
|
9090
9591
|
});
|
|
9091
|
-
|
|
9592
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9593
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateQaLibraryResponse({}));
|
|
9594
|
+
}
|
|
9595
|
+
else {
|
|
9596
|
+
return $dara.cast(await this.execute(params, req, runtime), new UpdateQaLibraryResponse({}));
|
|
9597
|
+
}
|
|
9092
9598
|
}
|
|
9093
9599
|
/**
|
|
9094
9600
|
* 更新QA问答库
|
|
@@ -9139,7 +9645,12 @@ class Client extends openapi_core_1.default {
|
|
|
9139
9645
|
reqBodyType: "json",
|
|
9140
9646
|
bodyType: "json",
|
|
9141
9647
|
});
|
|
9142
|
-
|
|
9648
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9649
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
|
|
9650
|
+
}
|
|
9651
|
+
else {
|
|
9652
|
+
return $dara.cast(await this.execute(params, req, runtime), new UploadDocumentResponse({}));
|
|
9653
|
+
}
|
|
9143
9654
|
}
|
|
9144
9655
|
/**
|
|
9145
9656
|
* 上传文档到文档库
|