alibabacloud-quanmiaolightapp20240801 2.13.2__py3-none-any.whl → 2.13.4__py3-none-any.whl
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_quanmiaolightapp20240801/__init__.py +1 -1
- alibabacloud_quanmiaolightapp20240801/client.py +4448 -3769
- alibabacloud_quanmiaolightapp20240801/models/__init__.py +693 -0
- alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_request.py +33 -0
- alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_response_body.py +74 -0
- alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_request.py +52 -0
- alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_response_body.py +66 -0
- alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_shrink_request.py +50 -0
- alibabacloud_quanmiaolightapp20240801/models/_generate_broadcast_news_request.py +34 -0
- alibabacloud_quanmiaolightapp20240801/models/_generate_broadcast_news_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_generate_broadcast_news_response_body.py +303 -0
- alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_request.py +112 -0
- alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_response_body.py +104 -0
- alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_shrink_request.py +66 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_enterprise_voc_analysis_task_request.py +33 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_enterprise_voc_analysis_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_enterprise_voc_analysis_task_response_body.py +374 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_essay_correction_task_request.py +33 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_essay_correction_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_essay_correction_task_response_body.py +195 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_file_content_request.py +33 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_file_content_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_file_content_response_body.py +104 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_tag_mining_analysis_task_request.py +33 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_tag_mining_analysis_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_tag_mining_analysis_task_response_body.py +347 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_config_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_config_response_body.py +104 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_task_request.py +34 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_task_response_body.py +1620 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_config_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_config_response_body.py +106 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_task_request.py +34 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_task_response_body.py +494 -0
- alibabacloud_quanmiaolightapp20240801/models/_hot_news_recommend_request.py +33 -0
- alibabacloud_quanmiaolightapp20240801/models/_hot_news_recommend_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_hot_news_recommend_response_body.py +180 -0
- alibabacloud_quanmiaolightapp20240801/models/_list_analysis_tag_detail_by_task_id_request.py +50 -0
- alibabacloud_quanmiaolightapp20240801/models/_list_analysis_tag_detail_by_task_id_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_list_analysis_tag_detail_by_task_id_response_body.py +196 -0
- alibabacloud_quanmiaolightapp20240801/models/_list_hot_topic_summaries_request.py +65 -0
- alibabacloud_quanmiaolightapp20240801/models/_list_hot_topic_summaries_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_list_hot_topic_summaries_response_body.py +367 -0
- alibabacloud_quanmiaolightapp20240801/models/_model_usage.py +49 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_request.py +203 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_response_body.py +331 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_shrink_request.py +109 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_essay_correction_request.py +81 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_essay_correction_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_essay_correction_response_body.py +241 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_request.py +264 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_response_body.py +636 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_shrink_request.py +121 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_request.py +100 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_response_body.py +241 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_shrink_request.py +52 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_request.py +59 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_response_body.py +232 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_shrink_request.py +57 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_request.py +89 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_response_body.py +248 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_request.py +136 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_response_body.py +233 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_shrink_request.py +90 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_ocr_parse_request.py +49 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_ocr_parse_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_ocr_parse_response_body.py +233 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_chat_request.py +42 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_chat_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_chat_response_body.py +248 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_continue_request.py +50 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_continue_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_continue_response_body.py +248 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_planning_request.py +82 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_planning_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_planning_response_body.py +248 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_refine_request.py +33 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_refine_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_script_refine_response_body.py +290 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_request.py +75 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_response_body.py +248 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_shrink_request.py +73 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_request.py +136 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_response_body.py +233 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_shrink_request.py +90 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_request.py +600 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_response_body.py +1668 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_shrink_request.py +209 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_request.py +142 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_response_body.py +363 -0
- alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_shrink_request.py +140 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_request.py +247 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_response_body.py +104 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_shrink_request.py +113 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_request.py +167 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_response_body.py +103 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_shrink_request.py +81 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_request.py +143 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_response_body.py +104 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_shrink_request.py +97 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_request.py +593 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_response_body.py +103 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_shrink_request.py +202 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_request.py +148 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_response_body.py +104 -0
- alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_shrink_request.py +146 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_config_request.py +34 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_config_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_config_response_body.py +66 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_task_request.py +43 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_task_response_body.py +119 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_request.py +45 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_response_body.py +136 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_shrink_request.py +43 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_request.py +34 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_response_body.py +66 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_request.py +43 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_response.py +54 -0
- alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_response_body.py +120 -0
- {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.4.dist-info}/METADATA +7 -7
- alibabacloud_quanmiaolightapp20240801-2.13.4.dist-info/RECORD +147 -0
- alibabacloud_quanmiaolightapp20240801/models.py +0 -16578
- alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info/RECORD +0 -8
- {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.4.dist-info}/LICENSE +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.4.dist-info}/WHEEL +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.4.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from alibabacloud_quanmiaolightapp20240801 import models as main_models
|
|
8
|
+
from darabonba.model import DaraModel
|
|
9
|
+
|
|
10
|
+
class GenerateBroadcastNewsResponseBody(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
code: str = None,
|
|
14
|
+
data: main_models.GenerateBroadcastNewsResponseBodyData = None,
|
|
15
|
+
http_status_code: int = None,
|
|
16
|
+
message: str = None,
|
|
17
|
+
request_id: str = None,
|
|
18
|
+
success: bool = None,
|
|
19
|
+
):
|
|
20
|
+
self.code = code
|
|
21
|
+
self.data = data
|
|
22
|
+
self.http_status_code = http_status_code
|
|
23
|
+
self.message = message
|
|
24
|
+
self.request_id = request_id
|
|
25
|
+
self.success = success
|
|
26
|
+
|
|
27
|
+
def validate(self):
|
|
28
|
+
if self.data:
|
|
29
|
+
self.data.validate()
|
|
30
|
+
|
|
31
|
+
def to_map(self):
|
|
32
|
+
result = dict()
|
|
33
|
+
_map = super().to_map()
|
|
34
|
+
if _map is not None:
|
|
35
|
+
result = _map
|
|
36
|
+
if self.code is not None:
|
|
37
|
+
result['code'] = self.code
|
|
38
|
+
|
|
39
|
+
if self.data is not None:
|
|
40
|
+
result['data'] = self.data.to_map()
|
|
41
|
+
|
|
42
|
+
if self.http_status_code is not None:
|
|
43
|
+
result['httpStatusCode'] = self.http_status_code
|
|
44
|
+
|
|
45
|
+
if self.message is not None:
|
|
46
|
+
result['message'] = self.message
|
|
47
|
+
|
|
48
|
+
if self.request_id is not None:
|
|
49
|
+
result['requestId'] = self.request_id
|
|
50
|
+
|
|
51
|
+
if self.success is not None:
|
|
52
|
+
result['success'] = self.success
|
|
53
|
+
|
|
54
|
+
return result
|
|
55
|
+
|
|
56
|
+
def from_map(self, m: dict = None):
|
|
57
|
+
m = m or dict()
|
|
58
|
+
if m.get('code') is not None:
|
|
59
|
+
self.code = m.get('code')
|
|
60
|
+
|
|
61
|
+
if m.get('data') is not None:
|
|
62
|
+
temp_model = main_models.GenerateBroadcastNewsResponseBodyData()
|
|
63
|
+
self.data = temp_model.from_map(m.get('data'))
|
|
64
|
+
|
|
65
|
+
if m.get('httpStatusCode') is not None:
|
|
66
|
+
self.http_status_code = m.get('httpStatusCode')
|
|
67
|
+
|
|
68
|
+
if m.get('message') is not None:
|
|
69
|
+
self.message = m.get('message')
|
|
70
|
+
|
|
71
|
+
if m.get('requestId') is not None:
|
|
72
|
+
self.request_id = m.get('requestId')
|
|
73
|
+
|
|
74
|
+
if m.get('success') is not None:
|
|
75
|
+
self.success = m.get('success')
|
|
76
|
+
|
|
77
|
+
return self
|
|
78
|
+
|
|
79
|
+
class GenerateBroadcastNewsResponseBodyData(DaraModel):
|
|
80
|
+
def __init__(
|
|
81
|
+
self,
|
|
82
|
+
hot_topic_summaries: List[main_models.GenerateBroadcastNewsResponseBodyDataHotTopicSummaries] = None,
|
|
83
|
+
session_id: str = None,
|
|
84
|
+
task_id: str = None,
|
|
85
|
+
text: str = None,
|
|
86
|
+
usage: main_models.GenerateBroadcastNewsResponseBodyDataUsage = None,
|
|
87
|
+
):
|
|
88
|
+
self.hot_topic_summaries = hot_topic_summaries
|
|
89
|
+
self.session_id = session_id
|
|
90
|
+
self.task_id = task_id
|
|
91
|
+
self.text = text
|
|
92
|
+
self.usage = usage
|
|
93
|
+
|
|
94
|
+
def validate(self):
|
|
95
|
+
if self.hot_topic_summaries:
|
|
96
|
+
for v1 in self.hot_topic_summaries:
|
|
97
|
+
if v1:
|
|
98
|
+
v1.validate()
|
|
99
|
+
if self.usage:
|
|
100
|
+
self.usage.validate()
|
|
101
|
+
|
|
102
|
+
def to_map(self):
|
|
103
|
+
result = dict()
|
|
104
|
+
_map = super().to_map()
|
|
105
|
+
if _map is not None:
|
|
106
|
+
result = _map
|
|
107
|
+
result['hotTopicSummaries'] = []
|
|
108
|
+
if self.hot_topic_summaries is not None:
|
|
109
|
+
for k1 in self.hot_topic_summaries:
|
|
110
|
+
result['hotTopicSummaries'].append(k1.to_map() if k1 else None)
|
|
111
|
+
|
|
112
|
+
if self.session_id is not None:
|
|
113
|
+
result['sessionId'] = self.session_id
|
|
114
|
+
|
|
115
|
+
if self.task_id is not None:
|
|
116
|
+
result['taskId'] = self.task_id
|
|
117
|
+
|
|
118
|
+
if self.text is not None:
|
|
119
|
+
result['text'] = self.text
|
|
120
|
+
|
|
121
|
+
if self.usage is not None:
|
|
122
|
+
result['usage'] = self.usage.to_map()
|
|
123
|
+
|
|
124
|
+
return result
|
|
125
|
+
|
|
126
|
+
def from_map(self, m: dict = None):
|
|
127
|
+
m = m or dict()
|
|
128
|
+
self.hot_topic_summaries = []
|
|
129
|
+
if m.get('hotTopicSummaries') is not None:
|
|
130
|
+
for k1 in m.get('hotTopicSummaries'):
|
|
131
|
+
temp_model = main_models.GenerateBroadcastNewsResponseBodyDataHotTopicSummaries()
|
|
132
|
+
self.hot_topic_summaries.append(temp_model.from_map(k1))
|
|
133
|
+
|
|
134
|
+
if m.get('sessionId') is not None:
|
|
135
|
+
self.session_id = m.get('sessionId')
|
|
136
|
+
|
|
137
|
+
if m.get('taskId') is not None:
|
|
138
|
+
self.task_id = m.get('taskId')
|
|
139
|
+
|
|
140
|
+
if m.get('text') is not None:
|
|
141
|
+
self.text = m.get('text')
|
|
142
|
+
|
|
143
|
+
if m.get('usage') is not None:
|
|
144
|
+
temp_model = main_models.GenerateBroadcastNewsResponseBodyDataUsage()
|
|
145
|
+
self.usage = temp_model.from_map(m.get('usage'))
|
|
146
|
+
|
|
147
|
+
return self
|
|
148
|
+
|
|
149
|
+
class GenerateBroadcastNewsResponseBodyDataUsage(DaraModel):
|
|
150
|
+
def __init__(
|
|
151
|
+
self,
|
|
152
|
+
input_tokens: int = None,
|
|
153
|
+
output_tokens: int = None,
|
|
154
|
+
total_tokens: int = None,
|
|
155
|
+
):
|
|
156
|
+
self.input_tokens = input_tokens
|
|
157
|
+
self.output_tokens = output_tokens
|
|
158
|
+
self.total_tokens = total_tokens
|
|
159
|
+
|
|
160
|
+
def validate(self):
|
|
161
|
+
pass
|
|
162
|
+
|
|
163
|
+
def to_map(self):
|
|
164
|
+
result = dict()
|
|
165
|
+
_map = super().to_map()
|
|
166
|
+
if _map is not None:
|
|
167
|
+
result = _map
|
|
168
|
+
if self.input_tokens is not None:
|
|
169
|
+
result['inputTokens'] = self.input_tokens
|
|
170
|
+
|
|
171
|
+
if self.output_tokens is not None:
|
|
172
|
+
result['outputTokens'] = self.output_tokens
|
|
173
|
+
|
|
174
|
+
if self.total_tokens is not None:
|
|
175
|
+
result['totalTokens'] = self.total_tokens
|
|
176
|
+
|
|
177
|
+
return result
|
|
178
|
+
|
|
179
|
+
def from_map(self, m: dict = None):
|
|
180
|
+
m = m or dict()
|
|
181
|
+
if m.get('inputTokens') is not None:
|
|
182
|
+
self.input_tokens = m.get('inputTokens')
|
|
183
|
+
|
|
184
|
+
if m.get('outputTokens') is not None:
|
|
185
|
+
self.output_tokens = m.get('outputTokens')
|
|
186
|
+
|
|
187
|
+
if m.get('totalTokens') is not None:
|
|
188
|
+
self.total_tokens = m.get('totalTokens')
|
|
189
|
+
|
|
190
|
+
return self
|
|
191
|
+
|
|
192
|
+
class GenerateBroadcastNewsResponseBodyDataHotTopicSummaries(DaraModel):
|
|
193
|
+
def __init__(
|
|
194
|
+
self,
|
|
195
|
+
category: str = None,
|
|
196
|
+
hot_topic: str = None,
|
|
197
|
+
hot_topic_version: str = None,
|
|
198
|
+
hot_value: float = None,
|
|
199
|
+
id: str = None,
|
|
200
|
+
images: List[main_models.GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages] = None,
|
|
201
|
+
text_summary: str = None,
|
|
202
|
+
):
|
|
203
|
+
self.category = category
|
|
204
|
+
self.hot_topic = hot_topic
|
|
205
|
+
self.hot_topic_version = hot_topic_version
|
|
206
|
+
self.hot_value = hot_value
|
|
207
|
+
self.id = id
|
|
208
|
+
self.images = images
|
|
209
|
+
self.text_summary = text_summary
|
|
210
|
+
|
|
211
|
+
def validate(self):
|
|
212
|
+
if self.images:
|
|
213
|
+
for v1 in self.images:
|
|
214
|
+
if v1:
|
|
215
|
+
v1.validate()
|
|
216
|
+
|
|
217
|
+
def to_map(self):
|
|
218
|
+
result = dict()
|
|
219
|
+
_map = super().to_map()
|
|
220
|
+
if _map is not None:
|
|
221
|
+
result = _map
|
|
222
|
+
if self.category is not None:
|
|
223
|
+
result['category'] = self.category
|
|
224
|
+
|
|
225
|
+
if self.hot_topic is not None:
|
|
226
|
+
result['hotTopic'] = self.hot_topic
|
|
227
|
+
|
|
228
|
+
if self.hot_topic_version is not None:
|
|
229
|
+
result['hotTopicVersion'] = self.hot_topic_version
|
|
230
|
+
|
|
231
|
+
if self.hot_value is not None:
|
|
232
|
+
result['hotValue'] = self.hot_value
|
|
233
|
+
|
|
234
|
+
if self.id is not None:
|
|
235
|
+
result['id'] = self.id
|
|
236
|
+
|
|
237
|
+
result['images'] = []
|
|
238
|
+
if self.images is not None:
|
|
239
|
+
for k1 in self.images:
|
|
240
|
+
result['images'].append(k1.to_map() if k1 else None)
|
|
241
|
+
|
|
242
|
+
if self.text_summary is not None:
|
|
243
|
+
result['textSummary'] = self.text_summary
|
|
244
|
+
|
|
245
|
+
return result
|
|
246
|
+
|
|
247
|
+
def from_map(self, m: dict = None):
|
|
248
|
+
m = m or dict()
|
|
249
|
+
if m.get('category') is not None:
|
|
250
|
+
self.category = m.get('category')
|
|
251
|
+
|
|
252
|
+
if m.get('hotTopic') is not None:
|
|
253
|
+
self.hot_topic = m.get('hotTopic')
|
|
254
|
+
|
|
255
|
+
if m.get('hotTopicVersion') is not None:
|
|
256
|
+
self.hot_topic_version = m.get('hotTopicVersion')
|
|
257
|
+
|
|
258
|
+
if m.get('hotValue') is not None:
|
|
259
|
+
self.hot_value = m.get('hotValue')
|
|
260
|
+
|
|
261
|
+
if m.get('id') is not None:
|
|
262
|
+
self.id = m.get('id')
|
|
263
|
+
|
|
264
|
+
self.images = []
|
|
265
|
+
if m.get('images') is not None:
|
|
266
|
+
for k1 in m.get('images'):
|
|
267
|
+
temp_model = main_models.GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages()
|
|
268
|
+
self.images.append(temp_model.from_map(k1))
|
|
269
|
+
|
|
270
|
+
if m.get('textSummary') is not None:
|
|
271
|
+
self.text_summary = m.get('textSummary')
|
|
272
|
+
|
|
273
|
+
return self
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
class GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages(DaraModel):
|
|
278
|
+
def __init__(
|
|
279
|
+
self,
|
|
280
|
+
url: str = None,
|
|
281
|
+
):
|
|
282
|
+
self.url = url
|
|
283
|
+
|
|
284
|
+
def validate(self):
|
|
285
|
+
pass
|
|
286
|
+
|
|
287
|
+
def to_map(self):
|
|
288
|
+
result = dict()
|
|
289
|
+
_map = super().to_map()
|
|
290
|
+
if _map is not None:
|
|
291
|
+
result = _map
|
|
292
|
+
if self.url is not None:
|
|
293
|
+
result['url'] = self.url
|
|
294
|
+
|
|
295
|
+
return result
|
|
296
|
+
|
|
297
|
+
def from_map(self, m: dict = None):
|
|
298
|
+
m = m or dict()
|
|
299
|
+
if m.get('url') is not None:
|
|
300
|
+
self.url = m.get('url')
|
|
301
|
+
|
|
302
|
+
return self
|
|
303
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from alibabacloud_quanmiaolightapp20240801 import models as main_models
|
|
8
|
+
from darabonba.model import DaraModel
|
|
9
|
+
|
|
10
|
+
class GenerateOutputFormatRequest(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
business_type: str = None,
|
|
14
|
+
content: str = None,
|
|
15
|
+
extra_info: str = None,
|
|
16
|
+
tags: List[main_models.GenerateOutputFormatRequestTags] = None,
|
|
17
|
+
task_description: str = None,
|
|
18
|
+
):
|
|
19
|
+
self.business_type = business_type
|
|
20
|
+
self.content = content
|
|
21
|
+
self.extra_info = extra_info
|
|
22
|
+
# This parameter is required.
|
|
23
|
+
self.tags = tags
|
|
24
|
+
self.task_description = task_description
|
|
25
|
+
|
|
26
|
+
def validate(self):
|
|
27
|
+
if self.tags:
|
|
28
|
+
for v1 in self.tags:
|
|
29
|
+
if v1:
|
|
30
|
+
v1.validate()
|
|
31
|
+
|
|
32
|
+
def to_map(self):
|
|
33
|
+
result = dict()
|
|
34
|
+
_map = super().to_map()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
result = _map
|
|
37
|
+
if self.business_type is not None:
|
|
38
|
+
result['businessType'] = self.business_type
|
|
39
|
+
|
|
40
|
+
if self.content is not None:
|
|
41
|
+
result['content'] = self.content
|
|
42
|
+
|
|
43
|
+
if self.extra_info is not None:
|
|
44
|
+
result['extraInfo'] = self.extra_info
|
|
45
|
+
|
|
46
|
+
result['tags'] = []
|
|
47
|
+
if self.tags is not None:
|
|
48
|
+
for k1 in self.tags:
|
|
49
|
+
result['tags'].append(k1.to_map() if k1 else None)
|
|
50
|
+
|
|
51
|
+
if self.task_description is not None:
|
|
52
|
+
result['taskDescription'] = self.task_description
|
|
53
|
+
|
|
54
|
+
return result
|
|
55
|
+
|
|
56
|
+
def from_map(self, m: dict = None):
|
|
57
|
+
m = m or dict()
|
|
58
|
+
if m.get('businessType') is not None:
|
|
59
|
+
self.business_type = m.get('businessType')
|
|
60
|
+
|
|
61
|
+
if m.get('content') is not None:
|
|
62
|
+
self.content = m.get('content')
|
|
63
|
+
|
|
64
|
+
if m.get('extraInfo') is not None:
|
|
65
|
+
self.extra_info = m.get('extraInfo')
|
|
66
|
+
|
|
67
|
+
self.tags = []
|
|
68
|
+
if m.get('tags') is not None:
|
|
69
|
+
for k1 in m.get('tags'):
|
|
70
|
+
temp_model = main_models.GenerateOutputFormatRequestTags()
|
|
71
|
+
self.tags.append(temp_model.from_map(k1))
|
|
72
|
+
|
|
73
|
+
if m.get('taskDescription') is not None:
|
|
74
|
+
self.task_description = m.get('taskDescription')
|
|
75
|
+
|
|
76
|
+
return self
|
|
77
|
+
|
|
78
|
+
class GenerateOutputFormatRequestTags(DaraModel):
|
|
79
|
+
def __init__(
|
|
80
|
+
self,
|
|
81
|
+
tag_define_prompt: str = None,
|
|
82
|
+
tag_name: str = None,
|
|
83
|
+
):
|
|
84
|
+
self.tag_define_prompt = tag_define_prompt
|
|
85
|
+
self.tag_name = tag_name
|
|
86
|
+
|
|
87
|
+
def validate(self):
|
|
88
|
+
pass
|
|
89
|
+
|
|
90
|
+
def to_map(self):
|
|
91
|
+
result = dict()
|
|
92
|
+
_map = super().to_map()
|
|
93
|
+
if _map is not None:
|
|
94
|
+
result = _map
|
|
95
|
+
if self.tag_define_prompt is not None:
|
|
96
|
+
result['tagDefinePrompt'] = self.tag_define_prompt
|
|
97
|
+
|
|
98
|
+
if self.tag_name is not None:
|
|
99
|
+
result['tagName'] = self.tag_name
|
|
100
|
+
|
|
101
|
+
return result
|
|
102
|
+
|
|
103
|
+
def from_map(self, m: dict = None):
|
|
104
|
+
m = m or dict()
|
|
105
|
+
if m.get('tagDefinePrompt') is not None:
|
|
106
|
+
self.tag_define_prompt = m.get('tagDefinePrompt')
|
|
107
|
+
|
|
108
|
+
if m.get('tagName') is not None:
|
|
109
|
+
self.tag_name = m.get('tagName')
|
|
110
|
+
|
|
111
|
+
return self
|
|
112
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
|
|
7
|
+
from alibabacloud_quanmiaolightapp20240801 import models as main_models
|
|
8
|
+
from darabonba.model import DaraModel
|
|
9
|
+
|
|
10
|
+
class GenerateOutputFormatResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.GenerateOutputFormatResponseBody = None,
|
|
16
|
+
):
|
|
17
|
+
self.headers = headers
|
|
18
|
+
self.status_code = status_code
|
|
19
|
+
self.body = body
|
|
20
|
+
|
|
21
|
+
def validate(self):
|
|
22
|
+
if self.body:
|
|
23
|
+
self.body.validate()
|
|
24
|
+
|
|
25
|
+
def to_map(self):
|
|
26
|
+
result = dict()
|
|
27
|
+
_map = super().to_map()
|
|
28
|
+
if _map is not None:
|
|
29
|
+
result = _map
|
|
30
|
+
if self.headers is not None:
|
|
31
|
+
result['headers'] = self.headers
|
|
32
|
+
|
|
33
|
+
if self.status_code is not None:
|
|
34
|
+
result['statusCode'] = self.status_code
|
|
35
|
+
|
|
36
|
+
if self.body is not None:
|
|
37
|
+
result['body'] = self.body.to_map()
|
|
38
|
+
|
|
39
|
+
return result
|
|
40
|
+
|
|
41
|
+
def from_map(self, m: dict = None):
|
|
42
|
+
m = m or dict()
|
|
43
|
+
if m.get('headers') is not None:
|
|
44
|
+
self.headers = m.get('headers')
|
|
45
|
+
|
|
46
|
+
if m.get('statusCode') is not None:
|
|
47
|
+
self.status_code = m.get('statusCode')
|
|
48
|
+
|
|
49
|
+
if m.get('body') is not None:
|
|
50
|
+
temp_model = main_models.GenerateOutputFormatResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from alibabacloud_quanmiaolightapp20240801 import models as main_models
|
|
6
|
+
from darabonba.model import DaraModel
|
|
7
|
+
|
|
8
|
+
class GenerateOutputFormatResponseBody(DaraModel):
|
|
9
|
+
def __init__(
|
|
10
|
+
self,
|
|
11
|
+
code: str = None,
|
|
12
|
+
data: main_models.GenerateOutputFormatResponseBodyData = None,
|
|
13
|
+
http_status_code: int = None,
|
|
14
|
+
message: str = None,
|
|
15
|
+
request_id: str = None,
|
|
16
|
+
success: bool = None,
|
|
17
|
+
):
|
|
18
|
+
self.code = code
|
|
19
|
+
self.data = data
|
|
20
|
+
self.http_status_code = http_status_code
|
|
21
|
+
self.message = message
|
|
22
|
+
# Id of the request
|
|
23
|
+
self.request_id = request_id
|
|
24
|
+
self.success = success
|
|
25
|
+
|
|
26
|
+
def validate(self):
|
|
27
|
+
if self.data:
|
|
28
|
+
self.data.validate()
|
|
29
|
+
|
|
30
|
+
def to_map(self):
|
|
31
|
+
result = dict()
|
|
32
|
+
_map = super().to_map()
|
|
33
|
+
if _map is not None:
|
|
34
|
+
result = _map
|
|
35
|
+
if self.code is not None:
|
|
36
|
+
result['code'] = self.code
|
|
37
|
+
|
|
38
|
+
if self.data is not None:
|
|
39
|
+
result['data'] = self.data.to_map()
|
|
40
|
+
|
|
41
|
+
if self.http_status_code is not None:
|
|
42
|
+
result['httpStatusCode'] = self.http_status_code
|
|
43
|
+
|
|
44
|
+
if self.message is not None:
|
|
45
|
+
result['message'] = self.message
|
|
46
|
+
|
|
47
|
+
if self.request_id is not None:
|
|
48
|
+
result['requestId'] = self.request_id
|
|
49
|
+
|
|
50
|
+
if self.success is not None:
|
|
51
|
+
result['success'] = self.success
|
|
52
|
+
|
|
53
|
+
return result
|
|
54
|
+
|
|
55
|
+
def from_map(self, m: dict = None):
|
|
56
|
+
m = m or dict()
|
|
57
|
+
if m.get('code') is not None:
|
|
58
|
+
self.code = m.get('code')
|
|
59
|
+
|
|
60
|
+
if m.get('data') is not None:
|
|
61
|
+
temp_model = main_models.GenerateOutputFormatResponseBodyData()
|
|
62
|
+
self.data = temp_model.from_map(m.get('data'))
|
|
63
|
+
|
|
64
|
+
if m.get('httpStatusCode') is not None:
|
|
65
|
+
self.http_status_code = m.get('httpStatusCode')
|
|
66
|
+
|
|
67
|
+
if m.get('message') is not None:
|
|
68
|
+
self.message = m.get('message')
|
|
69
|
+
|
|
70
|
+
if m.get('requestId') is not None:
|
|
71
|
+
self.request_id = m.get('requestId')
|
|
72
|
+
|
|
73
|
+
if m.get('success') is not None:
|
|
74
|
+
self.success = m.get('success')
|
|
75
|
+
|
|
76
|
+
return self
|
|
77
|
+
|
|
78
|
+
class GenerateOutputFormatResponseBodyData(DaraModel):
|
|
79
|
+
def __init__(
|
|
80
|
+
self,
|
|
81
|
+
output_format: str = None,
|
|
82
|
+
):
|
|
83
|
+
self.output_format = output_format
|
|
84
|
+
|
|
85
|
+
def validate(self):
|
|
86
|
+
pass
|
|
87
|
+
|
|
88
|
+
def to_map(self):
|
|
89
|
+
result = dict()
|
|
90
|
+
_map = super().to_map()
|
|
91
|
+
if _map is not None:
|
|
92
|
+
result = _map
|
|
93
|
+
if self.output_format is not None:
|
|
94
|
+
result['outputFormat'] = self.output_format
|
|
95
|
+
|
|
96
|
+
return result
|
|
97
|
+
|
|
98
|
+
def from_map(self, m: dict = None):
|
|
99
|
+
m = m or dict()
|
|
100
|
+
if m.get('outputFormat') is not None:
|
|
101
|
+
self.output_format = m.get('outputFormat')
|
|
102
|
+
|
|
103
|
+
return self
|
|
104
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class GenerateOutputFormatShrinkRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
business_type: str = None,
|
|
11
|
+
content: str = None,
|
|
12
|
+
extra_info: str = None,
|
|
13
|
+
tags_shrink: str = None,
|
|
14
|
+
task_description: str = None,
|
|
15
|
+
):
|
|
16
|
+
self.business_type = business_type
|
|
17
|
+
self.content = content
|
|
18
|
+
self.extra_info = extra_info
|
|
19
|
+
# This parameter is required.
|
|
20
|
+
self.tags_shrink = tags_shrink
|
|
21
|
+
self.task_description = task_description
|
|
22
|
+
|
|
23
|
+
def validate(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def to_map(self):
|
|
27
|
+
result = dict()
|
|
28
|
+
_map = super().to_map()
|
|
29
|
+
if _map is not None:
|
|
30
|
+
result = _map
|
|
31
|
+
if self.business_type is not None:
|
|
32
|
+
result['businessType'] = self.business_type
|
|
33
|
+
|
|
34
|
+
if self.content is not None:
|
|
35
|
+
result['content'] = self.content
|
|
36
|
+
|
|
37
|
+
if self.extra_info is not None:
|
|
38
|
+
result['extraInfo'] = self.extra_info
|
|
39
|
+
|
|
40
|
+
if self.tags_shrink is not None:
|
|
41
|
+
result['tags'] = self.tags_shrink
|
|
42
|
+
|
|
43
|
+
if self.task_description is not None:
|
|
44
|
+
result['taskDescription'] = self.task_description
|
|
45
|
+
|
|
46
|
+
return result
|
|
47
|
+
|
|
48
|
+
def from_map(self, m: dict = None):
|
|
49
|
+
m = m or dict()
|
|
50
|
+
if m.get('businessType') is not None:
|
|
51
|
+
self.business_type = m.get('businessType')
|
|
52
|
+
|
|
53
|
+
if m.get('content') is not None:
|
|
54
|
+
self.content = m.get('content')
|
|
55
|
+
|
|
56
|
+
if m.get('extraInfo') is not None:
|
|
57
|
+
self.extra_info = m.get('extraInfo')
|
|
58
|
+
|
|
59
|
+
if m.get('tags') is not None:
|
|
60
|
+
self.tags_shrink = m.get('tags')
|
|
61
|
+
|
|
62
|
+
if m.get('taskDescription') is not None:
|
|
63
|
+
self.task_description = m.get('taskDescription')
|
|
64
|
+
|
|
65
|
+
return self
|
|
66
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class GetEnterpriseVocAnalysisTaskRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
task_id: str = None,
|
|
11
|
+
):
|
|
12
|
+
self.task_id = task_id
|
|
13
|
+
|
|
14
|
+
def validate(self):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
def to_map(self):
|
|
18
|
+
result = dict()
|
|
19
|
+
_map = super().to_map()
|
|
20
|
+
if _map is not None:
|
|
21
|
+
result = _map
|
|
22
|
+
if self.task_id is not None:
|
|
23
|
+
result['taskId'] = self.task_id
|
|
24
|
+
|
|
25
|
+
return result
|
|
26
|
+
|
|
27
|
+
def from_map(self, m: dict = None):
|
|
28
|
+
m = m or dict()
|
|
29
|
+
if m.get('taskId') is not None:
|
|
30
|
+
self.task_id = m.get('taskId')
|
|
31
|
+
|
|
32
|
+
return self
|
|
33
|
+
|