@alicloud/quanmiaolightapp20240801 2.0.1 → 2.1.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 +437 -0
- package/dist/client.js +449 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +736 -10
package/src/client.ts
CHANGED
|
@@ -109,6 +109,190 @@ export class GenerateBroadcastNewsResponse extends $tea.Model {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
export class GenerateOutputFormatRequest extends $tea.Model {
|
|
113
|
+
/**
|
|
114
|
+
* @example
|
|
115
|
+
* clueMining
|
|
116
|
+
*/
|
|
117
|
+
businessType?: string;
|
|
118
|
+
/**
|
|
119
|
+
* @example
|
|
120
|
+
* 待分析文本
|
|
121
|
+
*/
|
|
122
|
+
content?: string;
|
|
123
|
+
/**
|
|
124
|
+
* @example
|
|
125
|
+
* 额外信息
|
|
126
|
+
*/
|
|
127
|
+
extraInfo?: string;
|
|
128
|
+
/**
|
|
129
|
+
* @remarks
|
|
130
|
+
* This parameter is required.
|
|
131
|
+
*/
|
|
132
|
+
tags?: GenerateOutputFormatRequestTags[];
|
|
133
|
+
/**
|
|
134
|
+
* @example
|
|
135
|
+
* 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
|
|
136
|
+
*/
|
|
137
|
+
taskDescription?: string;
|
|
138
|
+
static names(): { [key: string]: string } {
|
|
139
|
+
return {
|
|
140
|
+
businessType: 'businessType',
|
|
141
|
+
content: 'content',
|
|
142
|
+
extraInfo: 'extraInfo',
|
|
143
|
+
tags: 'tags',
|
|
144
|
+
taskDescription: 'taskDescription',
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
static types(): { [key: string]: any } {
|
|
149
|
+
return {
|
|
150
|
+
businessType: 'string',
|
|
151
|
+
content: 'string',
|
|
152
|
+
extraInfo: 'string',
|
|
153
|
+
tags: { 'type': 'array', 'itemType': GenerateOutputFormatRequestTags },
|
|
154
|
+
taskDescription: 'string',
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
constructor(map?: { [key: string]: any }) {
|
|
159
|
+
super(map);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export class GenerateOutputFormatShrinkRequest extends $tea.Model {
|
|
164
|
+
/**
|
|
165
|
+
* @example
|
|
166
|
+
* clueMining
|
|
167
|
+
*/
|
|
168
|
+
businessType?: string;
|
|
169
|
+
/**
|
|
170
|
+
* @example
|
|
171
|
+
* 待分析文本
|
|
172
|
+
*/
|
|
173
|
+
content?: string;
|
|
174
|
+
/**
|
|
175
|
+
* @example
|
|
176
|
+
* 额外信息
|
|
177
|
+
*/
|
|
178
|
+
extraInfo?: string;
|
|
179
|
+
/**
|
|
180
|
+
* @remarks
|
|
181
|
+
* This parameter is required.
|
|
182
|
+
*/
|
|
183
|
+
tagsShrink?: string;
|
|
184
|
+
/**
|
|
185
|
+
* @example
|
|
186
|
+
* 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
|
|
187
|
+
*/
|
|
188
|
+
taskDescription?: string;
|
|
189
|
+
static names(): { [key: string]: string } {
|
|
190
|
+
return {
|
|
191
|
+
businessType: 'businessType',
|
|
192
|
+
content: 'content',
|
|
193
|
+
extraInfo: 'extraInfo',
|
|
194
|
+
tagsShrink: 'tags',
|
|
195
|
+
taskDescription: 'taskDescription',
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
static types(): { [key: string]: any } {
|
|
200
|
+
return {
|
|
201
|
+
businessType: 'string',
|
|
202
|
+
content: 'string',
|
|
203
|
+
extraInfo: 'string',
|
|
204
|
+
tagsShrink: 'string',
|
|
205
|
+
taskDescription: 'string',
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
constructor(map?: { [key: string]: any }) {
|
|
210
|
+
super(map);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export class GenerateOutputFormatResponseBody extends $tea.Model {
|
|
215
|
+
/**
|
|
216
|
+
* @example
|
|
217
|
+
* successful
|
|
218
|
+
*/
|
|
219
|
+
code?: string;
|
|
220
|
+
data?: GenerateOutputFormatResponseBodyData;
|
|
221
|
+
/**
|
|
222
|
+
* @example
|
|
223
|
+
* 200
|
|
224
|
+
*/
|
|
225
|
+
httpStatusCode?: number;
|
|
226
|
+
/**
|
|
227
|
+
* @example
|
|
228
|
+
* ok
|
|
229
|
+
*/
|
|
230
|
+
message?: string;
|
|
231
|
+
/**
|
|
232
|
+
* @remarks
|
|
233
|
+
* Id of the request
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* 117F5ABE-CF02-5502-9A3F-E56BC9081A64
|
|
237
|
+
*/
|
|
238
|
+
requestId?: string;
|
|
239
|
+
/**
|
|
240
|
+
* @example
|
|
241
|
+
* True
|
|
242
|
+
*/
|
|
243
|
+
success?: boolean;
|
|
244
|
+
static names(): { [key: string]: string } {
|
|
245
|
+
return {
|
|
246
|
+
code: 'code',
|
|
247
|
+
data: 'data',
|
|
248
|
+
httpStatusCode: 'httpStatusCode',
|
|
249
|
+
message: 'message',
|
|
250
|
+
requestId: 'requestId',
|
|
251
|
+
success: 'success',
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
static types(): { [key: string]: any } {
|
|
256
|
+
return {
|
|
257
|
+
code: 'string',
|
|
258
|
+
data: GenerateOutputFormatResponseBodyData,
|
|
259
|
+
httpStatusCode: 'number',
|
|
260
|
+
message: 'string',
|
|
261
|
+
requestId: 'string',
|
|
262
|
+
success: 'boolean',
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
constructor(map?: { [key: string]: any }) {
|
|
267
|
+
super(map);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export class GenerateOutputFormatResponse extends $tea.Model {
|
|
272
|
+
headers?: { [key: string]: string };
|
|
273
|
+
statusCode?: number;
|
|
274
|
+
body?: GenerateOutputFormatResponseBody;
|
|
275
|
+
static names(): { [key: string]: string } {
|
|
276
|
+
return {
|
|
277
|
+
headers: 'headers',
|
|
278
|
+
statusCode: 'statusCode',
|
|
279
|
+
body: 'body',
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
static types(): { [key: string]: any } {
|
|
284
|
+
return {
|
|
285
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
286
|
+
statusCode: 'number',
|
|
287
|
+
body: GenerateOutputFormatResponseBody,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
constructor(map?: { [key: string]: any }) {
|
|
292
|
+
super(map);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
112
296
|
export class ListHotTopicSummariesRequest extends $tea.Model {
|
|
113
297
|
/**
|
|
114
298
|
* @example
|
|
@@ -1163,6 +1347,191 @@ export class RunStyleWritingResponse extends $tea.Model {
|
|
|
1163
1347
|
}
|
|
1164
1348
|
}
|
|
1165
1349
|
|
|
1350
|
+
export class RunTagMiningAnalysisRequest extends $tea.Model {
|
|
1351
|
+
/**
|
|
1352
|
+
* @example
|
|
1353
|
+
* clueMining
|
|
1354
|
+
*/
|
|
1355
|
+
businessType?: string;
|
|
1356
|
+
/**
|
|
1357
|
+
* @remarks
|
|
1358
|
+
* This parameter is required.
|
|
1359
|
+
*
|
|
1360
|
+
* @example
|
|
1361
|
+
* 待分析文本
|
|
1362
|
+
*/
|
|
1363
|
+
content?: string;
|
|
1364
|
+
/**
|
|
1365
|
+
* @example
|
|
1366
|
+
* 额外信息
|
|
1367
|
+
*/
|
|
1368
|
+
extraInfo?: string;
|
|
1369
|
+
/**
|
|
1370
|
+
* @example
|
|
1371
|
+
* qwen-max
|
|
1372
|
+
*/
|
|
1373
|
+
modelId?: string;
|
|
1374
|
+
/**
|
|
1375
|
+
* @example
|
|
1376
|
+
* 请返回如下JSON格式,{"key1":"","key2":""}
|
|
1377
|
+
*/
|
|
1378
|
+
outputFormat?: string;
|
|
1379
|
+
tags?: RunTagMiningAnalysisRequestTags[];
|
|
1380
|
+
/**
|
|
1381
|
+
* @example
|
|
1382
|
+
* 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
|
|
1383
|
+
*/
|
|
1384
|
+
taskDescription?: string;
|
|
1385
|
+
static names(): { [key: string]: string } {
|
|
1386
|
+
return {
|
|
1387
|
+
businessType: 'businessType',
|
|
1388
|
+
content: 'content',
|
|
1389
|
+
extraInfo: 'extraInfo',
|
|
1390
|
+
modelId: 'modelId',
|
|
1391
|
+
outputFormat: 'outputFormat',
|
|
1392
|
+
tags: 'tags',
|
|
1393
|
+
taskDescription: 'taskDescription',
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
static types(): { [key: string]: any } {
|
|
1398
|
+
return {
|
|
1399
|
+
businessType: 'string',
|
|
1400
|
+
content: 'string',
|
|
1401
|
+
extraInfo: 'string',
|
|
1402
|
+
modelId: 'string',
|
|
1403
|
+
outputFormat: 'string',
|
|
1404
|
+
tags: { 'type': 'array', 'itemType': RunTagMiningAnalysisRequestTags },
|
|
1405
|
+
taskDescription: 'string',
|
|
1406
|
+
};
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
constructor(map?: { [key: string]: any }) {
|
|
1410
|
+
super(map);
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
export class RunTagMiningAnalysisShrinkRequest extends $tea.Model {
|
|
1415
|
+
/**
|
|
1416
|
+
* @example
|
|
1417
|
+
* clueMining
|
|
1418
|
+
*/
|
|
1419
|
+
businessType?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* @remarks
|
|
1422
|
+
* This parameter is required.
|
|
1423
|
+
*
|
|
1424
|
+
* @example
|
|
1425
|
+
* 待分析文本
|
|
1426
|
+
*/
|
|
1427
|
+
content?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* @example
|
|
1430
|
+
* 额外信息
|
|
1431
|
+
*/
|
|
1432
|
+
extraInfo?: string;
|
|
1433
|
+
/**
|
|
1434
|
+
* @example
|
|
1435
|
+
* qwen-max
|
|
1436
|
+
*/
|
|
1437
|
+
modelId?: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* @example
|
|
1440
|
+
* 请返回如下JSON格式,{"key1":"","key2":""}
|
|
1441
|
+
*/
|
|
1442
|
+
outputFormat?: string;
|
|
1443
|
+
tagsShrink?: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* @example
|
|
1446
|
+
* 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
|
|
1447
|
+
*/
|
|
1448
|
+
taskDescription?: string;
|
|
1449
|
+
static names(): { [key: string]: string } {
|
|
1450
|
+
return {
|
|
1451
|
+
businessType: 'businessType',
|
|
1452
|
+
content: 'content',
|
|
1453
|
+
extraInfo: 'extraInfo',
|
|
1454
|
+
modelId: 'modelId',
|
|
1455
|
+
outputFormat: 'outputFormat',
|
|
1456
|
+
tagsShrink: 'tags',
|
|
1457
|
+
taskDescription: 'taskDescription',
|
|
1458
|
+
};
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
static types(): { [key: string]: any } {
|
|
1462
|
+
return {
|
|
1463
|
+
businessType: 'string',
|
|
1464
|
+
content: 'string',
|
|
1465
|
+
extraInfo: 'string',
|
|
1466
|
+
modelId: 'string',
|
|
1467
|
+
outputFormat: 'string',
|
|
1468
|
+
tagsShrink: 'string',
|
|
1469
|
+
taskDescription: 'string',
|
|
1470
|
+
};
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
constructor(map?: { [key: string]: any }) {
|
|
1474
|
+
super(map);
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
export class RunTagMiningAnalysisResponseBody extends $tea.Model {
|
|
1479
|
+
header?: RunTagMiningAnalysisResponseBodyHeader;
|
|
1480
|
+
payload?: RunTagMiningAnalysisResponseBodyPayload;
|
|
1481
|
+
/**
|
|
1482
|
+
* @remarks
|
|
1483
|
+
* Id of the request
|
|
1484
|
+
*
|
|
1485
|
+
* @example
|
|
1486
|
+
* 085BE2D2-BB7E-59A6-B688-F2CB32124E7F
|
|
1487
|
+
*/
|
|
1488
|
+
requestId?: string;
|
|
1489
|
+
static names(): { [key: string]: string } {
|
|
1490
|
+
return {
|
|
1491
|
+
header: 'header',
|
|
1492
|
+
payload: 'payload',
|
|
1493
|
+
requestId: 'requestId',
|
|
1494
|
+
};
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
static types(): { [key: string]: any } {
|
|
1498
|
+
return {
|
|
1499
|
+
header: RunTagMiningAnalysisResponseBodyHeader,
|
|
1500
|
+
payload: RunTagMiningAnalysisResponseBodyPayload,
|
|
1501
|
+
requestId: 'string',
|
|
1502
|
+
};
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
constructor(map?: { [key: string]: any }) {
|
|
1506
|
+
super(map);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
export class RunTagMiningAnalysisResponse extends $tea.Model {
|
|
1511
|
+
headers?: { [key: string]: string };
|
|
1512
|
+
statusCode?: number;
|
|
1513
|
+
body?: RunTagMiningAnalysisResponseBody;
|
|
1514
|
+
static names(): { [key: string]: string } {
|
|
1515
|
+
return {
|
|
1516
|
+
headers: 'headers',
|
|
1517
|
+
statusCode: 'statusCode',
|
|
1518
|
+
body: 'body',
|
|
1519
|
+
};
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
static types(): { [key: string]: any } {
|
|
1523
|
+
return {
|
|
1524
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1525
|
+
statusCode: 'number',
|
|
1526
|
+
body: RunTagMiningAnalysisResponseBody,
|
|
1527
|
+
};
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
constructor(map?: { [key: string]: any }) {
|
|
1531
|
+
super(map);
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1166
1535
|
export class RunVideoAnalysisRequest extends $tea.Model {
|
|
1167
1536
|
generateOptions?: string[];
|
|
1168
1537
|
modelCustomPromptTemplate?: string;
|
|
@@ -1492,21 +1861,70 @@ export class GenerateBroadcastNewsResponseBodyData extends $tea.Model {
|
|
|
1492
1861
|
usage?: GenerateBroadcastNewsResponseBodyDataUsage;
|
|
1493
1862
|
static names(): { [key: string]: string } {
|
|
1494
1863
|
return {
|
|
1495
|
-
hotTopicSummaries: 'hotTopicSummaries',
|
|
1496
|
-
sessionId: 'sessionId',
|
|
1497
|
-
taskId: 'taskId',
|
|
1498
|
-
text: 'text',
|
|
1499
|
-
usage: 'usage',
|
|
1864
|
+
hotTopicSummaries: 'hotTopicSummaries',
|
|
1865
|
+
sessionId: 'sessionId',
|
|
1866
|
+
taskId: 'taskId',
|
|
1867
|
+
text: 'text',
|
|
1868
|
+
usage: 'usage',
|
|
1869
|
+
};
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
static types(): { [key: string]: any } {
|
|
1873
|
+
return {
|
|
1874
|
+
hotTopicSummaries: { 'type': 'array', 'itemType': GenerateBroadcastNewsResponseBodyDataHotTopicSummaries },
|
|
1875
|
+
sessionId: 'string',
|
|
1876
|
+
taskId: 'string',
|
|
1877
|
+
text: 'string',
|
|
1878
|
+
usage: GenerateBroadcastNewsResponseBodyDataUsage,
|
|
1879
|
+
};
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
constructor(map?: { [key: string]: any }) {
|
|
1883
|
+
super(map);
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
export class GenerateOutputFormatRequestTags extends $tea.Model {
|
|
1888
|
+
/**
|
|
1889
|
+
* @example
|
|
1890
|
+
* xxxx
|
|
1891
|
+
*/
|
|
1892
|
+
tagDefinePrompt?: string;
|
|
1893
|
+
/**
|
|
1894
|
+
* @example
|
|
1895
|
+
* xxxx
|
|
1896
|
+
*/
|
|
1897
|
+
tagName?: string;
|
|
1898
|
+
static names(): { [key: string]: string } {
|
|
1899
|
+
return {
|
|
1900
|
+
tagDefinePrompt: 'tagDefinePrompt',
|
|
1901
|
+
tagName: 'tagName',
|
|
1902
|
+
};
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
static types(): { [key: string]: any } {
|
|
1906
|
+
return {
|
|
1907
|
+
tagDefinePrompt: 'string',
|
|
1908
|
+
tagName: 'string',
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
constructor(map?: { [key: string]: any }) {
|
|
1913
|
+
super(map);
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
export class GenerateOutputFormatResponseBodyData extends $tea.Model {
|
|
1918
|
+
outputFormat?: string;
|
|
1919
|
+
static names(): { [key: string]: string } {
|
|
1920
|
+
return {
|
|
1921
|
+
outputFormat: 'outputFormat',
|
|
1500
1922
|
};
|
|
1501
1923
|
}
|
|
1502
1924
|
|
|
1503
1925
|
static types(): { [key: string]: any } {
|
|
1504
1926
|
return {
|
|
1505
|
-
|
|
1506
|
-
sessionId: 'string',
|
|
1507
|
-
taskId: 'string',
|
|
1508
|
-
text: 'string',
|
|
1509
|
-
usage: GenerateBroadcastNewsResponseBodyDataUsage,
|
|
1927
|
+
outputFormat: 'string',
|
|
1510
1928
|
};
|
|
1511
1929
|
}
|
|
1512
1930
|
|
|
@@ -3070,6 +3488,172 @@ export class RunStyleWritingResponseBodyPayload extends $tea.Model {
|
|
|
3070
3488
|
}
|
|
3071
3489
|
}
|
|
3072
3490
|
|
|
3491
|
+
export class RunTagMiningAnalysisRequestTags extends $tea.Model {
|
|
3492
|
+
/**
|
|
3493
|
+
* @example
|
|
3494
|
+
* xxxx
|
|
3495
|
+
*/
|
|
3496
|
+
tagDefinePrompt?: string;
|
|
3497
|
+
/**
|
|
3498
|
+
* @example
|
|
3499
|
+
* xxxx
|
|
3500
|
+
*/
|
|
3501
|
+
tagName?: string;
|
|
3502
|
+
static names(): { [key: string]: string } {
|
|
3503
|
+
return {
|
|
3504
|
+
tagDefinePrompt: 'tagDefinePrompt',
|
|
3505
|
+
tagName: 'tagName',
|
|
3506
|
+
};
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3509
|
+
static types(): { [key: string]: any } {
|
|
3510
|
+
return {
|
|
3511
|
+
tagDefinePrompt: 'string',
|
|
3512
|
+
tagName: 'string',
|
|
3513
|
+
};
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
constructor(map?: { [key: string]: any }) {
|
|
3517
|
+
super(map);
|
|
3518
|
+
}
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
export class RunTagMiningAnalysisResponseBodyHeader extends $tea.Model {
|
|
3522
|
+
/**
|
|
3523
|
+
* @example
|
|
3524
|
+
* AccessForbidden
|
|
3525
|
+
*/
|
|
3526
|
+
errorCode?: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* @example
|
|
3529
|
+
* 错误信息
|
|
3530
|
+
*/
|
|
3531
|
+
errorMessage?: string;
|
|
3532
|
+
/**
|
|
3533
|
+
* @example
|
|
3534
|
+
* task-finished
|
|
3535
|
+
*/
|
|
3536
|
+
event?: string;
|
|
3537
|
+
/**
|
|
3538
|
+
* @example
|
|
3539
|
+
* xxxx
|
|
3540
|
+
*/
|
|
3541
|
+
sessionId?: string;
|
|
3542
|
+
/**
|
|
3543
|
+
* @example
|
|
3544
|
+
* xxxx
|
|
3545
|
+
*/
|
|
3546
|
+
taskId?: string;
|
|
3547
|
+
/**
|
|
3548
|
+
* @example
|
|
3549
|
+
* xxxxx
|
|
3550
|
+
*/
|
|
3551
|
+
traceId?: string;
|
|
3552
|
+
static names(): { [key: string]: string } {
|
|
3553
|
+
return {
|
|
3554
|
+
errorCode: 'errorCode',
|
|
3555
|
+
errorMessage: 'errorMessage',
|
|
3556
|
+
event: 'event',
|
|
3557
|
+
sessionId: 'sessionId',
|
|
3558
|
+
taskId: 'taskId',
|
|
3559
|
+
traceId: 'traceId',
|
|
3560
|
+
};
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
static types(): { [key: string]: any } {
|
|
3564
|
+
return {
|
|
3565
|
+
errorCode: 'string',
|
|
3566
|
+
errorMessage: 'string',
|
|
3567
|
+
event: 'string',
|
|
3568
|
+
sessionId: 'string',
|
|
3569
|
+
taskId: 'string',
|
|
3570
|
+
traceId: 'string',
|
|
3571
|
+
};
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
constructor(map?: { [key: string]: any }) {
|
|
3575
|
+
super(map);
|
|
3576
|
+
}
|
|
3577
|
+
}
|
|
3578
|
+
|
|
3579
|
+
export class RunTagMiningAnalysisResponseBodyPayloadOutput extends $tea.Model {
|
|
3580
|
+
text?: string;
|
|
3581
|
+
static names(): { [key: string]: string } {
|
|
3582
|
+
return {
|
|
3583
|
+
text: 'text',
|
|
3584
|
+
};
|
|
3585
|
+
}
|
|
3586
|
+
|
|
3587
|
+
static types(): { [key: string]: any } {
|
|
3588
|
+
return {
|
|
3589
|
+
text: 'string',
|
|
3590
|
+
};
|
|
3591
|
+
}
|
|
3592
|
+
|
|
3593
|
+
constructor(map?: { [key: string]: any }) {
|
|
3594
|
+
super(map);
|
|
3595
|
+
}
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
export class RunTagMiningAnalysisResponseBodyPayloadUsage extends $tea.Model {
|
|
3599
|
+
/**
|
|
3600
|
+
* @example
|
|
3601
|
+
* 100
|
|
3602
|
+
*/
|
|
3603
|
+
inputTokens?: number;
|
|
3604
|
+
/**
|
|
3605
|
+
* @example
|
|
3606
|
+
* 100
|
|
3607
|
+
*/
|
|
3608
|
+
outputTokens?: number;
|
|
3609
|
+
/**
|
|
3610
|
+
* @example
|
|
3611
|
+
* 200
|
|
3612
|
+
*/
|
|
3613
|
+
totalTokens?: number;
|
|
3614
|
+
static names(): { [key: string]: string } {
|
|
3615
|
+
return {
|
|
3616
|
+
inputTokens: 'inputTokens',
|
|
3617
|
+
outputTokens: 'outputTokens',
|
|
3618
|
+
totalTokens: 'totalTokens',
|
|
3619
|
+
};
|
|
3620
|
+
}
|
|
3621
|
+
|
|
3622
|
+
static types(): { [key: string]: any } {
|
|
3623
|
+
return {
|
|
3624
|
+
inputTokens: 'number',
|
|
3625
|
+
outputTokens: 'number',
|
|
3626
|
+
totalTokens: 'number',
|
|
3627
|
+
};
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
constructor(map?: { [key: string]: any }) {
|
|
3631
|
+
super(map);
|
|
3632
|
+
}
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3635
|
+
export class RunTagMiningAnalysisResponseBodyPayload extends $tea.Model {
|
|
3636
|
+
output?: RunTagMiningAnalysisResponseBodyPayloadOutput;
|
|
3637
|
+
usage?: RunTagMiningAnalysisResponseBodyPayloadUsage;
|
|
3638
|
+
static names(): { [key: string]: string } {
|
|
3639
|
+
return {
|
|
3640
|
+
output: 'output',
|
|
3641
|
+
usage: 'usage',
|
|
3642
|
+
};
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
static types(): { [key: string]: any } {
|
|
3646
|
+
return {
|
|
3647
|
+
output: RunTagMiningAnalysisResponseBodyPayloadOutput,
|
|
3648
|
+
usage: RunTagMiningAnalysisResponseBodyPayloadUsage,
|
|
3649
|
+
};
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
constructor(map?: { [key: string]: any }) {
|
|
3653
|
+
super(map);
|
|
3654
|
+
}
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3073
3657
|
export class RunVideoAnalysisResponseBodyHeader extends $tea.Model {
|
|
3074
3658
|
/**
|
|
3075
3659
|
* @example
|
|
@@ -3720,6 +4304,73 @@ export default class Client extends OpenApi {
|
|
|
3720
4304
|
return await this.generateBroadcastNewsWithOptions(workspaceId, request, headers, runtime);
|
|
3721
4305
|
}
|
|
3722
4306
|
|
|
4307
|
+
/**
|
|
4308
|
+
* 轻应用-标签挖掘-获取示例输出格式
|
|
4309
|
+
*
|
|
4310
|
+
* @param tmpReq - GenerateOutputFormatRequest
|
|
4311
|
+
* @param headers - map
|
|
4312
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4313
|
+
* @returns GenerateOutputFormatResponse
|
|
4314
|
+
*/
|
|
4315
|
+
async generateOutputFormatWithOptions(workspaceId: string, tmpReq: GenerateOutputFormatRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GenerateOutputFormatResponse> {
|
|
4316
|
+
Util.validateModel(tmpReq);
|
|
4317
|
+
let request = new GenerateOutputFormatShrinkRequest({ });
|
|
4318
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4319
|
+
if (!Util.isUnset(tmpReq.tags)) {
|
|
4320
|
+
request.tagsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tags, "tags", "json");
|
|
4321
|
+
}
|
|
4322
|
+
|
|
4323
|
+
let body : {[key: string ]: any} = { };
|
|
4324
|
+
if (!Util.isUnset(request.businessType)) {
|
|
4325
|
+
body["businessType"] = request.businessType;
|
|
4326
|
+
}
|
|
4327
|
+
|
|
4328
|
+
if (!Util.isUnset(request.content)) {
|
|
4329
|
+
body["content"] = request.content;
|
|
4330
|
+
}
|
|
4331
|
+
|
|
4332
|
+
if (!Util.isUnset(request.extraInfo)) {
|
|
4333
|
+
body["extraInfo"] = request.extraInfo;
|
|
4334
|
+
}
|
|
4335
|
+
|
|
4336
|
+
if (!Util.isUnset(request.tagsShrink)) {
|
|
4337
|
+
body["tags"] = request.tagsShrink;
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4340
|
+
if (!Util.isUnset(request.taskDescription)) {
|
|
4341
|
+
body["taskDescription"] = request.taskDescription;
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4345
|
+
headers: headers,
|
|
4346
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4347
|
+
});
|
|
4348
|
+
let params = new $OpenApi.Params({
|
|
4349
|
+
action: "GenerateOutputFormat",
|
|
4350
|
+
version: "2024-08-01",
|
|
4351
|
+
protocol: "HTTPS",
|
|
4352
|
+
pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/generateOutputFormat`,
|
|
4353
|
+
method: "POST",
|
|
4354
|
+
authType: "AK",
|
|
4355
|
+
style: "ROA",
|
|
4356
|
+
reqBodyType: "formData",
|
|
4357
|
+
bodyType: "json",
|
|
4358
|
+
});
|
|
4359
|
+
return $tea.cast<GenerateOutputFormatResponse>(await this.callApi(params, req, runtime), new GenerateOutputFormatResponse({}));
|
|
4360
|
+
}
|
|
4361
|
+
|
|
4362
|
+
/**
|
|
4363
|
+
* 轻应用-标签挖掘-获取示例输出格式
|
|
4364
|
+
*
|
|
4365
|
+
* @param request - GenerateOutputFormatRequest
|
|
4366
|
+
* @returns GenerateOutputFormatResponse
|
|
4367
|
+
*/
|
|
4368
|
+
async generateOutputFormat(workspaceId: string, request: GenerateOutputFormatRequest): Promise<GenerateOutputFormatResponse> {
|
|
4369
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
4370
|
+
let headers : {[key: string ]: string} = { };
|
|
4371
|
+
return await this.generateOutputFormatWithOptions(workspaceId, request, headers, runtime);
|
|
4372
|
+
}
|
|
4373
|
+
|
|
3723
4374
|
/**
|
|
3724
4375
|
* 轻应用-新闻播报-获取热点话题摘要列表
|
|
3725
4376
|
*
|
|
@@ -4272,6 +4923,81 @@ export default class Client extends OpenApi {
|
|
|
4272
4923
|
return await this.runStyleWritingWithOptions(workspaceId, request, headers, runtime);
|
|
4273
4924
|
}
|
|
4274
4925
|
|
|
4926
|
+
/**
|
|
4927
|
+
* 轻应用-标签挖掘
|
|
4928
|
+
*
|
|
4929
|
+
* @param tmpReq - RunTagMiningAnalysisRequest
|
|
4930
|
+
* @param headers - map
|
|
4931
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4932
|
+
* @returns RunTagMiningAnalysisResponse
|
|
4933
|
+
*/
|
|
4934
|
+
async runTagMiningAnalysisWithOptions(workspaceId: string, tmpReq: RunTagMiningAnalysisRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunTagMiningAnalysisResponse> {
|
|
4935
|
+
Util.validateModel(tmpReq);
|
|
4936
|
+
let request = new RunTagMiningAnalysisShrinkRequest({ });
|
|
4937
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4938
|
+
if (!Util.isUnset(tmpReq.tags)) {
|
|
4939
|
+
request.tagsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tags, "tags", "json");
|
|
4940
|
+
}
|
|
4941
|
+
|
|
4942
|
+
let body : {[key: string ]: any} = { };
|
|
4943
|
+
if (!Util.isUnset(request.businessType)) {
|
|
4944
|
+
body["businessType"] = request.businessType;
|
|
4945
|
+
}
|
|
4946
|
+
|
|
4947
|
+
if (!Util.isUnset(request.content)) {
|
|
4948
|
+
body["content"] = request.content;
|
|
4949
|
+
}
|
|
4950
|
+
|
|
4951
|
+
if (!Util.isUnset(request.extraInfo)) {
|
|
4952
|
+
body["extraInfo"] = request.extraInfo;
|
|
4953
|
+
}
|
|
4954
|
+
|
|
4955
|
+
if (!Util.isUnset(request.modelId)) {
|
|
4956
|
+
body["modelId"] = request.modelId;
|
|
4957
|
+
}
|
|
4958
|
+
|
|
4959
|
+
if (!Util.isUnset(request.outputFormat)) {
|
|
4960
|
+
body["outputFormat"] = request.outputFormat;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
if (!Util.isUnset(request.tagsShrink)) {
|
|
4964
|
+
body["tags"] = request.tagsShrink;
|
|
4965
|
+
}
|
|
4966
|
+
|
|
4967
|
+
if (!Util.isUnset(request.taskDescription)) {
|
|
4968
|
+
body["taskDescription"] = request.taskDescription;
|
|
4969
|
+
}
|
|
4970
|
+
|
|
4971
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4972
|
+
headers: headers,
|
|
4973
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4974
|
+
});
|
|
4975
|
+
let params = new $OpenApi.Params({
|
|
4976
|
+
action: "RunTagMiningAnalysis",
|
|
4977
|
+
version: "2024-08-01",
|
|
4978
|
+
protocol: "HTTPS",
|
|
4979
|
+
pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/runTagMiningAnalysis`,
|
|
4980
|
+
method: "POST",
|
|
4981
|
+
authType: "AK",
|
|
4982
|
+
style: "ROA",
|
|
4983
|
+
reqBodyType: "formData",
|
|
4984
|
+
bodyType: "json",
|
|
4985
|
+
});
|
|
4986
|
+
return $tea.cast<RunTagMiningAnalysisResponse>(await this.callApi(params, req, runtime), new RunTagMiningAnalysisResponse({}));
|
|
4987
|
+
}
|
|
4988
|
+
|
|
4989
|
+
/**
|
|
4990
|
+
* 轻应用-标签挖掘
|
|
4991
|
+
*
|
|
4992
|
+
* @param request - RunTagMiningAnalysisRequest
|
|
4993
|
+
* @returns RunTagMiningAnalysisResponse
|
|
4994
|
+
*/
|
|
4995
|
+
async runTagMiningAnalysis(workspaceId: string, request: RunTagMiningAnalysisRequest): Promise<RunTagMiningAnalysisResponse> {
|
|
4996
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
4997
|
+
let headers : {[key: string ]: string} = { };
|
|
4998
|
+
return await this.runTagMiningAnalysisWithOptions(workspaceId, request, headers, runtime);
|
|
4999
|
+
}
|
|
5000
|
+
|
|
4275
5001
|
/**
|
|
4276
5002
|
* 轻应用-视频理解
|
|
4277
5003
|
*
|