alibabacloud-quanmiaolightapp20240801 1.0.0__py3-none-any.whl
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.
- alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
- alibabacloud_quanmiaolightapp20240801/client.py +818 -0
- alibabacloud_quanmiaolightapp20240801/models.py +2589 -0
- alibabacloud_quanmiaolightapp20240801-1.0.0.dist-info/LICENSE +13 -0
- alibabacloud_quanmiaolightapp20240801-1.0.0.dist-info/METADATA +69 -0
- alibabacloud_quanmiaolightapp20240801-1.0.0.dist-info/RECORD +8 -0
- alibabacloud_quanmiaolightapp20240801-1.0.0.dist-info/WHEEL +5 -0
- alibabacloud_quanmiaolightapp20240801-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,818 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from typing import Dict
|
|
4
|
+
from Tea.core import TeaCore
|
|
5
|
+
|
|
6
|
+
from alibabacloud_tea_openapi.client import Client as OpenApiClient
|
|
7
|
+
from alibabacloud_tea_openapi import models as open_api_models
|
|
8
|
+
from alibabacloud_tea_util.client import Client as UtilClient
|
|
9
|
+
from alibabacloud_endpoint_util.client import Client as EndpointUtilClient
|
|
10
|
+
from alibabacloud_quanmiaolightapp20240801 import models as quan_miao_light_app_20240801_models
|
|
11
|
+
from alibabacloud_tea_util import models as util_models
|
|
12
|
+
from alibabacloud_openapi_util.client import Client as OpenApiUtilClient
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class Client(OpenApiClient):
|
|
16
|
+
"""
|
|
17
|
+
*\
|
|
18
|
+
"""
|
|
19
|
+
def __init__(
|
|
20
|
+
self,
|
|
21
|
+
config: open_api_models.Config,
|
|
22
|
+
):
|
|
23
|
+
super().__init__(config)
|
|
24
|
+
self._endpoint_rule = ''
|
|
25
|
+
self.check_config(config)
|
|
26
|
+
self._endpoint = self.get_endpoint('quanmiaolightapp', self._region_id, self._endpoint_rule, self._network, self._suffix, self._endpoint_map, self._endpoint)
|
|
27
|
+
|
|
28
|
+
def get_endpoint(
|
|
29
|
+
self,
|
|
30
|
+
product_id: str,
|
|
31
|
+
region_id: str,
|
|
32
|
+
endpoint_rule: str,
|
|
33
|
+
network: str,
|
|
34
|
+
suffix: str,
|
|
35
|
+
endpoint_map: Dict[str, str],
|
|
36
|
+
endpoint: str,
|
|
37
|
+
) -> str:
|
|
38
|
+
if not UtilClient.empty(endpoint):
|
|
39
|
+
return endpoint
|
|
40
|
+
if not UtilClient.is_unset(endpoint_map) and not UtilClient.empty(endpoint_map.get(region_id)):
|
|
41
|
+
return endpoint_map.get(region_id)
|
|
42
|
+
return EndpointUtilClient.get_endpoint_rules(product_id, region_id, endpoint_rule, network, suffix)
|
|
43
|
+
|
|
44
|
+
def run_marketing_information_extract_with_options(
|
|
45
|
+
self,
|
|
46
|
+
workspace_id: str,
|
|
47
|
+
tmp_req: quan_miao_light_app_20240801_models.RunMarketingInformationExtractRequest,
|
|
48
|
+
headers: Dict[str, str],
|
|
49
|
+
runtime: util_models.RuntimeOptions,
|
|
50
|
+
) -> quan_miao_light_app_20240801_models.RunMarketingInformationExtractResponse:
|
|
51
|
+
"""
|
|
52
|
+
@summary 营销信息抽取服务
|
|
53
|
+
|
|
54
|
+
@param tmp_req: RunMarketingInformationExtractRequest
|
|
55
|
+
@param headers: map
|
|
56
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
57
|
+
@return: RunMarketingInformationExtractResponse
|
|
58
|
+
"""
|
|
59
|
+
UtilClient.validate_model(tmp_req)
|
|
60
|
+
request = quan_miao_light_app_20240801_models.RunMarketingInformationExtractShrinkRequest()
|
|
61
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
62
|
+
if not UtilClient.is_unset(tmp_req.source_materials):
|
|
63
|
+
request.source_materials_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.source_materials, 'sourceMaterials', 'json')
|
|
64
|
+
body = {}
|
|
65
|
+
if not UtilClient.is_unset(request.custom_prompt):
|
|
66
|
+
body['customPrompt'] = request.custom_prompt
|
|
67
|
+
if not UtilClient.is_unset(request.extract_type):
|
|
68
|
+
body['extractType'] = request.extract_type
|
|
69
|
+
if not UtilClient.is_unset(request.model_id):
|
|
70
|
+
body['modelId'] = request.model_id
|
|
71
|
+
if not UtilClient.is_unset(request.source_materials_shrink):
|
|
72
|
+
body['sourceMaterials'] = request.source_materials_shrink
|
|
73
|
+
req = open_api_models.OpenApiRequest(
|
|
74
|
+
headers=headers,
|
|
75
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
76
|
+
)
|
|
77
|
+
params = open_api_models.Params(
|
|
78
|
+
action='RunMarketingInformationExtract',
|
|
79
|
+
version='2024-08-01',
|
|
80
|
+
protocol='HTTPS',
|
|
81
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runMarketingInformationExtract',
|
|
82
|
+
method='POST',
|
|
83
|
+
auth_type='AK',
|
|
84
|
+
style='ROA',
|
|
85
|
+
req_body_type='formData',
|
|
86
|
+
body_type='json'
|
|
87
|
+
)
|
|
88
|
+
return TeaCore.from_map(
|
|
89
|
+
quan_miao_light_app_20240801_models.RunMarketingInformationExtractResponse(),
|
|
90
|
+
self.call_api(params, req, runtime)
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
async def run_marketing_information_extract_with_options_async(
|
|
94
|
+
self,
|
|
95
|
+
workspace_id: str,
|
|
96
|
+
tmp_req: quan_miao_light_app_20240801_models.RunMarketingInformationExtractRequest,
|
|
97
|
+
headers: Dict[str, str],
|
|
98
|
+
runtime: util_models.RuntimeOptions,
|
|
99
|
+
) -> quan_miao_light_app_20240801_models.RunMarketingInformationExtractResponse:
|
|
100
|
+
"""
|
|
101
|
+
@summary 营销信息抽取服务
|
|
102
|
+
|
|
103
|
+
@param tmp_req: RunMarketingInformationExtractRequest
|
|
104
|
+
@param headers: map
|
|
105
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
106
|
+
@return: RunMarketingInformationExtractResponse
|
|
107
|
+
"""
|
|
108
|
+
UtilClient.validate_model(tmp_req)
|
|
109
|
+
request = quan_miao_light_app_20240801_models.RunMarketingInformationExtractShrinkRequest()
|
|
110
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
111
|
+
if not UtilClient.is_unset(tmp_req.source_materials):
|
|
112
|
+
request.source_materials_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.source_materials, 'sourceMaterials', 'json')
|
|
113
|
+
body = {}
|
|
114
|
+
if not UtilClient.is_unset(request.custom_prompt):
|
|
115
|
+
body['customPrompt'] = request.custom_prompt
|
|
116
|
+
if not UtilClient.is_unset(request.extract_type):
|
|
117
|
+
body['extractType'] = request.extract_type
|
|
118
|
+
if not UtilClient.is_unset(request.model_id):
|
|
119
|
+
body['modelId'] = request.model_id
|
|
120
|
+
if not UtilClient.is_unset(request.source_materials_shrink):
|
|
121
|
+
body['sourceMaterials'] = request.source_materials_shrink
|
|
122
|
+
req = open_api_models.OpenApiRequest(
|
|
123
|
+
headers=headers,
|
|
124
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
125
|
+
)
|
|
126
|
+
params = open_api_models.Params(
|
|
127
|
+
action='RunMarketingInformationExtract',
|
|
128
|
+
version='2024-08-01',
|
|
129
|
+
protocol='HTTPS',
|
|
130
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runMarketingInformationExtract',
|
|
131
|
+
method='POST',
|
|
132
|
+
auth_type='AK',
|
|
133
|
+
style='ROA',
|
|
134
|
+
req_body_type='formData',
|
|
135
|
+
body_type='json'
|
|
136
|
+
)
|
|
137
|
+
return TeaCore.from_map(
|
|
138
|
+
quan_miao_light_app_20240801_models.RunMarketingInformationExtractResponse(),
|
|
139
|
+
await self.call_api_async(params, req, runtime)
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
def run_marketing_information_extract(
|
|
143
|
+
self,
|
|
144
|
+
workspace_id: str,
|
|
145
|
+
request: quan_miao_light_app_20240801_models.RunMarketingInformationExtractRequest,
|
|
146
|
+
) -> quan_miao_light_app_20240801_models.RunMarketingInformationExtractResponse:
|
|
147
|
+
"""
|
|
148
|
+
@summary 营销信息抽取服务
|
|
149
|
+
|
|
150
|
+
@param request: RunMarketingInformationExtractRequest
|
|
151
|
+
@return: RunMarketingInformationExtractResponse
|
|
152
|
+
"""
|
|
153
|
+
runtime = util_models.RuntimeOptions()
|
|
154
|
+
headers = {}
|
|
155
|
+
return self.run_marketing_information_extract_with_options(workspace_id, request, headers, runtime)
|
|
156
|
+
|
|
157
|
+
async def run_marketing_information_extract_async(
|
|
158
|
+
self,
|
|
159
|
+
workspace_id: str,
|
|
160
|
+
request: quan_miao_light_app_20240801_models.RunMarketingInformationExtractRequest,
|
|
161
|
+
) -> quan_miao_light_app_20240801_models.RunMarketingInformationExtractResponse:
|
|
162
|
+
"""
|
|
163
|
+
@summary 营销信息抽取服务
|
|
164
|
+
|
|
165
|
+
@param request: RunMarketingInformationExtractRequest
|
|
166
|
+
@return: RunMarketingInformationExtractResponse
|
|
167
|
+
"""
|
|
168
|
+
runtime = util_models.RuntimeOptions()
|
|
169
|
+
headers = {}
|
|
170
|
+
return await self.run_marketing_information_extract_with_options_async(workspace_id, request, headers, runtime)
|
|
171
|
+
|
|
172
|
+
def run_marketing_information_writing_with_options(
|
|
173
|
+
self,
|
|
174
|
+
workspace_id: str,
|
|
175
|
+
request: quan_miao_light_app_20240801_models.RunMarketingInformationWritingRequest,
|
|
176
|
+
headers: Dict[str, str],
|
|
177
|
+
runtime: util_models.RuntimeOptions,
|
|
178
|
+
) -> quan_miao_light_app_20240801_models.RunMarketingInformationWritingResponse:
|
|
179
|
+
"""
|
|
180
|
+
@summary 营销文案写作服务
|
|
181
|
+
|
|
182
|
+
@param request: RunMarketingInformationWritingRequest
|
|
183
|
+
@param headers: map
|
|
184
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
185
|
+
@return: RunMarketingInformationWritingResponse
|
|
186
|
+
"""
|
|
187
|
+
UtilClient.validate_model(request)
|
|
188
|
+
body = {}
|
|
189
|
+
if not UtilClient.is_unset(request.custom_prompt):
|
|
190
|
+
body['customPrompt'] = request.custom_prompt
|
|
191
|
+
if not UtilClient.is_unset(request.model_id):
|
|
192
|
+
body['modelId'] = request.model_id
|
|
193
|
+
if not UtilClient.is_unset(request.source_material):
|
|
194
|
+
body['sourceMaterial'] = request.source_material
|
|
195
|
+
if not UtilClient.is_unset(request.writing_type):
|
|
196
|
+
body['writingType'] = request.writing_type
|
|
197
|
+
req = open_api_models.OpenApiRequest(
|
|
198
|
+
headers=headers,
|
|
199
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
200
|
+
)
|
|
201
|
+
params = open_api_models.Params(
|
|
202
|
+
action='RunMarketingInformationWriting',
|
|
203
|
+
version='2024-08-01',
|
|
204
|
+
protocol='HTTPS',
|
|
205
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runMarketingInformationWriting',
|
|
206
|
+
method='POST',
|
|
207
|
+
auth_type='AK',
|
|
208
|
+
style='ROA',
|
|
209
|
+
req_body_type='formData',
|
|
210
|
+
body_type='json'
|
|
211
|
+
)
|
|
212
|
+
return TeaCore.from_map(
|
|
213
|
+
quan_miao_light_app_20240801_models.RunMarketingInformationWritingResponse(),
|
|
214
|
+
self.call_api(params, req, runtime)
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
async def run_marketing_information_writing_with_options_async(
|
|
218
|
+
self,
|
|
219
|
+
workspace_id: str,
|
|
220
|
+
request: quan_miao_light_app_20240801_models.RunMarketingInformationWritingRequest,
|
|
221
|
+
headers: Dict[str, str],
|
|
222
|
+
runtime: util_models.RuntimeOptions,
|
|
223
|
+
) -> quan_miao_light_app_20240801_models.RunMarketingInformationWritingResponse:
|
|
224
|
+
"""
|
|
225
|
+
@summary 营销文案写作服务
|
|
226
|
+
|
|
227
|
+
@param request: RunMarketingInformationWritingRequest
|
|
228
|
+
@param headers: map
|
|
229
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
230
|
+
@return: RunMarketingInformationWritingResponse
|
|
231
|
+
"""
|
|
232
|
+
UtilClient.validate_model(request)
|
|
233
|
+
body = {}
|
|
234
|
+
if not UtilClient.is_unset(request.custom_prompt):
|
|
235
|
+
body['customPrompt'] = request.custom_prompt
|
|
236
|
+
if not UtilClient.is_unset(request.model_id):
|
|
237
|
+
body['modelId'] = request.model_id
|
|
238
|
+
if not UtilClient.is_unset(request.source_material):
|
|
239
|
+
body['sourceMaterial'] = request.source_material
|
|
240
|
+
if not UtilClient.is_unset(request.writing_type):
|
|
241
|
+
body['writingType'] = request.writing_type
|
|
242
|
+
req = open_api_models.OpenApiRequest(
|
|
243
|
+
headers=headers,
|
|
244
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
245
|
+
)
|
|
246
|
+
params = open_api_models.Params(
|
|
247
|
+
action='RunMarketingInformationWriting',
|
|
248
|
+
version='2024-08-01',
|
|
249
|
+
protocol='HTTPS',
|
|
250
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runMarketingInformationWriting',
|
|
251
|
+
method='POST',
|
|
252
|
+
auth_type='AK',
|
|
253
|
+
style='ROA',
|
|
254
|
+
req_body_type='formData',
|
|
255
|
+
body_type='json'
|
|
256
|
+
)
|
|
257
|
+
return TeaCore.from_map(
|
|
258
|
+
quan_miao_light_app_20240801_models.RunMarketingInformationWritingResponse(),
|
|
259
|
+
await self.call_api_async(params, req, runtime)
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
def run_marketing_information_writing(
|
|
263
|
+
self,
|
|
264
|
+
workspace_id: str,
|
|
265
|
+
request: quan_miao_light_app_20240801_models.RunMarketingInformationWritingRequest,
|
|
266
|
+
) -> quan_miao_light_app_20240801_models.RunMarketingInformationWritingResponse:
|
|
267
|
+
"""
|
|
268
|
+
@summary 营销文案写作服务
|
|
269
|
+
|
|
270
|
+
@param request: RunMarketingInformationWritingRequest
|
|
271
|
+
@return: RunMarketingInformationWritingResponse
|
|
272
|
+
"""
|
|
273
|
+
runtime = util_models.RuntimeOptions()
|
|
274
|
+
headers = {}
|
|
275
|
+
return self.run_marketing_information_writing_with_options(workspace_id, request, headers, runtime)
|
|
276
|
+
|
|
277
|
+
async def run_marketing_information_writing_async(
|
|
278
|
+
self,
|
|
279
|
+
workspace_id: str,
|
|
280
|
+
request: quan_miao_light_app_20240801_models.RunMarketingInformationWritingRequest,
|
|
281
|
+
) -> quan_miao_light_app_20240801_models.RunMarketingInformationWritingResponse:
|
|
282
|
+
"""
|
|
283
|
+
@summary 营销文案写作服务
|
|
284
|
+
|
|
285
|
+
@param request: RunMarketingInformationWritingRequest
|
|
286
|
+
@return: RunMarketingInformationWritingResponse
|
|
287
|
+
"""
|
|
288
|
+
runtime = util_models.RuntimeOptions()
|
|
289
|
+
headers = {}
|
|
290
|
+
return await self.run_marketing_information_writing_with_options_async(workspace_id, request, headers, runtime)
|
|
291
|
+
|
|
292
|
+
def run_script_continue_with_options(
|
|
293
|
+
self,
|
|
294
|
+
workspace_id: str,
|
|
295
|
+
request: quan_miao_light_app_20240801_models.RunScriptContinueRequest,
|
|
296
|
+
headers: Dict[str, str],
|
|
297
|
+
runtime: util_models.RuntimeOptions,
|
|
298
|
+
) -> quan_miao_light_app_20240801_models.RunScriptContinueResponse:
|
|
299
|
+
"""
|
|
300
|
+
@summary 剧本续写
|
|
301
|
+
|
|
302
|
+
@param request: RunScriptContinueRequest
|
|
303
|
+
@param headers: map
|
|
304
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
305
|
+
@return: RunScriptContinueResponse
|
|
306
|
+
"""
|
|
307
|
+
UtilClient.validate_model(request)
|
|
308
|
+
body = {}
|
|
309
|
+
if not UtilClient.is_unset(request.script_summary):
|
|
310
|
+
body['scriptSummary'] = request.script_summary
|
|
311
|
+
if not UtilClient.is_unset(request.script_type_keyword):
|
|
312
|
+
body['scriptTypeKeyword'] = request.script_type_keyword
|
|
313
|
+
if not UtilClient.is_unset(request.user_provided_content):
|
|
314
|
+
body['userProvidedContent'] = request.user_provided_content
|
|
315
|
+
req = open_api_models.OpenApiRequest(
|
|
316
|
+
headers=headers,
|
|
317
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
318
|
+
)
|
|
319
|
+
params = open_api_models.Params(
|
|
320
|
+
action='RunScriptContinue',
|
|
321
|
+
version='2024-08-01',
|
|
322
|
+
protocol='HTTPS',
|
|
323
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runScriptContinue',
|
|
324
|
+
method='POST',
|
|
325
|
+
auth_type='AK',
|
|
326
|
+
style='ROA',
|
|
327
|
+
req_body_type='formData',
|
|
328
|
+
body_type='json'
|
|
329
|
+
)
|
|
330
|
+
return TeaCore.from_map(
|
|
331
|
+
quan_miao_light_app_20240801_models.RunScriptContinueResponse(),
|
|
332
|
+
self.call_api(params, req, runtime)
|
|
333
|
+
)
|
|
334
|
+
|
|
335
|
+
async def run_script_continue_with_options_async(
|
|
336
|
+
self,
|
|
337
|
+
workspace_id: str,
|
|
338
|
+
request: quan_miao_light_app_20240801_models.RunScriptContinueRequest,
|
|
339
|
+
headers: Dict[str, str],
|
|
340
|
+
runtime: util_models.RuntimeOptions,
|
|
341
|
+
) -> quan_miao_light_app_20240801_models.RunScriptContinueResponse:
|
|
342
|
+
"""
|
|
343
|
+
@summary 剧本续写
|
|
344
|
+
|
|
345
|
+
@param request: RunScriptContinueRequest
|
|
346
|
+
@param headers: map
|
|
347
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
348
|
+
@return: RunScriptContinueResponse
|
|
349
|
+
"""
|
|
350
|
+
UtilClient.validate_model(request)
|
|
351
|
+
body = {}
|
|
352
|
+
if not UtilClient.is_unset(request.script_summary):
|
|
353
|
+
body['scriptSummary'] = request.script_summary
|
|
354
|
+
if not UtilClient.is_unset(request.script_type_keyword):
|
|
355
|
+
body['scriptTypeKeyword'] = request.script_type_keyword
|
|
356
|
+
if not UtilClient.is_unset(request.user_provided_content):
|
|
357
|
+
body['userProvidedContent'] = request.user_provided_content
|
|
358
|
+
req = open_api_models.OpenApiRequest(
|
|
359
|
+
headers=headers,
|
|
360
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
361
|
+
)
|
|
362
|
+
params = open_api_models.Params(
|
|
363
|
+
action='RunScriptContinue',
|
|
364
|
+
version='2024-08-01',
|
|
365
|
+
protocol='HTTPS',
|
|
366
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runScriptContinue',
|
|
367
|
+
method='POST',
|
|
368
|
+
auth_type='AK',
|
|
369
|
+
style='ROA',
|
|
370
|
+
req_body_type='formData',
|
|
371
|
+
body_type='json'
|
|
372
|
+
)
|
|
373
|
+
return TeaCore.from_map(
|
|
374
|
+
quan_miao_light_app_20240801_models.RunScriptContinueResponse(),
|
|
375
|
+
await self.call_api_async(params, req, runtime)
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
def run_script_continue(
|
|
379
|
+
self,
|
|
380
|
+
workspace_id: str,
|
|
381
|
+
request: quan_miao_light_app_20240801_models.RunScriptContinueRequest,
|
|
382
|
+
) -> quan_miao_light_app_20240801_models.RunScriptContinueResponse:
|
|
383
|
+
"""
|
|
384
|
+
@summary 剧本续写
|
|
385
|
+
|
|
386
|
+
@param request: RunScriptContinueRequest
|
|
387
|
+
@return: RunScriptContinueResponse
|
|
388
|
+
"""
|
|
389
|
+
runtime = util_models.RuntimeOptions()
|
|
390
|
+
headers = {}
|
|
391
|
+
return self.run_script_continue_with_options(workspace_id, request, headers, runtime)
|
|
392
|
+
|
|
393
|
+
async def run_script_continue_async(
|
|
394
|
+
self,
|
|
395
|
+
workspace_id: str,
|
|
396
|
+
request: quan_miao_light_app_20240801_models.RunScriptContinueRequest,
|
|
397
|
+
) -> quan_miao_light_app_20240801_models.RunScriptContinueResponse:
|
|
398
|
+
"""
|
|
399
|
+
@summary 剧本续写
|
|
400
|
+
|
|
401
|
+
@param request: RunScriptContinueRequest
|
|
402
|
+
@return: RunScriptContinueResponse
|
|
403
|
+
"""
|
|
404
|
+
runtime = util_models.RuntimeOptions()
|
|
405
|
+
headers = {}
|
|
406
|
+
return await self.run_script_continue_with_options_async(workspace_id, request, headers, runtime)
|
|
407
|
+
|
|
408
|
+
def run_script_planning_with_options(
|
|
409
|
+
self,
|
|
410
|
+
workspace_id: str,
|
|
411
|
+
request: quan_miao_light_app_20240801_models.RunScriptPlanningRequest,
|
|
412
|
+
headers: Dict[str, str],
|
|
413
|
+
runtime: util_models.RuntimeOptions,
|
|
414
|
+
) -> quan_miao_light_app_20240801_models.RunScriptPlanningResponse:
|
|
415
|
+
"""
|
|
416
|
+
@summary 剧本策划
|
|
417
|
+
|
|
418
|
+
@param request: RunScriptPlanningRequest
|
|
419
|
+
@param headers: map
|
|
420
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
421
|
+
@return: RunScriptPlanningResponse
|
|
422
|
+
"""
|
|
423
|
+
UtilClient.validate_model(request)
|
|
424
|
+
body = {}
|
|
425
|
+
if not UtilClient.is_unset(request.additional_note):
|
|
426
|
+
body['additionalNote'] = request.additional_note
|
|
427
|
+
if not UtilClient.is_unset(request.dialogue_in_scene):
|
|
428
|
+
body['dialogueInScene'] = request.dialogue_in_scene
|
|
429
|
+
if not UtilClient.is_unset(request.plot_conflict):
|
|
430
|
+
body['plotConflict'] = request.plot_conflict
|
|
431
|
+
if not UtilClient.is_unset(request.script_name):
|
|
432
|
+
body['scriptName'] = request.script_name
|
|
433
|
+
if not UtilClient.is_unset(request.script_shot_count):
|
|
434
|
+
body['scriptShotCount'] = request.script_shot_count
|
|
435
|
+
if not UtilClient.is_unset(request.script_summary):
|
|
436
|
+
body['scriptSummary'] = request.script_summary
|
|
437
|
+
if not UtilClient.is_unset(request.script_type_keyword):
|
|
438
|
+
body['scriptTypeKeyword'] = request.script_type_keyword
|
|
439
|
+
req = open_api_models.OpenApiRequest(
|
|
440
|
+
headers=headers,
|
|
441
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
442
|
+
)
|
|
443
|
+
params = open_api_models.Params(
|
|
444
|
+
action='RunScriptPlanning',
|
|
445
|
+
version='2024-08-01',
|
|
446
|
+
protocol='HTTPS',
|
|
447
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runScriptPlanning',
|
|
448
|
+
method='POST',
|
|
449
|
+
auth_type='AK',
|
|
450
|
+
style='ROA',
|
|
451
|
+
req_body_type='formData',
|
|
452
|
+
body_type='json'
|
|
453
|
+
)
|
|
454
|
+
return TeaCore.from_map(
|
|
455
|
+
quan_miao_light_app_20240801_models.RunScriptPlanningResponse(),
|
|
456
|
+
self.call_api(params, req, runtime)
|
|
457
|
+
)
|
|
458
|
+
|
|
459
|
+
async def run_script_planning_with_options_async(
|
|
460
|
+
self,
|
|
461
|
+
workspace_id: str,
|
|
462
|
+
request: quan_miao_light_app_20240801_models.RunScriptPlanningRequest,
|
|
463
|
+
headers: Dict[str, str],
|
|
464
|
+
runtime: util_models.RuntimeOptions,
|
|
465
|
+
) -> quan_miao_light_app_20240801_models.RunScriptPlanningResponse:
|
|
466
|
+
"""
|
|
467
|
+
@summary 剧本策划
|
|
468
|
+
|
|
469
|
+
@param request: RunScriptPlanningRequest
|
|
470
|
+
@param headers: map
|
|
471
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
472
|
+
@return: RunScriptPlanningResponse
|
|
473
|
+
"""
|
|
474
|
+
UtilClient.validate_model(request)
|
|
475
|
+
body = {}
|
|
476
|
+
if not UtilClient.is_unset(request.additional_note):
|
|
477
|
+
body['additionalNote'] = request.additional_note
|
|
478
|
+
if not UtilClient.is_unset(request.dialogue_in_scene):
|
|
479
|
+
body['dialogueInScene'] = request.dialogue_in_scene
|
|
480
|
+
if not UtilClient.is_unset(request.plot_conflict):
|
|
481
|
+
body['plotConflict'] = request.plot_conflict
|
|
482
|
+
if not UtilClient.is_unset(request.script_name):
|
|
483
|
+
body['scriptName'] = request.script_name
|
|
484
|
+
if not UtilClient.is_unset(request.script_shot_count):
|
|
485
|
+
body['scriptShotCount'] = request.script_shot_count
|
|
486
|
+
if not UtilClient.is_unset(request.script_summary):
|
|
487
|
+
body['scriptSummary'] = request.script_summary
|
|
488
|
+
if not UtilClient.is_unset(request.script_type_keyword):
|
|
489
|
+
body['scriptTypeKeyword'] = request.script_type_keyword
|
|
490
|
+
req = open_api_models.OpenApiRequest(
|
|
491
|
+
headers=headers,
|
|
492
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
493
|
+
)
|
|
494
|
+
params = open_api_models.Params(
|
|
495
|
+
action='RunScriptPlanning',
|
|
496
|
+
version='2024-08-01',
|
|
497
|
+
protocol='HTTPS',
|
|
498
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runScriptPlanning',
|
|
499
|
+
method='POST',
|
|
500
|
+
auth_type='AK',
|
|
501
|
+
style='ROA',
|
|
502
|
+
req_body_type='formData',
|
|
503
|
+
body_type='json'
|
|
504
|
+
)
|
|
505
|
+
return TeaCore.from_map(
|
|
506
|
+
quan_miao_light_app_20240801_models.RunScriptPlanningResponse(),
|
|
507
|
+
await self.call_api_async(params, req, runtime)
|
|
508
|
+
)
|
|
509
|
+
|
|
510
|
+
def run_script_planning(
|
|
511
|
+
self,
|
|
512
|
+
workspace_id: str,
|
|
513
|
+
request: quan_miao_light_app_20240801_models.RunScriptPlanningRequest,
|
|
514
|
+
) -> quan_miao_light_app_20240801_models.RunScriptPlanningResponse:
|
|
515
|
+
"""
|
|
516
|
+
@summary 剧本策划
|
|
517
|
+
|
|
518
|
+
@param request: RunScriptPlanningRequest
|
|
519
|
+
@return: RunScriptPlanningResponse
|
|
520
|
+
"""
|
|
521
|
+
runtime = util_models.RuntimeOptions()
|
|
522
|
+
headers = {}
|
|
523
|
+
return self.run_script_planning_with_options(workspace_id, request, headers, runtime)
|
|
524
|
+
|
|
525
|
+
async def run_script_planning_async(
|
|
526
|
+
self,
|
|
527
|
+
workspace_id: str,
|
|
528
|
+
request: quan_miao_light_app_20240801_models.RunScriptPlanningRequest,
|
|
529
|
+
) -> quan_miao_light_app_20240801_models.RunScriptPlanningResponse:
|
|
530
|
+
"""
|
|
531
|
+
@summary 剧本策划
|
|
532
|
+
|
|
533
|
+
@param request: RunScriptPlanningRequest
|
|
534
|
+
@return: RunScriptPlanningResponse
|
|
535
|
+
"""
|
|
536
|
+
runtime = util_models.RuntimeOptions()
|
|
537
|
+
headers = {}
|
|
538
|
+
return await self.run_script_planning_with_options_async(workspace_id, request, headers, runtime)
|
|
539
|
+
|
|
540
|
+
def run_style_writing_with_options(
|
|
541
|
+
self,
|
|
542
|
+
workspace_id: str,
|
|
543
|
+
tmp_req: quan_miao_light_app_20240801_models.RunStyleWritingRequest,
|
|
544
|
+
headers: Dict[str, str],
|
|
545
|
+
runtime: util_models.RuntimeOptions,
|
|
546
|
+
) -> quan_miao_light_app_20240801_models.RunStyleWritingResponse:
|
|
547
|
+
"""
|
|
548
|
+
@summary 文体学习和写作推理服务
|
|
549
|
+
|
|
550
|
+
@param tmp_req: RunStyleWritingRequest
|
|
551
|
+
@param headers: map
|
|
552
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
553
|
+
@return: RunStyleWritingResponse
|
|
554
|
+
"""
|
|
555
|
+
UtilClient.validate_model(tmp_req)
|
|
556
|
+
request = quan_miao_light_app_20240801_models.RunStyleWritingShrinkRequest()
|
|
557
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
558
|
+
if not UtilClient.is_unset(tmp_req.learning_samples):
|
|
559
|
+
request.learning_samples_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.learning_samples, 'learningSamples', 'json')
|
|
560
|
+
if not UtilClient.is_unset(tmp_req.reference_materials):
|
|
561
|
+
request.reference_materials_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.reference_materials, 'referenceMaterials', 'json')
|
|
562
|
+
body = {}
|
|
563
|
+
if not UtilClient.is_unset(request.learning_samples_shrink):
|
|
564
|
+
body['learningSamples'] = request.learning_samples_shrink
|
|
565
|
+
if not UtilClient.is_unset(request.reference_materials_shrink):
|
|
566
|
+
body['referenceMaterials'] = request.reference_materials_shrink
|
|
567
|
+
if not UtilClient.is_unset(request.style_feature):
|
|
568
|
+
body['styleFeature'] = request.style_feature
|
|
569
|
+
if not UtilClient.is_unset(request.writing_theme):
|
|
570
|
+
body['writingTheme'] = request.writing_theme
|
|
571
|
+
req = open_api_models.OpenApiRequest(
|
|
572
|
+
headers=headers,
|
|
573
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
574
|
+
)
|
|
575
|
+
params = open_api_models.Params(
|
|
576
|
+
action='RunStyleWriting',
|
|
577
|
+
version='2024-08-01',
|
|
578
|
+
protocol='HTTPS',
|
|
579
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runStyleWriting',
|
|
580
|
+
method='POST',
|
|
581
|
+
auth_type='AK',
|
|
582
|
+
style='ROA',
|
|
583
|
+
req_body_type='formData',
|
|
584
|
+
body_type='json'
|
|
585
|
+
)
|
|
586
|
+
return TeaCore.from_map(
|
|
587
|
+
quan_miao_light_app_20240801_models.RunStyleWritingResponse(),
|
|
588
|
+
self.call_api(params, req, runtime)
|
|
589
|
+
)
|
|
590
|
+
|
|
591
|
+
async def run_style_writing_with_options_async(
|
|
592
|
+
self,
|
|
593
|
+
workspace_id: str,
|
|
594
|
+
tmp_req: quan_miao_light_app_20240801_models.RunStyleWritingRequest,
|
|
595
|
+
headers: Dict[str, str],
|
|
596
|
+
runtime: util_models.RuntimeOptions,
|
|
597
|
+
) -> quan_miao_light_app_20240801_models.RunStyleWritingResponse:
|
|
598
|
+
"""
|
|
599
|
+
@summary 文体学习和写作推理服务
|
|
600
|
+
|
|
601
|
+
@param tmp_req: RunStyleWritingRequest
|
|
602
|
+
@param headers: map
|
|
603
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
604
|
+
@return: RunStyleWritingResponse
|
|
605
|
+
"""
|
|
606
|
+
UtilClient.validate_model(tmp_req)
|
|
607
|
+
request = quan_miao_light_app_20240801_models.RunStyleWritingShrinkRequest()
|
|
608
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
609
|
+
if not UtilClient.is_unset(tmp_req.learning_samples):
|
|
610
|
+
request.learning_samples_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.learning_samples, 'learningSamples', 'json')
|
|
611
|
+
if not UtilClient.is_unset(tmp_req.reference_materials):
|
|
612
|
+
request.reference_materials_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.reference_materials, 'referenceMaterials', 'json')
|
|
613
|
+
body = {}
|
|
614
|
+
if not UtilClient.is_unset(request.learning_samples_shrink):
|
|
615
|
+
body['learningSamples'] = request.learning_samples_shrink
|
|
616
|
+
if not UtilClient.is_unset(request.reference_materials_shrink):
|
|
617
|
+
body['referenceMaterials'] = request.reference_materials_shrink
|
|
618
|
+
if not UtilClient.is_unset(request.style_feature):
|
|
619
|
+
body['styleFeature'] = request.style_feature
|
|
620
|
+
if not UtilClient.is_unset(request.writing_theme):
|
|
621
|
+
body['writingTheme'] = request.writing_theme
|
|
622
|
+
req = open_api_models.OpenApiRequest(
|
|
623
|
+
headers=headers,
|
|
624
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
625
|
+
)
|
|
626
|
+
params = open_api_models.Params(
|
|
627
|
+
action='RunStyleWriting',
|
|
628
|
+
version='2024-08-01',
|
|
629
|
+
protocol='HTTPS',
|
|
630
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runStyleWriting',
|
|
631
|
+
method='POST',
|
|
632
|
+
auth_type='AK',
|
|
633
|
+
style='ROA',
|
|
634
|
+
req_body_type='formData',
|
|
635
|
+
body_type='json'
|
|
636
|
+
)
|
|
637
|
+
return TeaCore.from_map(
|
|
638
|
+
quan_miao_light_app_20240801_models.RunStyleWritingResponse(),
|
|
639
|
+
await self.call_api_async(params, req, runtime)
|
|
640
|
+
)
|
|
641
|
+
|
|
642
|
+
def run_style_writing(
|
|
643
|
+
self,
|
|
644
|
+
workspace_id: str,
|
|
645
|
+
request: quan_miao_light_app_20240801_models.RunStyleWritingRequest,
|
|
646
|
+
) -> quan_miao_light_app_20240801_models.RunStyleWritingResponse:
|
|
647
|
+
"""
|
|
648
|
+
@summary 文体学习和写作推理服务
|
|
649
|
+
|
|
650
|
+
@param request: RunStyleWritingRequest
|
|
651
|
+
@return: RunStyleWritingResponse
|
|
652
|
+
"""
|
|
653
|
+
runtime = util_models.RuntimeOptions()
|
|
654
|
+
headers = {}
|
|
655
|
+
return self.run_style_writing_with_options(workspace_id, request, headers, runtime)
|
|
656
|
+
|
|
657
|
+
async def run_style_writing_async(
|
|
658
|
+
self,
|
|
659
|
+
workspace_id: str,
|
|
660
|
+
request: quan_miao_light_app_20240801_models.RunStyleWritingRequest,
|
|
661
|
+
) -> quan_miao_light_app_20240801_models.RunStyleWritingResponse:
|
|
662
|
+
"""
|
|
663
|
+
@summary 文体学习和写作推理服务
|
|
664
|
+
|
|
665
|
+
@param request: RunStyleWritingRequest
|
|
666
|
+
@return: RunStyleWritingResponse
|
|
667
|
+
"""
|
|
668
|
+
runtime = util_models.RuntimeOptions()
|
|
669
|
+
headers = {}
|
|
670
|
+
return await self.run_style_writing_with_options_async(workspace_id, request, headers, runtime)
|
|
671
|
+
|
|
672
|
+
def run_video_analysis_with_options(
|
|
673
|
+
self,
|
|
674
|
+
workspace_id: str,
|
|
675
|
+
tmp_req: quan_miao_light_app_20240801_models.RunVideoAnalysisRequest,
|
|
676
|
+
headers: Dict[str, str],
|
|
677
|
+
runtime: util_models.RuntimeOptions,
|
|
678
|
+
) -> quan_miao_light_app_20240801_models.RunVideoAnalysisResponse:
|
|
679
|
+
"""
|
|
680
|
+
@summary 轻应用-视频理解
|
|
681
|
+
|
|
682
|
+
@param tmp_req: RunVideoAnalysisRequest
|
|
683
|
+
@param headers: map
|
|
684
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
685
|
+
@return: RunVideoAnalysisResponse
|
|
686
|
+
"""
|
|
687
|
+
UtilClient.validate_model(tmp_req)
|
|
688
|
+
request = quan_miao_light_app_20240801_models.RunVideoAnalysisShrinkRequest()
|
|
689
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
690
|
+
if not UtilClient.is_unset(tmp_req.generate_options):
|
|
691
|
+
request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
|
|
692
|
+
body = {}
|
|
693
|
+
if not UtilClient.is_unset(request.generate_options_shrink):
|
|
694
|
+
body['generateOptions'] = request.generate_options_shrink
|
|
695
|
+
if not UtilClient.is_unset(request.model_custom_prompt_template):
|
|
696
|
+
body['modelCustomPromptTemplate'] = request.model_custom_prompt_template
|
|
697
|
+
if not UtilClient.is_unset(request.model_custom_prompt_template_id):
|
|
698
|
+
body['modelCustomPromptTemplateId'] = request.model_custom_prompt_template_id
|
|
699
|
+
if not UtilClient.is_unset(request.model_id):
|
|
700
|
+
body['modelId'] = request.model_id
|
|
701
|
+
if not UtilClient.is_unset(request.original_session_id):
|
|
702
|
+
body['originalSessionId'] = request.original_session_id
|
|
703
|
+
if not UtilClient.is_unset(request.task_id):
|
|
704
|
+
body['taskId'] = request.task_id
|
|
705
|
+
if not UtilClient.is_unset(request.video_model_custom_prompt_template):
|
|
706
|
+
body['videoModelCustomPromptTemplate'] = request.video_model_custom_prompt_template
|
|
707
|
+
if not UtilClient.is_unset(request.video_model_id):
|
|
708
|
+
body['videoModelId'] = request.video_model_id
|
|
709
|
+
if not UtilClient.is_unset(request.video_url):
|
|
710
|
+
body['videoUrl'] = request.video_url
|
|
711
|
+
req = open_api_models.OpenApiRequest(
|
|
712
|
+
headers=headers,
|
|
713
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
714
|
+
)
|
|
715
|
+
params = open_api_models.Params(
|
|
716
|
+
action='RunVideoAnalysis',
|
|
717
|
+
version='2024-08-01',
|
|
718
|
+
protocol='HTTPS',
|
|
719
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runVideoAnalysis',
|
|
720
|
+
method='POST',
|
|
721
|
+
auth_type='AK',
|
|
722
|
+
style='ROA',
|
|
723
|
+
req_body_type='formData',
|
|
724
|
+
body_type='json'
|
|
725
|
+
)
|
|
726
|
+
return TeaCore.from_map(
|
|
727
|
+
quan_miao_light_app_20240801_models.RunVideoAnalysisResponse(),
|
|
728
|
+
self.call_api(params, req, runtime)
|
|
729
|
+
)
|
|
730
|
+
|
|
731
|
+
async def run_video_analysis_with_options_async(
|
|
732
|
+
self,
|
|
733
|
+
workspace_id: str,
|
|
734
|
+
tmp_req: quan_miao_light_app_20240801_models.RunVideoAnalysisRequest,
|
|
735
|
+
headers: Dict[str, str],
|
|
736
|
+
runtime: util_models.RuntimeOptions,
|
|
737
|
+
) -> quan_miao_light_app_20240801_models.RunVideoAnalysisResponse:
|
|
738
|
+
"""
|
|
739
|
+
@summary 轻应用-视频理解
|
|
740
|
+
|
|
741
|
+
@param tmp_req: RunVideoAnalysisRequest
|
|
742
|
+
@param headers: map
|
|
743
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
744
|
+
@return: RunVideoAnalysisResponse
|
|
745
|
+
"""
|
|
746
|
+
UtilClient.validate_model(tmp_req)
|
|
747
|
+
request = quan_miao_light_app_20240801_models.RunVideoAnalysisShrinkRequest()
|
|
748
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
749
|
+
if not UtilClient.is_unset(tmp_req.generate_options):
|
|
750
|
+
request.generate_options_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.generate_options, 'generateOptions', 'json')
|
|
751
|
+
body = {}
|
|
752
|
+
if not UtilClient.is_unset(request.generate_options_shrink):
|
|
753
|
+
body['generateOptions'] = request.generate_options_shrink
|
|
754
|
+
if not UtilClient.is_unset(request.model_custom_prompt_template):
|
|
755
|
+
body['modelCustomPromptTemplate'] = request.model_custom_prompt_template
|
|
756
|
+
if not UtilClient.is_unset(request.model_custom_prompt_template_id):
|
|
757
|
+
body['modelCustomPromptTemplateId'] = request.model_custom_prompt_template_id
|
|
758
|
+
if not UtilClient.is_unset(request.model_id):
|
|
759
|
+
body['modelId'] = request.model_id
|
|
760
|
+
if not UtilClient.is_unset(request.original_session_id):
|
|
761
|
+
body['originalSessionId'] = request.original_session_id
|
|
762
|
+
if not UtilClient.is_unset(request.task_id):
|
|
763
|
+
body['taskId'] = request.task_id
|
|
764
|
+
if not UtilClient.is_unset(request.video_model_custom_prompt_template):
|
|
765
|
+
body['videoModelCustomPromptTemplate'] = request.video_model_custom_prompt_template
|
|
766
|
+
if not UtilClient.is_unset(request.video_model_id):
|
|
767
|
+
body['videoModelId'] = request.video_model_id
|
|
768
|
+
if not UtilClient.is_unset(request.video_url):
|
|
769
|
+
body['videoUrl'] = request.video_url
|
|
770
|
+
req = open_api_models.OpenApiRequest(
|
|
771
|
+
headers=headers,
|
|
772
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
773
|
+
)
|
|
774
|
+
params = open_api_models.Params(
|
|
775
|
+
action='RunVideoAnalysis',
|
|
776
|
+
version='2024-08-01',
|
|
777
|
+
protocol='HTTPS',
|
|
778
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runVideoAnalysis',
|
|
779
|
+
method='POST',
|
|
780
|
+
auth_type='AK',
|
|
781
|
+
style='ROA',
|
|
782
|
+
req_body_type='formData',
|
|
783
|
+
body_type='json'
|
|
784
|
+
)
|
|
785
|
+
return TeaCore.from_map(
|
|
786
|
+
quan_miao_light_app_20240801_models.RunVideoAnalysisResponse(),
|
|
787
|
+
await self.call_api_async(params, req, runtime)
|
|
788
|
+
)
|
|
789
|
+
|
|
790
|
+
def run_video_analysis(
|
|
791
|
+
self,
|
|
792
|
+
workspace_id: str,
|
|
793
|
+
request: quan_miao_light_app_20240801_models.RunVideoAnalysisRequest,
|
|
794
|
+
) -> quan_miao_light_app_20240801_models.RunVideoAnalysisResponse:
|
|
795
|
+
"""
|
|
796
|
+
@summary 轻应用-视频理解
|
|
797
|
+
|
|
798
|
+
@param request: RunVideoAnalysisRequest
|
|
799
|
+
@return: RunVideoAnalysisResponse
|
|
800
|
+
"""
|
|
801
|
+
runtime = util_models.RuntimeOptions()
|
|
802
|
+
headers = {}
|
|
803
|
+
return self.run_video_analysis_with_options(workspace_id, request, headers, runtime)
|
|
804
|
+
|
|
805
|
+
async def run_video_analysis_async(
|
|
806
|
+
self,
|
|
807
|
+
workspace_id: str,
|
|
808
|
+
request: quan_miao_light_app_20240801_models.RunVideoAnalysisRequest,
|
|
809
|
+
) -> quan_miao_light_app_20240801_models.RunVideoAnalysisResponse:
|
|
810
|
+
"""
|
|
811
|
+
@summary 轻应用-视频理解
|
|
812
|
+
|
|
813
|
+
@param request: RunVideoAnalysisRequest
|
|
814
|
+
@return: RunVideoAnalysisResponse
|
|
815
|
+
"""
|
|
816
|
+
runtime = util_models.RuntimeOptions()
|
|
817
|
+
headers = {}
|
|
818
|
+
return await self.run_video_analysis_with_options_async(workspace_id, request, headers, runtime)
|