@alicloud/dianjin20240628 1.11.1 → 1.12.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 +196 -0
- package/dist/client.js +214 -5
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +338 -0
package/dist/client.d.ts
CHANGED
|
@@ -691,6 +691,12 @@ export declare class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespLi
|
|
|
691
691
|
export declare class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp extends $dara.Model {
|
|
692
692
|
dialogExecPlan?: string;
|
|
693
693
|
dialogLabels?: GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels[];
|
|
694
|
+
dialogOpenAnalysis?: {
|
|
695
|
+
[key: string]: any;
|
|
696
|
+
};
|
|
697
|
+
dialogProcessAnalysis?: {
|
|
698
|
+
[key: string]: any;
|
|
699
|
+
};
|
|
694
700
|
dialogSop?: string;
|
|
695
701
|
dialogSummary?: string;
|
|
696
702
|
static names(): {
|
|
@@ -750,6 +756,93 @@ export declare class GetDialogAnalysisResultResponseBodyData extends $dara.Model
|
|
|
750
756
|
[key: string]: any;
|
|
751
757
|
});
|
|
752
758
|
}
|
|
759
|
+
export declare class GetDialogDetailResponseBodyDataDialogueList extends $dara.Model {
|
|
760
|
+
content?: string;
|
|
761
|
+
/**
|
|
762
|
+
* @example
|
|
763
|
+
* 123761283
|
|
764
|
+
*/
|
|
765
|
+
customerId?: string;
|
|
766
|
+
/**
|
|
767
|
+
* @example
|
|
768
|
+
* BOT
|
|
769
|
+
*/
|
|
770
|
+
customerServiceId?: string;
|
|
771
|
+
/**
|
|
772
|
+
* @example
|
|
773
|
+
* 0
|
|
774
|
+
*/
|
|
775
|
+
customerServiceType?: string;
|
|
776
|
+
/**
|
|
777
|
+
* @example
|
|
778
|
+
* true
|
|
779
|
+
*/
|
|
780
|
+
hangUpDialog?: boolean;
|
|
781
|
+
/**
|
|
782
|
+
* @example
|
|
783
|
+
* 1742869659849
|
|
784
|
+
*/
|
|
785
|
+
id?: number;
|
|
786
|
+
/**
|
|
787
|
+
* @example
|
|
788
|
+
* 193874634xxx
|
|
789
|
+
*/
|
|
790
|
+
intentCode?: string;
|
|
791
|
+
intentName?: string;
|
|
792
|
+
/**
|
|
793
|
+
* @example
|
|
794
|
+
* 0
|
|
795
|
+
*/
|
|
796
|
+
role?: string;
|
|
797
|
+
/**
|
|
798
|
+
* @example
|
|
799
|
+
* text
|
|
800
|
+
*/
|
|
801
|
+
type?: string;
|
|
802
|
+
static names(): {
|
|
803
|
+
[key: string]: string;
|
|
804
|
+
};
|
|
805
|
+
static types(): {
|
|
806
|
+
[key: string]: any;
|
|
807
|
+
};
|
|
808
|
+
validate(): void;
|
|
809
|
+
constructor(map?: {
|
|
810
|
+
[key: string]: any;
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
export declare class GetDialogDetailResponseBodyData extends $dara.Model {
|
|
814
|
+
dialogueList?: GetDialogDetailResponseBodyDataDialogueList[];
|
|
815
|
+
/**
|
|
816
|
+
* @example
|
|
817
|
+
* 2024-09-27 11:23:20
|
|
818
|
+
*/
|
|
819
|
+
gmtCreate?: string;
|
|
820
|
+
/**
|
|
821
|
+
* @example
|
|
822
|
+
* COMPLETED
|
|
823
|
+
*/
|
|
824
|
+
status?: string;
|
|
825
|
+
/**
|
|
826
|
+
* @example
|
|
827
|
+
* 10
|
|
828
|
+
*/
|
|
829
|
+
totalDialogTurns?: number;
|
|
830
|
+
/**
|
|
831
|
+
* @example
|
|
832
|
+
* 5
|
|
833
|
+
*/
|
|
834
|
+
validDialogTurns?: number;
|
|
835
|
+
static names(): {
|
|
836
|
+
[key: string]: string;
|
|
837
|
+
};
|
|
838
|
+
static types(): {
|
|
839
|
+
[key: string]: any;
|
|
840
|
+
};
|
|
841
|
+
validate(): void;
|
|
842
|
+
constructor(map?: {
|
|
843
|
+
[key: string]: any;
|
|
844
|
+
});
|
|
845
|
+
}
|
|
753
846
|
export declare class GetDocumentChunkListResponseBodyDataRecordsPos extends $dara.Model {
|
|
754
847
|
axisArray?: number[];
|
|
755
848
|
/**
|
|
@@ -5430,6 +5523,91 @@ export declare class GetDialogAnalysisResultResponse extends $dara.Model {
|
|
|
5430
5523
|
[key: string]: any;
|
|
5431
5524
|
});
|
|
5432
5525
|
}
|
|
5526
|
+
export declare class GetDialogDetailRequest extends $dara.Model {
|
|
5527
|
+
/**
|
|
5528
|
+
* @remarks
|
|
5529
|
+
* This parameter is required.
|
|
5530
|
+
*
|
|
5531
|
+
* @example
|
|
5532
|
+
* 1906623923815534xxx
|
|
5533
|
+
*/
|
|
5534
|
+
sessionId?: string;
|
|
5535
|
+
static names(): {
|
|
5536
|
+
[key: string]: string;
|
|
5537
|
+
};
|
|
5538
|
+
static types(): {
|
|
5539
|
+
[key: string]: any;
|
|
5540
|
+
};
|
|
5541
|
+
validate(): void;
|
|
5542
|
+
constructor(map?: {
|
|
5543
|
+
[key: string]: any;
|
|
5544
|
+
});
|
|
5545
|
+
}
|
|
5546
|
+
export declare class GetDialogDetailResponseBody extends $dara.Model {
|
|
5547
|
+
/**
|
|
5548
|
+
* @example
|
|
5549
|
+
* null
|
|
5550
|
+
*/
|
|
5551
|
+
cost?: number;
|
|
5552
|
+
data?: GetDialogDetailResponseBodyData;
|
|
5553
|
+
/**
|
|
5554
|
+
* @example
|
|
5555
|
+
* null
|
|
5556
|
+
*/
|
|
5557
|
+
dataType?: string;
|
|
5558
|
+
/**
|
|
5559
|
+
* @example
|
|
5560
|
+
* 0
|
|
5561
|
+
*/
|
|
5562
|
+
errCode?: string;
|
|
5563
|
+
/**
|
|
5564
|
+
* @example
|
|
5565
|
+
* ok
|
|
5566
|
+
*/
|
|
5567
|
+
message?: string;
|
|
5568
|
+
/**
|
|
5569
|
+
* @example
|
|
5570
|
+
* 5E3FBAF1-17AF-53B7-AF0A-CDCEEB6DE658
|
|
5571
|
+
*/
|
|
5572
|
+
requestId?: string;
|
|
5573
|
+
/**
|
|
5574
|
+
* @example
|
|
5575
|
+
* true
|
|
5576
|
+
*/
|
|
5577
|
+
success?: boolean;
|
|
5578
|
+
/**
|
|
5579
|
+
* @example
|
|
5580
|
+
* 2024-04-24 11:54:34
|
|
5581
|
+
*/
|
|
5582
|
+
time?: string;
|
|
5583
|
+
static names(): {
|
|
5584
|
+
[key: string]: string;
|
|
5585
|
+
};
|
|
5586
|
+
static types(): {
|
|
5587
|
+
[key: string]: any;
|
|
5588
|
+
};
|
|
5589
|
+
validate(): void;
|
|
5590
|
+
constructor(map?: {
|
|
5591
|
+
[key: string]: any;
|
|
5592
|
+
});
|
|
5593
|
+
}
|
|
5594
|
+
export declare class GetDialogDetailResponse extends $dara.Model {
|
|
5595
|
+
headers?: {
|
|
5596
|
+
[key: string]: string;
|
|
5597
|
+
};
|
|
5598
|
+
statusCode?: number;
|
|
5599
|
+
body?: GetDialogDetailResponseBody;
|
|
5600
|
+
static names(): {
|
|
5601
|
+
[key: string]: string;
|
|
5602
|
+
};
|
|
5603
|
+
static types(): {
|
|
5604
|
+
[key: string]: any;
|
|
5605
|
+
};
|
|
5606
|
+
validate(): void;
|
|
5607
|
+
constructor(map?: {
|
|
5608
|
+
[key: string]: any;
|
|
5609
|
+
});
|
|
5610
|
+
}
|
|
5433
5611
|
export declare class GetDocumentChunkListRequest extends $dara.Model {
|
|
5434
5612
|
chunkIdList?: string[];
|
|
5435
5613
|
/**
|
|
@@ -8497,6 +8675,24 @@ export default class Client extends OpenApi {
|
|
|
8497
8675
|
* @returns GetDialogAnalysisResultResponse
|
|
8498
8676
|
*/
|
|
8499
8677
|
getDialogAnalysisResult(workspaceId: string, request: GetDialogAnalysisResultRequest): Promise<GetDialogAnalysisResultResponse>;
|
|
8678
|
+
/**
|
|
8679
|
+
* 获取异步任务的结果
|
|
8680
|
+
*
|
|
8681
|
+
* @param request - GetDialogDetailRequest
|
|
8682
|
+
* @param headers - map
|
|
8683
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
8684
|
+
* @returns GetDialogDetailResponse
|
|
8685
|
+
*/
|
|
8686
|
+
getDialogDetailWithOptions(workspaceId: string, request: GetDialogDetailRequest, headers: {
|
|
8687
|
+
[key: string]: string;
|
|
8688
|
+
}, runtime: $dara.RuntimeOptions): Promise<GetDialogDetailResponse>;
|
|
8689
|
+
/**
|
|
8690
|
+
* 获取异步任务的结果
|
|
8691
|
+
*
|
|
8692
|
+
* @param request - GetDialogDetailRequest
|
|
8693
|
+
* @returns GetDialogDetailResponse
|
|
8694
|
+
*/
|
|
8695
|
+
getDialogDetail(workspaceId: string, request: GetDialogDetailRequest): Promise<GetDialogDetailResponse>;
|
|
8500
8696
|
/**
|
|
8501
8697
|
* 获取文档的chunk列表
|
|
8502
8698
|
*
|
package/dist/client.js
CHANGED
|
@@ -36,11 +36,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
39
|
+
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.GetDialogDetailResponseBodyData = exports.GetDialogDetailResponseBodyDataDialogueList = 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.CreateDialogAnalysisTaskRequestConversationList = exports.CreateDialogAnalysisTaskRequestConversationListDialogueList = exports.CreateDialogResponseBodyData = exports.CreateAnnualDocSummaryTaskRequestDocInfos = void 0;
|
|
40
|
+
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 = exports.GetLibraryListResponseBodyDataRecords = exports.GetLibraryListResponseBodyDataRecordsIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingVectorIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingTextIndexSetting = void 0;
|
|
41
|
+
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.CreateDialogAnalysisTaskResponse = exports.CreateDialogAnalysisTaskResponseBody = exports.CreateDialogAnalysisTaskRequest = 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.UpdateDocumentChunkRequestChunks = exports.SubmitChatQuestionResponseBodyData = exports.SubmitChatQuestionRequestQuestionList = exports.RunLibraryChatGenerationRequestVectorSearchParameter = exports.RunLibraryChatGenerationRequestTextSearchParameter = exports.RunLibraryChatGenerationRequestQueryCriteria = exports.RunLibraryChatGenerationRequestQueryCriteriaOr = void 0;
|
|
42
|
+
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.GetDialogDetailResponse = exports.GetDialogDetailResponseBody = exports.GetDialogDetailRequest = 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 = void 0;
|
|
43
|
+
exports.UploadDocumentResponseBody = exports.UploadDocumentAdvanceRequest = exports.UploadDocumentRequest = exports.UpdateQaLibraryResponse = exports.UpdateQaLibraryResponseBody = exports.UpdateQaLibraryRequest = exports.UpdateLibraryResponse = exports.UpdateLibraryResponseBody = exports.UpdateLibraryRequest = exports.UpdateDocumentChunkResponse = exports.UpdateDocumentChunkResponseBody = exports.UpdateDocumentChunkRequest = 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 = exports.ReIndexResponse = exports.ReIndexResponseBody = exports.ReIndexRequest = exports.PreviewDocumentResponse = exports.PreviewDocumentResponseBody = exports.PreviewDocumentRequest = exports.InvokePluginResponse = exports.InvokePluginResponseBody = exports.InvokePluginRequest = exports.GetTaskStatusResponse = exports.GetTaskStatusResponseBody = void 0;
|
|
44
|
+
exports.UploadDocumentResponse = void 0;
|
|
44
45
|
// This file is auto-generated, don't edit it
|
|
45
46
|
/**
|
|
46
47
|
*/
|
|
@@ -675,6 +676,8 @@ class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp
|
|
|
675
676
|
return {
|
|
676
677
|
dialogExecPlan: 'dialogExecPlan',
|
|
677
678
|
dialogLabels: 'dialogLabels',
|
|
679
|
+
dialogOpenAnalysis: 'dialogOpenAnalysis',
|
|
680
|
+
dialogProcessAnalysis: 'dialogProcessAnalysis',
|
|
678
681
|
dialogSop: 'dialogSop',
|
|
679
682
|
dialogSummary: 'dialogSummary',
|
|
680
683
|
};
|
|
@@ -683,6 +686,8 @@ class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp
|
|
|
683
686
|
return {
|
|
684
687
|
dialogExecPlan: 'string',
|
|
685
688
|
dialogLabels: { 'type': 'array', 'itemType': GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels },
|
|
689
|
+
dialogOpenAnalysis: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
690
|
+
dialogProcessAnalysis: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
686
691
|
dialogSop: 'string',
|
|
687
692
|
dialogSummary: 'string',
|
|
688
693
|
};
|
|
@@ -691,6 +696,12 @@ class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp
|
|
|
691
696
|
if (Array.isArray(this.dialogLabels)) {
|
|
692
697
|
$dara.Model.validateArray(this.dialogLabels);
|
|
693
698
|
}
|
|
699
|
+
if (this.dialogOpenAnalysis) {
|
|
700
|
+
$dara.Model.validateMap(this.dialogOpenAnalysis);
|
|
701
|
+
}
|
|
702
|
+
if (this.dialogProcessAnalysis) {
|
|
703
|
+
$dara.Model.validateMap(this.dialogProcessAnalysis);
|
|
704
|
+
}
|
|
694
705
|
super.validate();
|
|
695
706
|
}
|
|
696
707
|
constructor(map) {
|
|
@@ -750,6 +761,73 @@ class GetDialogAnalysisResultResponseBodyData extends $dara.Model {
|
|
|
750
761
|
}
|
|
751
762
|
}
|
|
752
763
|
exports.GetDialogAnalysisResultResponseBodyData = GetDialogAnalysisResultResponseBodyData;
|
|
764
|
+
class GetDialogDetailResponseBodyDataDialogueList extends $dara.Model {
|
|
765
|
+
static names() {
|
|
766
|
+
return {
|
|
767
|
+
content: 'content',
|
|
768
|
+
customerId: 'customerId',
|
|
769
|
+
customerServiceId: 'customerServiceId',
|
|
770
|
+
customerServiceType: 'customerServiceType',
|
|
771
|
+
hangUpDialog: 'hangUpDialog',
|
|
772
|
+
id: 'id',
|
|
773
|
+
intentCode: 'intentCode',
|
|
774
|
+
intentName: 'intentName',
|
|
775
|
+
role: 'role',
|
|
776
|
+
type: 'type',
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
static types() {
|
|
780
|
+
return {
|
|
781
|
+
content: 'string',
|
|
782
|
+
customerId: 'string',
|
|
783
|
+
customerServiceId: 'string',
|
|
784
|
+
customerServiceType: 'string',
|
|
785
|
+
hangUpDialog: 'boolean',
|
|
786
|
+
id: 'number',
|
|
787
|
+
intentCode: 'string',
|
|
788
|
+
intentName: 'string',
|
|
789
|
+
role: 'string',
|
|
790
|
+
type: 'string',
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
validate() {
|
|
794
|
+
super.validate();
|
|
795
|
+
}
|
|
796
|
+
constructor(map) {
|
|
797
|
+
super(map);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
exports.GetDialogDetailResponseBodyDataDialogueList = GetDialogDetailResponseBodyDataDialogueList;
|
|
801
|
+
class GetDialogDetailResponseBodyData extends $dara.Model {
|
|
802
|
+
static names() {
|
|
803
|
+
return {
|
|
804
|
+
dialogueList: 'dialogueList',
|
|
805
|
+
gmtCreate: 'gmtCreate',
|
|
806
|
+
status: 'status',
|
|
807
|
+
totalDialogTurns: 'totalDialogTurns',
|
|
808
|
+
validDialogTurns: 'validDialogTurns',
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
static types() {
|
|
812
|
+
return {
|
|
813
|
+
dialogueList: { 'type': 'array', 'itemType': GetDialogDetailResponseBodyDataDialogueList },
|
|
814
|
+
gmtCreate: 'string',
|
|
815
|
+
status: 'string',
|
|
816
|
+
totalDialogTurns: 'number',
|
|
817
|
+
validDialogTurns: 'number',
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
validate() {
|
|
821
|
+
if (Array.isArray(this.dialogueList)) {
|
|
822
|
+
$dara.Model.validateArray(this.dialogueList);
|
|
823
|
+
}
|
|
824
|
+
super.validate();
|
|
825
|
+
}
|
|
826
|
+
constructor(map) {
|
|
827
|
+
super(map);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
exports.GetDialogDetailResponseBodyData = GetDialogDetailResponseBodyData;
|
|
753
831
|
class GetDocumentChunkListResponseBodyDataRecordsPos extends $dara.Model {
|
|
754
832
|
static names() {
|
|
755
833
|
return {
|
|
@@ -4953,6 +5031,90 @@ class GetDialogAnalysisResultResponse extends $dara.Model {
|
|
|
4953
5031
|
}
|
|
4954
5032
|
}
|
|
4955
5033
|
exports.GetDialogAnalysisResultResponse = GetDialogAnalysisResultResponse;
|
|
5034
|
+
class GetDialogDetailRequest extends $dara.Model {
|
|
5035
|
+
static names() {
|
|
5036
|
+
return {
|
|
5037
|
+
sessionId: 'sessionId',
|
|
5038
|
+
};
|
|
5039
|
+
}
|
|
5040
|
+
static types() {
|
|
5041
|
+
return {
|
|
5042
|
+
sessionId: 'string',
|
|
5043
|
+
};
|
|
5044
|
+
}
|
|
5045
|
+
validate() {
|
|
5046
|
+
super.validate();
|
|
5047
|
+
}
|
|
5048
|
+
constructor(map) {
|
|
5049
|
+
super(map);
|
|
5050
|
+
}
|
|
5051
|
+
}
|
|
5052
|
+
exports.GetDialogDetailRequest = GetDialogDetailRequest;
|
|
5053
|
+
class GetDialogDetailResponseBody extends $dara.Model {
|
|
5054
|
+
static names() {
|
|
5055
|
+
return {
|
|
5056
|
+
cost: 'cost',
|
|
5057
|
+
data: 'data',
|
|
5058
|
+
dataType: 'dataType',
|
|
5059
|
+
errCode: 'errCode',
|
|
5060
|
+
message: 'message',
|
|
5061
|
+
requestId: 'requestId',
|
|
5062
|
+
success: 'success',
|
|
5063
|
+
time: 'time',
|
|
5064
|
+
};
|
|
5065
|
+
}
|
|
5066
|
+
static types() {
|
|
5067
|
+
return {
|
|
5068
|
+
cost: 'number',
|
|
5069
|
+
data: GetDialogDetailResponseBodyData,
|
|
5070
|
+
dataType: 'string',
|
|
5071
|
+
errCode: 'string',
|
|
5072
|
+
message: 'string',
|
|
5073
|
+
requestId: 'string',
|
|
5074
|
+
success: 'boolean',
|
|
5075
|
+
time: 'string',
|
|
5076
|
+
};
|
|
5077
|
+
}
|
|
5078
|
+
validate() {
|
|
5079
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
5080
|
+
this.data.validate();
|
|
5081
|
+
}
|
|
5082
|
+
super.validate();
|
|
5083
|
+
}
|
|
5084
|
+
constructor(map) {
|
|
5085
|
+
super(map);
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
5088
|
+
exports.GetDialogDetailResponseBody = GetDialogDetailResponseBody;
|
|
5089
|
+
class GetDialogDetailResponse extends $dara.Model {
|
|
5090
|
+
static names() {
|
|
5091
|
+
return {
|
|
5092
|
+
headers: 'headers',
|
|
5093
|
+
statusCode: 'statusCode',
|
|
5094
|
+
body: 'body',
|
|
5095
|
+
};
|
|
5096
|
+
}
|
|
5097
|
+
static types() {
|
|
5098
|
+
return {
|
|
5099
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5100
|
+
statusCode: 'number',
|
|
5101
|
+
body: GetDialogDetailResponseBody,
|
|
5102
|
+
};
|
|
5103
|
+
}
|
|
5104
|
+
validate() {
|
|
5105
|
+
if (this.headers) {
|
|
5106
|
+
$dara.Model.validateMap(this.headers);
|
|
5107
|
+
}
|
|
5108
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
5109
|
+
this.body.validate();
|
|
5110
|
+
}
|
|
5111
|
+
super.validate();
|
|
5112
|
+
}
|
|
5113
|
+
constructor(map) {
|
|
5114
|
+
super(map);
|
|
5115
|
+
}
|
|
5116
|
+
}
|
|
5117
|
+
exports.GetDialogDetailResponse = GetDialogDetailResponse;
|
|
4956
5118
|
class GetDocumentChunkListRequest extends $dara.Model {
|
|
4957
5119
|
static names() {
|
|
4958
5120
|
return {
|
|
@@ -8458,6 +8620,53 @@ class Client extends openapi_core_1.default {
|
|
|
8458
8620
|
let headers = {};
|
|
8459
8621
|
return await this.getDialogAnalysisResultWithOptions(workspaceId, request, headers, runtime);
|
|
8460
8622
|
}
|
|
8623
|
+
/**
|
|
8624
|
+
* 获取异步任务的结果
|
|
8625
|
+
*
|
|
8626
|
+
* @param request - GetDialogDetailRequest
|
|
8627
|
+
* @param headers - map
|
|
8628
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
8629
|
+
* @returns GetDialogDetailResponse
|
|
8630
|
+
*/
|
|
8631
|
+
async getDialogDetailWithOptions(workspaceId, request, headers, runtime) {
|
|
8632
|
+
request.validate();
|
|
8633
|
+
let query = {};
|
|
8634
|
+
if (!$dara.isNull(request.sessionId)) {
|
|
8635
|
+
query["sessionId"] = request.sessionId;
|
|
8636
|
+
}
|
|
8637
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
8638
|
+
headers: headers,
|
|
8639
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
8640
|
+
});
|
|
8641
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
8642
|
+
action: "GetDialogDetail",
|
|
8643
|
+
version: "2024-06-28",
|
|
8644
|
+
protocol: "HTTPS",
|
|
8645
|
+
pathname: `/${$dara.URL.percentEncode(workspaceId)}/api/virtualHuman/dialog/detail`,
|
|
8646
|
+
method: "GET",
|
|
8647
|
+
authType: "AK",
|
|
8648
|
+
style: "ROA",
|
|
8649
|
+
reqBodyType: "json",
|
|
8650
|
+
bodyType: "json",
|
|
8651
|
+
});
|
|
8652
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
8653
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetDialogDetailResponse({}));
|
|
8654
|
+
}
|
|
8655
|
+
else {
|
|
8656
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetDialogDetailResponse({}));
|
|
8657
|
+
}
|
|
8658
|
+
}
|
|
8659
|
+
/**
|
|
8660
|
+
* 获取异步任务的结果
|
|
8661
|
+
*
|
|
8662
|
+
* @param request - GetDialogDetailRequest
|
|
8663
|
+
* @returns GetDialogDetailResponse
|
|
8664
|
+
*/
|
|
8665
|
+
async getDialogDetail(workspaceId, request) {
|
|
8666
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
8667
|
+
let headers = {};
|
|
8668
|
+
return await this.getDialogDetailWithOptions(workspaceId, request, headers, runtime);
|
|
8669
|
+
}
|
|
8461
8670
|
/**
|
|
8462
8671
|
* 获取文档的chunk列表
|
|
8463
8672
|
*
|