alibabacloud-aimiaobi20230801 1.18.0__tar.gz → 1.19.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.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/ChangeLog.md +4 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.19.0/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/alibabacloud_aimiaobi20230801/client.py +412 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/alibabacloud_aimiaobi20230801/models.py +2132 -1082
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/setup.py +1 -1
- alibabacloud_aimiaobi20230801-1.18.0/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.18.0 → alibabacloud_aimiaobi20230801-1.19.0}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.19.0'
|
|
@@ -9517,6 +9517,126 @@ class Client(OpenApiClient):
|
|
|
9517
9517
|
runtime = util_models.RuntimeOptions()
|
|
9518
9518
|
return await self.list_search_tasks_with_options_async(request, runtime)
|
|
9519
9519
|
|
|
9520
|
+
def list_style_learning_result_with_options(
|
|
9521
|
+
self,
|
|
9522
|
+
request: ai_miao_bi_20230801_models.ListStyleLearningResultRequest,
|
|
9523
|
+
runtime: util_models.RuntimeOptions,
|
|
9524
|
+
) -> ai_miao_bi_20230801_models.ListStyleLearningResultResponse:
|
|
9525
|
+
"""
|
|
9526
|
+
@summary 获取文体学习分析结果列表
|
|
9527
|
+
|
|
9528
|
+
@param request: ListStyleLearningResultRequest
|
|
9529
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
9530
|
+
@return: ListStyleLearningResultResponse
|
|
9531
|
+
"""
|
|
9532
|
+
UtilClient.validate_model(request)
|
|
9533
|
+
query = {}
|
|
9534
|
+
if not UtilClient.is_unset(request.agent_key):
|
|
9535
|
+
query['AgentKey'] = request.agent_key
|
|
9536
|
+
body = {}
|
|
9537
|
+
if not UtilClient.is_unset(request.current):
|
|
9538
|
+
body['Current'] = request.current
|
|
9539
|
+
if not UtilClient.is_unset(request.size):
|
|
9540
|
+
body['Size'] = request.size
|
|
9541
|
+
req = open_api_models.OpenApiRequest(
|
|
9542
|
+
query=OpenApiUtilClient.query(query),
|
|
9543
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
9544
|
+
)
|
|
9545
|
+
params = open_api_models.Params(
|
|
9546
|
+
action='ListStyleLearningResult',
|
|
9547
|
+
version='2023-08-01',
|
|
9548
|
+
protocol='HTTPS',
|
|
9549
|
+
pathname='/',
|
|
9550
|
+
method='POST',
|
|
9551
|
+
auth_type='AK',
|
|
9552
|
+
style='RPC',
|
|
9553
|
+
req_body_type='formData',
|
|
9554
|
+
body_type='json'
|
|
9555
|
+
)
|
|
9556
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
9557
|
+
return TeaCore.from_map(
|
|
9558
|
+
ai_miao_bi_20230801_models.ListStyleLearningResultResponse(),
|
|
9559
|
+
self.call_api(params, req, runtime)
|
|
9560
|
+
)
|
|
9561
|
+
else:
|
|
9562
|
+
return TeaCore.from_map(
|
|
9563
|
+
ai_miao_bi_20230801_models.ListStyleLearningResultResponse(),
|
|
9564
|
+
self.execute(params, req, runtime)
|
|
9565
|
+
)
|
|
9566
|
+
|
|
9567
|
+
async def list_style_learning_result_with_options_async(
|
|
9568
|
+
self,
|
|
9569
|
+
request: ai_miao_bi_20230801_models.ListStyleLearningResultRequest,
|
|
9570
|
+
runtime: util_models.RuntimeOptions,
|
|
9571
|
+
) -> ai_miao_bi_20230801_models.ListStyleLearningResultResponse:
|
|
9572
|
+
"""
|
|
9573
|
+
@summary 获取文体学习分析结果列表
|
|
9574
|
+
|
|
9575
|
+
@param request: ListStyleLearningResultRequest
|
|
9576
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
9577
|
+
@return: ListStyleLearningResultResponse
|
|
9578
|
+
"""
|
|
9579
|
+
UtilClient.validate_model(request)
|
|
9580
|
+
query = {}
|
|
9581
|
+
if not UtilClient.is_unset(request.agent_key):
|
|
9582
|
+
query['AgentKey'] = request.agent_key
|
|
9583
|
+
body = {}
|
|
9584
|
+
if not UtilClient.is_unset(request.current):
|
|
9585
|
+
body['Current'] = request.current
|
|
9586
|
+
if not UtilClient.is_unset(request.size):
|
|
9587
|
+
body['Size'] = request.size
|
|
9588
|
+
req = open_api_models.OpenApiRequest(
|
|
9589
|
+
query=OpenApiUtilClient.query(query),
|
|
9590
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
9591
|
+
)
|
|
9592
|
+
params = open_api_models.Params(
|
|
9593
|
+
action='ListStyleLearningResult',
|
|
9594
|
+
version='2023-08-01',
|
|
9595
|
+
protocol='HTTPS',
|
|
9596
|
+
pathname='/',
|
|
9597
|
+
method='POST',
|
|
9598
|
+
auth_type='AK',
|
|
9599
|
+
style='RPC',
|
|
9600
|
+
req_body_type='formData',
|
|
9601
|
+
body_type='json'
|
|
9602
|
+
)
|
|
9603
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
9604
|
+
return TeaCore.from_map(
|
|
9605
|
+
ai_miao_bi_20230801_models.ListStyleLearningResultResponse(),
|
|
9606
|
+
await self.call_api_async(params, req, runtime)
|
|
9607
|
+
)
|
|
9608
|
+
else:
|
|
9609
|
+
return TeaCore.from_map(
|
|
9610
|
+
ai_miao_bi_20230801_models.ListStyleLearningResultResponse(),
|
|
9611
|
+
await self.execute_async(params, req, runtime)
|
|
9612
|
+
)
|
|
9613
|
+
|
|
9614
|
+
def list_style_learning_result(
|
|
9615
|
+
self,
|
|
9616
|
+
request: ai_miao_bi_20230801_models.ListStyleLearningResultRequest,
|
|
9617
|
+
) -> ai_miao_bi_20230801_models.ListStyleLearningResultResponse:
|
|
9618
|
+
"""
|
|
9619
|
+
@summary 获取文体学习分析结果列表
|
|
9620
|
+
|
|
9621
|
+
@param request: ListStyleLearningResultRequest
|
|
9622
|
+
@return: ListStyleLearningResultResponse
|
|
9623
|
+
"""
|
|
9624
|
+
runtime = util_models.RuntimeOptions()
|
|
9625
|
+
return self.list_style_learning_result_with_options(request, runtime)
|
|
9626
|
+
|
|
9627
|
+
async def list_style_learning_result_async(
|
|
9628
|
+
self,
|
|
9629
|
+
request: ai_miao_bi_20230801_models.ListStyleLearningResultRequest,
|
|
9630
|
+
) -> ai_miao_bi_20230801_models.ListStyleLearningResultResponse:
|
|
9631
|
+
"""
|
|
9632
|
+
@summary 获取文体学习分析结果列表
|
|
9633
|
+
|
|
9634
|
+
@param request: ListStyleLearningResultRequest
|
|
9635
|
+
@return: ListStyleLearningResultResponse
|
|
9636
|
+
"""
|
|
9637
|
+
runtime = util_models.RuntimeOptions()
|
|
9638
|
+
return await self.list_style_learning_result_with_options_async(request, runtime)
|
|
9639
|
+
|
|
9520
9640
|
def list_timed_view_attitude_with_options(
|
|
9521
9641
|
self,
|
|
9522
9642
|
request: ai_miao_bi_20230801_models.ListTimedViewAttitudeRequest,
|
|
@@ -10585,6 +10705,166 @@ class Client(OpenApiClient):
|
|
|
10585
10705
|
runtime = util_models.RuntimeOptions()
|
|
10586
10706
|
return await self.run_book_smart_card_with_options_async(request, runtime)
|
|
10587
10707
|
|
|
10708
|
+
def run_comment_generation_with_options(
|
|
10709
|
+
self,
|
|
10710
|
+
tmp_req: ai_miao_bi_20230801_models.RunCommentGenerationRequest,
|
|
10711
|
+
runtime: util_models.RuntimeOptions,
|
|
10712
|
+
) -> ai_miao_bi_20230801_models.RunCommentGenerationResponse:
|
|
10713
|
+
"""
|
|
10714
|
+
@summary 客户之声预测
|
|
10715
|
+
|
|
10716
|
+
@param tmp_req: RunCommentGenerationRequest
|
|
10717
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
10718
|
+
@return: RunCommentGenerationResponse
|
|
10719
|
+
"""
|
|
10720
|
+
UtilClient.validate_model(tmp_req)
|
|
10721
|
+
request = ai_miao_bi_20230801_models.RunCommentGenerationShrinkRequest()
|
|
10722
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
10723
|
+
if not UtilClient.is_unset(tmp_req.length_range):
|
|
10724
|
+
request.length_range_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.length_range, 'LengthRange', 'json')
|
|
10725
|
+
if not UtilClient.is_unset(tmp_req.sentiment):
|
|
10726
|
+
request.sentiment_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.sentiment, 'Sentiment', 'json')
|
|
10727
|
+
if not UtilClient.is_unset(tmp_req.type):
|
|
10728
|
+
request.type_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.type, 'Type', 'json')
|
|
10729
|
+
body = {}
|
|
10730
|
+
if not UtilClient.is_unset(request.allow_emoji):
|
|
10731
|
+
body['AllowEmoji'] = request.allow_emoji
|
|
10732
|
+
if not UtilClient.is_unset(request.extra_info):
|
|
10733
|
+
body['ExtraInfo'] = request.extra_info
|
|
10734
|
+
if not UtilClient.is_unset(request.length):
|
|
10735
|
+
body['Length'] = request.length
|
|
10736
|
+
if not UtilClient.is_unset(request.length_range_shrink):
|
|
10737
|
+
body['LengthRange'] = request.length_range_shrink
|
|
10738
|
+
if not UtilClient.is_unset(request.num_comments):
|
|
10739
|
+
body['NumComments'] = request.num_comments
|
|
10740
|
+
if not UtilClient.is_unset(request.sentiment_shrink):
|
|
10741
|
+
body['Sentiment'] = request.sentiment_shrink
|
|
10742
|
+
if not UtilClient.is_unset(request.source_material):
|
|
10743
|
+
body['SourceMaterial'] = request.source_material
|
|
10744
|
+
if not UtilClient.is_unset(request.style):
|
|
10745
|
+
body['Style'] = request.style
|
|
10746
|
+
if not UtilClient.is_unset(request.type_shrink):
|
|
10747
|
+
body['Type'] = request.type_shrink
|
|
10748
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
10749
|
+
body['WorkspaceId'] = request.workspace_id
|
|
10750
|
+
req = open_api_models.OpenApiRequest(
|
|
10751
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
10752
|
+
)
|
|
10753
|
+
params = open_api_models.Params(
|
|
10754
|
+
action='RunCommentGeneration',
|
|
10755
|
+
version='2023-08-01',
|
|
10756
|
+
protocol='HTTPS',
|
|
10757
|
+
pathname='/',
|
|
10758
|
+
method='POST',
|
|
10759
|
+
auth_type='AK',
|
|
10760
|
+
style='RPC',
|
|
10761
|
+
req_body_type='formData',
|
|
10762
|
+
body_type='json'
|
|
10763
|
+
)
|
|
10764
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
10765
|
+
return TeaCore.from_map(
|
|
10766
|
+
ai_miao_bi_20230801_models.RunCommentGenerationResponse(),
|
|
10767
|
+
self.call_api(params, req, runtime)
|
|
10768
|
+
)
|
|
10769
|
+
else:
|
|
10770
|
+
return TeaCore.from_map(
|
|
10771
|
+
ai_miao_bi_20230801_models.RunCommentGenerationResponse(),
|
|
10772
|
+
self.execute(params, req, runtime)
|
|
10773
|
+
)
|
|
10774
|
+
|
|
10775
|
+
async def run_comment_generation_with_options_async(
|
|
10776
|
+
self,
|
|
10777
|
+
tmp_req: ai_miao_bi_20230801_models.RunCommentGenerationRequest,
|
|
10778
|
+
runtime: util_models.RuntimeOptions,
|
|
10779
|
+
) -> ai_miao_bi_20230801_models.RunCommentGenerationResponse:
|
|
10780
|
+
"""
|
|
10781
|
+
@summary 客户之声预测
|
|
10782
|
+
|
|
10783
|
+
@param tmp_req: RunCommentGenerationRequest
|
|
10784
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
10785
|
+
@return: RunCommentGenerationResponse
|
|
10786
|
+
"""
|
|
10787
|
+
UtilClient.validate_model(tmp_req)
|
|
10788
|
+
request = ai_miao_bi_20230801_models.RunCommentGenerationShrinkRequest()
|
|
10789
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
10790
|
+
if not UtilClient.is_unset(tmp_req.length_range):
|
|
10791
|
+
request.length_range_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.length_range, 'LengthRange', 'json')
|
|
10792
|
+
if not UtilClient.is_unset(tmp_req.sentiment):
|
|
10793
|
+
request.sentiment_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.sentiment, 'Sentiment', 'json')
|
|
10794
|
+
if not UtilClient.is_unset(tmp_req.type):
|
|
10795
|
+
request.type_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.type, 'Type', 'json')
|
|
10796
|
+
body = {}
|
|
10797
|
+
if not UtilClient.is_unset(request.allow_emoji):
|
|
10798
|
+
body['AllowEmoji'] = request.allow_emoji
|
|
10799
|
+
if not UtilClient.is_unset(request.extra_info):
|
|
10800
|
+
body['ExtraInfo'] = request.extra_info
|
|
10801
|
+
if not UtilClient.is_unset(request.length):
|
|
10802
|
+
body['Length'] = request.length
|
|
10803
|
+
if not UtilClient.is_unset(request.length_range_shrink):
|
|
10804
|
+
body['LengthRange'] = request.length_range_shrink
|
|
10805
|
+
if not UtilClient.is_unset(request.num_comments):
|
|
10806
|
+
body['NumComments'] = request.num_comments
|
|
10807
|
+
if not UtilClient.is_unset(request.sentiment_shrink):
|
|
10808
|
+
body['Sentiment'] = request.sentiment_shrink
|
|
10809
|
+
if not UtilClient.is_unset(request.source_material):
|
|
10810
|
+
body['SourceMaterial'] = request.source_material
|
|
10811
|
+
if not UtilClient.is_unset(request.style):
|
|
10812
|
+
body['Style'] = request.style
|
|
10813
|
+
if not UtilClient.is_unset(request.type_shrink):
|
|
10814
|
+
body['Type'] = request.type_shrink
|
|
10815
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
10816
|
+
body['WorkspaceId'] = request.workspace_id
|
|
10817
|
+
req = open_api_models.OpenApiRequest(
|
|
10818
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
10819
|
+
)
|
|
10820
|
+
params = open_api_models.Params(
|
|
10821
|
+
action='RunCommentGeneration',
|
|
10822
|
+
version='2023-08-01',
|
|
10823
|
+
protocol='HTTPS',
|
|
10824
|
+
pathname='/',
|
|
10825
|
+
method='POST',
|
|
10826
|
+
auth_type='AK',
|
|
10827
|
+
style='RPC',
|
|
10828
|
+
req_body_type='formData',
|
|
10829
|
+
body_type='json'
|
|
10830
|
+
)
|
|
10831
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
10832
|
+
return TeaCore.from_map(
|
|
10833
|
+
ai_miao_bi_20230801_models.RunCommentGenerationResponse(),
|
|
10834
|
+
await self.call_api_async(params, req, runtime)
|
|
10835
|
+
)
|
|
10836
|
+
else:
|
|
10837
|
+
return TeaCore.from_map(
|
|
10838
|
+
ai_miao_bi_20230801_models.RunCommentGenerationResponse(),
|
|
10839
|
+
await self.execute_async(params, req, runtime)
|
|
10840
|
+
)
|
|
10841
|
+
|
|
10842
|
+
def run_comment_generation(
|
|
10843
|
+
self,
|
|
10844
|
+
request: ai_miao_bi_20230801_models.RunCommentGenerationRequest,
|
|
10845
|
+
) -> ai_miao_bi_20230801_models.RunCommentGenerationResponse:
|
|
10846
|
+
"""
|
|
10847
|
+
@summary 客户之声预测
|
|
10848
|
+
|
|
10849
|
+
@param request: RunCommentGenerationRequest
|
|
10850
|
+
@return: RunCommentGenerationResponse
|
|
10851
|
+
"""
|
|
10852
|
+
runtime = util_models.RuntimeOptions()
|
|
10853
|
+
return self.run_comment_generation_with_options(request, runtime)
|
|
10854
|
+
|
|
10855
|
+
async def run_comment_generation_async(
|
|
10856
|
+
self,
|
|
10857
|
+
request: ai_miao_bi_20230801_models.RunCommentGenerationRequest,
|
|
10858
|
+
) -> ai_miao_bi_20230801_models.RunCommentGenerationResponse:
|
|
10859
|
+
"""
|
|
10860
|
+
@summary 客户之声预测
|
|
10861
|
+
|
|
10862
|
+
@param request: RunCommentGenerationRequest
|
|
10863
|
+
@return: RunCommentGenerationResponse
|
|
10864
|
+
"""
|
|
10865
|
+
runtime = util_models.RuntimeOptions()
|
|
10866
|
+
return await self.run_comment_generation_with_options_async(request, runtime)
|
|
10867
|
+
|
|
10588
10868
|
def run_continue_content_with_options(
|
|
10589
10869
|
self,
|
|
10590
10870
|
request: ai_miao_bi_20230801_models.RunContinueContentRequest,
|
|
@@ -11957,6 +12237,138 @@ class Client(OpenApiClient):
|
|
|
11957
12237
|
runtime = util_models.RuntimeOptions()
|
|
11958
12238
|
return await self.run_keywords_extraction_generation_with_options_async(request, runtime)
|
|
11959
12239
|
|
|
12240
|
+
def run_multi_doc_introduction_with_options(
|
|
12241
|
+
self,
|
|
12242
|
+
tmp_req: ai_miao_bi_20230801_models.RunMultiDocIntroductionRequest,
|
|
12243
|
+
runtime: util_models.RuntimeOptions,
|
|
12244
|
+
) -> ai_miao_bi_20230801_models.RunMultiDocIntroductionResponse:
|
|
12245
|
+
"""
|
|
12246
|
+
@summary 文档批量导读
|
|
12247
|
+
|
|
12248
|
+
@param tmp_req: RunMultiDocIntroductionRequest
|
|
12249
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12250
|
+
@return: RunMultiDocIntroductionResponse
|
|
12251
|
+
"""
|
|
12252
|
+
UtilClient.validate_model(tmp_req)
|
|
12253
|
+
request = ai_miao_bi_20230801_models.RunMultiDocIntroductionShrinkRequest()
|
|
12254
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
12255
|
+
if not UtilClient.is_unset(tmp_req.doc_ids):
|
|
12256
|
+
request.doc_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.doc_ids, 'DocIds', 'json')
|
|
12257
|
+
body = {}
|
|
12258
|
+
if not UtilClient.is_unset(request.doc_ids_shrink):
|
|
12259
|
+
body['DocIds'] = request.doc_ids_shrink
|
|
12260
|
+
if not UtilClient.is_unset(request.key_point_prompt):
|
|
12261
|
+
body['KeyPointPrompt'] = request.key_point_prompt
|
|
12262
|
+
if not UtilClient.is_unset(request.session_id):
|
|
12263
|
+
body['SessionId'] = request.session_id
|
|
12264
|
+
if not UtilClient.is_unset(request.summary_prompt):
|
|
12265
|
+
body['SummaryPrompt'] = request.summary_prompt
|
|
12266
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
12267
|
+
body['WorkspaceId'] = request.workspace_id
|
|
12268
|
+
req = open_api_models.OpenApiRequest(
|
|
12269
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
12270
|
+
)
|
|
12271
|
+
params = open_api_models.Params(
|
|
12272
|
+
action='RunMultiDocIntroduction',
|
|
12273
|
+
version='2023-08-01',
|
|
12274
|
+
protocol='HTTPS',
|
|
12275
|
+
pathname='/',
|
|
12276
|
+
method='POST',
|
|
12277
|
+
auth_type='AK',
|
|
12278
|
+
style='RPC',
|
|
12279
|
+
req_body_type='formData',
|
|
12280
|
+
body_type='json'
|
|
12281
|
+
)
|
|
12282
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
12283
|
+
return TeaCore.from_map(
|
|
12284
|
+
ai_miao_bi_20230801_models.RunMultiDocIntroductionResponse(),
|
|
12285
|
+
self.call_api(params, req, runtime)
|
|
12286
|
+
)
|
|
12287
|
+
else:
|
|
12288
|
+
return TeaCore.from_map(
|
|
12289
|
+
ai_miao_bi_20230801_models.RunMultiDocIntroductionResponse(),
|
|
12290
|
+
self.execute(params, req, runtime)
|
|
12291
|
+
)
|
|
12292
|
+
|
|
12293
|
+
async def run_multi_doc_introduction_with_options_async(
|
|
12294
|
+
self,
|
|
12295
|
+
tmp_req: ai_miao_bi_20230801_models.RunMultiDocIntroductionRequest,
|
|
12296
|
+
runtime: util_models.RuntimeOptions,
|
|
12297
|
+
) -> ai_miao_bi_20230801_models.RunMultiDocIntroductionResponse:
|
|
12298
|
+
"""
|
|
12299
|
+
@summary 文档批量导读
|
|
12300
|
+
|
|
12301
|
+
@param tmp_req: RunMultiDocIntroductionRequest
|
|
12302
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12303
|
+
@return: RunMultiDocIntroductionResponse
|
|
12304
|
+
"""
|
|
12305
|
+
UtilClient.validate_model(tmp_req)
|
|
12306
|
+
request = ai_miao_bi_20230801_models.RunMultiDocIntroductionShrinkRequest()
|
|
12307
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
12308
|
+
if not UtilClient.is_unset(tmp_req.doc_ids):
|
|
12309
|
+
request.doc_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.doc_ids, 'DocIds', 'json')
|
|
12310
|
+
body = {}
|
|
12311
|
+
if not UtilClient.is_unset(request.doc_ids_shrink):
|
|
12312
|
+
body['DocIds'] = request.doc_ids_shrink
|
|
12313
|
+
if not UtilClient.is_unset(request.key_point_prompt):
|
|
12314
|
+
body['KeyPointPrompt'] = request.key_point_prompt
|
|
12315
|
+
if not UtilClient.is_unset(request.session_id):
|
|
12316
|
+
body['SessionId'] = request.session_id
|
|
12317
|
+
if not UtilClient.is_unset(request.summary_prompt):
|
|
12318
|
+
body['SummaryPrompt'] = request.summary_prompt
|
|
12319
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
12320
|
+
body['WorkspaceId'] = request.workspace_id
|
|
12321
|
+
req = open_api_models.OpenApiRequest(
|
|
12322
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
12323
|
+
)
|
|
12324
|
+
params = open_api_models.Params(
|
|
12325
|
+
action='RunMultiDocIntroduction',
|
|
12326
|
+
version='2023-08-01',
|
|
12327
|
+
protocol='HTTPS',
|
|
12328
|
+
pathname='/',
|
|
12329
|
+
method='POST',
|
|
12330
|
+
auth_type='AK',
|
|
12331
|
+
style='RPC',
|
|
12332
|
+
req_body_type='formData',
|
|
12333
|
+
body_type='json'
|
|
12334
|
+
)
|
|
12335
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
12336
|
+
return TeaCore.from_map(
|
|
12337
|
+
ai_miao_bi_20230801_models.RunMultiDocIntroductionResponse(),
|
|
12338
|
+
await self.call_api_async(params, req, runtime)
|
|
12339
|
+
)
|
|
12340
|
+
else:
|
|
12341
|
+
return TeaCore.from_map(
|
|
12342
|
+
ai_miao_bi_20230801_models.RunMultiDocIntroductionResponse(),
|
|
12343
|
+
await self.execute_async(params, req, runtime)
|
|
12344
|
+
)
|
|
12345
|
+
|
|
12346
|
+
def run_multi_doc_introduction(
|
|
12347
|
+
self,
|
|
12348
|
+
request: ai_miao_bi_20230801_models.RunMultiDocIntroductionRequest,
|
|
12349
|
+
) -> ai_miao_bi_20230801_models.RunMultiDocIntroductionResponse:
|
|
12350
|
+
"""
|
|
12351
|
+
@summary 文档批量导读
|
|
12352
|
+
|
|
12353
|
+
@param request: RunMultiDocIntroductionRequest
|
|
12354
|
+
@return: RunMultiDocIntroductionResponse
|
|
12355
|
+
"""
|
|
12356
|
+
runtime = util_models.RuntimeOptions()
|
|
12357
|
+
return self.run_multi_doc_introduction_with_options(request, runtime)
|
|
12358
|
+
|
|
12359
|
+
async def run_multi_doc_introduction_async(
|
|
12360
|
+
self,
|
|
12361
|
+
request: ai_miao_bi_20230801_models.RunMultiDocIntroductionRequest,
|
|
12362
|
+
) -> ai_miao_bi_20230801_models.RunMultiDocIntroductionResponse:
|
|
12363
|
+
"""
|
|
12364
|
+
@summary 文档批量导读
|
|
12365
|
+
|
|
12366
|
+
@param request: RunMultiDocIntroductionRequest
|
|
12367
|
+
@return: RunMultiDocIntroductionResponse
|
|
12368
|
+
"""
|
|
12369
|
+
runtime = util_models.RuntimeOptions()
|
|
12370
|
+
return await self.run_multi_doc_introduction_with_options_async(request, runtime)
|
|
12371
|
+
|
|
11960
12372
|
def run_search_generation_with_options(
|
|
11961
12373
|
self,
|
|
11962
12374
|
tmp_req: ai_miao_bi_20230801_models.RunSearchGenerationRequest,
|