@alicloud/dianjin20240628 1.8.1 → 1.9.1

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