alibabacloud-aimiaobi20230801 1.20.2__tar.gz → 1.20.4__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.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/ChangeLog.md +17 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.20.4/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/alibabacloud_aimiaobi20230801/client.py +28 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/alibabacloud_aimiaobi20230801/models.py +209 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/setup.py +1 -1
- alibabacloud_aimiaobi20230801-1.20.2/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.20.2 → alibabacloud_aimiaobi20230801-1.20.4}/setup.cfg +0 -0
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
2025-04-03 Version: 1.20.3
|
|
2
|
+
- Update API DeleteCustomText: add request parameters RegionId.
|
|
3
|
+
- Update API GetHotTopicBroadcast: add request parameters LocationQuery.
|
|
4
|
+
- Update API GetHotTopicBroadcast: add request parameters Locations.
|
|
5
|
+
- Update API GetHotTopicBroadcast: add request parameters Query.
|
|
6
|
+
- Update API GetHotTopicBroadcast: add response parameters Body.Data.Data.$.Locations.
|
|
7
|
+
- Update API RunSearchGeneration: add response parameters Body.Payload.Output.AgentContext.BizContext.GeneratedContent.TextSearchResult.
|
|
8
|
+
- Update API RunTitleGeneration: add request parameters DeduplicatedTitles.
|
|
9
|
+
- Update API RunTitleGeneration: add request parameters TitleCount.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
2025-03-18 Version: 1.20.2
|
|
13
|
+
- Update API RunSearchGeneration: update param AgentContext.
|
|
14
|
+
- Update API RunSearchSimilarArticles: update param ChatConfig.
|
|
15
|
+
- Update API RunSearchSimilarArticles: update response param.
|
|
16
|
+
|
|
17
|
+
|
|
1
18
|
2025-02-24 Version: 1.20.0
|
|
2
19
|
- Support API ListStyleLearningResult.
|
|
3
20
|
- Support API RunCommentGeneration.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.20.4'
|
|
@@ -4544,6 +4544,8 @@ class Client(OpenApiClient):
|
|
|
4544
4544
|
UtilClient.validate_model(tmp_req)
|
|
4545
4545
|
request = ai_miao_bi_20230801_models.GetHotTopicBroadcastShrinkRequest()
|
|
4546
4546
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
4547
|
+
if not UtilClient.is_unset(tmp_req.locations):
|
|
4548
|
+
request.locations_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.locations, 'Locations', 'json')
|
|
4547
4549
|
if not UtilClient.is_unset(tmp_req.step_for_custom_summary_style_config):
|
|
4548
4550
|
request.step_for_custom_summary_style_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_custom_summary_style_config, 'StepForCustomSummaryStyleConfig', 'json')
|
|
4549
4551
|
if not UtilClient.is_unset(tmp_req.step_for_news_broadcast_content_config):
|
|
@@ -4559,6 +4561,12 @@ class Client(OpenApiClient):
|
|
|
4559
4561
|
body['Current'] = request.current
|
|
4560
4562
|
if not UtilClient.is_unset(request.hot_topic_version):
|
|
4561
4563
|
body['HotTopicVersion'] = request.hot_topic_version
|
|
4564
|
+
if not UtilClient.is_unset(request.location_query):
|
|
4565
|
+
body['LocationQuery'] = request.location_query
|
|
4566
|
+
if not UtilClient.is_unset(request.locations_shrink):
|
|
4567
|
+
body['Locations'] = request.locations_shrink
|
|
4568
|
+
if not UtilClient.is_unset(request.query):
|
|
4569
|
+
body['Query'] = request.query
|
|
4562
4570
|
if not UtilClient.is_unset(request.size):
|
|
4563
4571
|
body['Size'] = request.size
|
|
4564
4572
|
if not UtilClient.is_unset(request.step_for_custom_summary_style_config_shrink):
|
|
@@ -4609,6 +4617,8 @@ class Client(OpenApiClient):
|
|
|
4609
4617
|
UtilClient.validate_model(tmp_req)
|
|
4610
4618
|
request = ai_miao_bi_20230801_models.GetHotTopicBroadcastShrinkRequest()
|
|
4611
4619
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
4620
|
+
if not UtilClient.is_unset(tmp_req.locations):
|
|
4621
|
+
request.locations_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.locations, 'Locations', 'json')
|
|
4612
4622
|
if not UtilClient.is_unset(tmp_req.step_for_custom_summary_style_config):
|
|
4613
4623
|
request.step_for_custom_summary_style_config_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.step_for_custom_summary_style_config, 'StepForCustomSummaryStyleConfig', 'json')
|
|
4614
4624
|
if not UtilClient.is_unset(tmp_req.step_for_news_broadcast_content_config):
|
|
@@ -4624,6 +4634,12 @@ class Client(OpenApiClient):
|
|
|
4624
4634
|
body['Current'] = request.current
|
|
4625
4635
|
if not UtilClient.is_unset(request.hot_topic_version):
|
|
4626
4636
|
body['HotTopicVersion'] = request.hot_topic_version
|
|
4637
|
+
if not UtilClient.is_unset(request.location_query):
|
|
4638
|
+
body['LocationQuery'] = request.location_query
|
|
4639
|
+
if not UtilClient.is_unset(request.locations_shrink):
|
|
4640
|
+
body['Locations'] = request.locations_shrink
|
|
4641
|
+
if not UtilClient.is_unset(request.query):
|
|
4642
|
+
body['Query'] = request.query
|
|
4627
4643
|
if not UtilClient.is_unset(request.size):
|
|
4628
4644
|
body['Size'] = request.size
|
|
4629
4645
|
if not UtilClient.is_unset(request.step_for_custom_summary_style_config_shrink):
|
|
@@ -13592,13 +13608,19 @@ class Client(OpenApiClient):
|
|
|
13592
13608
|
UtilClient.validate_model(tmp_req)
|
|
13593
13609
|
request = ai_miao_bi_20230801_models.RunTitleGenerationShrinkRequest()
|
|
13594
13610
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
13611
|
+
if not UtilClient.is_unset(tmp_req.deduplicated_titles):
|
|
13612
|
+
request.deduplicated_titles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.deduplicated_titles, 'DeduplicatedTitles', 'json')
|
|
13595
13613
|
if not UtilClient.is_unset(tmp_req.reference_data):
|
|
13596
13614
|
request.reference_data_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.reference_data, 'ReferenceData', 'json')
|
|
13597
13615
|
body = {}
|
|
13616
|
+
if not UtilClient.is_unset(request.deduplicated_titles_shrink):
|
|
13617
|
+
body['DeduplicatedTitles'] = request.deduplicated_titles_shrink
|
|
13598
13618
|
if not UtilClient.is_unset(request.reference_data_shrink):
|
|
13599
13619
|
body['ReferenceData'] = request.reference_data_shrink
|
|
13600
13620
|
if not UtilClient.is_unset(request.task_id):
|
|
13601
13621
|
body['TaskId'] = request.task_id
|
|
13622
|
+
if not UtilClient.is_unset(request.title_count):
|
|
13623
|
+
body['TitleCount'] = request.title_count
|
|
13602
13624
|
if not UtilClient.is_unset(request.workspace_id):
|
|
13603
13625
|
body['WorkspaceId'] = request.workspace_id
|
|
13604
13626
|
req = open_api_models.OpenApiRequest(
|
|
@@ -13641,13 +13663,19 @@ class Client(OpenApiClient):
|
|
|
13641
13663
|
UtilClient.validate_model(tmp_req)
|
|
13642
13664
|
request = ai_miao_bi_20230801_models.RunTitleGenerationShrinkRequest()
|
|
13643
13665
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
13666
|
+
if not UtilClient.is_unset(tmp_req.deduplicated_titles):
|
|
13667
|
+
request.deduplicated_titles_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.deduplicated_titles, 'DeduplicatedTitles', 'json')
|
|
13644
13668
|
if not UtilClient.is_unset(tmp_req.reference_data):
|
|
13645
13669
|
request.reference_data_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.reference_data, 'ReferenceData', 'json')
|
|
13646
13670
|
body = {}
|
|
13671
|
+
if not UtilClient.is_unset(request.deduplicated_titles_shrink):
|
|
13672
|
+
body['DeduplicatedTitles'] = request.deduplicated_titles_shrink
|
|
13647
13673
|
if not UtilClient.is_unset(request.reference_data_shrink):
|
|
13648
13674
|
body['ReferenceData'] = request.reference_data_shrink
|
|
13649
13675
|
if not UtilClient.is_unset(request.task_id):
|
|
13650
13676
|
body['TaskId'] = request.task_id
|
|
13677
|
+
if not UtilClient.is_unset(request.title_count):
|
|
13678
|
+
body['TitleCount'] = request.title_count
|
|
13651
13679
|
if not UtilClient.is_unset(request.workspace_id):
|
|
13652
13680
|
body['WorkspaceId'] = request.workspace_id
|
|
13653
13681
|
req = open_api_models.OpenApiRequest(
|
|
@@ -8843,6 +8843,9 @@ class GetHotTopicBroadcastRequest(TeaModel):
|
|
|
8843
8843
|
category: str = None,
|
|
8844
8844
|
current: int = None,
|
|
8845
8845
|
hot_topic_version: str = None,
|
|
8846
|
+
location_query: str = None,
|
|
8847
|
+
locations: List[str] = None,
|
|
8848
|
+
query: str = None,
|
|
8846
8849
|
size: int = None,
|
|
8847
8850
|
step_for_custom_summary_style_config: GetHotTopicBroadcastRequestStepForCustomSummaryStyleConfig = None,
|
|
8848
8851
|
step_for_news_broadcast_content_config: GetHotTopicBroadcastRequestStepForNewsBroadcastContentConfig = None,
|
|
@@ -8853,6 +8856,9 @@ class GetHotTopicBroadcastRequest(TeaModel):
|
|
|
8853
8856
|
self.category = category
|
|
8854
8857
|
self.current = current
|
|
8855
8858
|
self.hot_topic_version = hot_topic_version
|
|
8859
|
+
self.location_query = location_query
|
|
8860
|
+
self.locations = locations
|
|
8861
|
+
self.query = query
|
|
8856
8862
|
self.size = size
|
|
8857
8863
|
self.step_for_custom_summary_style_config = step_for_custom_summary_style_config
|
|
8858
8864
|
self.step_for_news_broadcast_content_config = step_for_news_broadcast_content_config
|
|
@@ -8880,6 +8886,12 @@ class GetHotTopicBroadcastRequest(TeaModel):
|
|
|
8880
8886
|
result['Current'] = self.current
|
|
8881
8887
|
if self.hot_topic_version is not None:
|
|
8882
8888
|
result['HotTopicVersion'] = self.hot_topic_version
|
|
8889
|
+
if self.location_query is not None:
|
|
8890
|
+
result['LocationQuery'] = self.location_query
|
|
8891
|
+
if self.locations is not None:
|
|
8892
|
+
result['Locations'] = self.locations
|
|
8893
|
+
if self.query is not None:
|
|
8894
|
+
result['Query'] = self.query
|
|
8883
8895
|
if self.size is not None:
|
|
8884
8896
|
result['Size'] = self.size
|
|
8885
8897
|
if self.step_for_custom_summary_style_config is not None:
|
|
@@ -8902,6 +8914,12 @@ class GetHotTopicBroadcastRequest(TeaModel):
|
|
|
8902
8914
|
self.current = m.get('Current')
|
|
8903
8915
|
if m.get('HotTopicVersion') is not None:
|
|
8904
8916
|
self.hot_topic_version = m.get('HotTopicVersion')
|
|
8917
|
+
if m.get('LocationQuery') is not None:
|
|
8918
|
+
self.location_query = m.get('LocationQuery')
|
|
8919
|
+
if m.get('Locations') is not None:
|
|
8920
|
+
self.locations = m.get('Locations')
|
|
8921
|
+
if m.get('Query') is not None:
|
|
8922
|
+
self.query = m.get('Query')
|
|
8905
8923
|
if m.get('Size') is not None:
|
|
8906
8924
|
self.size = m.get('Size')
|
|
8907
8925
|
if m.get('StepForCustomSummaryStyleConfig') is not None:
|
|
@@ -8924,6 +8942,9 @@ class GetHotTopicBroadcastShrinkRequest(TeaModel):
|
|
|
8924
8942
|
category: str = None,
|
|
8925
8943
|
current: int = None,
|
|
8926
8944
|
hot_topic_version: str = None,
|
|
8945
|
+
location_query: str = None,
|
|
8946
|
+
locations_shrink: str = None,
|
|
8947
|
+
query: str = None,
|
|
8927
8948
|
size: int = None,
|
|
8928
8949
|
step_for_custom_summary_style_config_shrink: str = None,
|
|
8929
8950
|
step_for_news_broadcast_content_config_shrink: str = None,
|
|
@@ -8934,6 +8955,9 @@ class GetHotTopicBroadcastShrinkRequest(TeaModel):
|
|
|
8934
8955
|
self.category = category
|
|
8935
8956
|
self.current = current
|
|
8936
8957
|
self.hot_topic_version = hot_topic_version
|
|
8958
|
+
self.location_query = location_query
|
|
8959
|
+
self.locations_shrink = locations_shrink
|
|
8960
|
+
self.query = query
|
|
8937
8961
|
self.size = size
|
|
8938
8962
|
self.step_for_custom_summary_style_config_shrink = step_for_custom_summary_style_config_shrink
|
|
8939
8963
|
self.step_for_news_broadcast_content_config_shrink = step_for_news_broadcast_content_config_shrink
|
|
@@ -8958,6 +8982,12 @@ class GetHotTopicBroadcastShrinkRequest(TeaModel):
|
|
|
8958
8982
|
result['Current'] = self.current
|
|
8959
8983
|
if self.hot_topic_version is not None:
|
|
8960
8984
|
result['HotTopicVersion'] = self.hot_topic_version
|
|
8985
|
+
if self.location_query is not None:
|
|
8986
|
+
result['LocationQuery'] = self.location_query
|
|
8987
|
+
if self.locations_shrink is not None:
|
|
8988
|
+
result['Locations'] = self.locations_shrink
|
|
8989
|
+
if self.query is not None:
|
|
8990
|
+
result['Query'] = self.query
|
|
8961
8991
|
if self.size is not None:
|
|
8962
8992
|
result['Size'] = self.size
|
|
8963
8993
|
if self.step_for_custom_summary_style_config_shrink is not None:
|
|
@@ -8980,6 +9010,12 @@ class GetHotTopicBroadcastShrinkRequest(TeaModel):
|
|
|
8980
9010
|
self.current = m.get('Current')
|
|
8981
9011
|
if m.get('HotTopicVersion') is not None:
|
|
8982
9012
|
self.hot_topic_version = m.get('HotTopicVersion')
|
|
9013
|
+
if m.get('LocationQuery') is not None:
|
|
9014
|
+
self.location_query = m.get('LocationQuery')
|
|
9015
|
+
if m.get('Locations') is not None:
|
|
9016
|
+
self.locations_shrink = m.get('Locations')
|
|
9017
|
+
if m.get('Query') is not None:
|
|
9018
|
+
self.query = m.get('Query')
|
|
8983
9019
|
if m.get('Size') is not None:
|
|
8984
9020
|
self.size = m.get('Size')
|
|
8985
9021
|
if m.get('StepForCustomSummaryStyleConfig') is not None:
|
|
@@ -9284,6 +9320,7 @@ class GetHotTopicBroadcastResponseBodyDataData(TeaModel):
|
|
|
9284
9320
|
id: str = None,
|
|
9285
9321
|
images: List[GetHotTopicBroadcastResponseBodyDataDataImages] = None,
|
|
9286
9322
|
input_token: int = None,
|
|
9323
|
+
locations: List[str] = None,
|
|
9287
9324
|
news: List[GetHotTopicBroadcastResponseBodyDataDataNews] = None,
|
|
9288
9325
|
output_token: int = None,
|
|
9289
9326
|
summary: GetHotTopicBroadcastResponseBodyDataDataSummary = None,
|
|
@@ -9299,6 +9336,7 @@ class GetHotTopicBroadcastResponseBodyDataData(TeaModel):
|
|
|
9299
9336
|
self.id = id
|
|
9300
9337
|
self.images = images
|
|
9301
9338
|
self.input_token = input_token
|
|
9339
|
+
self.locations = locations
|
|
9302
9340
|
self.news = news
|
|
9303
9341
|
self.output_token = output_token
|
|
9304
9342
|
self.summary = summary
|
|
@@ -9344,6 +9382,8 @@ class GetHotTopicBroadcastResponseBodyDataData(TeaModel):
|
|
|
9344
9382
|
result['Images'].append(k.to_map() if k else None)
|
|
9345
9383
|
if self.input_token is not None:
|
|
9346
9384
|
result['InputToken'] = self.input_token
|
|
9385
|
+
if self.locations is not None:
|
|
9386
|
+
result['Locations'] = self.locations
|
|
9347
9387
|
result['News'] = []
|
|
9348
9388
|
if self.news is not None:
|
|
9349
9389
|
for k in self.news:
|
|
@@ -9381,6 +9421,8 @@ class GetHotTopicBroadcastResponseBodyDataData(TeaModel):
|
|
|
9381
9421
|
self.images.append(temp_model.from_map(k))
|
|
9382
9422
|
if m.get('InputToken') is not None:
|
|
9383
9423
|
self.input_token = m.get('InputToken')
|
|
9424
|
+
if m.get('Locations') is not None:
|
|
9425
|
+
self.locations = m.get('Locations')
|
|
9384
9426
|
self.news = []
|
|
9385
9427
|
if m.get('News') is not None:
|
|
9386
9428
|
for k in m.get('News'):
|
|
@@ -33350,6 +33392,140 @@ class RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGenerate
|
|
|
33350
33392
|
return self
|
|
33351
33393
|
|
|
33352
33394
|
|
|
33395
|
+
class RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTextSearchResultSearchResult(TeaModel):
|
|
33396
|
+
def __init__(
|
|
33397
|
+
self,
|
|
33398
|
+
content: str = None,
|
|
33399
|
+
doc_id: str = None,
|
|
33400
|
+
doc_uuid: str = None,
|
|
33401
|
+
pub_time: str = None,
|
|
33402
|
+
search_source: str = None,
|
|
33403
|
+
search_source_name: str = None,
|
|
33404
|
+
search_source_type: str = None,
|
|
33405
|
+
summary: str = None,
|
|
33406
|
+
title: str = None,
|
|
33407
|
+
url: str = None,
|
|
33408
|
+
):
|
|
33409
|
+
self.content = content
|
|
33410
|
+
self.doc_id = doc_id
|
|
33411
|
+
self.doc_uuid = doc_uuid
|
|
33412
|
+
self.pub_time = pub_time
|
|
33413
|
+
self.search_source = search_source
|
|
33414
|
+
self.search_source_name = search_source_name
|
|
33415
|
+
self.search_source_type = search_source_type
|
|
33416
|
+
self.summary = summary
|
|
33417
|
+
self.title = title
|
|
33418
|
+
self.url = url
|
|
33419
|
+
|
|
33420
|
+
def validate(self):
|
|
33421
|
+
pass
|
|
33422
|
+
|
|
33423
|
+
def to_map(self):
|
|
33424
|
+
_map = super().to_map()
|
|
33425
|
+
if _map is not None:
|
|
33426
|
+
return _map
|
|
33427
|
+
|
|
33428
|
+
result = dict()
|
|
33429
|
+
if self.content is not None:
|
|
33430
|
+
result['Content'] = self.content
|
|
33431
|
+
if self.doc_id is not None:
|
|
33432
|
+
result['DocId'] = self.doc_id
|
|
33433
|
+
if self.doc_uuid is not None:
|
|
33434
|
+
result['DocUuid'] = self.doc_uuid
|
|
33435
|
+
if self.pub_time is not None:
|
|
33436
|
+
result['PubTime'] = self.pub_time
|
|
33437
|
+
if self.search_source is not None:
|
|
33438
|
+
result['SearchSource'] = self.search_source
|
|
33439
|
+
if self.search_source_name is not None:
|
|
33440
|
+
result['SearchSourceName'] = self.search_source_name
|
|
33441
|
+
if self.search_source_type is not None:
|
|
33442
|
+
result['SearchSourceType'] = self.search_source_type
|
|
33443
|
+
if self.summary is not None:
|
|
33444
|
+
result['Summary'] = self.summary
|
|
33445
|
+
if self.title is not None:
|
|
33446
|
+
result['Title'] = self.title
|
|
33447
|
+
if self.url is not None:
|
|
33448
|
+
result['Url'] = self.url
|
|
33449
|
+
return result
|
|
33450
|
+
|
|
33451
|
+
def from_map(self, m: dict = None):
|
|
33452
|
+
m = m or dict()
|
|
33453
|
+
if m.get('Content') is not None:
|
|
33454
|
+
self.content = m.get('Content')
|
|
33455
|
+
if m.get('DocId') is not None:
|
|
33456
|
+
self.doc_id = m.get('DocId')
|
|
33457
|
+
if m.get('DocUuid') is not None:
|
|
33458
|
+
self.doc_uuid = m.get('DocUuid')
|
|
33459
|
+
if m.get('PubTime') is not None:
|
|
33460
|
+
self.pub_time = m.get('PubTime')
|
|
33461
|
+
if m.get('SearchSource') is not None:
|
|
33462
|
+
self.search_source = m.get('SearchSource')
|
|
33463
|
+
if m.get('SearchSourceName') is not None:
|
|
33464
|
+
self.search_source_name = m.get('SearchSourceName')
|
|
33465
|
+
if m.get('SearchSourceType') is not None:
|
|
33466
|
+
self.search_source_type = m.get('SearchSourceType')
|
|
33467
|
+
if m.get('Summary') is not None:
|
|
33468
|
+
self.summary = m.get('Summary')
|
|
33469
|
+
if m.get('Title') is not None:
|
|
33470
|
+
self.title = m.get('Title')
|
|
33471
|
+
if m.get('Url') is not None:
|
|
33472
|
+
self.url = m.get('Url')
|
|
33473
|
+
return self
|
|
33474
|
+
|
|
33475
|
+
|
|
33476
|
+
class RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTextSearchResult(TeaModel):
|
|
33477
|
+
def __init__(
|
|
33478
|
+
self,
|
|
33479
|
+
current: int = None,
|
|
33480
|
+
search_result: List[RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTextSearchResultSearchResult] = None,
|
|
33481
|
+
size: int = None,
|
|
33482
|
+
total: int = None,
|
|
33483
|
+
):
|
|
33484
|
+
self.current = current
|
|
33485
|
+
self.search_result = search_result
|
|
33486
|
+
self.size = size
|
|
33487
|
+
self.total = total
|
|
33488
|
+
|
|
33489
|
+
def validate(self):
|
|
33490
|
+
if self.search_result:
|
|
33491
|
+
for k in self.search_result:
|
|
33492
|
+
if k:
|
|
33493
|
+
k.validate()
|
|
33494
|
+
|
|
33495
|
+
def to_map(self):
|
|
33496
|
+
_map = super().to_map()
|
|
33497
|
+
if _map is not None:
|
|
33498
|
+
return _map
|
|
33499
|
+
|
|
33500
|
+
result = dict()
|
|
33501
|
+
if self.current is not None:
|
|
33502
|
+
result['Current'] = self.current
|
|
33503
|
+
result['SearchResult'] = []
|
|
33504
|
+
if self.search_result is not None:
|
|
33505
|
+
for k in self.search_result:
|
|
33506
|
+
result['SearchResult'].append(k.to_map() if k else None)
|
|
33507
|
+
if self.size is not None:
|
|
33508
|
+
result['Size'] = self.size
|
|
33509
|
+
if self.total is not None:
|
|
33510
|
+
result['Total'] = self.total
|
|
33511
|
+
return result
|
|
33512
|
+
|
|
33513
|
+
def from_map(self, m: dict = None):
|
|
33514
|
+
m = m or dict()
|
|
33515
|
+
if m.get('Current') is not None:
|
|
33516
|
+
self.current = m.get('Current')
|
|
33517
|
+
self.search_result = []
|
|
33518
|
+
if m.get('SearchResult') is not None:
|
|
33519
|
+
for k in m.get('SearchResult'):
|
|
33520
|
+
temp_model = RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTextSearchResultSearchResult()
|
|
33521
|
+
self.search_result.append(temp_model.from_map(k))
|
|
33522
|
+
if m.get('Size') is not None:
|
|
33523
|
+
self.size = m.get('Size')
|
|
33524
|
+
if m.get('Total') is not None:
|
|
33525
|
+
self.total = m.get('Total')
|
|
33526
|
+
return self
|
|
33527
|
+
|
|
33528
|
+
|
|
33353
33529
|
class RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTimelineResultGenerateTraceabilityCoordinatesGenerateCoordinate(TeaModel):
|
|
33354
33530
|
def __init__(
|
|
33355
33531
|
self,
|
|
@@ -34273,6 +34449,7 @@ class RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGenerate
|
|
|
34273
34449
|
image_search_result: RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentImageSearchResult = None,
|
|
34274
34450
|
news_element_result: RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentNewsElementResult = None,
|
|
34275
34451
|
text_generate_result: RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTextGenerateResult = None,
|
|
34452
|
+
text_search_result: RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTextSearchResult = None,
|
|
34276
34453
|
timeline_result: RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTimelineResult = None,
|
|
34277
34454
|
video_search_result: RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentVideoSearchResult = None,
|
|
34278
34455
|
):
|
|
@@ -34281,6 +34458,7 @@ class RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGenerate
|
|
|
34281
34458
|
self.image_search_result = image_search_result
|
|
34282
34459
|
self.news_element_result = news_element_result
|
|
34283
34460
|
self.text_generate_result = text_generate_result
|
|
34461
|
+
self.text_search_result = text_search_result
|
|
34284
34462
|
self.timeline_result = timeline_result
|
|
34285
34463
|
self.video_search_result = video_search_result
|
|
34286
34464
|
|
|
@@ -34295,6 +34473,8 @@ class RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGenerate
|
|
|
34295
34473
|
self.news_element_result.validate()
|
|
34296
34474
|
if self.text_generate_result:
|
|
34297
34475
|
self.text_generate_result.validate()
|
|
34476
|
+
if self.text_search_result:
|
|
34477
|
+
self.text_search_result.validate()
|
|
34298
34478
|
if self.timeline_result:
|
|
34299
34479
|
self.timeline_result.validate()
|
|
34300
34480
|
if self.video_search_result:
|
|
@@ -34316,6 +34496,8 @@ class RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGenerate
|
|
|
34316
34496
|
result['NewsElementResult'] = self.news_element_result.to_map()
|
|
34317
34497
|
if self.text_generate_result is not None:
|
|
34318
34498
|
result['TextGenerateResult'] = self.text_generate_result.to_map()
|
|
34499
|
+
if self.text_search_result is not None:
|
|
34500
|
+
result['TextSearchResult'] = self.text_search_result.to_map()
|
|
34319
34501
|
if self.timeline_result is not None:
|
|
34320
34502
|
result['TimelineResult'] = self.timeline_result.to_map()
|
|
34321
34503
|
if self.video_search_result is not None:
|
|
@@ -34339,6 +34521,9 @@ class RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGenerate
|
|
|
34339
34521
|
if m.get('TextGenerateResult') is not None:
|
|
34340
34522
|
temp_model = RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTextGenerateResult()
|
|
34341
34523
|
self.text_generate_result = temp_model.from_map(m['TextGenerateResult'])
|
|
34524
|
+
if m.get('TextSearchResult') is not None:
|
|
34525
|
+
temp_model = RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTextSearchResult()
|
|
34526
|
+
self.text_search_result = temp_model.from_map(m['TextSearchResult'])
|
|
34342
34527
|
if m.get('TimelineResult') is not None:
|
|
34343
34528
|
temp_model = RunSearchGenerationResponseBodyPayloadOutputAgentContextBizContextGeneratedContentTimelineResult()
|
|
34344
34529
|
self.timeline_result = temp_model.from_map(m['TimelineResult'])
|
|
@@ -37051,13 +37236,17 @@ class RunTitleGenerationRequestReferenceData(TeaModel):
|
|
|
37051
37236
|
class RunTitleGenerationRequest(TeaModel):
|
|
37052
37237
|
def __init__(
|
|
37053
37238
|
self,
|
|
37239
|
+
deduplicated_titles: List[str] = None,
|
|
37054
37240
|
reference_data: RunTitleGenerationRequestReferenceData = None,
|
|
37055
37241
|
task_id: str = None,
|
|
37242
|
+
title_count: str = None,
|
|
37056
37243
|
workspace_id: str = None,
|
|
37057
37244
|
):
|
|
37245
|
+
self.deduplicated_titles = deduplicated_titles
|
|
37058
37246
|
# This parameter is required.
|
|
37059
37247
|
self.reference_data = reference_data
|
|
37060
37248
|
self.task_id = task_id
|
|
37249
|
+
self.title_count = title_count
|
|
37061
37250
|
# This parameter is required.
|
|
37062
37251
|
self.workspace_id = workspace_id
|
|
37063
37252
|
|
|
@@ -37071,21 +37260,29 @@ class RunTitleGenerationRequest(TeaModel):
|
|
|
37071
37260
|
return _map
|
|
37072
37261
|
|
|
37073
37262
|
result = dict()
|
|
37263
|
+
if self.deduplicated_titles is not None:
|
|
37264
|
+
result['DeduplicatedTitles'] = self.deduplicated_titles
|
|
37074
37265
|
if self.reference_data is not None:
|
|
37075
37266
|
result['ReferenceData'] = self.reference_data.to_map()
|
|
37076
37267
|
if self.task_id is not None:
|
|
37077
37268
|
result['TaskId'] = self.task_id
|
|
37269
|
+
if self.title_count is not None:
|
|
37270
|
+
result['TitleCount'] = self.title_count
|
|
37078
37271
|
if self.workspace_id is not None:
|
|
37079
37272
|
result['WorkspaceId'] = self.workspace_id
|
|
37080
37273
|
return result
|
|
37081
37274
|
|
|
37082
37275
|
def from_map(self, m: dict = None):
|
|
37083
37276
|
m = m or dict()
|
|
37277
|
+
if m.get('DeduplicatedTitles') is not None:
|
|
37278
|
+
self.deduplicated_titles = m.get('DeduplicatedTitles')
|
|
37084
37279
|
if m.get('ReferenceData') is not None:
|
|
37085
37280
|
temp_model = RunTitleGenerationRequestReferenceData()
|
|
37086
37281
|
self.reference_data = temp_model.from_map(m['ReferenceData'])
|
|
37087
37282
|
if m.get('TaskId') is not None:
|
|
37088
37283
|
self.task_id = m.get('TaskId')
|
|
37284
|
+
if m.get('TitleCount') is not None:
|
|
37285
|
+
self.title_count = m.get('TitleCount')
|
|
37089
37286
|
if m.get('WorkspaceId') is not None:
|
|
37090
37287
|
self.workspace_id = m.get('WorkspaceId')
|
|
37091
37288
|
return self
|
|
@@ -37094,13 +37291,17 @@ class RunTitleGenerationRequest(TeaModel):
|
|
|
37094
37291
|
class RunTitleGenerationShrinkRequest(TeaModel):
|
|
37095
37292
|
def __init__(
|
|
37096
37293
|
self,
|
|
37294
|
+
deduplicated_titles_shrink: str = None,
|
|
37097
37295
|
reference_data_shrink: str = None,
|
|
37098
37296
|
task_id: str = None,
|
|
37297
|
+
title_count: str = None,
|
|
37099
37298
|
workspace_id: str = None,
|
|
37100
37299
|
):
|
|
37300
|
+
self.deduplicated_titles_shrink = deduplicated_titles_shrink
|
|
37101
37301
|
# This parameter is required.
|
|
37102
37302
|
self.reference_data_shrink = reference_data_shrink
|
|
37103
37303
|
self.task_id = task_id
|
|
37304
|
+
self.title_count = title_count
|
|
37104
37305
|
# This parameter is required.
|
|
37105
37306
|
self.workspace_id = workspace_id
|
|
37106
37307
|
|
|
@@ -37113,20 +37314,28 @@ class RunTitleGenerationShrinkRequest(TeaModel):
|
|
|
37113
37314
|
return _map
|
|
37114
37315
|
|
|
37115
37316
|
result = dict()
|
|
37317
|
+
if self.deduplicated_titles_shrink is not None:
|
|
37318
|
+
result['DeduplicatedTitles'] = self.deduplicated_titles_shrink
|
|
37116
37319
|
if self.reference_data_shrink is not None:
|
|
37117
37320
|
result['ReferenceData'] = self.reference_data_shrink
|
|
37118
37321
|
if self.task_id is not None:
|
|
37119
37322
|
result['TaskId'] = self.task_id
|
|
37323
|
+
if self.title_count is not None:
|
|
37324
|
+
result['TitleCount'] = self.title_count
|
|
37120
37325
|
if self.workspace_id is not None:
|
|
37121
37326
|
result['WorkspaceId'] = self.workspace_id
|
|
37122
37327
|
return result
|
|
37123
37328
|
|
|
37124
37329
|
def from_map(self, m: dict = None):
|
|
37125
37330
|
m = m or dict()
|
|
37331
|
+
if m.get('DeduplicatedTitles') is not None:
|
|
37332
|
+
self.deduplicated_titles_shrink = m.get('DeduplicatedTitles')
|
|
37126
37333
|
if m.get('ReferenceData') is not None:
|
|
37127
37334
|
self.reference_data_shrink = m.get('ReferenceData')
|
|
37128
37335
|
if m.get('TaskId') is not None:
|
|
37129
37336
|
self.task_id = m.get('TaskId')
|
|
37337
|
+
if m.get('TitleCount') is not None:
|
|
37338
|
+
self.title_count = m.get('TitleCount')
|
|
37130
37339
|
if m.get('WorkspaceId') is not None:
|
|
37131
37340
|
self.workspace_id = m.get('WorkspaceId')
|
|
37132
37341
|
return self
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.20.2'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|