alibabacloud-quanmiaolightapp20240801 1.4.0__tar.gz → 2.0.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.
Files changed (17) hide show
  1. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/ChangeLog.md +11 -0
  2. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/PKG-INFO +1 -1
  3. alibabacloud_quanmiaolightapp20240801-2.0.0/alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
  4. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/alibabacloud_quanmiaolightapp20240801/client.py +12 -120
  5. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/alibabacloud_quanmiaolightapp20240801/models.py +120 -292
  6. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/alibabacloud_quanmiaolightapp20240801.egg-info/PKG-INFO +1 -1
  7. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/alibabacloud_quanmiaolightapp20240801.egg-info/requires.txt +1 -1
  8. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/setup.py +2 -2
  9. alibabacloud_quanmiaolightapp20240801-1.4.0/alibabacloud_quanmiaolightapp20240801/__init__.py +0 -1
  10. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/LICENSE +0 -0
  11. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/MANIFEST.in +0 -0
  12. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/README-CN.md +0 -0
  13. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/README.md +0 -0
  14. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/alibabacloud_quanmiaolightapp20240801.egg-info/SOURCES.txt +0 -0
  15. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/alibabacloud_quanmiaolightapp20240801.egg-info/dependency_links.txt +0 -0
  16. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/alibabacloud_quanmiaolightapp20240801.egg-info/top_level.txt +0 -0
  17. {alibabacloud_quanmiaolightapp20240801-1.4.0 → alibabacloud_quanmiaolightapp20240801-2.0.0}/setup.cfg +0 -0
@@ -1,3 +1,14 @@
1
+ 2024-11-06 Version: 1.4.1
2
+ - Update API RunMarketingInformationWriting: add param customLimitation.
3
+ - Update API RunMarketingInformationWriting: add param inputExample.
4
+ - Update API RunMarketingInformationWriting: add param outputExample.
5
+
6
+
7
+ 2024-11-01 Version: 1.4.0
8
+ - Support API RunHotTopicChat.
9
+ - Support API RunHotTopicSummary.
10
+
11
+
1
12
  2024-09-26 Version: 1.3.0
2
13
  - Support API GenerateBroadcastNews.
3
14
  - Support API RunCommentGeneration.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud_quanmiaolightapp20240801
3
- Version: 1.4.0
3
+ Version: 2.0.0
4
4
  Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -273,126 +273,6 @@ class Client(OpenApiClient):
273
273
  headers = {}
274
274
  return await self.list_hot_topic_summaries_with_options_async(workspace_id, request, headers, runtime)
275
275
 
276
- def run_comment_generation_with_options(
277
- self,
278
- workspace_id: str,
279
- request: quan_miao_light_app_20240801_models.RunCommentGenerationRequest,
280
- headers: Dict[str, str],
281
- runtime: util_models.RuntimeOptions,
282
- ) -> quan_miao_light_app_20240801_models.RunCommentGenerationResponse:
283
- """
284
- @summary 评论生成服务
285
-
286
- @param request: RunCommentGenerationRequest
287
- @param headers: map
288
- @param runtime: runtime options for this request RuntimeOptions
289
- @return: RunCommentGenerationResponse
290
- """
291
- UtilClient.validate_model(request)
292
- body = {}
293
- if not UtilClient.is_unset(request.length):
294
- body['length'] = request.length
295
- if not UtilClient.is_unset(request.num_comments):
296
- body['numComments'] = request.num_comments
297
- if not UtilClient.is_unset(request.source_material):
298
- body['sourceMaterial'] = request.source_material
299
- if not UtilClient.is_unset(request.style):
300
- body['style'] = request.style
301
- req = open_api_models.OpenApiRequest(
302
- headers=headers,
303
- body=OpenApiUtilClient.parse_to_map(body)
304
- )
305
- params = open_api_models.Params(
306
- action='RunCommentGeneration',
307
- version='2024-08-01',
308
- protocol='HTTPS',
309
- pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runCommentGeneration',
310
- method='POST',
311
- auth_type='AK',
312
- style='ROA',
313
- req_body_type='formData',
314
- body_type='json'
315
- )
316
- return TeaCore.from_map(
317
- quan_miao_light_app_20240801_models.RunCommentGenerationResponse(),
318
- self.call_api(params, req, runtime)
319
- )
320
-
321
- async def run_comment_generation_with_options_async(
322
- self,
323
- workspace_id: str,
324
- request: quan_miao_light_app_20240801_models.RunCommentGenerationRequest,
325
- headers: Dict[str, str],
326
- runtime: util_models.RuntimeOptions,
327
- ) -> quan_miao_light_app_20240801_models.RunCommentGenerationResponse:
328
- """
329
- @summary 评论生成服务
330
-
331
- @param request: RunCommentGenerationRequest
332
- @param headers: map
333
- @param runtime: runtime options for this request RuntimeOptions
334
- @return: RunCommentGenerationResponse
335
- """
336
- UtilClient.validate_model(request)
337
- body = {}
338
- if not UtilClient.is_unset(request.length):
339
- body['length'] = request.length
340
- if not UtilClient.is_unset(request.num_comments):
341
- body['numComments'] = request.num_comments
342
- if not UtilClient.is_unset(request.source_material):
343
- body['sourceMaterial'] = request.source_material
344
- if not UtilClient.is_unset(request.style):
345
- body['style'] = request.style
346
- req = open_api_models.OpenApiRequest(
347
- headers=headers,
348
- body=OpenApiUtilClient.parse_to_map(body)
349
- )
350
- params = open_api_models.Params(
351
- action='RunCommentGeneration',
352
- version='2024-08-01',
353
- protocol='HTTPS',
354
- pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runCommentGeneration',
355
- method='POST',
356
- auth_type='AK',
357
- style='ROA',
358
- req_body_type='formData',
359
- body_type='json'
360
- )
361
- return TeaCore.from_map(
362
- quan_miao_light_app_20240801_models.RunCommentGenerationResponse(),
363
- await self.call_api_async(params, req, runtime)
364
- )
365
-
366
- def run_comment_generation(
367
- self,
368
- workspace_id: str,
369
- request: quan_miao_light_app_20240801_models.RunCommentGenerationRequest,
370
- ) -> quan_miao_light_app_20240801_models.RunCommentGenerationResponse:
371
- """
372
- @summary 评论生成服务
373
-
374
- @param request: RunCommentGenerationRequest
375
- @return: RunCommentGenerationResponse
376
- """
377
- runtime = util_models.RuntimeOptions()
378
- headers = {}
379
- return self.run_comment_generation_with_options(workspace_id, request, headers, runtime)
380
-
381
- async def run_comment_generation_async(
382
- self,
383
- workspace_id: str,
384
- request: quan_miao_light_app_20240801_models.RunCommentGenerationRequest,
385
- ) -> quan_miao_light_app_20240801_models.RunCommentGenerationResponse:
386
- """
387
- @summary 评论生成服务
388
-
389
- @param request: RunCommentGenerationRequest
390
- @return: RunCommentGenerationResponse
391
- """
392
- runtime = util_models.RuntimeOptions()
393
- headers = {}
394
- return await self.run_comment_generation_with_options_async(workspace_id, request, headers, runtime)
395
-
396
276
  def run_hot_topic_chat_with_options(
397
277
  self,
398
278
  workspace_id: str,
@@ -830,10 +710,16 @@ class Client(OpenApiClient):
830
710
  """
831
711
  UtilClient.validate_model(request)
832
712
  body = {}
713
+ if not UtilClient.is_unset(request.custom_limitation):
714
+ body['customLimitation'] = request.custom_limitation
833
715
  if not UtilClient.is_unset(request.custom_prompt):
834
716
  body['customPrompt'] = request.custom_prompt
717
+ if not UtilClient.is_unset(request.input_example):
718
+ body['inputExample'] = request.input_example
835
719
  if not UtilClient.is_unset(request.model_id):
836
720
  body['modelId'] = request.model_id
721
+ if not UtilClient.is_unset(request.output_example):
722
+ body['outputExample'] = request.output_example
837
723
  if not UtilClient.is_unset(request.source_material):
838
724
  body['sourceMaterial'] = request.source_material
839
725
  if not UtilClient.is_unset(request.writing_type):
@@ -875,10 +761,16 @@ class Client(OpenApiClient):
875
761
  """
876
762
  UtilClient.validate_model(request)
877
763
  body = {}
764
+ if not UtilClient.is_unset(request.custom_limitation):
765
+ body['customLimitation'] = request.custom_limitation
878
766
  if not UtilClient.is_unset(request.custom_prompt):
879
767
  body['customPrompt'] = request.custom_prompt
768
+ if not UtilClient.is_unset(request.input_example):
769
+ body['inputExample'] = request.input_example
880
770
  if not UtilClient.is_unset(request.model_id):
881
771
  body['modelId'] = request.model_id
772
+ if not UtilClient.is_unset(request.output_example):
773
+ body['outputExample'] = request.output_example
882
774
  if not UtilClient.is_unset(request.source_material):
883
775
  body['sourceMaterial'] = request.source_material
884
776
  if not UtilClient.is_unset(request.writing_type):
@@ -741,297 +741,6 @@ class ListHotTopicSummariesResponse(TeaModel):
741
741
  return self
742
742
 
743
743
 
744
- class RunCommentGenerationRequest(TeaModel):
745
- def __init__(
746
- self,
747
- length: str = None,
748
- num_comments: str = None,
749
- source_material: str = None,
750
- style: str = None,
751
- ):
752
- self.length = length
753
- self.num_comments = num_comments
754
- self.source_material = source_material
755
- self.style = style
756
-
757
- def validate(self):
758
- pass
759
-
760
- def to_map(self):
761
- _map = super().to_map()
762
- if _map is not None:
763
- return _map
764
-
765
- result = dict()
766
- if self.length is not None:
767
- result['length'] = self.length
768
- if self.num_comments is not None:
769
- result['numComments'] = self.num_comments
770
- if self.source_material is not None:
771
- result['sourceMaterial'] = self.source_material
772
- if self.style is not None:
773
- result['style'] = self.style
774
- return result
775
-
776
- def from_map(self, m: dict = None):
777
- m = m or dict()
778
- if m.get('length') is not None:
779
- self.length = m.get('length')
780
- if m.get('numComments') is not None:
781
- self.num_comments = m.get('numComments')
782
- if m.get('sourceMaterial') is not None:
783
- self.source_material = m.get('sourceMaterial')
784
- if m.get('style') is not None:
785
- self.style = m.get('style')
786
- return self
787
-
788
-
789
- class RunCommentGenerationResponseBodyHeader(TeaModel):
790
- def __init__(
791
- self,
792
- event: str = None,
793
- event_info: str = None,
794
- request_id: str = None,
795
- session_id: str = None,
796
- task_id: str = None,
797
- trace_id: str = None,
798
- ):
799
- self.event = event
800
- self.event_info = event_info
801
- self.request_id = request_id
802
- self.session_id = session_id
803
- self.task_id = task_id
804
- self.trace_id = trace_id
805
-
806
- def validate(self):
807
- pass
808
-
809
- def to_map(self):
810
- _map = super().to_map()
811
- if _map is not None:
812
- return _map
813
-
814
- result = dict()
815
- if self.event is not None:
816
- result['event'] = self.event
817
- if self.event_info is not None:
818
- result['eventInfo'] = self.event_info
819
- if self.request_id is not None:
820
- result['requestId'] = self.request_id
821
- if self.session_id is not None:
822
- result['sessionId'] = self.session_id
823
- if self.task_id is not None:
824
- result['taskId'] = self.task_id
825
- if self.trace_id is not None:
826
- result['traceId'] = self.trace_id
827
- return result
828
-
829
- def from_map(self, m: dict = None):
830
- m = m or dict()
831
- if m.get('event') is not None:
832
- self.event = m.get('event')
833
- if m.get('eventInfo') is not None:
834
- self.event_info = m.get('eventInfo')
835
- if m.get('requestId') is not None:
836
- self.request_id = m.get('requestId')
837
- if m.get('sessionId') is not None:
838
- self.session_id = m.get('sessionId')
839
- if m.get('taskId') is not None:
840
- self.task_id = m.get('taskId')
841
- if m.get('traceId') is not None:
842
- self.trace_id = m.get('traceId')
843
- return self
844
-
845
-
846
- class RunCommentGenerationResponseBodyPayloadOutput(TeaModel):
847
- def __init__(
848
- self,
849
- text: str = None,
850
- ):
851
- self.text = text
852
-
853
- def validate(self):
854
- pass
855
-
856
- def to_map(self):
857
- _map = super().to_map()
858
- if _map is not None:
859
- return _map
860
-
861
- result = dict()
862
- if self.text is not None:
863
- result['text'] = self.text
864
- return result
865
-
866
- def from_map(self, m: dict = None):
867
- m = m or dict()
868
- if m.get('text') is not None:
869
- self.text = m.get('text')
870
- return self
871
-
872
-
873
- class RunCommentGenerationResponseBodyPayloadUsage(TeaModel):
874
- def __init__(
875
- self,
876
- input_tokens: int = None,
877
- output_tokens: int = None,
878
- total_tokens: int = None,
879
- ):
880
- self.input_tokens = input_tokens
881
- self.output_tokens = output_tokens
882
- self.total_tokens = total_tokens
883
-
884
- def validate(self):
885
- pass
886
-
887
- def to_map(self):
888
- _map = super().to_map()
889
- if _map is not None:
890
- return _map
891
-
892
- result = dict()
893
- if self.input_tokens is not None:
894
- result['inputTokens'] = self.input_tokens
895
- if self.output_tokens is not None:
896
- result['outputTokens'] = self.output_tokens
897
- if self.total_tokens is not None:
898
- result['totalTokens'] = self.total_tokens
899
- return result
900
-
901
- def from_map(self, m: dict = None):
902
- m = m or dict()
903
- if m.get('inputTokens') is not None:
904
- self.input_tokens = m.get('inputTokens')
905
- if m.get('outputTokens') is not None:
906
- self.output_tokens = m.get('outputTokens')
907
- if m.get('totalTokens') is not None:
908
- self.total_tokens = m.get('totalTokens')
909
- return self
910
-
911
-
912
- class RunCommentGenerationResponseBodyPayload(TeaModel):
913
- def __init__(
914
- self,
915
- output: RunCommentGenerationResponseBodyPayloadOutput = None,
916
- usage: RunCommentGenerationResponseBodyPayloadUsage = None,
917
- ):
918
- self.output = output
919
- self.usage = usage
920
-
921
- def validate(self):
922
- if self.output:
923
- self.output.validate()
924
- if self.usage:
925
- self.usage.validate()
926
-
927
- def to_map(self):
928
- _map = super().to_map()
929
- if _map is not None:
930
- return _map
931
-
932
- result = dict()
933
- if self.output is not None:
934
- result['output'] = self.output.to_map()
935
- if self.usage is not None:
936
- result['usage'] = self.usage.to_map()
937
- return result
938
-
939
- def from_map(self, m: dict = None):
940
- m = m or dict()
941
- if m.get('output') is not None:
942
- temp_model = RunCommentGenerationResponseBodyPayloadOutput()
943
- self.output = temp_model.from_map(m['output'])
944
- if m.get('usage') is not None:
945
- temp_model = RunCommentGenerationResponseBodyPayloadUsage()
946
- self.usage = temp_model.from_map(m['usage'])
947
- return self
948
-
949
-
950
- class RunCommentGenerationResponseBody(TeaModel):
951
- def __init__(
952
- self,
953
- end: bool = None,
954
- header: RunCommentGenerationResponseBodyHeader = None,
955
- payload: RunCommentGenerationResponseBodyPayload = None,
956
- ):
957
- self.end = end
958
- self.header = header
959
- self.payload = payload
960
-
961
- def validate(self):
962
- if self.header:
963
- self.header.validate()
964
- if self.payload:
965
- self.payload.validate()
966
-
967
- def to_map(self):
968
- _map = super().to_map()
969
- if _map is not None:
970
- return _map
971
-
972
- result = dict()
973
- if self.end is not None:
974
- result['end'] = self.end
975
- if self.header is not None:
976
- result['header'] = self.header.to_map()
977
- if self.payload is not None:
978
- result['payload'] = self.payload.to_map()
979
- return result
980
-
981
- def from_map(self, m: dict = None):
982
- m = m or dict()
983
- if m.get('end') is not None:
984
- self.end = m.get('end')
985
- if m.get('header') is not None:
986
- temp_model = RunCommentGenerationResponseBodyHeader()
987
- self.header = temp_model.from_map(m['header'])
988
- if m.get('payload') is not None:
989
- temp_model = RunCommentGenerationResponseBodyPayload()
990
- self.payload = temp_model.from_map(m['payload'])
991
- return self
992
-
993
-
994
- class RunCommentGenerationResponse(TeaModel):
995
- def __init__(
996
- self,
997
- headers: Dict[str, str] = None,
998
- status_code: int = None,
999
- body: RunCommentGenerationResponseBody = None,
1000
- ):
1001
- self.headers = headers
1002
- self.status_code = status_code
1003
- self.body = body
1004
-
1005
- def validate(self):
1006
- if self.body:
1007
- self.body.validate()
1008
-
1009
- def to_map(self):
1010
- _map = super().to_map()
1011
- if _map is not None:
1012
- return _map
1013
-
1014
- result = dict()
1015
- if self.headers is not None:
1016
- result['headers'] = self.headers
1017
- if self.status_code is not None:
1018
- result['statusCode'] = self.status_code
1019
- if self.body is not None:
1020
- result['body'] = self.body.to_map()
1021
- return result
1022
-
1023
- def from_map(self, m: dict = None):
1024
- m = m or dict()
1025
- if m.get('headers') is not None:
1026
- self.headers = m.get('headers')
1027
- if m.get('statusCode') is not None:
1028
- self.status_code = m.get('statusCode')
1029
- if m.get('body') is not None:
1030
- temp_model = RunCommentGenerationResponseBody()
1031
- self.body = temp_model.from_map(m['body'])
1032
- return self
1033
-
1034
-
1035
744
  class RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights(TeaModel):
1036
745
  def __init__(
1037
746
  self,
@@ -1420,21 +1129,96 @@ class RunHotTopicChatResponseBodyPayloadOutputArticles(TeaModel):
1420
1129
  return self
1421
1130
 
1422
1131
 
1132
+ class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages(TeaModel):
1133
+ def __init__(
1134
+ self,
1135
+ url: str = None,
1136
+ ):
1137
+ self.url = url
1138
+
1139
+ def validate(self):
1140
+ pass
1141
+
1142
+ def to_map(self):
1143
+ _map = super().to_map()
1144
+ if _map is not None:
1145
+ return _map
1146
+
1147
+ result = dict()
1148
+ if self.url is not None:
1149
+ result['url'] = self.url
1150
+ return result
1151
+
1152
+ def from_map(self, m: dict = None):
1153
+ m = m or dict()
1154
+ if m.get('url') is not None:
1155
+ self.url = m.get('url')
1156
+ return self
1157
+
1158
+
1159
+ class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews(TeaModel):
1160
+ def __init__(
1161
+ self,
1162
+ title: str = None,
1163
+ url: str = None,
1164
+ ):
1165
+ self.title = title
1166
+ self.url = url
1167
+
1168
+ def validate(self):
1169
+ pass
1170
+
1171
+ def to_map(self):
1172
+ _map = super().to_map()
1173
+ if _map is not None:
1174
+ return _map
1175
+
1176
+ result = dict()
1177
+ if self.title is not None:
1178
+ result['title'] = self.title
1179
+ if self.url is not None:
1180
+ result['url'] = self.url
1181
+ return result
1182
+
1183
+ def from_map(self, m: dict = None):
1184
+ m = m or dict()
1185
+ if m.get('title') is not None:
1186
+ self.title = m.get('title')
1187
+ if m.get('url') is not None:
1188
+ self.url = m.get('url')
1189
+ return self
1190
+
1191
+
1423
1192
  class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries(TeaModel):
1424
1193
  def __init__(
1425
1194
  self,
1426
1195
  custom_hot_value: float = None,
1196
+ custom_text_summary: str = None,
1427
1197
  hot_topic: str = None,
1428
1198
  hot_topic_version: str = None,
1429
1199
  hot_value: float = None,
1200
+ images: List[RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages] = None,
1201
+ news: List[RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews] = None,
1202
+ text_summary: str = None,
1430
1203
  ):
1431
1204
  self.custom_hot_value = custom_hot_value
1205
+ self.custom_text_summary = custom_text_summary
1432
1206
  self.hot_topic = hot_topic
1433
1207
  self.hot_topic_version = hot_topic_version
1434
1208
  self.hot_value = hot_value
1209
+ self.images = images
1210
+ self.news = news
1211
+ self.text_summary = text_summary
1435
1212
 
1436
1213
  def validate(self):
1437
- pass
1214
+ if self.images:
1215
+ for k in self.images:
1216
+ if k:
1217
+ k.validate()
1218
+ if self.news:
1219
+ for k in self.news:
1220
+ if k:
1221
+ k.validate()
1438
1222
 
1439
1223
  def to_map(self):
1440
1224
  _map = super().to_map()
@@ -1444,24 +1228,50 @@ class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries(TeaModel):
1444
1228
  result = dict()
1445
1229
  if self.custom_hot_value is not None:
1446
1230
  result['customHotValue'] = self.custom_hot_value
1231
+ if self.custom_text_summary is not None:
1232
+ result['customTextSummary'] = self.custom_text_summary
1447
1233
  if self.hot_topic is not None:
1448
1234
  result['hotTopic'] = self.hot_topic
1449
1235
  if self.hot_topic_version is not None:
1450
1236
  result['hotTopicVersion'] = self.hot_topic_version
1451
1237
  if self.hot_value is not None:
1452
1238
  result['hotValue'] = self.hot_value
1239
+ result['images'] = []
1240
+ if self.images is not None:
1241
+ for k in self.images:
1242
+ result['images'].append(k.to_map() if k else None)
1243
+ result['news'] = []
1244
+ if self.news is not None:
1245
+ for k in self.news:
1246
+ result['news'].append(k.to_map() if k else None)
1247
+ if self.text_summary is not None:
1248
+ result['textSummary'] = self.text_summary
1453
1249
  return result
1454
1250
 
1455
1251
  def from_map(self, m: dict = None):
1456
1252
  m = m or dict()
1457
1253
  if m.get('customHotValue') is not None:
1458
1254
  self.custom_hot_value = m.get('customHotValue')
1255
+ if m.get('customTextSummary') is not None:
1256
+ self.custom_text_summary = m.get('customTextSummary')
1459
1257
  if m.get('hotTopic') is not None:
1460
1258
  self.hot_topic = m.get('hotTopic')
1461
1259
  if m.get('hotTopicVersion') is not None:
1462
1260
  self.hot_topic_version = m.get('hotTopicVersion')
1463
1261
  if m.get('hotValue') is not None:
1464
1262
  self.hot_value = m.get('hotValue')
1263
+ self.images = []
1264
+ if m.get('images') is not None:
1265
+ for k in m.get('images'):
1266
+ temp_model = RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages()
1267
+ self.images.append(temp_model.from_map(k))
1268
+ self.news = []
1269
+ if m.get('news') is not None:
1270
+ for k in m.get('news'):
1271
+ temp_model = RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews()
1272
+ self.news.append(temp_model.from_map(k))
1273
+ if m.get('textSummary') is not None:
1274
+ self.text_summary = m.get('textSummary')
1465
1275
  return self
1466
1276
 
1467
1277
 
@@ -2467,13 +2277,19 @@ class RunMarketingInformationExtractResponse(TeaModel):
2467
2277
  class RunMarketingInformationWritingRequest(TeaModel):
2468
2278
  def __init__(
2469
2279
  self,
2280
+ custom_limitation: str = None,
2470
2281
  custom_prompt: str = None,
2282
+ input_example: str = None,
2471
2283
  model_id: str = None,
2284
+ output_example: str = None,
2472
2285
  source_material: str = None,
2473
2286
  writing_type: str = None,
2474
2287
  ):
2288
+ self.custom_limitation = custom_limitation
2475
2289
  self.custom_prompt = custom_prompt
2290
+ self.input_example = input_example
2476
2291
  self.model_id = model_id
2292
+ self.output_example = output_example
2477
2293
  self.source_material = source_material
2478
2294
  self.writing_type = writing_type
2479
2295
 
@@ -2486,10 +2302,16 @@ class RunMarketingInformationWritingRequest(TeaModel):
2486
2302
  return _map
2487
2303
 
2488
2304
  result = dict()
2305
+ if self.custom_limitation is not None:
2306
+ result['customLimitation'] = self.custom_limitation
2489
2307
  if self.custom_prompt is not None:
2490
2308
  result['customPrompt'] = self.custom_prompt
2309
+ if self.input_example is not None:
2310
+ result['inputExample'] = self.input_example
2491
2311
  if self.model_id is not None:
2492
2312
  result['modelId'] = self.model_id
2313
+ if self.output_example is not None:
2314
+ result['outputExample'] = self.output_example
2493
2315
  if self.source_material is not None:
2494
2316
  result['sourceMaterial'] = self.source_material
2495
2317
  if self.writing_type is not None:
@@ -2498,10 +2320,16 @@ class RunMarketingInformationWritingRequest(TeaModel):
2498
2320
 
2499
2321
  def from_map(self, m: dict = None):
2500
2322
  m = m or dict()
2323
+ if m.get('customLimitation') is not None:
2324
+ self.custom_limitation = m.get('customLimitation')
2501
2325
  if m.get('customPrompt') is not None:
2502
2326
  self.custom_prompt = m.get('customPrompt')
2327
+ if m.get('inputExample') is not None:
2328
+ self.input_example = m.get('inputExample')
2503
2329
  if m.get('modelId') is not None:
2504
2330
  self.model_id = m.get('modelId')
2331
+ if m.get('outputExample') is not None:
2332
+ self.output_example = m.get('outputExample')
2505
2333
  if m.get('sourceMaterial') is not None:
2506
2334
  self.source_material = m.get('sourceMaterial')
2507
2335
  if m.get('writingType') is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-quanmiaolightapp20240801
3
- Version: 1.4.0
3
+ Version: 2.0.0
4
4
  Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -1,4 +1,4 @@
1
1
  alibabacloud_endpoint_util<1.0.0,>=0.0.3
2
- alibabacloud_openapi_util<1.0.0,>=0.2.1
2
+ alibabacloud_openapi_util<1.0.0,>=0.2.2
3
3
  alibabacloud_tea_openapi<1.0.0,>=0.3.12
4
4
  alibabacloud_tea_util<1.0.0,>=0.3.13
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
24
24
  """
25
25
  setup module for alibabacloud_quanmiaolightapp20240801.
26
26
 
27
- Created on 01/11/2024
27
+ Created on 05/12/2024
28
28
 
29
29
  @author: Alibaba Cloud SDK
30
30
  """
@@ -39,7 +39,7 @@ VERSION = __import__(PACKAGE).__version__
39
39
  REQUIRES = [
40
40
  "alibabacloud_tea_util>=0.3.13, <1.0.0",
41
41
  "alibabacloud_tea_openapi>=0.3.12, <1.0.0",
42
- "alibabacloud_openapi_util>=0.2.1, <1.0.0",
42
+ "alibabacloud_openapi_util>=0.2.2, <1.0.0",
43
43
  "alibabacloud_endpoint_util>=0.0.3, <1.0.0"
44
44
  ]
45
45