@alicloud/dianjin20240628 1.5.0 → 1.6.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.d.ts +106 -0
- package/dist/client.js +131 -3
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +190 -0
package/dist/client.d.ts
CHANGED
|
@@ -1702,6 +1702,7 @@ export declare class GetParseResultRequest extends $tea.Model {
|
|
|
1702
1702
|
* sjdgdsfg
|
|
1703
1703
|
*/
|
|
1704
1704
|
libraryId?: string;
|
|
1705
|
+
useUrlResult?: boolean;
|
|
1705
1706
|
static names(): {
|
|
1706
1707
|
[key: string]: string;
|
|
1707
1708
|
};
|
|
@@ -2336,6 +2337,87 @@ export declare class ReIndexResponse extends $tea.Model {
|
|
|
2336
2337
|
[key: string]: any;
|
|
2337
2338
|
});
|
|
2338
2339
|
}
|
|
2340
|
+
export declare class RebuildTaskRequest extends $tea.Model {
|
|
2341
|
+
/**
|
|
2342
|
+
* @remarks
|
|
2343
|
+
* This parameter is required.
|
|
2344
|
+
*/
|
|
2345
|
+
taskIds?: string[];
|
|
2346
|
+
static names(): {
|
|
2347
|
+
[key: string]: string;
|
|
2348
|
+
};
|
|
2349
|
+
static types(): {
|
|
2350
|
+
[key: string]: any;
|
|
2351
|
+
};
|
|
2352
|
+
constructor(map?: {
|
|
2353
|
+
[key: string]: any;
|
|
2354
|
+
});
|
|
2355
|
+
}
|
|
2356
|
+
export declare class RebuildTaskResponseBody extends $tea.Model {
|
|
2357
|
+
/**
|
|
2358
|
+
* @example
|
|
2359
|
+
* null
|
|
2360
|
+
*/
|
|
2361
|
+
cost?: number;
|
|
2362
|
+
data?: {
|
|
2363
|
+
[key: string]: any;
|
|
2364
|
+
}[];
|
|
2365
|
+
/**
|
|
2366
|
+
* @example
|
|
2367
|
+
* null
|
|
2368
|
+
*/
|
|
2369
|
+
dataType?: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* @example
|
|
2372
|
+
* 0
|
|
2373
|
+
*/
|
|
2374
|
+
errCode?: string;
|
|
2375
|
+
/**
|
|
2376
|
+
* @example
|
|
2377
|
+
* ok
|
|
2378
|
+
*/
|
|
2379
|
+
message?: string;
|
|
2380
|
+
/**
|
|
2381
|
+
* @example
|
|
2382
|
+
* EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
|
|
2383
|
+
*/
|
|
2384
|
+
requestId?: string;
|
|
2385
|
+
/**
|
|
2386
|
+
* @example
|
|
2387
|
+
* true
|
|
2388
|
+
*/
|
|
2389
|
+
success?: boolean;
|
|
2390
|
+
/**
|
|
2391
|
+
* @example
|
|
2392
|
+
* 2024-04-24 11:54:34
|
|
2393
|
+
*/
|
|
2394
|
+
time?: string;
|
|
2395
|
+
static names(): {
|
|
2396
|
+
[key: string]: string;
|
|
2397
|
+
};
|
|
2398
|
+
static types(): {
|
|
2399
|
+
[key: string]: any;
|
|
2400
|
+
};
|
|
2401
|
+
constructor(map?: {
|
|
2402
|
+
[key: string]: any;
|
|
2403
|
+
});
|
|
2404
|
+
}
|
|
2405
|
+
export declare class RebuildTaskResponse extends $tea.Model {
|
|
2406
|
+
headers?: {
|
|
2407
|
+
[key: string]: string;
|
|
2408
|
+
};
|
|
2409
|
+
statusCode?: number;
|
|
2410
|
+
body?: RebuildTaskResponseBody;
|
|
2411
|
+
static names(): {
|
|
2412
|
+
[key: string]: string;
|
|
2413
|
+
};
|
|
2414
|
+
static types(): {
|
|
2415
|
+
[key: string]: any;
|
|
2416
|
+
};
|
|
2417
|
+
constructor(map?: {
|
|
2418
|
+
[key: string]: any;
|
|
2419
|
+
});
|
|
2420
|
+
}
|
|
2339
2421
|
export declare class RecallDocumentRequest extends $tea.Model {
|
|
2340
2422
|
filters?: RecallDocumentRequestFilters[];
|
|
2341
2423
|
/**
|
|
@@ -2447,6 +2529,7 @@ export declare class RecognizeIntentionRequest extends $tea.Model {
|
|
|
2447
2529
|
conversation?: string;
|
|
2448
2530
|
globalIntentionList?: RecognizeIntentionRequestGlobalIntentionList[];
|
|
2449
2531
|
hierarchicalIntentionList?: RecognizeIntentionRequestHierarchicalIntentionList[];
|
|
2532
|
+
intentionDomainCode?: string;
|
|
2450
2533
|
intentionList?: RecognizeIntentionRequestIntentionList[];
|
|
2451
2534
|
/**
|
|
2452
2535
|
* @example
|
|
@@ -4672,6 +4755,7 @@ export declare class GetParseResultResponseBodyData extends $tea.Model {
|
|
|
4672
4755
|
result?: {
|
|
4673
4756
|
[key: string]: any;
|
|
4674
4757
|
};
|
|
4758
|
+
resultUrl?: string;
|
|
4675
4759
|
/**
|
|
4676
4760
|
* @example
|
|
4677
4761
|
* WaitRefresh
|
|
@@ -5598,6 +5682,7 @@ export declare class RecognizeIntentionRequestGlobalIntentionList extends $tea.M
|
|
|
5598
5682
|
* 1810566978021232640
|
|
5599
5683
|
*/
|
|
5600
5684
|
intentionCode?: string;
|
|
5685
|
+
intentionScript?: string;
|
|
5601
5686
|
static names(): {
|
|
5602
5687
|
[key: string]: string;
|
|
5603
5688
|
};
|
|
@@ -5616,6 +5701,7 @@ export declare class RecognizeIntentionRequestHierarchicalIntentionList extends
|
|
|
5616
5701
|
* 1810929291010150400
|
|
5617
5702
|
*/
|
|
5618
5703
|
intentionCode?: string;
|
|
5704
|
+
intentionScript?: string;
|
|
5619
5705
|
static names(): {
|
|
5620
5706
|
[key: string]: string;
|
|
5621
5707
|
};
|
|
@@ -5634,6 +5720,7 @@ export declare class RecognizeIntentionRequestIntentionList extends $tea.Model {
|
|
|
5634
5720
|
* 1808766224000262144
|
|
5635
5721
|
*/
|
|
5636
5722
|
intentionCode?: string;
|
|
5723
|
+
intentionScript?: string;
|
|
5637
5724
|
static names(): {
|
|
5638
5725
|
[key: string]: string;
|
|
5639
5726
|
};
|
|
@@ -5652,6 +5739,7 @@ export declare class RecognizeIntentionResponseBodyData extends $tea.Model {
|
|
|
5652
5739
|
*/
|
|
5653
5740
|
intentionCode?: string;
|
|
5654
5741
|
intentionName?: string;
|
|
5742
|
+
intentionScript?: string;
|
|
5655
5743
|
recommendIntention?: string;
|
|
5656
5744
|
recommendScript?: string;
|
|
5657
5745
|
static names(): {
|
|
@@ -6646,6 +6734,24 @@ export default class Client extends OpenApi {
|
|
|
6646
6734
|
* @returns ReIndexResponse
|
|
6647
6735
|
*/
|
|
6648
6736
|
reIndex(workspaceId: string, request: ReIndexRequest): Promise<ReIndexResponse>;
|
|
6737
|
+
/**
|
|
6738
|
+
* 重建任务
|
|
6739
|
+
*
|
|
6740
|
+
* @param request - RebuildTaskRequest
|
|
6741
|
+
* @param headers - map
|
|
6742
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6743
|
+
* @returns RebuildTaskResponse
|
|
6744
|
+
*/
|
|
6745
|
+
rebuildTaskWithOptions(workspaceId: string, request: RebuildTaskRequest, headers: {
|
|
6746
|
+
[key: string]: string;
|
|
6747
|
+
}, runtime: $Util.RuntimeOptions): Promise<RebuildTaskResponse>;
|
|
6748
|
+
/**
|
|
6749
|
+
* 重建任务
|
|
6750
|
+
*
|
|
6751
|
+
* @param request - RebuildTaskRequest
|
|
6752
|
+
* @returns RebuildTaskResponse
|
|
6753
|
+
*/
|
|
6754
|
+
rebuildTask(workspaceId: string, request: RebuildTaskRequest): Promise<RebuildTaskResponse>;
|
|
6649
6755
|
/**
|
|
6650
6756
|
* 文档召回。
|
|
6651
6757
|
*
|
package/dist/client.js
CHANGED
|
@@ -27,9 +27,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
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.GetAppConfigResponse = exports.GetAppConfigResponseBody = 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.CreateAnnualDocSummaryTaskResponse = exports.CreateAnnualDocSummaryTaskResponseBody = exports.CreateAnnualDocSummaryTaskRequest = void 0;
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = exports.UpdateLibraryRequestIndexSettingTextIndexSetting = exports.UpdateLibraryRequestIndexSettingRecallStrategy = exports.UpdateLibraryRequestIndexSettingQueryEnhancer = exports.UpdateLibraryRequestIndexSettingModelConfig = exports.UpdateLibraryRequestIndexSettingChunkStrategy = 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.PreviewDocumentResponseBodyData = exports.GetSummaryTaskResultResponseBodyData = void 0;
|
|
30
|
+
exports.UploadDocumentAdvanceRequest = exports.UploadDocumentRequest = exports.UpdateLibraryResponse = exports.UpdateLibraryResponseBody = exports.UpdateLibraryRequest = exports.UpdateDocumentResponse = exports.UpdateDocumentResponseBody = exports.UpdateDocumentRequest = 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 = exports.RebuildTaskResponseBody = exports.RebuildTaskRequest = 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 = void 0;
|
|
31
|
+
exports.GetQualityCheckTaskResultResponseBodyData = exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckList = exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue = exports.GetQualityCheckTaskResultResponseBodyDataConversationList = exports.GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList = exports.GetParseResultResponseBodyData = exports.GetLibraryListResponseBodyData = exports.GetLibraryListResponseBodyDataRecords = exports.GetLibraryListResponseBodyDataRecordsIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingVectorIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingTextIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingRecallStrategy = exports.GetLibraryListResponseBodyDataRecordsIndexSettingQueryEnhancer = exports.GetLibraryListResponseBodyDataRecordsIndexSettingModelConfig = exports.GetLibraryListResponseBodyDataRecordsIndexSettingChunkStrategy = exports.GetLibraryResponseBodyData = exports.GetLibraryResponseBodyDataIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingVectorIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingTextIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingRecallStrategy = exports.GetLibraryResponseBodyDataIndexSettingQueryEnhancer = exports.GetLibraryResponseBodyDataIndexSettingModelConfig = exports.GetLibraryResponseBodyDataIndexSettingChunkStrategy = exports.GetHistoryListByBizTypeResponseBodyData = exports.GetHistoryListByBizTypeResponseBodyDataRecords = exports.GetFilterDocumentListResponseBodyData = exports.GetFilterDocumentListResponseBodyDataRecords = exports.GetFilterDocumentListRequestOr = exports.GetFilterDocumentListRequestAnd = exports.GetDocumentListResponseBodyData = exports.GetDocumentListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyData = exports.GetDocumentChunkListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyDataRecordsPos = exports.GetAppConfigResponseBodyData = 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.CreateAnnualDocSummaryTaskRequestDocInfos = exports.UploadDocumentResponse = exports.UploadDocumentResponseBody = void 0;
|
|
32
|
+
exports.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = exports.UpdateLibraryRequestIndexSettingTextIndexSetting = exports.UpdateLibraryRequestIndexSettingRecallStrategy = exports.UpdateLibraryRequestIndexSettingQueryEnhancer = exports.UpdateLibraryRequestIndexSettingModelConfig = exports.UpdateLibraryRequestIndexSettingChunkStrategy = 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.PreviewDocumentResponseBodyData = exports.GetSummaryTaskResultResponseBodyData = exports.GetSummaryTaskResultResponseBodyDataUsage = exports.GetSummaryTaskResultResponseBodyDataChoices = exports.GetSummaryTaskResultResponseBodyDataChoicesMessage = void 0;
|
|
33
33
|
// This file is auto-generated, don't edit it
|
|
34
34
|
/**
|
|
35
35
|
*/
|
|
@@ -1311,12 +1311,14 @@ class GetParseResultRequest extends $tea.Model {
|
|
|
1311
1311
|
return {
|
|
1312
1312
|
docId: 'docId',
|
|
1313
1313
|
libraryId: 'libraryId',
|
|
1314
|
+
useUrlResult: 'useUrlResult',
|
|
1314
1315
|
};
|
|
1315
1316
|
}
|
|
1316
1317
|
static types() {
|
|
1317
1318
|
return {
|
|
1318
1319
|
docId: 'string',
|
|
1319
1320
|
libraryId: 'string',
|
|
1321
|
+
useUrlResult: 'boolean',
|
|
1320
1322
|
};
|
|
1321
1323
|
}
|
|
1322
1324
|
constructor(map) {
|
|
@@ -1838,6 +1840,72 @@ class ReIndexResponse extends $tea.Model {
|
|
|
1838
1840
|
}
|
|
1839
1841
|
}
|
|
1840
1842
|
exports.ReIndexResponse = ReIndexResponse;
|
|
1843
|
+
class RebuildTaskRequest extends $tea.Model {
|
|
1844
|
+
static names() {
|
|
1845
|
+
return {
|
|
1846
|
+
taskIds: 'taskIds',
|
|
1847
|
+
};
|
|
1848
|
+
}
|
|
1849
|
+
static types() {
|
|
1850
|
+
return {
|
|
1851
|
+
taskIds: { 'type': 'array', 'itemType': 'string' },
|
|
1852
|
+
};
|
|
1853
|
+
}
|
|
1854
|
+
constructor(map) {
|
|
1855
|
+
super(map);
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
exports.RebuildTaskRequest = RebuildTaskRequest;
|
|
1859
|
+
class RebuildTaskResponseBody extends $tea.Model {
|
|
1860
|
+
static names() {
|
|
1861
|
+
return {
|
|
1862
|
+
cost: 'cost',
|
|
1863
|
+
data: 'data',
|
|
1864
|
+
dataType: 'dataType',
|
|
1865
|
+
errCode: 'errCode',
|
|
1866
|
+
message: 'message',
|
|
1867
|
+
requestId: 'requestId',
|
|
1868
|
+
success: 'success',
|
|
1869
|
+
time: 'time',
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
1872
|
+
static types() {
|
|
1873
|
+
return {
|
|
1874
|
+
cost: 'number',
|
|
1875
|
+
data: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
1876
|
+
dataType: 'string',
|
|
1877
|
+
errCode: 'string',
|
|
1878
|
+
message: 'string',
|
|
1879
|
+
requestId: 'string',
|
|
1880
|
+
success: 'boolean',
|
|
1881
|
+
time: 'string',
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
constructor(map) {
|
|
1885
|
+
super(map);
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
exports.RebuildTaskResponseBody = RebuildTaskResponseBody;
|
|
1889
|
+
class RebuildTaskResponse extends $tea.Model {
|
|
1890
|
+
static names() {
|
|
1891
|
+
return {
|
|
1892
|
+
headers: 'headers',
|
|
1893
|
+
statusCode: 'statusCode',
|
|
1894
|
+
body: 'body',
|
|
1895
|
+
};
|
|
1896
|
+
}
|
|
1897
|
+
static types() {
|
|
1898
|
+
return {
|
|
1899
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1900
|
+
statusCode: 'number',
|
|
1901
|
+
body: RebuildTaskResponseBody,
|
|
1902
|
+
};
|
|
1903
|
+
}
|
|
1904
|
+
constructor(map) {
|
|
1905
|
+
super(map);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
exports.RebuildTaskResponse = RebuildTaskResponse;
|
|
1841
1909
|
class RecallDocumentRequest extends $tea.Model {
|
|
1842
1910
|
static names() {
|
|
1843
1911
|
return {
|
|
@@ -1918,6 +1986,7 @@ class RecognizeIntentionRequest extends $tea.Model {
|
|
|
1918
1986
|
conversation: 'conversation',
|
|
1919
1987
|
globalIntentionList: 'globalIntentionList',
|
|
1920
1988
|
hierarchicalIntentionList: 'hierarchicalIntentionList',
|
|
1989
|
+
intentionDomainCode: 'intentionDomainCode',
|
|
1921
1990
|
intentionList: 'intentionList',
|
|
1922
1991
|
opType: 'opType',
|
|
1923
1992
|
recommend: 'recommend',
|
|
@@ -1930,6 +1999,7 @@ class RecognizeIntentionRequest extends $tea.Model {
|
|
|
1930
1999
|
conversation: 'string',
|
|
1931
2000
|
globalIntentionList: { 'type': 'array', 'itemType': RecognizeIntentionRequestGlobalIntentionList },
|
|
1932
2001
|
hierarchicalIntentionList: { 'type': 'array', 'itemType': RecognizeIntentionRequestHierarchicalIntentionList },
|
|
2002
|
+
intentionDomainCode: 'string',
|
|
1933
2003
|
intentionList: { 'type': 'array', 'itemType': RecognizeIntentionRequestIntentionList },
|
|
1934
2004
|
opType: 'string',
|
|
1935
2005
|
recommend: 'boolean',
|
|
@@ -3485,6 +3555,7 @@ class GetParseResultResponseBodyData extends $tea.Model {
|
|
|
3485
3555
|
providerType: 'providerType',
|
|
3486
3556
|
requestId: 'requestId',
|
|
3487
3557
|
result: 'result',
|
|
3558
|
+
resultUrl: 'resultUrl',
|
|
3488
3559
|
status: 'status',
|
|
3489
3560
|
};
|
|
3490
3561
|
}
|
|
@@ -3494,6 +3565,7 @@ class GetParseResultResponseBodyData extends $tea.Model {
|
|
|
3494
3565
|
providerType: 'string',
|
|
3495
3566
|
requestId: 'string',
|
|
3496
3567
|
result: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
3568
|
+
resultUrl: 'string',
|
|
3497
3569
|
status: 'string',
|
|
3498
3570
|
};
|
|
3499
3571
|
}
|
|
@@ -4164,6 +4236,7 @@ class RecognizeIntentionRequestGlobalIntentionList extends $tea.Model {
|
|
|
4164
4236
|
description: 'description',
|
|
4165
4237
|
intention: 'intention',
|
|
4166
4238
|
intentionCode: 'intentionCode',
|
|
4239
|
+
intentionScript: 'intentionScript',
|
|
4167
4240
|
};
|
|
4168
4241
|
}
|
|
4169
4242
|
static types() {
|
|
@@ -4171,6 +4244,7 @@ class RecognizeIntentionRequestGlobalIntentionList extends $tea.Model {
|
|
|
4171
4244
|
description: 'string',
|
|
4172
4245
|
intention: 'string',
|
|
4173
4246
|
intentionCode: 'string',
|
|
4247
|
+
intentionScript: 'string',
|
|
4174
4248
|
};
|
|
4175
4249
|
}
|
|
4176
4250
|
constructor(map) {
|
|
@@ -4184,6 +4258,7 @@ class RecognizeIntentionRequestHierarchicalIntentionList extends $tea.Model {
|
|
|
4184
4258
|
description: 'description',
|
|
4185
4259
|
intention: 'intention',
|
|
4186
4260
|
intentionCode: 'intentionCode',
|
|
4261
|
+
intentionScript: 'intentionScript',
|
|
4187
4262
|
};
|
|
4188
4263
|
}
|
|
4189
4264
|
static types() {
|
|
@@ -4191,6 +4266,7 @@ class RecognizeIntentionRequestHierarchicalIntentionList extends $tea.Model {
|
|
|
4191
4266
|
description: 'string',
|
|
4192
4267
|
intention: 'string',
|
|
4193
4268
|
intentionCode: 'string',
|
|
4269
|
+
intentionScript: 'string',
|
|
4194
4270
|
};
|
|
4195
4271
|
}
|
|
4196
4272
|
constructor(map) {
|
|
@@ -4204,6 +4280,7 @@ class RecognizeIntentionRequestIntentionList extends $tea.Model {
|
|
|
4204
4280
|
description: 'description',
|
|
4205
4281
|
intention: 'intention',
|
|
4206
4282
|
intentionCode: 'intentionCode',
|
|
4283
|
+
intentionScript: 'intentionScript',
|
|
4207
4284
|
};
|
|
4208
4285
|
}
|
|
4209
4286
|
static types() {
|
|
@@ -4211,6 +4288,7 @@ class RecognizeIntentionRequestIntentionList extends $tea.Model {
|
|
|
4211
4288
|
description: 'string',
|
|
4212
4289
|
intention: 'string',
|
|
4213
4290
|
intentionCode: 'string',
|
|
4291
|
+
intentionScript: 'string',
|
|
4214
4292
|
};
|
|
4215
4293
|
}
|
|
4216
4294
|
constructor(map) {
|
|
@@ -4224,6 +4302,7 @@ class RecognizeIntentionResponseBodyData extends $tea.Model {
|
|
|
4224
4302
|
analysisProcess: 'analysisProcess',
|
|
4225
4303
|
intentionCode: 'intentionCode',
|
|
4226
4304
|
intentionName: 'intentionName',
|
|
4305
|
+
intentionScript: 'intentionScript',
|
|
4227
4306
|
recommendIntention: 'recommendIntention',
|
|
4228
4307
|
recommendScript: 'recommendScript',
|
|
4229
4308
|
};
|
|
@@ -4233,6 +4312,7 @@ class RecognizeIntentionResponseBodyData extends $tea.Model {
|
|
|
4233
4312
|
analysisProcess: 'string',
|
|
4234
4313
|
intentionCode: 'string',
|
|
4235
4314
|
intentionName: 'string',
|
|
4315
|
+
intentionScript: 'string',
|
|
4236
4316
|
recommendIntention: 'string',
|
|
4237
4317
|
recommendScript: 'string',
|
|
4238
4318
|
};
|
|
@@ -5582,6 +5662,9 @@ class Client extends openapi_client_1.default {
|
|
|
5582
5662
|
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
5583
5663
|
body["libraryId"] = request.libraryId;
|
|
5584
5664
|
}
|
|
5665
|
+
if (!tea_util_1.default.isUnset(request.useUrlResult)) {
|
|
5666
|
+
body["useUrlResult"] = request.useUrlResult;
|
|
5667
|
+
}
|
|
5585
5668
|
let req = new $OpenApi.OpenApiRequest({
|
|
5586
5669
|
headers: headers,
|
|
5587
5670
|
body: openapi_util_1.default.parseToMap(body),
|
|
@@ -5907,6 +5990,48 @@ class Client extends openapi_client_1.default {
|
|
|
5907
5990
|
let headers = {};
|
|
5908
5991
|
return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
|
|
5909
5992
|
}
|
|
5993
|
+
/**
|
|
5994
|
+
* 重建任务
|
|
5995
|
+
*
|
|
5996
|
+
* @param request - RebuildTaskRequest
|
|
5997
|
+
* @param headers - map
|
|
5998
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5999
|
+
* @returns RebuildTaskResponse
|
|
6000
|
+
*/
|
|
6001
|
+
async rebuildTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
6002
|
+
tea_util_1.default.validateModel(request);
|
|
6003
|
+
let body = {};
|
|
6004
|
+
if (!tea_util_1.default.isUnset(request.taskIds)) {
|
|
6005
|
+
body["taskIds"] = request.taskIds;
|
|
6006
|
+
}
|
|
6007
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6008
|
+
headers: headers,
|
|
6009
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
6010
|
+
});
|
|
6011
|
+
let params = new $OpenApi.Params({
|
|
6012
|
+
action: "RebuildTask",
|
|
6013
|
+
version: "2024-06-28",
|
|
6014
|
+
protocol: "HTTPS",
|
|
6015
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/rebuild`,
|
|
6016
|
+
method: "POST",
|
|
6017
|
+
authType: "AK",
|
|
6018
|
+
style: "ROA",
|
|
6019
|
+
reqBodyType: "json",
|
|
6020
|
+
bodyType: "json",
|
|
6021
|
+
});
|
|
6022
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
|
|
6023
|
+
}
|
|
6024
|
+
/**
|
|
6025
|
+
* 重建任务
|
|
6026
|
+
*
|
|
6027
|
+
* @param request - RebuildTaskRequest
|
|
6028
|
+
* @returns RebuildTaskResponse
|
|
6029
|
+
*/
|
|
6030
|
+
async rebuildTask(workspaceId, request) {
|
|
6031
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6032
|
+
let headers = {};
|
|
6033
|
+
return await this.rebuildTaskWithOptions(workspaceId, request, headers, runtime);
|
|
6034
|
+
}
|
|
5910
6035
|
/**
|
|
5911
6036
|
* 文档召回。
|
|
5912
6037
|
*
|
|
@@ -5984,6 +6109,9 @@ class Client extends openapi_client_1.default {
|
|
|
5984
6109
|
if (!tea_util_1.default.isUnset(request.hierarchicalIntentionList)) {
|
|
5985
6110
|
body["hierarchicalIntentionList"] = request.hierarchicalIntentionList;
|
|
5986
6111
|
}
|
|
6112
|
+
if (!tea_util_1.default.isUnset(request.intentionDomainCode)) {
|
|
6113
|
+
body["intentionDomainCode"] = request.intentionDomainCode;
|
|
6114
|
+
}
|
|
5987
6115
|
if (!tea_util_1.default.isUnset(request.intentionList)) {
|
|
5988
6116
|
body["intentionList"] = request.intentionList;
|
|
5989
6117
|
}
|