alibabacloud-aimiaobi20230801 1.19.0__tar.gz → 1.20.2__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.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/ChangeLog.md +14 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.20.2/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/alibabacloud_aimiaobi20230801/client.py +436 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/alibabacloud_aimiaobi20230801/models.py +1173 -145
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/setup.py +1 -1
- alibabacloud_aimiaobi20230801-1.19.0/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.19.0 → alibabacloud_aimiaobi20230801-1.20.2}/setup.cfg +0 -0
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
2025-02-24 Version: 1.20.0
|
|
2
|
+
- Support API ListStyleLearningResult.
|
|
3
|
+
- Support API RunCommentGeneration.
|
|
4
|
+
- Support API RunGenerateQuestions.
|
|
5
|
+
- Support API RunHotword.
|
|
6
|
+
- Support API RunMultiDocIntroduction.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
2025-02-17 Version: 1.19.0
|
|
10
|
+
- Support API ListStyleLearningResult.
|
|
11
|
+
- Support API RunCommentGeneration.
|
|
12
|
+
- Support API RunMultiDocIntroduction.
|
|
13
|
+
|
|
14
|
+
|
|
1
15
|
2025-01-20 Version: 1.18.0
|
|
2
16
|
- Support API RunSearchSimilarArticles.
|
|
3
17
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.20.2'
|
|
@@ -10489,8 +10489,12 @@ class Client(OpenApiClient):
|
|
|
10489
10489
|
body = {}
|
|
10490
10490
|
if not UtilClient.is_unset(request.doc_id):
|
|
10491
10491
|
body['DocId'] = request.doc_id
|
|
10492
|
+
if not UtilClient.is_unset(request.key_point_prompt):
|
|
10493
|
+
body['KeyPointPrompt'] = request.key_point_prompt
|
|
10492
10494
|
if not UtilClient.is_unset(request.session_id):
|
|
10493
10495
|
body['SessionId'] = request.session_id
|
|
10496
|
+
if not UtilClient.is_unset(request.summary_prompt):
|
|
10497
|
+
body['SummaryPrompt'] = request.summary_prompt
|
|
10494
10498
|
if not UtilClient.is_unset(request.workspace_id):
|
|
10495
10499
|
body['WorkspaceId'] = request.workspace_id
|
|
10496
10500
|
req = open_api_models.OpenApiRequest(
|
|
@@ -10534,8 +10538,12 @@ class Client(OpenApiClient):
|
|
|
10534
10538
|
body = {}
|
|
10535
10539
|
if not UtilClient.is_unset(request.doc_id):
|
|
10536
10540
|
body['DocId'] = request.doc_id
|
|
10541
|
+
if not UtilClient.is_unset(request.key_point_prompt):
|
|
10542
|
+
body['KeyPointPrompt'] = request.key_point_prompt
|
|
10537
10543
|
if not UtilClient.is_unset(request.session_id):
|
|
10538
10544
|
body['SessionId'] = request.session_id
|
|
10545
|
+
if not UtilClient.is_unset(request.summary_prompt):
|
|
10546
|
+
body['SummaryPrompt'] = request.summary_prompt
|
|
10539
10547
|
if not UtilClient.is_unset(request.workspace_id):
|
|
10540
10548
|
body['WorkspaceId'] = request.workspace_id
|
|
10541
10549
|
req = open_api_models.OpenApiRequest(
|
|
@@ -10739,6 +10747,8 @@ class Client(OpenApiClient):
|
|
|
10739
10747
|
body['NumComments'] = request.num_comments
|
|
10740
10748
|
if not UtilClient.is_unset(request.sentiment_shrink):
|
|
10741
10749
|
body['Sentiment'] = request.sentiment_shrink
|
|
10750
|
+
if not UtilClient.is_unset(request.session_id):
|
|
10751
|
+
body['SessionId'] = request.session_id
|
|
10742
10752
|
if not UtilClient.is_unset(request.source_material):
|
|
10743
10753
|
body['SourceMaterial'] = request.source_material
|
|
10744
10754
|
if not UtilClient.is_unset(request.style):
|
|
@@ -10806,6 +10816,8 @@ class Client(OpenApiClient):
|
|
|
10806
10816
|
body['NumComments'] = request.num_comments
|
|
10807
10817
|
if not UtilClient.is_unset(request.sentiment_shrink):
|
|
10808
10818
|
body['Sentiment'] = request.sentiment_shrink
|
|
10819
|
+
if not UtilClient.is_unset(request.session_id):
|
|
10820
|
+
body['SessionId'] = request.session_id
|
|
10809
10821
|
if not UtilClient.is_unset(request.source_material):
|
|
10810
10822
|
body['SourceMaterial'] = request.source_material
|
|
10811
10823
|
if not UtilClient.is_unset(request.style):
|
|
@@ -11267,10 +11279,18 @@ class Client(OpenApiClient):
|
|
|
11267
11279
|
"""
|
|
11268
11280
|
UtilClient.validate_model(request)
|
|
11269
11281
|
body = {}
|
|
11282
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11283
|
+
body['CleanCache'] = request.clean_cache
|
|
11270
11284
|
if not UtilClient.is_unset(request.doc_id):
|
|
11271
11285
|
body['DocId'] = request.doc_id
|
|
11286
|
+
if not UtilClient.is_unset(request.node_number):
|
|
11287
|
+
body['NodeNumber'] = request.node_number
|
|
11288
|
+
if not UtilClient.is_unset(request.prompt):
|
|
11289
|
+
body['Prompt'] = request.prompt
|
|
11272
11290
|
if not UtilClient.is_unset(request.session_id):
|
|
11273
11291
|
body['SessionId'] = request.session_id
|
|
11292
|
+
if not UtilClient.is_unset(request.word_number):
|
|
11293
|
+
body['WordNumber'] = request.word_number
|
|
11274
11294
|
if not UtilClient.is_unset(request.workspace_id):
|
|
11275
11295
|
body['WorkspaceId'] = request.workspace_id
|
|
11276
11296
|
req = open_api_models.OpenApiRequest(
|
|
@@ -11312,10 +11332,18 @@ class Client(OpenApiClient):
|
|
|
11312
11332
|
"""
|
|
11313
11333
|
UtilClient.validate_model(request)
|
|
11314
11334
|
body = {}
|
|
11335
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11336
|
+
body['CleanCache'] = request.clean_cache
|
|
11315
11337
|
if not UtilClient.is_unset(request.doc_id):
|
|
11316
11338
|
body['DocId'] = request.doc_id
|
|
11339
|
+
if not UtilClient.is_unset(request.node_number):
|
|
11340
|
+
body['NodeNumber'] = request.node_number
|
|
11341
|
+
if not UtilClient.is_unset(request.prompt):
|
|
11342
|
+
body['Prompt'] = request.prompt
|
|
11317
11343
|
if not UtilClient.is_unset(request.session_id):
|
|
11318
11344
|
body['SessionId'] = request.session_id
|
|
11345
|
+
if not UtilClient.is_unset(request.word_number):
|
|
11346
|
+
body['WordNumber'] = request.word_number
|
|
11319
11347
|
if not UtilClient.is_unset(request.workspace_id):
|
|
11320
11348
|
body['WorkspaceId'] = request.workspace_id
|
|
11321
11349
|
req = open_api_models.OpenApiRequest(
|
|
@@ -11382,14 +11410,24 @@ class Client(OpenApiClient):
|
|
|
11382
11410
|
@return: RunDocIntroductionResponse
|
|
11383
11411
|
"""
|
|
11384
11412
|
UtilClient.validate_model(request)
|
|
11413
|
+
query = {}
|
|
11414
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11415
|
+
query['CleanCache'] = request.clean_cache
|
|
11385
11416
|
body = {}
|
|
11386
11417
|
if not UtilClient.is_unset(request.doc_id):
|
|
11387
11418
|
body['DocId'] = request.doc_id
|
|
11419
|
+
if not UtilClient.is_unset(request.introduction_prompt):
|
|
11420
|
+
body['IntroductionPrompt'] = request.introduction_prompt
|
|
11421
|
+
if not UtilClient.is_unset(request.key_point_prompt):
|
|
11422
|
+
body['KeyPointPrompt'] = request.key_point_prompt
|
|
11388
11423
|
if not UtilClient.is_unset(request.session_id):
|
|
11389
11424
|
body['SessionId'] = request.session_id
|
|
11425
|
+
if not UtilClient.is_unset(request.summary_prompt):
|
|
11426
|
+
body['SummaryPrompt'] = request.summary_prompt
|
|
11390
11427
|
if not UtilClient.is_unset(request.workspace_id):
|
|
11391
11428
|
body['WorkspaceId'] = request.workspace_id
|
|
11392
11429
|
req = open_api_models.OpenApiRequest(
|
|
11430
|
+
query=OpenApiUtilClient.query(query),
|
|
11393
11431
|
body=OpenApiUtilClient.parse_to_map(body)
|
|
11394
11432
|
)
|
|
11395
11433
|
params = open_api_models.Params(
|
|
@@ -11427,14 +11465,24 @@ class Client(OpenApiClient):
|
|
|
11427
11465
|
@return: RunDocIntroductionResponse
|
|
11428
11466
|
"""
|
|
11429
11467
|
UtilClient.validate_model(request)
|
|
11468
|
+
query = {}
|
|
11469
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11470
|
+
query['CleanCache'] = request.clean_cache
|
|
11430
11471
|
body = {}
|
|
11431
11472
|
if not UtilClient.is_unset(request.doc_id):
|
|
11432
11473
|
body['DocId'] = request.doc_id
|
|
11474
|
+
if not UtilClient.is_unset(request.introduction_prompt):
|
|
11475
|
+
body['IntroductionPrompt'] = request.introduction_prompt
|
|
11476
|
+
if not UtilClient.is_unset(request.key_point_prompt):
|
|
11477
|
+
body['KeyPointPrompt'] = request.key_point_prompt
|
|
11433
11478
|
if not UtilClient.is_unset(request.session_id):
|
|
11434
11479
|
body['SessionId'] = request.session_id
|
|
11480
|
+
if not UtilClient.is_unset(request.summary_prompt):
|
|
11481
|
+
body['SummaryPrompt'] = request.summary_prompt
|
|
11435
11482
|
if not UtilClient.is_unset(request.workspace_id):
|
|
11436
11483
|
body['WorkspaceId'] = request.workspace_id
|
|
11437
11484
|
req = open_api_models.OpenApiRequest(
|
|
11485
|
+
query=OpenApiUtilClient.query(query),
|
|
11438
11486
|
body=OpenApiUtilClient.parse_to_map(body)
|
|
11439
11487
|
)
|
|
11440
11488
|
params = open_api_models.Params(
|
|
@@ -11767,6 +11815,8 @@ class Client(OpenApiClient):
|
|
|
11767
11815
|
"""
|
|
11768
11816
|
UtilClient.validate_model(request)
|
|
11769
11817
|
body = {}
|
|
11818
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11819
|
+
body['CleanCache'] = request.clean_cache
|
|
11770
11820
|
if not UtilClient.is_unset(request.doc_id):
|
|
11771
11821
|
body['DocId'] = request.doc_id
|
|
11772
11822
|
if not UtilClient.is_unset(request.query):
|
|
@@ -11816,6 +11866,8 @@ class Client(OpenApiClient):
|
|
|
11816
11866
|
"""
|
|
11817
11867
|
UtilClient.validate_model(request)
|
|
11818
11868
|
body = {}
|
|
11869
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11870
|
+
body['CleanCache'] = request.clean_cache
|
|
11819
11871
|
if not UtilClient.is_unset(request.doc_id):
|
|
11820
11872
|
body['DocId'] = request.doc_id
|
|
11821
11873
|
if not UtilClient.is_unset(request.query):
|
|
@@ -11891,6 +11943,8 @@ class Client(OpenApiClient):
|
|
|
11891
11943
|
"""
|
|
11892
11944
|
UtilClient.validate_model(request)
|
|
11893
11945
|
body = {}
|
|
11946
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11947
|
+
body['CleanCache'] = request.clean_cache
|
|
11894
11948
|
if not UtilClient.is_unset(request.doc_id):
|
|
11895
11949
|
body['DocId'] = request.doc_id
|
|
11896
11950
|
if not UtilClient.is_unset(request.recommend_content):
|
|
@@ -11940,6 +11994,8 @@ class Client(OpenApiClient):
|
|
|
11940
11994
|
"""
|
|
11941
11995
|
UtilClient.validate_model(request)
|
|
11942
11996
|
body = {}
|
|
11997
|
+
if not UtilClient.is_unset(request.clean_cache):
|
|
11998
|
+
body['CleanCache'] = request.clean_cache
|
|
11943
11999
|
if not UtilClient.is_unset(request.doc_id):
|
|
11944
12000
|
body['DocId'] = request.doc_id
|
|
11945
12001
|
if not UtilClient.is_unset(request.recommend_content):
|
|
@@ -12001,6 +12057,142 @@ class Client(OpenApiClient):
|
|
|
12001
12057
|
runtime = util_models.RuntimeOptions()
|
|
12002
12058
|
return await self.run_doc_translation_with_options_async(request, runtime)
|
|
12003
12059
|
|
|
12060
|
+
def run_doc_washing_with_options(
|
|
12061
|
+
self,
|
|
12062
|
+
request: ai_miao_bi_20230801_models.RunDocWashingRequest,
|
|
12063
|
+
runtime: util_models.RuntimeOptions,
|
|
12064
|
+
) -> ai_miao_bi_20230801_models.RunDocWashingResponse:
|
|
12065
|
+
"""
|
|
12066
|
+
@summary 文档改写
|
|
12067
|
+
|
|
12068
|
+
@param request: RunDocWashingRequest
|
|
12069
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12070
|
+
@return: RunDocWashingResponse
|
|
12071
|
+
"""
|
|
12072
|
+
UtilClient.validate_model(request)
|
|
12073
|
+
body = {}
|
|
12074
|
+
if not UtilClient.is_unset(request.prompt):
|
|
12075
|
+
body['Prompt'] = request.prompt
|
|
12076
|
+
if not UtilClient.is_unset(request.reference_content):
|
|
12077
|
+
body['ReferenceContent'] = request.reference_content
|
|
12078
|
+
if not UtilClient.is_unset(request.session_id):
|
|
12079
|
+
body['SessionId'] = request.session_id
|
|
12080
|
+
if not UtilClient.is_unset(request.topic):
|
|
12081
|
+
body['Topic'] = request.topic
|
|
12082
|
+
if not UtilClient.is_unset(request.word_number):
|
|
12083
|
+
body['WordNumber'] = request.word_number
|
|
12084
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
12085
|
+
body['WorkspaceId'] = request.workspace_id
|
|
12086
|
+
if not UtilClient.is_unset(request.writing_type_name):
|
|
12087
|
+
body['WritingTypeName'] = request.writing_type_name
|
|
12088
|
+
if not UtilClient.is_unset(request.writing_type_ref_doc):
|
|
12089
|
+
body['WritingTypeRefDoc'] = request.writing_type_ref_doc
|
|
12090
|
+
req = open_api_models.OpenApiRequest(
|
|
12091
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
12092
|
+
)
|
|
12093
|
+
params = open_api_models.Params(
|
|
12094
|
+
action='RunDocWashing',
|
|
12095
|
+
version='2023-08-01',
|
|
12096
|
+
protocol='HTTPS',
|
|
12097
|
+
pathname='/',
|
|
12098
|
+
method='POST',
|
|
12099
|
+
auth_type='AK',
|
|
12100
|
+
style='RPC',
|
|
12101
|
+
req_body_type='formData',
|
|
12102
|
+
body_type='json'
|
|
12103
|
+
)
|
|
12104
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
12105
|
+
return TeaCore.from_map(
|
|
12106
|
+
ai_miao_bi_20230801_models.RunDocWashingResponse(),
|
|
12107
|
+
self.call_api(params, req, runtime)
|
|
12108
|
+
)
|
|
12109
|
+
else:
|
|
12110
|
+
return TeaCore.from_map(
|
|
12111
|
+
ai_miao_bi_20230801_models.RunDocWashingResponse(),
|
|
12112
|
+
self.execute(params, req, runtime)
|
|
12113
|
+
)
|
|
12114
|
+
|
|
12115
|
+
async def run_doc_washing_with_options_async(
|
|
12116
|
+
self,
|
|
12117
|
+
request: ai_miao_bi_20230801_models.RunDocWashingRequest,
|
|
12118
|
+
runtime: util_models.RuntimeOptions,
|
|
12119
|
+
) -> ai_miao_bi_20230801_models.RunDocWashingResponse:
|
|
12120
|
+
"""
|
|
12121
|
+
@summary 文档改写
|
|
12122
|
+
|
|
12123
|
+
@param request: RunDocWashingRequest
|
|
12124
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12125
|
+
@return: RunDocWashingResponse
|
|
12126
|
+
"""
|
|
12127
|
+
UtilClient.validate_model(request)
|
|
12128
|
+
body = {}
|
|
12129
|
+
if not UtilClient.is_unset(request.prompt):
|
|
12130
|
+
body['Prompt'] = request.prompt
|
|
12131
|
+
if not UtilClient.is_unset(request.reference_content):
|
|
12132
|
+
body['ReferenceContent'] = request.reference_content
|
|
12133
|
+
if not UtilClient.is_unset(request.session_id):
|
|
12134
|
+
body['SessionId'] = request.session_id
|
|
12135
|
+
if not UtilClient.is_unset(request.topic):
|
|
12136
|
+
body['Topic'] = request.topic
|
|
12137
|
+
if not UtilClient.is_unset(request.word_number):
|
|
12138
|
+
body['WordNumber'] = request.word_number
|
|
12139
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
12140
|
+
body['WorkspaceId'] = request.workspace_id
|
|
12141
|
+
if not UtilClient.is_unset(request.writing_type_name):
|
|
12142
|
+
body['WritingTypeName'] = request.writing_type_name
|
|
12143
|
+
if not UtilClient.is_unset(request.writing_type_ref_doc):
|
|
12144
|
+
body['WritingTypeRefDoc'] = request.writing_type_ref_doc
|
|
12145
|
+
req = open_api_models.OpenApiRequest(
|
|
12146
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
12147
|
+
)
|
|
12148
|
+
params = open_api_models.Params(
|
|
12149
|
+
action='RunDocWashing',
|
|
12150
|
+
version='2023-08-01',
|
|
12151
|
+
protocol='HTTPS',
|
|
12152
|
+
pathname='/',
|
|
12153
|
+
method='POST',
|
|
12154
|
+
auth_type='AK',
|
|
12155
|
+
style='RPC',
|
|
12156
|
+
req_body_type='formData',
|
|
12157
|
+
body_type='json'
|
|
12158
|
+
)
|
|
12159
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
12160
|
+
return TeaCore.from_map(
|
|
12161
|
+
ai_miao_bi_20230801_models.RunDocWashingResponse(),
|
|
12162
|
+
await self.call_api_async(params, req, runtime)
|
|
12163
|
+
)
|
|
12164
|
+
else:
|
|
12165
|
+
return TeaCore.from_map(
|
|
12166
|
+
ai_miao_bi_20230801_models.RunDocWashingResponse(),
|
|
12167
|
+
await self.execute_async(params, req, runtime)
|
|
12168
|
+
)
|
|
12169
|
+
|
|
12170
|
+
def run_doc_washing(
|
|
12171
|
+
self,
|
|
12172
|
+
request: ai_miao_bi_20230801_models.RunDocWashingRequest,
|
|
12173
|
+
) -> ai_miao_bi_20230801_models.RunDocWashingResponse:
|
|
12174
|
+
"""
|
|
12175
|
+
@summary 文档改写
|
|
12176
|
+
|
|
12177
|
+
@param request: RunDocWashingRequest
|
|
12178
|
+
@return: RunDocWashingResponse
|
|
12179
|
+
"""
|
|
12180
|
+
runtime = util_models.RuntimeOptions()
|
|
12181
|
+
return self.run_doc_washing_with_options(request, runtime)
|
|
12182
|
+
|
|
12183
|
+
async def run_doc_washing_async(
|
|
12184
|
+
self,
|
|
12185
|
+
request: ai_miao_bi_20230801_models.RunDocWashingRequest,
|
|
12186
|
+
) -> ai_miao_bi_20230801_models.RunDocWashingResponse:
|
|
12187
|
+
"""
|
|
12188
|
+
@summary 文档改写
|
|
12189
|
+
|
|
12190
|
+
@param request: RunDocWashingRequest
|
|
12191
|
+
@return: RunDocWashingResponse
|
|
12192
|
+
"""
|
|
12193
|
+
runtime = util_models.RuntimeOptions()
|
|
12194
|
+
return await self.run_doc_washing_with_options_async(request, runtime)
|
|
12195
|
+
|
|
12004
12196
|
def run_expand_content_with_options(
|
|
12005
12197
|
self,
|
|
12006
12198
|
request: ai_miao_bi_20230801_models.RunExpandContentRequest,
|
|
@@ -12113,6 +12305,250 @@ class Client(OpenApiClient):
|
|
|
12113
12305
|
runtime = util_models.RuntimeOptions()
|
|
12114
12306
|
return await self.run_expand_content_with_options_async(request, runtime)
|
|
12115
12307
|
|
|
12308
|
+
def run_generate_questions_with_options(
|
|
12309
|
+
self,
|
|
12310
|
+
request: ai_miao_bi_20230801_models.RunGenerateQuestionsRequest,
|
|
12311
|
+
runtime: util_models.RuntimeOptions,
|
|
12312
|
+
) -> ai_miao_bi_20230801_models.RunGenerateQuestionsResponse:
|
|
12313
|
+
"""
|
|
12314
|
+
@summary 妙读猜你想问接口
|
|
12315
|
+
|
|
12316
|
+
@param request: RunGenerateQuestionsRequest
|
|
12317
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12318
|
+
@return: RunGenerateQuestionsResponse
|
|
12319
|
+
"""
|
|
12320
|
+
UtilClient.validate_model(request)
|
|
12321
|
+
body = {}
|
|
12322
|
+
if not UtilClient.is_unset(request.doc_id):
|
|
12323
|
+
body['DocId'] = request.doc_id
|
|
12324
|
+
if not UtilClient.is_unset(request.reference_content):
|
|
12325
|
+
body['ReferenceContent'] = request.reference_content
|
|
12326
|
+
if not UtilClient.is_unset(request.session_id):
|
|
12327
|
+
body['SessionId'] = request.session_id
|
|
12328
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
12329
|
+
body['WorkspaceId'] = request.workspace_id
|
|
12330
|
+
req = open_api_models.OpenApiRequest(
|
|
12331
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
12332
|
+
)
|
|
12333
|
+
params = open_api_models.Params(
|
|
12334
|
+
action='RunGenerateQuestions',
|
|
12335
|
+
version='2023-08-01',
|
|
12336
|
+
protocol='HTTPS',
|
|
12337
|
+
pathname='/',
|
|
12338
|
+
method='POST',
|
|
12339
|
+
auth_type='AK',
|
|
12340
|
+
style='RPC',
|
|
12341
|
+
req_body_type='formData',
|
|
12342
|
+
body_type='json'
|
|
12343
|
+
)
|
|
12344
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
12345
|
+
return TeaCore.from_map(
|
|
12346
|
+
ai_miao_bi_20230801_models.RunGenerateQuestionsResponse(),
|
|
12347
|
+
self.call_api(params, req, runtime)
|
|
12348
|
+
)
|
|
12349
|
+
else:
|
|
12350
|
+
return TeaCore.from_map(
|
|
12351
|
+
ai_miao_bi_20230801_models.RunGenerateQuestionsResponse(),
|
|
12352
|
+
self.execute(params, req, runtime)
|
|
12353
|
+
)
|
|
12354
|
+
|
|
12355
|
+
async def run_generate_questions_with_options_async(
|
|
12356
|
+
self,
|
|
12357
|
+
request: ai_miao_bi_20230801_models.RunGenerateQuestionsRequest,
|
|
12358
|
+
runtime: util_models.RuntimeOptions,
|
|
12359
|
+
) -> ai_miao_bi_20230801_models.RunGenerateQuestionsResponse:
|
|
12360
|
+
"""
|
|
12361
|
+
@summary 妙读猜你想问接口
|
|
12362
|
+
|
|
12363
|
+
@param request: RunGenerateQuestionsRequest
|
|
12364
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12365
|
+
@return: RunGenerateQuestionsResponse
|
|
12366
|
+
"""
|
|
12367
|
+
UtilClient.validate_model(request)
|
|
12368
|
+
body = {}
|
|
12369
|
+
if not UtilClient.is_unset(request.doc_id):
|
|
12370
|
+
body['DocId'] = request.doc_id
|
|
12371
|
+
if not UtilClient.is_unset(request.reference_content):
|
|
12372
|
+
body['ReferenceContent'] = request.reference_content
|
|
12373
|
+
if not UtilClient.is_unset(request.session_id):
|
|
12374
|
+
body['SessionId'] = request.session_id
|
|
12375
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
12376
|
+
body['WorkspaceId'] = request.workspace_id
|
|
12377
|
+
req = open_api_models.OpenApiRequest(
|
|
12378
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
12379
|
+
)
|
|
12380
|
+
params = open_api_models.Params(
|
|
12381
|
+
action='RunGenerateQuestions',
|
|
12382
|
+
version='2023-08-01',
|
|
12383
|
+
protocol='HTTPS',
|
|
12384
|
+
pathname='/',
|
|
12385
|
+
method='POST',
|
|
12386
|
+
auth_type='AK',
|
|
12387
|
+
style='RPC',
|
|
12388
|
+
req_body_type='formData',
|
|
12389
|
+
body_type='json'
|
|
12390
|
+
)
|
|
12391
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
12392
|
+
return TeaCore.from_map(
|
|
12393
|
+
ai_miao_bi_20230801_models.RunGenerateQuestionsResponse(),
|
|
12394
|
+
await self.call_api_async(params, req, runtime)
|
|
12395
|
+
)
|
|
12396
|
+
else:
|
|
12397
|
+
return TeaCore.from_map(
|
|
12398
|
+
ai_miao_bi_20230801_models.RunGenerateQuestionsResponse(),
|
|
12399
|
+
await self.execute_async(params, req, runtime)
|
|
12400
|
+
)
|
|
12401
|
+
|
|
12402
|
+
def run_generate_questions(
|
|
12403
|
+
self,
|
|
12404
|
+
request: ai_miao_bi_20230801_models.RunGenerateQuestionsRequest,
|
|
12405
|
+
) -> ai_miao_bi_20230801_models.RunGenerateQuestionsResponse:
|
|
12406
|
+
"""
|
|
12407
|
+
@summary 妙读猜你想问接口
|
|
12408
|
+
|
|
12409
|
+
@param request: RunGenerateQuestionsRequest
|
|
12410
|
+
@return: RunGenerateQuestionsResponse
|
|
12411
|
+
"""
|
|
12412
|
+
runtime = util_models.RuntimeOptions()
|
|
12413
|
+
return self.run_generate_questions_with_options(request, runtime)
|
|
12414
|
+
|
|
12415
|
+
async def run_generate_questions_async(
|
|
12416
|
+
self,
|
|
12417
|
+
request: ai_miao_bi_20230801_models.RunGenerateQuestionsRequest,
|
|
12418
|
+
) -> ai_miao_bi_20230801_models.RunGenerateQuestionsResponse:
|
|
12419
|
+
"""
|
|
12420
|
+
@summary 妙读猜你想问接口
|
|
12421
|
+
|
|
12422
|
+
@param request: RunGenerateQuestionsRequest
|
|
12423
|
+
@return: RunGenerateQuestionsResponse
|
|
12424
|
+
"""
|
|
12425
|
+
runtime = util_models.RuntimeOptions()
|
|
12426
|
+
return await self.run_generate_questions_with_options_async(request, runtime)
|
|
12427
|
+
|
|
12428
|
+
def run_hotword_with_options(
|
|
12429
|
+
self,
|
|
12430
|
+
request: ai_miao_bi_20230801_models.RunHotwordRequest,
|
|
12431
|
+
runtime: util_models.RuntimeOptions,
|
|
12432
|
+
) -> ai_miao_bi_20230801_models.RunHotwordResponse:
|
|
12433
|
+
"""
|
|
12434
|
+
@summary 妙读文档关键词抽取接口
|
|
12435
|
+
|
|
12436
|
+
@param request: RunHotwordRequest
|
|
12437
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12438
|
+
@return: RunHotwordResponse
|
|
12439
|
+
"""
|
|
12440
|
+
UtilClient.validate_model(request)
|
|
12441
|
+
body = {}
|
|
12442
|
+
if not UtilClient.is_unset(request.doc_id):
|
|
12443
|
+
body['DocId'] = request.doc_id
|
|
12444
|
+
if not UtilClient.is_unset(request.prompt):
|
|
12445
|
+
body['Prompt'] = request.prompt
|
|
12446
|
+
if not UtilClient.is_unset(request.reference_content):
|
|
12447
|
+
body['ReferenceContent'] = request.reference_content
|
|
12448
|
+
if not UtilClient.is_unset(request.session_id):
|
|
12449
|
+
body['SessionId'] = request.session_id
|
|
12450
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
12451
|
+
body['WorkspaceId'] = request.workspace_id
|
|
12452
|
+
req = open_api_models.OpenApiRequest(
|
|
12453
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
12454
|
+
)
|
|
12455
|
+
params = open_api_models.Params(
|
|
12456
|
+
action='RunHotword',
|
|
12457
|
+
version='2023-08-01',
|
|
12458
|
+
protocol='HTTPS',
|
|
12459
|
+
pathname='/',
|
|
12460
|
+
method='POST',
|
|
12461
|
+
auth_type='AK',
|
|
12462
|
+
style='RPC',
|
|
12463
|
+
req_body_type='formData',
|
|
12464
|
+
body_type='json'
|
|
12465
|
+
)
|
|
12466
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
12467
|
+
return TeaCore.from_map(
|
|
12468
|
+
ai_miao_bi_20230801_models.RunHotwordResponse(),
|
|
12469
|
+
self.call_api(params, req, runtime)
|
|
12470
|
+
)
|
|
12471
|
+
else:
|
|
12472
|
+
return TeaCore.from_map(
|
|
12473
|
+
ai_miao_bi_20230801_models.RunHotwordResponse(),
|
|
12474
|
+
self.execute(params, req, runtime)
|
|
12475
|
+
)
|
|
12476
|
+
|
|
12477
|
+
async def run_hotword_with_options_async(
|
|
12478
|
+
self,
|
|
12479
|
+
request: ai_miao_bi_20230801_models.RunHotwordRequest,
|
|
12480
|
+
runtime: util_models.RuntimeOptions,
|
|
12481
|
+
) -> ai_miao_bi_20230801_models.RunHotwordResponse:
|
|
12482
|
+
"""
|
|
12483
|
+
@summary 妙读文档关键词抽取接口
|
|
12484
|
+
|
|
12485
|
+
@param request: RunHotwordRequest
|
|
12486
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12487
|
+
@return: RunHotwordResponse
|
|
12488
|
+
"""
|
|
12489
|
+
UtilClient.validate_model(request)
|
|
12490
|
+
body = {}
|
|
12491
|
+
if not UtilClient.is_unset(request.doc_id):
|
|
12492
|
+
body['DocId'] = request.doc_id
|
|
12493
|
+
if not UtilClient.is_unset(request.prompt):
|
|
12494
|
+
body['Prompt'] = request.prompt
|
|
12495
|
+
if not UtilClient.is_unset(request.reference_content):
|
|
12496
|
+
body['ReferenceContent'] = request.reference_content
|
|
12497
|
+
if not UtilClient.is_unset(request.session_id):
|
|
12498
|
+
body['SessionId'] = request.session_id
|
|
12499
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
12500
|
+
body['WorkspaceId'] = request.workspace_id
|
|
12501
|
+
req = open_api_models.OpenApiRequest(
|
|
12502
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
12503
|
+
)
|
|
12504
|
+
params = open_api_models.Params(
|
|
12505
|
+
action='RunHotword',
|
|
12506
|
+
version='2023-08-01',
|
|
12507
|
+
protocol='HTTPS',
|
|
12508
|
+
pathname='/',
|
|
12509
|
+
method='POST',
|
|
12510
|
+
auth_type='AK',
|
|
12511
|
+
style='RPC',
|
|
12512
|
+
req_body_type='formData',
|
|
12513
|
+
body_type='json'
|
|
12514
|
+
)
|
|
12515
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
12516
|
+
return TeaCore.from_map(
|
|
12517
|
+
ai_miao_bi_20230801_models.RunHotwordResponse(),
|
|
12518
|
+
await self.call_api_async(params, req, runtime)
|
|
12519
|
+
)
|
|
12520
|
+
else:
|
|
12521
|
+
return TeaCore.from_map(
|
|
12522
|
+
ai_miao_bi_20230801_models.RunHotwordResponse(),
|
|
12523
|
+
await self.execute_async(params, req, runtime)
|
|
12524
|
+
)
|
|
12525
|
+
|
|
12526
|
+
def run_hotword(
|
|
12527
|
+
self,
|
|
12528
|
+
request: ai_miao_bi_20230801_models.RunHotwordRequest,
|
|
12529
|
+
) -> ai_miao_bi_20230801_models.RunHotwordResponse:
|
|
12530
|
+
"""
|
|
12531
|
+
@summary 妙读文档关键词抽取接口
|
|
12532
|
+
|
|
12533
|
+
@param request: RunHotwordRequest
|
|
12534
|
+
@return: RunHotwordResponse
|
|
12535
|
+
"""
|
|
12536
|
+
runtime = util_models.RuntimeOptions()
|
|
12537
|
+
return self.run_hotword_with_options(request, runtime)
|
|
12538
|
+
|
|
12539
|
+
async def run_hotword_async(
|
|
12540
|
+
self,
|
|
12541
|
+
request: ai_miao_bi_20230801_models.RunHotwordRequest,
|
|
12542
|
+
) -> ai_miao_bi_20230801_models.RunHotwordResponse:
|
|
12543
|
+
"""
|
|
12544
|
+
@summary 妙读文档关键词抽取接口
|
|
12545
|
+
|
|
12546
|
+
@param request: RunHotwordRequest
|
|
12547
|
+
@return: RunHotwordResponse
|
|
12548
|
+
"""
|
|
12549
|
+
runtime = util_models.RuntimeOptions()
|
|
12550
|
+
return await self.run_hotword_with_options_async(request, runtime)
|
|
12551
|
+
|
|
12116
12552
|
def run_keywords_extraction_generation_with_options(
|
|
12117
12553
|
self,
|
|
12118
12554
|
tmp_req: ai_miao_bi_20230801_models.RunKeywordsExtractionGenerationRequest,
|