alibabacloud-quanmiaolightapp20240801 2.13.2__py3-none-any.whl → 2.13.3__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.
Files changed (148) hide show
  1. alibabacloud_quanmiaolightapp20240801/__init__.py +1 -1
  2. alibabacloud_quanmiaolightapp20240801/client.py +4448 -3769
  3. alibabacloud_quanmiaolightapp20240801/models/__init__.py +691 -0
  4. alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_request.py +33 -0
  5. alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_response.py +54 -0
  6. alibabacloud_quanmiaolightapp20240801/models/_cancel_async_task_response_body.py +74 -0
  7. alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_request.py +52 -0
  8. alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_response.py +54 -0
  9. alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_response_body.py +66 -0
  10. alibabacloud_quanmiaolightapp20240801/models/_export_analysis_tag_detail_by_task_id_shrink_request.py +50 -0
  11. alibabacloud_quanmiaolightapp20240801/models/_generate_broadcast_news_request.py +34 -0
  12. alibabacloud_quanmiaolightapp20240801/models/_generate_broadcast_news_response.py +54 -0
  13. alibabacloud_quanmiaolightapp20240801/models/_generate_broadcast_news_response_body.py +303 -0
  14. alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_request.py +112 -0
  15. alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_response.py +54 -0
  16. alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_response_body.py +104 -0
  17. alibabacloud_quanmiaolightapp20240801/models/_generate_output_format_shrink_request.py +66 -0
  18. alibabacloud_quanmiaolightapp20240801/models/_get_enterprise_voc_analysis_task_request.py +33 -0
  19. alibabacloud_quanmiaolightapp20240801/models/_get_enterprise_voc_analysis_task_response.py +54 -0
  20. alibabacloud_quanmiaolightapp20240801/models/_get_enterprise_voc_analysis_task_response_body.py +374 -0
  21. alibabacloud_quanmiaolightapp20240801/models/_get_essay_correction_task_request.py +33 -0
  22. alibabacloud_quanmiaolightapp20240801/models/_get_essay_correction_task_response.py +54 -0
  23. alibabacloud_quanmiaolightapp20240801/models/_get_essay_correction_task_response_body.py +174 -0
  24. alibabacloud_quanmiaolightapp20240801/models/_get_file_content_request.py +33 -0
  25. alibabacloud_quanmiaolightapp20240801/models/_get_file_content_response.py +54 -0
  26. alibabacloud_quanmiaolightapp20240801/models/_get_file_content_response_body.py +104 -0
  27. alibabacloud_quanmiaolightapp20240801/models/_get_tag_mining_analysis_task_request.py +33 -0
  28. alibabacloud_quanmiaolightapp20240801/models/_get_tag_mining_analysis_task_response.py +54 -0
  29. alibabacloud_quanmiaolightapp20240801/models/_get_tag_mining_analysis_task_response_body.py +347 -0
  30. alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_config_response.py +54 -0
  31. alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_config_response_body.py +104 -0
  32. alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_task_request.py +34 -0
  33. alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_task_response.py +54 -0
  34. alibabacloud_quanmiaolightapp20240801/models/_get_video_analysis_task_response_body.py +1620 -0
  35. alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_config_response.py +54 -0
  36. alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_config_response_body.py +106 -0
  37. alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_task_request.py +34 -0
  38. alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_task_response.py +54 -0
  39. alibabacloud_quanmiaolightapp20240801/models/_get_video_detect_shot_task_response_body.py +494 -0
  40. alibabacloud_quanmiaolightapp20240801/models/_hot_news_recommend_request.py +33 -0
  41. alibabacloud_quanmiaolightapp20240801/models/_hot_news_recommend_response.py +54 -0
  42. alibabacloud_quanmiaolightapp20240801/models/_hot_news_recommend_response_body.py +180 -0
  43. alibabacloud_quanmiaolightapp20240801/models/_list_analysis_tag_detail_by_task_id_request.py +50 -0
  44. alibabacloud_quanmiaolightapp20240801/models/_list_analysis_tag_detail_by_task_id_response.py +54 -0
  45. alibabacloud_quanmiaolightapp20240801/models/_list_analysis_tag_detail_by_task_id_response_body.py +196 -0
  46. alibabacloud_quanmiaolightapp20240801/models/_list_hot_topic_summaries_request.py +65 -0
  47. alibabacloud_quanmiaolightapp20240801/models/_list_hot_topic_summaries_response.py +54 -0
  48. alibabacloud_quanmiaolightapp20240801/models/_list_hot_topic_summaries_response_body.py +367 -0
  49. alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_request.py +203 -0
  50. alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_response.py +54 -0
  51. alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_response_body.py +331 -0
  52. alibabacloud_quanmiaolightapp20240801/models/_run_enterprise_voc_analysis_shrink_request.py +109 -0
  53. alibabacloud_quanmiaolightapp20240801/models/_run_essay_correction_request.py +81 -0
  54. alibabacloud_quanmiaolightapp20240801/models/_run_essay_correction_response.py +54 -0
  55. alibabacloud_quanmiaolightapp20240801/models/_run_essay_correction_response_body.py +241 -0
  56. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_request.py +264 -0
  57. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_response.py +54 -0
  58. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_response_body.py +636 -0
  59. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_chat_shrink_request.py +121 -0
  60. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_request.py +100 -0
  61. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_response.py +54 -0
  62. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_response_body.py +241 -0
  63. alibabacloud_quanmiaolightapp20240801/models/_run_hot_topic_summary_shrink_request.py +52 -0
  64. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_request.py +59 -0
  65. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_response.py +54 -0
  66. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_response_body.py +232 -0
  67. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_extract_shrink_request.py +57 -0
  68. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_request.py +89 -0
  69. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_response.py +54 -0
  70. alibabacloud_quanmiaolightapp20240801/models/_run_marketing_information_writing_response_body.py +248 -0
  71. alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_request.py +136 -0
  72. alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_response.py +54 -0
  73. alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_response_body.py +233 -0
  74. alibabacloud_quanmiaolightapp20240801/models/_run_network_content_audit_shrink_request.py +90 -0
  75. alibabacloud_quanmiaolightapp20240801/models/_run_ocr_parse_request.py +49 -0
  76. alibabacloud_quanmiaolightapp20240801/models/_run_ocr_parse_response.py +54 -0
  77. alibabacloud_quanmiaolightapp20240801/models/_run_ocr_parse_response_body.py +233 -0
  78. alibabacloud_quanmiaolightapp20240801/models/_run_script_chat_request.py +42 -0
  79. alibabacloud_quanmiaolightapp20240801/models/_run_script_chat_response.py +54 -0
  80. alibabacloud_quanmiaolightapp20240801/models/_run_script_chat_response_body.py +248 -0
  81. alibabacloud_quanmiaolightapp20240801/models/_run_script_continue_request.py +50 -0
  82. alibabacloud_quanmiaolightapp20240801/models/_run_script_continue_response.py +54 -0
  83. alibabacloud_quanmiaolightapp20240801/models/_run_script_continue_response_body.py +248 -0
  84. alibabacloud_quanmiaolightapp20240801/models/_run_script_planning_request.py +82 -0
  85. alibabacloud_quanmiaolightapp20240801/models/_run_script_planning_response.py +54 -0
  86. alibabacloud_quanmiaolightapp20240801/models/_run_script_planning_response_body.py +248 -0
  87. alibabacloud_quanmiaolightapp20240801/models/_run_script_refine_request.py +33 -0
  88. alibabacloud_quanmiaolightapp20240801/models/_run_script_refine_response.py +54 -0
  89. alibabacloud_quanmiaolightapp20240801/models/_run_script_refine_response_body.py +290 -0
  90. alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_request.py +75 -0
  91. alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_response.py +54 -0
  92. alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_response_body.py +248 -0
  93. alibabacloud_quanmiaolightapp20240801/models/_run_style_writing_shrink_request.py +73 -0
  94. alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_request.py +136 -0
  95. alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_response.py +54 -0
  96. alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_response_body.py +233 -0
  97. alibabacloud_quanmiaolightapp20240801/models/_run_tag_mining_analysis_shrink_request.py +90 -0
  98. alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_request.py +600 -0
  99. alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_response.py +54 -0
  100. alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_response_body.py +1668 -0
  101. alibabacloud_quanmiaolightapp20240801/models/_run_video_analysis_shrink_request.py +209 -0
  102. alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_request.py +142 -0
  103. alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_response.py +54 -0
  104. alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_response_body.py +363 -0
  105. alibabacloud_quanmiaolightapp20240801/models/_run_video_detect_shot_shrink_request.py +140 -0
  106. alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_request.py +247 -0
  107. alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_response.py +54 -0
  108. alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_response_body.py +104 -0
  109. alibabacloud_quanmiaolightapp20240801/models/_submit_enterprise_voc_analysis_task_shrink_request.py +113 -0
  110. alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_request.py +167 -0
  111. alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_response.py +54 -0
  112. alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_response_body.py +103 -0
  113. alibabacloud_quanmiaolightapp20240801/models/_submit_essay_correction_task_shrink_request.py +81 -0
  114. alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_request.py +143 -0
  115. alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_response.py +54 -0
  116. alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_response_body.py +104 -0
  117. alibabacloud_quanmiaolightapp20240801/models/_submit_tag_mining_analysis_task_shrink_request.py +97 -0
  118. alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_request.py +593 -0
  119. alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_response.py +54 -0
  120. alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_response_body.py +103 -0
  121. alibabacloud_quanmiaolightapp20240801/models/_submit_video_analysis_task_shrink_request.py +202 -0
  122. alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_request.py +148 -0
  123. alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_response.py +54 -0
  124. alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_response_body.py +104 -0
  125. alibabacloud_quanmiaolightapp20240801/models/_submit_video_detect_shot_task_shrink_request.py +146 -0
  126. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_config_request.py +34 -0
  127. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_config_response.py +54 -0
  128. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_config_response_body.py +66 -0
  129. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_task_request.py +43 -0
  130. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_task_response.py +54 -0
  131. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_task_response_body.py +119 -0
  132. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_request.py +45 -0
  133. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_response.py +54 -0
  134. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_response_body.py +136 -0
  135. alibabacloud_quanmiaolightapp20240801/models/_update_video_analysis_tasks_shrink_request.py +43 -0
  136. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_request.py +34 -0
  137. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_response.py +54 -0
  138. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_config_response_body.py +66 -0
  139. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_request.py +43 -0
  140. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_response.py +54 -0
  141. alibabacloud_quanmiaolightapp20240801/models/_update_video_detect_shot_task_response_body.py +120 -0
  142. {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/METADATA +7 -7
  143. alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info/RECORD +146 -0
  144. alibabacloud_quanmiaolightapp20240801/models.py +0 -16578
  145. alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info/RECORD +0 -8
  146. {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/LICENSE +0 -0
  147. {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/WHEEL +0 -0
  148. {alibabacloud_quanmiaolightapp20240801-2.13.2.dist-info → alibabacloud_quanmiaolightapp20240801-2.13.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,331 @@
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 RunEnterpriseVocAnalysisResponseBody(DaraModel):
11
+ def __init__(
12
+ self,
13
+ header: main_models.RunEnterpriseVocAnalysisResponseBodyHeader = None,
14
+ payload: main_models.RunEnterpriseVocAnalysisResponseBodyPayload = None,
15
+ request_id: str = None,
16
+ ):
17
+ self.header = header
18
+ self.payload = payload
19
+ # Id of the request
20
+ self.request_id = request_id
21
+
22
+ def validate(self):
23
+ if self.header:
24
+ self.header.validate()
25
+ if self.payload:
26
+ self.payload.validate()
27
+
28
+ def to_map(self):
29
+ result = dict()
30
+ _map = super().to_map()
31
+ if _map is not None:
32
+ result = _map
33
+ if self.header is not None:
34
+ result['header'] = self.header.to_map()
35
+
36
+ if self.payload is not None:
37
+ result['payload'] = self.payload.to_map()
38
+
39
+ if self.request_id is not None:
40
+ result['requestId'] = self.request_id
41
+
42
+ return result
43
+
44
+ def from_map(self, m: dict = None):
45
+ m = m or dict()
46
+ if m.get('header') is not None:
47
+ temp_model = main_models.RunEnterpriseVocAnalysisResponseBodyHeader()
48
+ self.header = temp_model.from_map(m.get('header'))
49
+
50
+ if m.get('payload') is not None:
51
+ temp_model = main_models.RunEnterpriseVocAnalysisResponseBodyPayload()
52
+ self.payload = temp_model.from_map(m.get('payload'))
53
+
54
+ if m.get('requestId') is not None:
55
+ self.request_id = m.get('requestId')
56
+
57
+ return self
58
+
59
+ class RunEnterpriseVocAnalysisResponseBodyPayload(DaraModel):
60
+ def __init__(
61
+ self,
62
+ output: main_models.RunEnterpriseVocAnalysisResponseBodyPayloadOutput = None,
63
+ usage: main_models.RunEnterpriseVocAnalysisResponseBodyPayloadUsage = None,
64
+ ):
65
+ self.output = output
66
+ self.usage = usage
67
+
68
+ def validate(self):
69
+ if self.output:
70
+ self.output.validate()
71
+ if self.usage:
72
+ self.usage.validate()
73
+
74
+ def to_map(self):
75
+ result = dict()
76
+ _map = super().to_map()
77
+ if _map is not None:
78
+ result = _map
79
+ if self.output is not None:
80
+ result['output'] = self.output.to_map()
81
+
82
+ if self.usage is not None:
83
+ result['usage'] = self.usage.to_map()
84
+
85
+ return result
86
+
87
+ def from_map(self, m: dict = None):
88
+ m = m or dict()
89
+ if m.get('output') is not None:
90
+ temp_model = main_models.RunEnterpriseVocAnalysisResponseBodyPayloadOutput()
91
+ self.output = temp_model.from_map(m.get('output'))
92
+
93
+ if m.get('usage') is not None:
94
+ temp_model = main_models.RunEnterpriseVocAnalysisResponseBodyPayloadUsage()
95
+ self.usage = temp_model.from_map(m.get('usage'))
96
+
97
+ return self
98
+
99
+ class RunEnterpriseVocAnalysisResponseBodyPayloadUsage(DaraModel):
100
+ def __init__(
101
+ self,
102
+ input_tokens: int = None,
103
+ output_tokens: int = None,
104
+ total_tokens: int = None,
105
+ ):
106
+ self.input_tokens = input_tokens
107
+ self.output_tokens = output_tokens
108
+ self.total_tokens = total_tokens
109
+
110
+ def validate(self):
111
+ pass
112
+
113
+ def to_map(self):
114
+ result = dict()
115
+ _map = super().to_map()
116
+ if _map is not None:
117
+ result = _map
118
+ if self.input_tokens is not None:
119
+ result['inputTokens'] = self.input_tokens
120
+
121
+ if self.output_tokens is not None:
122
+ result['outputTokens'] = self.output_tokens
123
+
124
+ if self.total_tokens is not None:
125
+ result['totalTokens'] = self.total_tokens
126
+
127
+ return result
128
+
129
+ def from_map(self, m: dict = None):
130
+ m = m or dict()
131
+ if m.get('inputTokens') is not None:
132
+ self.input_tokens = m.get('inputTokens')
133
+
134
+ if m.get('outputTokens') is not None:
135
+ self.output_tokens = m.get('outputTokens')
136
+
137
+ if m.get('totalTokens') is not None:
138
+ self.total_tokens = m.get('totalTokens')
139
+
140
+ return self
141
+
142
+ class RunEnterpriseVocAnalysisResponseBodyPayloadOutput(DaraModel):
143
+ def __init__(
144
+ self,
145
+ filter_result: main_models.RunEnterpriseVocAnalysisResponseBodyPayloadOutputFilterResult = None,
146
+ reason_content: str = None,
147
+ text: str = None,
148
+ ):
149
+ self.filter_result = filter_result
150
+ self.reason_content = reason_content
151
+ self.text = text
152
+
153
+ def validate(self):
154
+ if self.filter_result:
155
+ self.filter_result.validate()
156
+
157
+ def to_map(self):
158
+ result = dict()
159
+ _map = super().to_map()
160
+ if _map is not None:
161
+ result = _map
162
+ if self.filter_result is not None:
163
+ result['filterResult'] = self.filter_result.to_map()
164
+
165
+ if self.reason_content is not None:
166
+ result['reasonContent'] = self.reason_content
167
+
168
+ if self.text is not None:
169
+ result['text'] = self.text
170
+
171
+ return result
172
+
173
+ def from_map(self, m: dict = None):
174
+ m = m or dict()
175
+ if m.get('filterResult') is not None:
176
+ temp_model = main_models.RunEnterpriseVocAnalysisResponseBodyPayloadOutputFilterResult()
177
+ self.filter_result = temp_model.from_map(m.get('filterResult'))
178
+
179
+ if m.get('reasonContent') is not None:
180
+ self.reason_content = m.get('reasonContent')
181
+
182
+ if m.get('text') is not None:
183
+ self.text = m.get('text')
184
+
185
+ return self
186
+
187
+ class RunEnterpriseVocAnalysisResponseBodyPayloadOutputFilterResult(DaraModel):
188
+ def __init__(
189
+ self,
190
+ filter_results: List[main_models.RunEnterpriseVocAnalysisResponseBodyPayloadOutputFilterResultFilterResults] = None,
191
+ ):
192
+ self.filter_results = filter_results
193
+
194
+ def validate(self):
195
+ if self.filter_results:
196
+ for v1 in self.filter_results:
197
+ if v1:
198
+ v1.validate()
199
+
200
+ def to_map(self):
201
+ result = dict()
202
+ _map = super().to_map()
203
+ if _map is not None:
204
+ result = _map
205
+ result['filterResults'] = []
206
+ if self.filter_results is not None:
207
+ for k1 in self.filter_results:
208
+ result['filterResults'].append(k1.to_map() if k1 else None)
209
+
210
+ return result
211
+
212
+ def from_map(self, m: dict = None):
213
+ m = m or dict()
214
+ self.filter_results = []
215
+ if m.get('filterResults') is not None:
216
+ for k1 in m.get('filterResults'):
217
+ temp_model = main_models.RunEnterpriseVocAnalysisResponseBodyPayloadOutputFilterResultFilterResults()
218
+ self.filter_results.append(temp_model.from_map(k1))
219
+
220
+ return self
221
+
222
+ class RunEnterpriseVocAnalysisResponseBodyPayloadOutputFilterResultFilterResults(DaraModel):
223
+ def __init__(
224
+ self,
225
+ hit: bool = None,
226
+ tag_name: str = None,
227
+ tag_value: str = None,
228
+ ):
229
+ self.hit = hit
230
+ self.tag_name = tag_name
231
+ self.tag_value = tag_value
232
+
233
+ def validate(self):
234
+ pass
235
+
236
+ def to_map(self):
237
+ result = dict()
238
+ _map = super().to_map()
239
+ if _map is not None:
240
+ result = _map
241
+ if self.hit is not None:
242
+ result['hit'] = self.hit
243
+
244
+ if self.tag_name is not None:
245
+ result['tagName'] = self.tag_name
246
+
247
+ if self.tag_value is not None:
248
+ result['tagValue'] = self.tag_value
249
+
250
+ return result
251
+
252
+ def from_map(self, m: dict = None):
253
+ m = m or dict()
254
+ if m.get('hit') is not None:
255
+ self.hit = m.get('hit')
256
+
257
+ if m.get('tagName') is not None:
258
+ self.tag_name = m.get('tagName')
259
+
260
+ if m.get('tagValue') is not None:
261
+ self.tag_value = m.get('tagValue')
262
+
263
+ return self
264
+
265
+ class RunEnterpriseVocAnalysisResponseBodyHeader(DaraModel):
266
+ def __init__(
267
+ self,
268
+ error_code: str = None,
269
+ error_message: str = None,
270
+ event: str = None,
271
+ session_id: str = None,
272
+ task_id: str = None,
273
+ trace_id: str = None,
274
+ ):
275
+ self.error_code = error_code
276
+ self.error_message = error_message
277
+ self.event = event
278
+ self.session_id = session_id
279
+ self.task_id = task_id
280
+ self.trace_id = trace_id
281
+
282
+ def validate(self):
283
+ pass
284
+
285
+ def to_map(self):
286
+ result = dict()
287
+ _map = super().to_map()
288
+ if _map is not None:
289
+ result = _map
290
+ if self.error_code is not None:
291
+ result['errorCode'] = self.error_code
292
+
293
+ if self.error_message is not None:
294
+ result['errorMessage'] = self.error_message
295
+
296
+ if self.event is not None:
297
+ result['event'] = self.event
298
+
299
+ if self.session_id is not None:
300
+ result['sessionId'] = self.session_id
301
+
302
+ if self.task_id is not None:
303
+ result['taskId'] = self.task_id
304
+
305
+ if self.trace_id is not None:
306
+ result['traceId'] = self.trace_id
307
+
308
+ return result
309
+
310
+ def from_map(self, m: dict = None):
311
+ m = m or dict()
312
+ if m.get('errorCode') is not None:
313
+ self.error_code = m.get('errorCode')
314
+
315
+ if m.get('errorMessage') is not None:
316
+ self.error_message = m.get('errorMessage')
317
+
318
+ if m.get('event') is not None:
319
+ self.event = m.get('event')
320
+
321
+ if m.get('sessionId') is not None:
322
+ self.session_id = m.get('sessionId')
323
+
324
+ if m.get('taskId') is not None:
325
+ self.task_id = m.get('taskId')
326
+
327
+ if m.get('traceId') is not None:
328
+ self.trace_id = m.get('traceId')
329
+
330
+ return self
331
+
@@ -0,0 +1,109 @@
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 RunEnterpriseVocAnalysisShrinkRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ ak_proxy: str = None,
11
+ api_key: str = None,
12
+ content: str = None,
13
+ extra_info: str = None,
14
+ filter_tags_shrink: str = None,
15
+ model_id: str = None,
16
+ output_format: str = None,
17
+ source_trace: bool = None,
18
+ tags_shrink: str = None,
19
+ task_description: str = None,
20
+ ):
21
+ self.ak_proxy = ak_proxy
22
+ self.api_key = api_key
23
+ # 需要进行VOC分析的文本内容(content、contents、url、fileKey 四选一。优先级从小到大)
24
+ self.content = content
25
+ self.extra_info = extra_info
26
+ # 过滤标签,用于筛选符合条件的内容。
27
+ self.filter_tags_shrink = filter_tags_shrink
28
+ self.model_id = model_id
29
+ # 指定返回结果的格式,支持json或text
30
+ self.output_format = output_format
31
+ self.source_trace = source_trace
32
+ # 业务标签体系,用于对文本内容进行分类和分析。
33
+ self.tags_shrink = tags_shrink
34
+ self.task_description = task_description
35
+
36
+ def validate(self):
37
+ pass
38
+
39
+ def to_map(self):
40
+ result = dict()
41
+ _map = super().to_map()
42
+ if _map is not None:
43
+ result = _map
44
+ if self.ak_proxy is not None:
45
+ result['akProxy'] = self.ak_proxy
46
+
47
+ if self.api_key is not None:
48
+ result['apiKey'] = self.api_key
49
+
50
+ if self.content is not None:
51
+ result['content'] = self.content
52
+
53
+ if self.extra_info is not None:
54
+ result['extraInfo'] = self.extra_info
55
+
56
+ if self.filter_tags_shrink is not None:
57
+ result['filterTags'] = self.filter_tags_shrink
58
+
59
+ if self.model_id is not None:
60
+ result['modelId'] = self.model_id
61
+
62
+ if self.output_format is not None:
63
+ result['outputFormat'] = self.output_format
64
+
65
+ if self.source_trace is not None:
66
+ result['sourceTrace'] = self.source_trace
67
+
68
+ if self.tags_shrink is not None:
69
+ result['tags'] = self.tags_shrink
70
+
71
+ if self.task_description is not None:
72
+ result['taskDescription'] = self.task_description
73
+
74
+ return result
75
+
76
+ def from_map(self, m: dict = None):
77
+ m = m or dict()
78
+ if m.get('akProxy') is not None:
79
+ self.ak_proxy = m.get('akProxy')
80
+
81
+ if m.get('apiKey') is not None:
82
+ self.api_key = m.get('apiKey')
83
+
84
+ if m.get('content') is not None:
85
+ self.content = m.get('content')
86
+
87
+ if m.get('extraInfo') is not None:
88
+ self.extra_info = m.get('extraInfo')
89
+
90
+ if m.get('filterTags') is not None:
91
+ self.filter_tags_shrink = m.get('filterTags')
92
+
93
+ if m.get('modelId') is not None:
94
+ self.model_id = m.get('modelId')
95
+
96
+ if m.get('outputFormat') is not None:
97
+ self.output_format = m.get('outputFormat')
98
+
99
+ if m.get('sourceTrace') is not None:
100
+ self.source_trace = m.get('sourceTrace')
101
+
102
+ if m.get('tags') is not None:
103
+ self.tags_shrink = m.get('tags')
104
+
105
+ if m.get('taskDescription') is not None:
106
+ self.task_description = m.get('taskDescription')
107
+
108
+ return self
109
+
@@ -0,0 +1,81 @@
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 RunEssayCorrectionRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ answer: str = None,
11
+ grade: str = None,
12
+ model_id: str = None,
13
+ other_review_points: str = None,
14
+ question: str = None,
15
+ subject: str = None,
16
+ total_score: int = None,
17
+ ):
18
+ self.answer = answer
19
+ self.grade = grade
20
+ self.model_id = model_id
21
+ self.other_review_points = other_review_points
22
+ self.question = question
23
+ self.subject = subject
24
+ self.total_score = total_score
25
+
26
+ def validate(self):
27
+ pass
28
+
29
+ def to_map(self):
30
+ result = dict()
31
+ _map = super().to_map()
32
+ if _map is not None:
33
+ result = _map
34
+ if self.answer is not None:
35
+ result['answer'] = self.answer
36
+
37
+ if self.grade is not None:
38
+ result['grade'] = self.grade
39
+
40
+ if self.model_id is not None:
41
+ result['modelId'] = self.model_id
42
+
43
+ if self.other_review_points is not None:
44
+ result['otherReviewPoints'] = self.other_review_points
45
+
46
+ if self.question is not None:
47
+ result['question'] = self.question
48
+
49
+ if self.subject is not None:
50
+ result['subject'] = self.subject
51
+
52
+ if self.total_score is not None:
53
+ result['totalScore'] = self.total_score
54
+
55
+ return result
56
+
57
+ def from_map(self, m: dict = None):
58
+ m = m or dict()
59
+ if m.get('answer') is not None:
60
+ self.answer = m.get('answer')
61
+
62
+ if m.get('grade') is not None:
63
+ self.grade = m.get('grade')
64
+
65
+ if m.get('modelId') is not None:
66
+ self.model_id = m.get('modelId')
67
+
68
+ if m.get('otherReviewPoints') is not None:
69
+ self.other_review_points = m.get('otherReviewPoints')
70
+
71
+ if m.get('question') is not None:
72
+ self.question = m.get('question')
73
+
74
+ if m.get('subject') is not None:
75
+ self.subject = m.get('subject')
76
+
77
+ if m.get('totalScore') is not None:
78
+ self.total_score = m.get('totalScore')
79
+
80
+ return self
81
+
@@ -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 RunEssayCorrectionResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.RunEssayCorrectionResponseBody = 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.RunEssayCorrectionResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+