alibabacloud-aimiaobi20230801 1.34.0__tar.gz → 1.35.0__tar.gz
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_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/ChangeLog.md +4 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.35.0/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/alibabacloud_aimiaobi20230801/client.py +532 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/alibabacloud_aimiaobi20230801/models.py +1489 -73
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/setup.py +1 -1
- alibabacloud_aimiaobi20230801-1.34.0/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.34.0 → alibabacloud_aimiaobi20230801-1.35.0}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.35.0'
|
|
@@ -981,6 +981,106 @@ class Client(OpenApiClient):
|
|
|
981
981
|
runtime = util_models.RuntimeOptions()
|
|
982
982
|
return await self.cancel_audit_task_with_options_async(request, runtime)
|
|
983
983
|
|
|
984
|
+
def cancel_deep_write_task_with_options(
|
|
985
|
+
self,
|
|
986
|
+
request: ai_miao_bi_20230801_models.CancelDeepWriteTaskRequest,
|
|
987
|
+
runtime: util_models.RuntimeOptions,
|
|
988
|
+
) -> ai_miao_bi_20230801_models.CancelDeepWriteTaskResponse:
|
|
989
|
+
"""
|
|
990
|
+
@summary 取消深度写作任务
|
|
991
|
+
|
|
992
|
+
@param request: CancelDeepWriteTaskRequest
|
|
993
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
994
|
+
@return: CancelDeepWriteTaskResponse
|
|
995
|
+
"""
|
|
996
|
+
UtilClient.validate_model(request)
|
|
997
|
+
body = {}
|
|
998
|
+
if not UtilClient.is_unset(request.task_id):
|
|
999
|
+
body['TaskId'] = request.task_id
|
|
1000
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
1001
|
+
body['WorkspaceId'] = request.workspace_id
|
|
1002
|
+
req = open_api_models.OpenApiRequest(
|
|
1003
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
1004
|
+
)
|
|
1005
|
+
params = open_api_models.Params(
|
|
1006
|
+
action='CancelDeepWriteTask',
|
|
1007
|
+
version='2023-08-01',
|
|
1008
|
+
protocol='HTTPS',
|
|
1009
|
+
pathname='/',
|
|
1010
|
+
method='POST',
|
|
1011
|
+
auth_type='AK',
|
|
1012
|
+
style='RPC',
|
|
1013
|
+
req_body_type='formData',
|
|
1014
|
+
body_type='json'
|
|
1015
|
+
)
|
|
1016
|
+
return TeaCore.from_map(
|
|
1017
|
+
ai_miao_bi_20230801_models.CancelDeepWriteTaskResponse(),
|
|
1018
|
+
self.call_api(params, req, runtime)
|
|
1019
|
+
)
|
|
1020
|
+
|
|
1021
|
+
async def cancel_deep_write_task_with_options_async(
|
|
1022
|
+
self,
|
|
1023
|
+
request: ai_miao_bi_20230801_models.CancelDeepWriteTaskRequest,
|
|
1024
|
+
runtime: util_models.RuntimeOptions,
|
|
1025
|
+
) -> ai_miao_bi_20230801_models.CancelDeepWriteTaskResponse:
|
|
1026
|
+
"""
|
|
1027
|
+
@summary 取消深度写作任务
|
|
1028
|
+
|
|
1029
|
+
@param request: CancelDeepWriteTaskRequest
|
|
1030
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1031
|
+
@return: CancelDeepWriteTaskResponse
|
|
1032
|
+
"""
|
|
1033
|
+
UtilClient.validate_model(request)
|
|
1034
|
+
body = {}
|
|
1035
|
+
if not UtilClient.is_unset(request.task_id):
|
|
1036
|
+
body['TaskId'] = request.task_id
|
|
1037
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
1038
|
+
body['WorkspaceId'] = request.workspace_id
|
|
1039
|
+
req = open_api_models.OpenApiRequest(
|
|
1040
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
1041
|
+
)
|
|
1042
|
+
params = open_api_models.Params(
|
|
1043
|
+
action='CancelDeepWriteTask',
|
|
1044
|
+
version='2023-08-01',
|
|
1045
|
+
protocol='HTTPS',
|
|
1046
|
+
pathname='/',
|
|
1047
|
+
method='POST',
|
|
1048
|
+
auth_type='AK',
|
|
1049
|
+
style='RPC',
|
|
1050
|
+
req_body_type='formData',
|
|
1051
|
+
body_type='json'
|
|
1052
|
+
)
|
|
1053
|
+
return TeaCore.from_map(
|
|
1054
|
+
ai_miao_bi_20230801_models.CancelDeepWriteTaskResponse(),
|
|
1055
|
+
await self.call_api_async(params, req, runtime)
|
|
1056
|
+
)
|
|
1057
|
+
|
|
1058
|
+
def cancel_deep_write_task(
|
|
1059
|
+
self,
|
|
1060
|
+
request: ai_miao_bi_20230801_models.CancelDeepWriteTaskRequest,
|
|
1061
|
+
) -> ai_miao_bi_20230801_models.CancelDeepWriteTaskResponse:
|
|
1062
|
+
"""
|
|
1063
|
+
@summary 取消深度写作任务
|
|
1064
|
+
|
|
1065
|
+
@param request: CancelDeepWriteTaskRequest
|
|
1066
|
+
@return: CancelDeepWriteTaskResponse
|
|
1067
|
+
"""
|
|
1068
|
+
runtime = util_models.RuntimeOptions()
|
|
1069
|
+
return self.cancel_deep_write_task_with_options(request, runtime)
|
|
1070
|
+
|
|
1071
|
+
async def cancel_deep_write_task_async(
|
|
1072
|
+
self,
|
|
1073
|
+
request: ai_miao_bi_20230801_models.CancelDeepWriteTaskRequest,
|
|
1074
|
+
) -> ai_miao_bi_20230801_models.CancelDeepWriteTaskResponse:
|
|
1075
|
+
"""
|
|
1076
|
+
@summary 取消深度写作任务
|
|
1077
|
+
|
|
1078
|
+
@param request: CancelDeepWriteTaskRequest
|
|
1079
|
+
@return: CancelDeepWriteTaskResponse
|
|
1080
|
+
"""
|
|
1081
|
+
runtime = util_models.RuntimeOptions()
|
|
1082
|
+
return await self.cancel_deep_write_task_with_options_async(request, runtime)
|
|
1083
|
+
|
|
984
1084
|
def clear_intervenes_with_options(
|
|
985
1085
|
self,
|
|
986
1086
|
request: ai_miao_bi_20230801_models.ClearIntervenesRequest,
|
|
@@ -6237,6 +6337,206 @@ class Client(OpenApiClient):
|
|
|
6237
6337
|
runtime = util_models.RuntimeOptions()
|
|
6238
6338
|
return await self.get_dataset_document_with_options_async(request, runtime)
|
|
6239
6339
|
|
|
6340
|
+
def get_deep_write_task_with_options(
|
|
6341
|
+
self,
|
|
6342
|
+
request: ai_miao_bi_20230801_models.GetDeepWriteTaskRequest,
|
|
6343
|
+
runtime: util_models.RuntimeOptions,
|
|
6344
|
+
) -> ai_miao_bi_20230801_models.GetDeepWriteTaskResponse:
|
|
6345
|
+
"""
|
|
6346
|
+
@summary 查询深度写作任务
|
|
6347
|
+
|
|
6348
|
+
@param request: GetDeepWriteTaskRequest
|
|
6349
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
6350
|
+
@return: GetDeepWriteTaskResponse
|
|
6351
|
+
"""
|
|
6352
|
+
UtilClient.validate_model(request)
|
|
6353
|
+
body = {}
|
|
6354
|
+
if not UtilClient.is_unset(request.task_id):
|
|
6355
|
+
body['TaskId'] = request.task_id
|
|
6356
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
6357
|
+
body['WorkspaceId'] = request.workspace_id
|
|
6358
|
+
req = open_api_models.OpenApiRequest(
|
|
6359
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
6360
|
+
)
|
|
6361
|
+
params = open_api_models.Params(
|
|
6362
|
+
action='GetDeepWriteTask',
|
|
6363
|
+
version='2023-08-01',
|
|
6364
|
+
protocol='HTTPS',
|
|
6365
|
+
pathname='/',
|
|
6366
|
+
method='POST',
|
|
6367
|
+
auth_type='AK',
|
|
6368
|
+
style='RPC',
|
|
6369
|
+
req_body_type='formData',
|
|
6370
|
+
body_type='json'
|
|
6371
|
+
)
|
|
6372
|
+
return TeaCore.from_map(
|
|
6373
|
+
ai_miao_bi_20230801_models.GetDeepWriteTaskResponse(),
|
|
6374
|
+
self.call_api(params, req, runtime)
|
|
6375
|
+
)
|
|
6376
|
+
|
|
6377
|
+
async def get_deep_write_task_with_options_async(
|
|
6378
|
+
self,
|
|
6379
|
+
request: ai_miao_bi_20230801_models.GetDeepWriteTaskRequest,
|
|
6380
|
+
runtime: util_models.RuntimeOptions,
|
|
6381
|
+
) -> ai_miao_bi_20230801_models.GetDeepWriteTaskResponse:
|
|
6382
|
+
"""
|
|
6383
|
+
@summary 查询深度写作任务
|
|
6384
|
+
|
|
6385
|
+
@param request: GetDeepWriteTaskRequest
|
|
6386
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
6387
|
+
@return: GetDeepWriteTaskResponse
|
|
6388
|
+
"""
|
|
6389
|
+
UtilClient.validate_model(request)
|
|
6390
|
+
body = {}
|
|
6391
|
+
if not UtilClient.is_unset(request.task_id):
|
|
6392
|
+
body['TaskId'] = request.task_id
|
|
6393
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
6394
|
+
body['WorkspaceId'] = request.workspace_id
|
|
6395
|
+
req = open_api_models.OpenApiRequest(
|
|
6396
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
6397
|
+
)
|
|
6398
|
+
params = open_api_models.Params(
|
|
6399
|
+
action='GetDeepWriteTask',
|
|
6400
|
+
version='2023-08-01',
|
|
6401
|
+
protocol='HTTPS',
|
|
6402
|
+
pathname='/',
|
|
6403
|
+
method='POST',
|
|
6404
|
+
auth_type='AK',
|
|
6405
|
+
style='RPC',
|
|
6406
|
+
req_body_type='formData',
|
|
6407
|
+
body_type='json'
|
|
6408
|
+
)
|
|
6409
|
+
return TeaCore.from_map(
|
|
6410
|
+
ai_miao_bi_20230801_models.GetDeepWriteTaskResponse(),
|
|
6411
|
+
await self.call_api_async(params, req, runtime)
|
|
6412
|
+
)
|
|
6413
|
+
|
|
6414
|
+
def get_deep_write_task(
|
|
6415
|
+
self,
|
|
6416
|
+
request: ai_miao_bi_20230801_models.GetDeepWriteTaskRequest,
|
|
6417
|
+
) -> ai_miao_bi_20230801_models.GetDeepWriteTaskResponse:
|
|
6418
|
+
"""
|
|
6419
|
+
@summary 查询深度写作任务
|
|
6420
|
+
|
|
6421
|
+
@param request: GetDeepWriteTaskRequest
|
|
6422
|
+
@return: GetDeepWriteTaskResponse
|
|
6423
|
+
"""
|
|
6424
|
+
runtime = util_models.RuntimeOptions()
|
|
6425
|
+
return self.get_deep_write_task_with_options(request, runtime)
|
|
6426
|
+
|
|
6427
|
+
async def get_deep_write_task_async(
|
|
6428
|
+
self,
|
|
6429
|
+
request: ai_miao_bi_20230801_models.GetDeepWriteTaskRequest,
|
|
6430
|
+
) -> ai_miao_bi_20230801_models.GetDeepWriteTaskResponse:
|
|
6431
|
+
"""
|
|
6432
|
+
@summary 查询深度写作任务
|
|
6433
|
+
|
|
6434
|
+
@param request: GetDeepWriteTaskRequest
|
|
6435
|
+
@return: GetDeepWriteTaskResponse
|
|
6436
|
+
"""
|
|
6437
|
+
runtime = util_models.RuntimeOptions()
|
|
6438
|
+
return await self.get_deep_write_task_with_options_async(request, runtime)
|
|
6439
|
+
|
|
6440
|
+
def get_deep_write_task_result_with_options(
|
|
6441
|
+
self,
|
|
6442
|
+
request: ai_miao_bi_20230801_models.GetDeepWriteTaskResultRequest,
|
|
6443
|
+
runtime: util_models.RuntimeOptions,
|
|
6444
|
+
) -> ai_miao_bi_20230801_models.GetDeepWriteTaskResultResponse:
|
|
6445
|
+
"""
|
|
6446
|
+
@summary 查询深度写作任务的结果
|
|
6447
|
+
|
|
6448
|
+
@param request: GetDeepWriteTaskResultRequest
|
|
6449
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
6450
|
+
@return: GetDeepWriteTaskResultResponse
|
|
6451
|
+
"""
|
|
6452
|
+
UtilClient.validate_model(request)
|
|
6453
|
+
body = {}
|
|
6454
|
+
if not UtilClient.is_unset(request.task_id):
|
|
6455
|
+
body['TaskId'] = request.task_id
|
|
6456
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
6457
|
+
body['WorkspaceId'] = request.workspace_id
|
|
6458
|
+
req = open_api_models.OpenApiRequest(
|
|
6459
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
6460
|
+
)
|
|
6461
|
+
params = open_api_models.Params(
|
|
6462
|
+
action='GetDeepWriteTaskResult',
|
|
6463
|
+
version='2023-08-01',
|
|
6464
|
+
protocol='HTTPS',
|
|
6465
|
+
pathname='/',
|
|
6466
|
+
method='POST',
|
|
6467
|
+
auth_type='AK',
|
|
6468
|
+
style='RPC',
|
|
6469
|
+
req_body_type='formData',
|
|
6470
|
+
body_type='json'
|
|
6471
|
+
)
|
|
6472
|
+
return TeaCore.from_map(
|
|
6473
|
+
ai_miao_bi_20230801_models.GetDeepWriteTaskResultResponse(),
|
|
6474
|
+
self.call_api(params, req, runtime)
|
|
6475
|
+
)
|
|
6476
|
+
|
|
6477
|
+
async def get_deep_write_task_result_with_options_async(
|
|
6478
|
+
self,
|
|
6479
|
+
request: ai_miao_bi_20230801_models.GetDeepWriteTaskResultRequest,
|
|
6480
|
+
runtime: util_models.RuntimeOptions,
|
|
6481
|
+
) -> ai_miao_bi_20230801_models.GetDeepWriteTaskResultResponse:
|
|
6482
|
+
"""
|
|
6483
|
+
@summary 查询深度写作任务的结果
|
|
6484
|
+
|
|
6485
|
+
@param request: GetDeepWriteTaskResultRequest
|
|
6486
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
6487
|
+
@return: GetDeepWriteTaskResultResponse
|
|
6488
|
+
"""
|
|
6489
|
+
UtilClient.validate_model(request)
|
|
6490
|
+
body = {}
|
|
6491
|
+
if not UtilClient.is_unset(request.task_id):
|
|
6492
|
+
body['TaskId'] = request.task_id
|
|
6493
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
6494
|
+
body['WorkspaceId'] = request.workspace_id
|
|
6495
|
+
req = open_api_models.OpenApiRequest(
|
|
6496
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
6497
|
+
)
|
|
6498
|
+
params = open_api_models.Params(
|
|
6499
|
+
action='GetDeepWriteTaskResult',
|
|
6500
|
+
version='2023-08-01',
|
|
6501
|
+
protocol='HTTPS',
|
|
6502
|
+
pathname='/',
|
|
6503
|
+
method='POST',
|
|
6504
|
+
auth_type='AK',
|
|
6505
|
+
style='RPC',
|
|
6506
|
+
req_body_type='formData',
|
|
6507
|
+
body_type='json'
|
|
6508
|
+
)
|
|
6509
|
+
return TeaCore.from_map(
|
|
6510
|
+
ai_miao_bi_20230801_models.GetDeepWriteTaskResultResponse(),
|
|
6511
|
+
await self.call_api_async(params, req, runtime)
|
|
6512
|
+
)
|
|
6513
|
+
|
|
6514
|
+
def get_deep_write_task_result(
|
|
6515
|
+
self,
|
|
6516
|
+
request: ai_miao_bi_20230801_models.GetDeepWriteTaskResultRequest,
|
|
6517
|
+
) -> ai_miao_bi_20230801_models.GetDeepWriteTaskResultResponse:
|
|
6518
|
+
"""
|
|
6519
|
+
@summary 查询深度写作任务的结果
|
|
6520
|
+
|
|
6521
|
+
@param request: GetDeepWriteTaskResultRequest
|
|
6522
|
+
@return: GetDeepWriteTaskResultResponse
|
|
6523
|
+
"""
|
|
6524
|
+
runtime = util_models.RuntimeOptions()
|
|
6525
|
+
return self.get_deep_write_task_result_with_options(request, runtime)
|
|
6526
|
+
|
|
6527
|
+
async def get_deep_write_task_result_async(
|
|
6528
|
+
self,
|
|
6529
|
+
request: ai_miao_bi_20230801_models.GetDeepWriteTaskResultRequest,
|
|
6530
|
+
) -> ai_miao_bi_20230801_models.GetDeepWriteTaskResultResponse:
|
|
6531
|
+
"""
|
|
6532
|
+
@summary 查询深度写作任务的结果
|
|
6533
|
+
|
|
6534
|
+
@param request: GetDeepWriteTaskResultRequest
|
|
6535
|
+
@return: GetDeepWriteTaskResultResponse
|
|
6536
|
+
"""
|
|
6537
|
+
runtime = util_models.RuntimeOptions()
|
|
6538
|
+
return await self.get_deep_write_task_result_with_options_async(request, runtime)
|
|
6539
|
+
|
|
6240
6540
|
def get_doc_cluster_task_with_options(
|
|
6241
6541
|
self,
|
|
6242
6542
|
request: ai_miao_bi_20230801_models.GetDocClusterTaskRequest,
|
|
@@ -13741,6 +14041,110 @@ class Client(OpenApiClient):
|
|
|
13741
14041
|
runtime = util_models.RuntimeOptions()
|
|
13742
14042
|
return await self.run_custom_hot_topic_view_point_analysis_with_options_async(request, runtime)
|
|
13743
14043
|
|
|
14044
|
+
def run_deep_writing_with_options(
|
|
14045
|
+
self,
|
|
14046
|
+
request: ai_miao_bi_20230801_models.RunDeepWritingRequest,
|
|
14047
|
+
runtime: util_models.RuntimeOptions,
|
|
14048
|
+
) -> ai_miao_bi_20230801_models.RunDeepWritingResponse:
|
|
14049
|
+
"""
|
|
14050
|
+
@summary 流式输出深度写作事件
|
|
14051
|
+
|
|
14052
|
+
@param request: RunDeepWritingRequest
|
|
14053
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
14054
|
+
@return: RunDeepWritingResponse
|
|
14055
|
+
"""
|
|
14056
|
+
UtilClient.validate_model(request)
|
|
14057
|
+
body = {}
|
|
14058
|
+
if not UtilClient.is_unset(request.cursor):
|
|
14059
|
+
body['Cursor'] = request.cursor
|
|
14060
|
+
if not UtilClient.is_unset(request.task_id):
|
|
14061
|
+
body['TaskId'] = request.task_id
|
|
14062
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
14063
|
+
body['WorkspaceId'] = request.workspace_id
|
|
14064
|
+
req = open_api_models.OpenApiRequest(
|
|
14065
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
14066
|
+
)
|
|
14067
|
+
params = open_api_models.Params(
|
|
14068
|
+
action='RunDeepWriting',
|
|
14069
|
+
version='2023-08-01',
|
|
14070
|
+
protocol='HTTPS',
|
|
14071
|
+
pathname='/',
|
|
14072
|
+
method='POST',
|
|
14073
|
+
auth_type='AK',
|
|
14074
|
+
style='RPC',
|
|
14075
|
+
req_body_type='formData',
|
|
14076
|
+
body_type='json'
|
|
14077
|
+
)
|
|
14078
|
+
return TeaCore.from_map(
|
|
14079
|
+
ai_miao_bi_20230801_models.RunDeepWritingResponse(),
|
|
14080
|
+
self.call_api(params, req, runtime)
|
|
14081
|
+
)
|
|
14082
|
+
|
|
14083
|
+
async def run_deep_writing_with_options_async(
|
|
14084
|
+
self,
|
|
14085
|
+
request: ai_miao_bi_20230801_models.RunDeepWritingRequest,
|
|
14086
|
+
runtime: util_models.RuntimeOptions,
|
|
14087
|
+
) -> ai_miao_bi_20230801_models.RunDeepWritingResponse:
|
|
14088
|
+
"""
|
|
14089
|
+
@summary 流式输出深度写作事件
|
|
14090
|
+
|
|
14091
|
+
@param request: RunDeepWritingRequest
|
|
14092
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
14093
|
+
@return: RunDeepWritingResponse
|
|
14094
|
+
"""
|
|
14095
|
+
UtilClient.validate_model(request)
|
|
14096
|
+
body = {}
|
|
14097
|
+
if not UtilClient.is_unset(request.cursor):
|
|
14098
|
+
body['Cursor'] = request.cursor
|
|
14099
|
+
if not UtilClient.is_unset(request.task_id):
|
|
14100
|
+
body['TaskId'] = request.task_id
|
|
14101
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
14102
|
+
body['WorkspaceId'] = request.workspace_id
|
|
14103
|
+
req = open_api_models.OpenApiRequest(
|
|
14104
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
14105
|
+
)
|
|
14106
|
+
params = open_api_models.Params(
|
|
14107
|
+
action='RunDeepWriting',
|
|
14108
|
+
version='2023-08-01',
|
|
14109
|
+
protocol='HTTPS',
|
|
14110
|
+
pathname='/',
|
|
14111
|
+
method='POST',
|
|
14112
|
+
auth_type='AK',
|
|
14113
|
+
style='RPC',
|
|
14114
|
+
req_body_type='formData',
|
|
14115
|
+
body_type='json'
|
|
14116
|
+
)
|
|
14117
|
+
return TeaCore.from_map(
|
|
14118
|
+
ai_miao_bi_20230801_models.RunDeepWritingResponse(),
|
|
14119
|
+
await self.call_api_async(params, req, runtime)
|
|
14120
|
+
)
|
|
14121
|
+
|
|
14122
|
+
def run_deep_writing(
|
|
14123
|
+
self,
|
|
14124
|
+
request: ai_miao_bi_20230801_models.RunDeepWritingRequest,
|
|
14125
|
+
) -> ai_miao_bi_20230801_models.RunDeepWritingResponse:
|
|
14126
|
+
"""
|
|
14127
|
+
@summary 流式输出深度写作事件
|
|
14128
|
+
|
|
14129
|
+
@param request: RunDeepWritingRequest
|
|
14130
|
+
@return: RunDeepWritingResponse
|
|
14131
|
+
"""
|
|
14132
|
+
runtime = util_models.RuntimeOptions()
|
|
14133
|
+
return self.run_deep_writing_with_options(request, runtime)
|
|
14134
|
+
|
|
14135
|
+
async def run_deep_writing_async(
|
|
14136
|
+
self,
|
|
14137
|
+
request: ai_miao_bi_20230801_models.RunDeepWritingRequest,
|
|
14138
|
+
) -> ai_miao_bi_20230801_models.RunDeepWritingResponse:
|
|
14139
|
+
"""
|
|
14140
|
+
@summary 流式输出深度写作事件
|
|
14141
|
+
|
|
14142
|
+
@param request: RunDeepWritingRequest
|
|
14143
|
+
@return: RunDeepWritingResponse
|
|
14144
|
+
"""
|
|
14145
|
+
runtime = util_models.RuntimeOptions()
|
|
14146
|
+
return await self.run_deep_writing_with_options_async(request, runtime)
|
|
14147
|
+
|
|
13744
14148
|
def run_doc_brainmap_with_options(
|
|
13745
14149
|
self,
|
|
13746
14150
|
request: ai_miao_bi_20230801_models.RunDocBrainmapRequest,
|
|
@@ -18181,6 +18585,134 @@ class Client(OpenApiClient):
|
|
|
18181
18585
|
runtime = util_models.RuntimeOptions()
|
|
18182
18586
|
return await self.submit_custom_topic_selection_perspective_analysis_task_with_options_async(request, runtime)
|
|
18183
18587
|
|
|
18588
|
+
def submit_deep_write_task_with_options(
|
|
18589
|
+
self,
|
|
18590
|
+
tmp_req: ai_miao_bi_20230801_models.SubmitDeepWriteTaskRequest,
|
|
18591
|
+
runtime: util_models.RuntimeOptions,
|
|
18592
|
+
) -> ai_miao_bi_20230801_models.SubmitDeepWriteTaskResponse:
|
|
18593
|
+
"""
|
|
18594
|
+
@summary 提交深度写作任务
|
|
18595
|
+
|
|
18596
|
+
@param tmp_req: SubmitDeepWriteTaskRequest
|
|
18597
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
18598
|
+
@return: SubmitDeepWriteTaskResponse
|
|
18599
|
+
"""
|
|
18600
|
+
UtilClient.validate_model(tmp_req)
|
|
18601
|
+
request = ai_miao_bi_20230801_models.SubmitDeepWriteTaskShrinkRequest()
|
|
18602
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
18603
|
+
if not UtilClient.is_unset(tmp_req.agent_orchestration):
|
|
18604
|
+
request.agent_orchestration_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.agent_orchestration, 'AgentOrchestration', 'json')
|
|
18605
|
+
if not UtilClient.is_unset(tmp_req.files):
|
|
18606
|
+
request.files_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.files, 'Files', 'json')
|
|
18607
|
+
query = {}
|
|
18608
|
+
if not UtilClient.is_unset(request.agent_orchestration_shrink):
|
|
18609
|
+
query['AgentOrchestration'] = request.agent_orchestration_shrink
|
|
18610
|
+
body = {}
|
|
18611
|
+
if not UtilClient.is_unset(request.files_shrink):
|
|
18612
|
+
body['Files'] = request.files_shrink
|
|
18613
|
+
if not UtilClient.is_unset(request.input):
|
|
18614
|
+
body['Input'] = request.input
|
|
18615
|
+
if not UtilClient.is_unset(request.instructions):
|
|
18616
|
+
body['Instructions'] = request.instructions
|
|
18617
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
18618
|
+
body['WorkspaceId'] = request.workspace_id
|
|
18619
|
+
req = open_api_models.OpenApiRequest(
|
|
18620
|
+
query=OpenApiUtilClient.query(query),
|
|
18621
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
18622
|
+
)
|
|
18623
|
+
params = open_api_models.Params(
|
|
18624
|
+
action='SubmitDeepWriteTask',
|
|
18625
|
+
version='2023-08-01',
|
|
18626
|
+
protocol='HTTPS',
|
|
18627
|
+
pathname='/',
|
|
18628
|
+
method='POST',
|
|
18629
|
+
auth_type='AK',
|
|
18630
|
+
style='RPC',
|
|
18631
|
+
req_body_type='formData',
|
|
18632
|
+
body_type='json'
|
|
18633
|
+
)
|
|
18634
|
+
return TeaCore.from_map(
|
|
18635
|
+
ai_miao_bi_20230801_models.SubmitDeepWriteTaskResponse(),
|
|
18636
|
+
self.call_api(params, req, runtime)
|
|
18637
|
+
)
|
|
18638
|
+
|
|
18639
|
+
async def submit_deep_write_task_with_options_async(
|
|
18640
|
+
self,
|
|
18641
|
+
tmp_req: ai_miao_bi_20230801_models.SubmitDeepWriteTaskRequest,
|
|
18642
|
+
runtime: util_models.RuntimeOptions,
|
|
18643
|
+
) -> ai_miao_bi_20230801_models.SubmitDeepWriteTaskResponse:
|
|
18644
|
+
"""
|
|
18645
|
+
@summary 提交深度写作任务
|
|
18646
|
+
|
|
18647
|
+
@param tmp_req: SubmitDeepWriteTaskRequest
|
|
18648
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
18649
|
+
@return: SubmitDeepWriteTaskResponse
|
|
18650
|
+
"""
|
|
18651
|
+
UtilClient.validate_model(tmp_req)
|
|
18652
|
+
request = ai_miao_bi_20230801_models.SubmitDeepWriteTaskShrinkRequest()
|
|
18653
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
18654
|
+
if not UtilClient.is_unset(tmp_req.agent_orchestration):
|
|
18655
|
+
request.agent_orchestration_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.agent_orchestration, 'AgentOrchestration', 'json')
|
|
18656
|
+
if not UtilClient.is_unset(tmp_req.files):
|
|
18657
|
+
request.files_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.files, 'Files', 'json')
|
|
18658
|
+
query = {}
|
|
18659
|
+
if not UtilClient.is_unset(request.agent_orchestration_shrink):
|
|
18660
|
+
query['AgentOrchestration'] = request.agent_orchestration_shrink
|
|
18661
|
+
body = {}
|
|
18662
|
+
if not UtilClient.is_unset(request.files_shrink):
|
|
18663
|
+
body['Files'] = request.files_shrink
|
|
18664
|
+
if not UtilClient.is_unset(request.input):
|
|
18665
|
+
body['Input'] = request.input
|
|
18666
|
+
if not UtilClient.is_unset(request.instructions):
|
|
18667
|
+
body['Instructions'] = request.instructions
|
|
18668
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
18669
|
+
body['WorkspaceId'] = request.workspace_id
|
|
18670
|
+
req = open_api_models.OpenApiRequest(
|
|
18671
|
+
query=OpenApiUtilClient.query(query),
|
|
18672
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
18673
|
+
)
|
|
18674
|
+
params = open_api_models.Params(
|
|
18675
|
+
action='SubmitDeepWriteTask',
|
|
18676
|
+
version='2023-08-01',
|
|
18677
|
+
protocol='HTTPS',
|
|
18678
|
+
pathname='/',
|
|
18679
|
+
method='POST',
|
|
18680
|
+
auth_type='AK',
|
|
18681
|
+
style='RPC',
|
|
18682
|
+
req_body_type='formData',
|
|
18683
|
+
body_type='json'
|
|
18684
|
+
)
|
|
18685
|
+
return TeaCore.from_map(
|
|
18686
|
+
ai_miao_bi_20230801_models.SubmitDeepWriteTaskResponse(),
|
|
18687
|
+
await self.call_api_async(params, req, runtime)
|
|
18688
|
+
)
|
|
18689
|
+
|
|
18690
|
+
def submit_deep_write_task(
|
|
18691
|
+
self,
|
|
18692
|
+
request: ai_miao_bi_20230801_models.SubmitDeepWriteTaskRequest,
|
|
18693
|
+
) -> ai_miao_bi_20230801_models.SubmitDeepWriteTaskResponse:
|
|
18694
|
+
"""
|
|
18695
|
+
@summary 提交深度写作任务
|
|
18696
|
+
|
|
18697
|
+
@param request: SubmitDeepWriteTaskRequest
|
|
18698
|
+
@return: SubmitDeepWriteTaskResponse
|
|
18699
|
+
"""
|
|
18700
|
+
runtime = util_models.RuntimeOptions()
|
|
18701
|
+
return self.submit_deep_write_task_with_options(request, runtime)
|
|
18702
|
+
|
|
18703
|
+
async def submit_deep_write_task_async(
|
|
18704
|
+
self,
|
|
18705
|
+
request: ai_miao_bi_20230801_models.SubmitDeepWriteTaskRequest,
|
|
18706
|
+
) -> ai_miao_bi_20230801_models.SubmitDeepWriteTaskResponse:
|
|
18707
|
+
"""
|
|
18708
|
+
@summary 提交深度写作任务
|
|
18709
|
+
|
|
18710
|
+
@param request: SubmitDeepWriteTaskRequest
|
|
18711
|
+
@return: SubmitDeepWriteTaskResponse
|
|
18712
|
+
"""
|
|
18713
|
+
runtime = util_models.RuntimeOptions()
|
|
18714
|
+
return await self.submit_deep_write_task_with_options_async(request, runtime)
|
|
18715
|
+
|
|
18184
18716
|
def submit_doc_cluster_task_with_options(
|
|
18185
18717
|
self,
|
|
18186
18718
|
tmp_req: ai_miao_bi_20230801_models.SubmitDocClusterTaskRequest,
|