@alicloud/gpdb20160503 3.7.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +160 -34
- package/dist/client.js +367 -34
- package/dist/client.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseRequest.d.ts +68 -111
- package/dist/models/ChatWithKnowledgeBaseRequest.js +2 -0
- package/dist/models/ChatWithKnowledgeBaseRequest.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseResponseBody.d.ts +45 -52
- package/dist/models/ChatWithKnowledgeBaseResponseBody.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseShrinkRequest.d.ts +5 -6
- package/dist/models/ChatWithKnowledgeBaseShrinkRequest.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.d.ts +71 -87
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.js +2 -0
- package/dist/models/ChatWithKnowledgeBaseStreamRequest.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.d.ts +44 -50
- package/dist/models/ChatWithKnowledgeBaseStreamResponseBody.js.map +1 -1
- package/dist/models/ChatWithKnowledgeBaseStreamShrinkRequest.d.ts +6 -6
- package/dist/models/PauseSaasServiceRequest.d.ts +26 -0
- package/dist/models/PauseSaasServiceRequest.js +60 -0
- package/dist/models/PauseSaasServiceRequest.js.map +1 -0
- package/dist/models/PauseSaasServiceResponse.d.ts +19 -0
- package/dist/models/PauseSaasServiceResponse.js +69 -0
- package/dist/models/PauseSaasServiceResponse.js.map +1 -0
- package/dist/models/PauseSaasServiceResponseBody.d.ts +23 -0
- package/dist/models/PauseSaasServiceResponseBody.js +60 -0
- package/dist/models/PauseSaasServiceResponseBody.js.map +1 -0
- package/dist/models/QueryContentAdvanceRequest.d.ts +57 -70
- package/dist/models/QueryContentAdvanceRequest.js +2 -0
- package/dist/models/QueryContentAdvanceRequest.js.map +1 -1
- package/dist/models/QueryContentRequest.d.ts +57 -70
- package/dist/models/QueryContentRequest.js +2 -0
- package/dist/models/QueryContentRequest.js.map +1 -1
- package/dist/models/QueryContentResponseBody.d.ts +10 -11
- package/dist/models/QueryContentResponseBody.js.map +1 -1
- package/dist/models/QueryContentShrinkRequest.d.ts +52 -66
- package/dist/models/QueryContentShrinkRequest.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentRequest.d.ts +62 -78
- package/dist/models/QueryKnowledgeBasesContentRequest.js +2 -0
- package/dist/models/QueryKnowledgeBasesContentRequest.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentResponseBody.d.ts +11 -25
- package/dist/models/QueryKnowledgeBasesContentResponseBody.js.map +1 -1
- package/dist/models/QueryKnowledgeBasesContentShrinkRequest.d.ts +11 -15
- package/dist/models/QueryKnowledgeBasesContentShrinkRequest.js.map +1 -1
- package/dist/models/ResetBranchRequest.d.ts +41 -0
- package/dist/models/ResetBranchRequest.js +62 -0
- package/dist/models/ResetBranchRequest.js.map +1 -0
- package/dist/models/ResetBranchResponse.d.ts +19 -0
- package/dist/models/ResetBranchResponse.js +69 -0
- package/dist/models/ResetBranchResponse.js.map +1 -0
- package/dist/models/ResetBranchResponseBody.d.ts +21 -0
- package/dist/models/ResetBranchResponseBody.js +58 -0
- package/dist/models/ResetBranchResponseBody.js.map +1 -0
- package/dist/models/RestoreBranchRequest.d.ts +83 -0
- package/dist/models/RestoreBranchRequest.js +72 -0
- package/dist/models/RestoreBranchRequest.js.map +1 -0
- package/dist/models/RestoreBranchResponse.d.ts +19 -0
- package/dist/models/RestoreBranchResponse.js +69 -0
- package/dist/models/RestoreBranchResponse.js.map +1 -0
- package/dist/models/RestoreBranchResponseBody.d.ts +29 -0
- package/dist/models/RestoreBranchResponseBody.js +60 -0
- package/dist/models/RestoreBranchResponseBody.js.map +1 -0
- package/dist/models/ResumeSaasServiceRequest.d.ts +26 -0
- package/dist/models/ResumeSaasServiceRequest.js +60 -0
- package/dist/models/ResumeSaasServiceRequest.js.map +1 -0
- package/dist/models/ResumeSaasServiceResponse.d.ts +19 -0
- package/dist/models/ResumeSaasServiceResponse.js +69 -0
- package/dist/models/ResumeSaasServiceResponse.js.map +1 -0
- package/dist/models/ResumeSaasServiceResponseBody.d.ts +23 -0
- package/dist/models/ResumeSaasServiceResponseBody.js +60 -0
- package/dist/models/ResumeSaasServiceResponseBody.js.map +1 -0
- package/dist/models/SetAsDefaultBranchRequest.d.ts +41 -0
- package/dist/models/SetAsDefaultBranchRequest.js +62 -0
- package/dist/models/SetAsDefaultBranchRequest.js.map +1 -0
- package/dist/models/SetAsDefaultBranchResponse.d.ts +19 -0
- package/dist/models/SetAsDefaultBranchResponse.js +69 -0
- package/dist/models/SetAsDefaultBranchResponse.js.map +1 -0
- package/dist/models/SetAsDefaultBranchResponseBody.d.ts +21 -0
- package/dist/models/SetAsDefaultBranchResponseBody.js +58 -0
- package/dist/models/SetAsDefaultBranchResponseBody.js.map +1 -0
- package/dist/models/UpdateBranchRequest.d.ts +126 -0
- package/dist/models/UpdateBranchRequest.js +98 -0
- package/dist/models/UpdateBranchRequest.js.map +1 -0
- package/dist/models/UpdateBranchResponse.d.ts +19 -0
- package/dist/models/UpdateBranchResponse.js +69 -0
- package/dist/models/UpdateBranchResponse.js.map +1 -0
- package/dist/models/UpdateBranchResponseBody.d.ts +21 -0
- package/dist/models/UpdateBranchResponseBody.js +58 -0
- package/dist/models/UpdateBranchResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +19 -0
- package/dist/models/model.js +56 -18
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +406 -34
- package/src/models/ChatWithKnowledgeBaseRequest.ts +70 -111
- package/src/models/ChatWithKnowledgeBaseResponseBody.ts +45 -52
- package/src/models/ChatWithKnowledgeBaseShrinkRequest.ts +5 -6
- package/src/models/ChatWithKnowledgeBaseStreamRequest.ts +73 -87
- package/src/models/ChatWithKnowledgeBaseStreamResponseBody.ts +44 -50
- package/src/models/ChatWithKnowledgeBaseStreamShrinkRequest.ts +6 -6
- package/src/models/PauseSaasServiceRequest.ts +41 -0
- package/src/models/PauseSaasServiceResponse.ts +40 -0
- package/src/models/PauseSaasServiceResponseBody.ts +38 -0
- package/src/models/QueryContentAdvanceRequest.ts +60 -71
- package/src/models/QueryContentRequest.ts +60 -71
- package/src/models/QueryContentResponseBody.ts +10 -11
- package/src/models/QueryContentShrinkRequest.ts +53 -67
- package/src/models/QueryKnowledgeBasesContentRequest.ts +64 -78
- package/src/models/QueryKnowledgeBasesContentResponseBody.ts +11 -25
- package/src/models/QueryKnowledgeBasesContentShrinkRequest.ts +11 -15
- package/src/models/ResetBranchRequest.ts +58 -0
- package/src/models/ResetBranchResponse.ts +40 -0
- package/src/models/ResetBranchResponseBody.ts +34 -0
- package/src/models/RestoreBranchRequest.ts +110 -0
- package/src/models/RestoreBranchResponse.ts +40 -0
- package/src/models/RestoreBranchResponseBody.ts +44 -0
- package/src/models/ResumeSaasServiceRequest.ts +41 -0
- package/src/models/ResumeSaasServiceResponse.ts +40 -0
- package/src/models/ResumeSaasServiceResponseBody.ts +38 -0
- package/src/models/SetAsDefaultBranchRequest.ts +58 -0
- package/src/models/SetAsDefaultBranchResponse.ts +40 -0
- package/src/models/SetAsDefaultBranchResponseBody.ts +34 -0
- package/src/models/UpdateBranchRequest.ts +170 -0
- package/src/models/UpdateBranchResponse.ts +40 -0
- package/src/models/UpdateBranchResponseBody.ts +34 -0
- package/src/models/model.ts +19 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessageToolCallsFunction extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The arguments
|
|
8
|
+
* The arguments of the called function.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* {"city":"hangzhou"}
|
|
@@ -13,7 +13,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
|
|
|
13
13
|
arguments?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The name of the function
|
|
16
|
+
* The name of the called function.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* "get_weather"
|
|
@@ -45,12 +45,12 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
|
|
|
45
45
|
export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessageToolCalls extends $dara.Model {
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
*
|
|
48
|
+
* The information about the called function.
|
|
49
49
|
*/
|
|
50
50
|
function?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessageToolCallsFunction;
|
|
51
51
|
/**
|
|
52
52
|
* @remarks
|
|
53
|
-
*
|
|
53
|
+
* ID。
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
56
|
* "chatcmpl-c1bebafa-cc48-44e2-88c6-1a3572952f8e"
|
|
@@ -58,7 +58,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
|
|
|
58
58
|
id?: string;
|
|
59
59
|
/**
|
|
60
60
|
* @remarks
|
|
61
|
-
* The index of
|
|
61
|
+
* The index of this tool in the Input request parameter, starting from 0.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* 1
|
|
@@ -95,7 +95,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
|
|
|
95
95
|
export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage extends $dara.Model {
|
|
96
96
|
/**
|
|
97
97
|
* @remarks
|
|
98
|
-
* The
|
|
98
|
+
* The document content.
|
|
99
99
|
*
|
|
100
100
|
* @example
|
|
101
101
|
* The weather in Hangzhou is sunny.
|
|
@@ -103,7 +103,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
|
|
|
103
103
|
content?: string;
|
|
104
104
|
/**
|
|
105
105
|
* @remarks
|
|
106
|
-
* The
|
|
106
|
+
* The chain-of-thought content of the model.
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
109
109
|
* Logical reasoning process
|
|
@@ -111,13 +111,11 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
|
|
|
111
111
|
reasoningContent?: string;
|
|
112
112
|
/**
|
|
113
113
|
* @remarks
|
|
114
|
-
* The
|
|
115
|
-
*
|
|
116
|
-
* - `system`
|
|
114
|
+
* The message role. Valid values:
|
|
117
115
|
*
|
|
118
|
-
* -
|
|
119
|
-
*
|
|
120
|
-
* -
|
|
116
|
+
* - system
|
|
117
|
+
* - user
|
|
118
|
+
* - assistant.
|
|
121
119
|
*
|
|
122
120
|
* @example
|
|
123
121
|
* user
|
|
@@ -125,7 +123,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
|
|
|
125
123
|
role?: string;
|
|
126
124
|
/**
|
|
127
125
|
* @remarks
|
|
128
|
-
* The tool
|
|
126
|
+
* The tool invocation response.
|
|
129
127
|
*/
|
|
130
128
|
toolCalls?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessageToolCalls[];
|
|
131
129
|
static names(): { [key: string]: string } {
|
|
@@ -161,7 +159,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage
|
|
|
161
159
|
export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoices extends $dara.Model {
|
|
162
160
|
/**
|
|
163
161
|
* @remarks
|
|
164
|
-
* The reason
|
|
162
|
+
* The stop reason.
|
|
165
163
|
*
|
|
166
164
|
* @example
|
|
167
165
|
* finish
|
|
@@ -169,7 +167,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoices extend
|
|
|
169
167
|
finishReason?: string;
|
|
170
168
|
/**
|
|
171
169
|
* @remarks
|
|
172
|
-
* The index
|
|
170
|
+
* The response index.
|
|
173
171
|
*
|
|
174
172
|
* @example
|
|
175
173
|
* 0
|
|
@@ -177,7 +175,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoices extend
|
|
|
177
175
|
index?: number;
|
|
178
176
|
/**
|
|
179
177
|
* @remarks
|
|
180
|
-
* The
|
|
178
|
+
* The large language model response.
|
|
181
179
|
*/
|
|
182
180
|
message?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoicesMessage;
|
|
183
181
|
static names(): { [key: string]: string } {
|
|
@@ -211,7 +209,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoices extend
|
|
|
211
209
|
export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsagePromptTokensDetails extends $dara.Model {
|
|
212
210
|
/**
|
|
213
211
|
* @remarks
|
|
214
|
-
* The number of
|
|
212
|
+
* The number of tokens that hit the cache.
|
|
215
213
|
*
|
|
216
214
|
* @example
|
|
217
215
|
* 24
|
|
@@ -241,7 +239,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsagePromptTok
|
|
|
241
239
|
export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsage extends $dara.Model {
|
|
242
240
|
/**
|
|
243
241
|
* @remarks
|
|
244
|
-
* The number of tokens
|
|
242
|
+
* The number of tokens consumed for generating the content.
|
|
245
243
|
*
|
|
246
244
|
* @example
|
|
247
245
|
* 42
|
|
@@ -249,7 +247,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsage extends
|
|
|
249
247
|
completionTokens?: number;
|
|
250
248
|
/**
|
|
251
249
|
* @remarks
|
|
252
|
-
* The number of tokens
|
|
250
|
+
* The number of tokens consumed by the input prompt.
|
|
253
251
|
*
|
|
254
252
|
* @example
|
|
255
253
|
* 42
|
|
@@ -257,7 +255,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsage extends
|
|
|
257
255
|
promptTokens?: number;
|
|
258
256
|
/**
|
|
259
257
|
* @remarks
|
|
260
|
-
*
|
|
258
|
+
* The prompt token details.
|
|
261
259
|
*/
|
|
262
260
|
promptTokensDetails?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsagePromptTokensDetails;
|
|
263
261
|
/**
|
|
@@ -301,12 +299,12 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsage extends
|
|
|
301
299
|
export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletion extends $dara.Model {
|
|
302
300
|
/**
|
|
303
301
|
* @remarks
|
|
304
|
-
* The
|
|
302
|
+
* The text content generated in real time.
|
|
305
303
|
*/
|
|
306
304
|
choices?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionChoices[];
|
|
307
305
|
/**
|
|
308
306
|
* @remarks
|
|
309
|
-
* The creation time
|
|
307
|
+
* The creation time.
|
|
310
308
|
*
|
|
311
309
|
* @example
|
|
312
310
|
* 1758529748
|
|
@@ -330,7 +328,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyChatCompletion extends $dara
|
|
|
330
328
|
model?: string;
|
|
331
329
|
/**
|
|
332
330
|
* @remarks
|
|
333
|
-
* The
|
|
331
|
+
* The number of tokens used by the large language model output.
|
|
334
332
|
*/
|
|
335
333
|
usage?: ChatWithKnowledgeBaseStreamResponseBodyChatCompletionUsage;
|
|
336
334
|
static names(): { [key: string]: string } {
|
|
@@ -387,9 +385,9 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
|
|
|
387
385
|
fileName?: string;
|
|
388
386
|
/**
|
|
389
387
|
* @remarks
|
|
390
|
-
* The public URL of the
|
|
388
|
+
* The public URL of the image in the query result. The URL is valid for 2 hours by default.
|
|
391
389
|
*
|
|
392
|
-
* You can
|
|
390
|
+
* You can specify a custom validity period by using the UrlExpiration parameter.
|
|
393
391
|
*
|
|
394
392
|
* @example
|
|
395
393
|
* http://dailyshort-sh.oss-cn-shanghai.aliyuncs.com/vod-8efba5/f06147795c6c71f080605420848d0302/0ca34d5743a84bf7c68f489a60715dac-ld.mp4
|
|
@@ -397,9 +395,9 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
|
|
|
397
395
|
fileURL?: string;
|
|
398
396
|
/**
|
|
399
397
|
* @remarks
|
|
400
|
-
* The unique ID of
|
|
398
|
+
* The unique ID of this vector data entry.
|
|
401
399
|
*
|
|
402
|
-
* > If this
|
|
400
|
+
* > If this value is empty, the database automatically generates a UUID. If this value is not empty and conflicts with an existing ID in the database, the API data overwrites the existing value in the database.
|
|
403
401
|
*
|
|
404
402
|
* @example
|
|
405
403
|
* 273e3fc7-8f56-4167-a1bb-d35d2f3b9043
|
|
@@ -407,7 +405,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
|
|
|
407
405
|
id?: string;
|
|
408
406
|
/**
|
|
409
407
|
* @remarks
|
|
410
|
-
*
|
|
408
|
+
* The metadata generated by the document loader during loading.
|
|
411
409
|
*
|
|
412
410
|
* @example
|
|
413
411
|
* {"page":1}
|
|
@@ -415,12 +413,12 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
|
|
|
415
413
|
loaderMetadata?: any;
|
|
416
414
|
/**
|
|
417
415
|
* @remarks
|
|
418
|
-
* The
|
|
416
|
+
* The metadata.
|
|
419
417
|
*/
|
|
420
418
|
metadata?: { [key: string]: any };
|
|
421
419
|
/**
|
|
422
420
|
* @remarks
|
|
423
|
-
* The
|
|
421
|
+
* The reranking score.
|
|
424
422
|
*
|
|
425
423
|
* @example
|
|
426
424
|
* 0.12
|
|
@@ -428,7 +426,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
|
|
|
428
426
|
rerankScore?: number;
|
|
429
427
|
/**
|
|
430
428
|
* @remarks
|
|
431
|
-
* The source of the
|
|
429
|
+
* The source of the retrieve result. A value of 1 indicates AISearch retrieve, 2 indicates full-text index retrieve, and 3 indicates multi-channel recall.
|
|
432
430
|
*
|
|
433
431
|
* @example
|
|
434
432
|
* 0.12
|
|
@@ -436,7 +434,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
|
|
|
436
434
|
retrievalSource?: number;
|
|
437
435
|
/**
|
|
438
436
|
* @remarks
|
|
439
|
-
* The similarity score. The
|
|
437
|
+
* The similarity score of this data entry. The scoring algorithm is related to the algorithm specified during index creation (l2, ip, or cosine).
|
|
440
438
|
*
|
|
441
439
|
* @example
|
|
442
440
|
* 10
|
|
@@ -495,9 +493,9 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultM
|
|
|
495
493
|
export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultUsage extends $dara.Model {
|
|
496
494
|
/**
|
|
497
495
|
* @remarks
|
|
498
|
-
* The number of tokens used
|
|
496
|
+
* The number of tokens used during vectorization.
|
|
499
497
|
*
|
|
500
|
-
* > A token is the smallest unit
|
|
498
|
+
* > A token is the smallest unit into which input text is segmented. A token can be a word, a phrase, a punctuation mark, or a character.
|
|
501
499
|
*
|
|
502
500
|
* @example
|
|
503
501
|
* 158
|
|
@@ -527,17 +525,17 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultU
|
|
|
527
525
|
export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResult extends $dara.Model {
|
|
528
526
|
/**
|
|
529
527
|
* @remarks
|
|
530
|
-
*
|
|
528
|
+
* The entity details.
|
|
531
529
|
*/
|
|
532
530
|
entities?: string[];
|
|
533
531
|
/**
|
|
534
532
|
* @remarks
|
|
535
|
-
*
|
|
533
|
+
* The recall items.
|
|
536
534
|
*/
|
|
537
535
|
matches?: ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultMatches[];
|
|
538
536
|
/**
|
|
539
537
|
* @remarks
|
|
540
|
-
*
|
|
538
|
+
* The relation names.
|
|
541
539
|
*/
|
|
542
540
|
relations?: string[];
|
|
543
541
|
/**
|
|
@@ -550,11 +548,9 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResult
|
|
|
550
548
|
requestId?: string;
|
|
551
549
|
/**
|
|
552
550
|
* @remarks
|
|
553
|
-
* The
|
|
554
|
-
*
|
|
555
|
-
* - **
|
|
556
|
-
*
|
|
557
|
-
* - **fail**: The call failed.
|
|
551
|
+
* The API execution status. Valid values:
|
|
552
|
+
* - **success**: The execution is successful.
|
|
553
|
+
* - **fail**: The execution failed.
|
|
558
554
|
*
|
|
559
555
|
* @example
|
|
560
556
|
* success
|
|
@@ -570,7 +566,7 @@ export class ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResult
|
|
|
570
566
|
tokens?: number;
|
|
571
567
|
/**
|
|
572
568
|
* @remarks
|
|
573
|
-
* The number of tokens consumed
|
|
569
|
+
* The number of tokens or entries consumed by document understanding or embedding.
|
|
574
570
|
*/
|
|
575
571
|
usage?: ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResultUsage;
|
|
576
572
|
static names(): { [key: string]: string } {
|
|
@@ -634,7 +630,7 @@ export class ChatWithKnowledgeBaseStreamResponseBody extends $dara.Model {
|
|
|
634
630
|
message?: string;
|
|
635
631
|
/**
|
|
636
632
|
* @remarks
|
|
637
|
-
* The
|
|
633
|
+
* The recall information from multiple knowledge bases.
|
|
638
634
|
*/
|
|
639
635
|
multiCollectionRecallResult?: ChatWithKnowledgeBaseStreamResponseBodyMultiCollectionRecallResult;
|
|
640
636
|
/**
|
|
@@ -647,11 +643,9 @@ export class ChatWithKnowledgeBaseStreamResponseBody extends $dara.Model {
|
|
|
647
643
|
requestId?: string;
|
|
648
644
|
/**
|
|
649
645
|
* @remarks
|
|
650
|
-
* The status
|
|
651
|
-
*
|
|
652
|
-
* - **
|
|
653
|
-
*
|
|
654
|
-
* - **fail**: The request failed.
|
|
646
|
+
* The status. Valid values:
|
|
647
|
+
* - **success**: Successful.
|
|
648
|
+
* - **fail**: Failed.
|
|
655
649
|
*
|
|
656
650
|
* @example
|
|
657
651
|
* success
|
|
@@ -7,7 +7,7 @@ export class ChatWithKnowledgeBaseStreamShrinkRequest extends $dara.Model {
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* The instance ID.
|
|
9
9
|
*
|
|
10
|
-
* > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to query the IDs of all AnalyticDB for PostgreSQL instances in a
|
|
10
|
+
* > You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/86911.html) operation to query the IDs of all AnalyticDB for PostgreSQL instances in a region.
|
|
11
11
|
*
|
|
12
12
|
* This parameter is required.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ export class ChatWithKnowledgeBaseStreamShrinkRequest extends $dara.Model {
|
|
|
17
17
|
DBInstanceId?: string;
|
|
18
18
|
/**
|
|
19
19
|
* @remarks
|
|
20
|
-
* Specifies whether to
|
|
20
|
+
* Specifies whether to return recall results. Default value: false.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* false
|
|
@@ -25,12 +25,12 @@ export class ChatWithKnowledgeBaseStreamShrinkRequest extends $dara.Model {
|
|
|
25
25
|
includeKnowledgeBaseResults?: boolean;
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
*
|
|
28
|
+
* The knowledge retrieval parameter object. If this parameter is not specified, only chat is performed.
|
|
29
29
|
*/
|
|
30
30
|
knowledgeParamsShrink?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
*
|
|
33
|
+
* The large language model (LLM) invocation parameter object.
|
|
34
34
|
*
|
|
35
35
|
* This parameter is required.
|
|
36
36
|
*/
|
|
@@ -38,7 +38,7 @@ export class ChatWithKnowledgeBaseStreamShrinkRequest extends $dara.Model {
|
|
|
38
38
|
ownerId?: number;
|
|
39
39
|
/**
|
|
40
40
|
* @remarks
|
|
41
|
-
*
|
|
41
|
+
* The system prompt template. The template must include {{ text_chunks }}, {{ user_system_prompt }}, {{ graph_entities }}, and {{ graph_relations }}. If not specified, this part does not take effect.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* "参考以下知识回答问题:{{ text_chunks }}"
|
|
@@ -46,7 +46,7 @@ export class ChatWithKnowledgeBaseStreamShrinkRequest extends $dara.Model {
|
|
|
46
46
|
promptParams?: string;
|
|
47
47
|
/**
|
|
48
48
|
* @remarks
|
|
49
|
-
* The
|
|
49
|
+
* The ID of the region where the instance resides.
|
|
50
50
|
*
|
|
51
51
|
* This parameter is required.
|
|
52
52
|
*
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class PauseSaasServiceRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* cn-beijing
|
|
9
|
+
*/
|
|
10
|
+
regionId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* agdb-xxxxx
|
|
17
|
+
*/
|
|
18
|
+
serviceId?: string;
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
regionId: 'RegionId',
|
|
22
|
+
serviceId: 'ServiceId',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static types(): { [key: string]: any } {
|
|
27
|
+
return {
|
|
28
|
+
regionId: 'string',
|
|
29
|
+
serviceId: 'string',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
super.validate();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { PauseSaasServiceResponseBody } from "./PauseSaasServiceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class PauseSaasServiceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: PauseSaasServiceResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: PauseSaasServiceResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class PauseSaasServiceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* ABB39CC3-4488-4857-905D-2E4A051D0521
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* drama-123456
|
|
14
|
+
*/
|
|
15
|
+
serviceId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
requestId: 'RequestId',
|
|
19
|
+
serviceId: 'ServiceId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
requestId: 'string',
|
|
26
|
+
serviceId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|