huaweicloudsdkosm 3.1.164__py3-none-any.whl → 3.1.165__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.

Potentially problematic release.


This version of huaweicloudsdkosm might be problematic. Click here for more details.

Files changed (69) hide show
  1. huaweicloudsdkosm/v2/__init__.py +0 -60
  2. huaweicloudsdkosm/v2/model/__init__.py +0 -60
  3. huaweicloudsdkosm/v2/osm_async_client.py +45 -1130
  4. huaweicloudsdkosm/v2/osm_client.py +45 -1130
  5. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/METADATA +2 -2
  6. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/RECORD +9 -69
  7. huaweicloudsdkosm/v2/model/answer.py +0 -227
  8. huaweicloudsdkosm/v2/model/answer_detail.py +0 -194
  9. huaweicloudsdkosm/v2/model/answer_info.py +0 -231
  10. huaweicloudsdkosm/v2/model/answer_qa_pair.py +0 -318
  11. huaweicloudsdkosm/v2/model/article.py +0 -347
  12. huaweicloudsdkosm/v2/model/ask_question_req.py +0 -316
  13. huaweicloudsdkosm/v2/model/cbs_flow_entry.py +0 -144
  14. huaweicloudsdkosm/v2/model/create_ask_question_request.py +0 -197
  15. huaweicloudsdkosm/v2/model/create_ask_question_response.py +0 -232
  16. huaweicloudsdkosm/v2/model/create_evaluate_request.py +0 -253
  17. huaweicloudsdkosm/v2/model/create_evaluate_response.py +0 -174
  18. huaweicloudsdkosm/v2/model/create_qa_ask_request.py +0 -197
  19. huaweicloudsdkosm/v2/model/create_qa_ask_response.py +0 -282
  20. huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +0 -226
  21. huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +0 -174
  22. huaweicloudsdkosm/v2/model/create_question_in_session_request.py +0 -225
  23. huaweicloudsdkosm/v2/model/create_question_in_session_response.py +0 -232
  24. huaweicloudsdkosm/v2/model/create_session_request.py +0 -172
  25. huaweicloudsdkosm/v2/model/create_session_response.py +0 -174
  26. huaweicloudsdkosm/v2/model/evaluate_request_req.py +0 -115
  27. huaweicloudsdkosm/v2/model/extend_question.py +0 -144
  28. huaweicloudsdkosm/v2/model/feedback_option.py +0 -144
  29. huaweicloudsdkosm/v2/model/lang_result.py +0 -144
  30. huaweicloudsdkosm/v2/model/list_articles_request.py +0 -226
  31. huaweicloudsdkosm/v2/model/list_articles_response.py +0 -174
  32. huaweicloudsdkosm/v2/model/list_feedback_option_request.py +0 -230
  33. huaweicloudsdkosm/v2/model/list_feedback_option_response.py +0 -174
  34. huaweicloudsdkosm/v2/model/list_notices_request.py +0 -198
  35. huaweicloudsdkosm/v2/model/list_notices_response.py +0 -174
  36. huaweicloudsdkosm/v2/model/list_recommend_words_request.py +0 -260
  37. huaweicloudsdkosm/v2/model/list_recommend_words_response.py +0 -203
  38. huaweicloudsdkosm/v2/model/list_tools_request.py +0 -198
  39. huaweicloudsdkosm/v2/model/list_tools_response.py +0 -174
  40. huaweicloudsdkosm/v2/model/notice.py +0 -199
  41. huaweicloudsdkosm/v2/model/qa_ask_req.py +0 -346
  42. huaweicloudsdkosm/v2/model/qa_feedback_req.py +0 -345
  43. huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +0 -202
  44. huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +0 -198
  45. huaweicloudsdkosm/v2/model/qa_graph_answer.py +0 -202
  46. huaweicloudsdkosm/v2/model/qa_pair.py +0 -289
  47. huaweicloudsdkosm/v2/model/qabot_answer.py +0 -347
  48. huaweicloudsdkosm/v2/model/query_associated_question_req.py +0 -172
  49. huaweicloudsdkosm/v2/model/recommend_word.py +0 -285
  50. huaweicloudsdkosm/v2/model/relation_theme.py +0 -144
  51. huaweicloudsdkosm/v2/model/relevance_qapair.py +0 -173
  52. huaweicloudsdkosm/v2/model/search_articles_req.py +0 -201
  53. huaweicloudsdkosm/v2/model/search_notices_req.py +0 -143
  54. huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +0 -144
  55. huaweicloudsdkosm/v2/model/search_tools_req.py +0 -201
  56. huaweicloudsdkosm/v2/model/session_ask_question_req.py +0 -288
  57. huaweicloudsdkosm/v2/model/show_associated_questions_request.py +0 -197
  58. huaweicloudsdkosm/v2/model/show_associated_questions_response.py +0 -174
  59. huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +0 -200
  60. huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +0 -170
  61. huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +0 -225
  62. huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +0 -174
  63. huaweicloudsdkosm/v2/model/show_theme_request.py +0 -259
  64. huaweicloudsdkosm/v2/model/show_theme_response.py +0 -232
  65. huaweicloudsdkosm/v2/model/simple_qa_pair.py +0 -173
  66. huaweicloudsdkosm/v2/model/tool.py +0 -287
  67. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/LICENSE +0 -0
  68. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/WHEEL +0 -0
  69. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/top_level.txt +0 -0
@@ -1,347 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class Article:
9
-
10
- """
11
- Attributes:
12
- openapi_types (dict): The key is attribute name
13
- and the value is attribute type.
14
- attribute_map (dict): The key is attribute name
15
- and the value is json key in definition.
16
- """
17
- sensitive_list = []
18
-
19
- openapi_types = {
20
- 'id': 'str',
21
- 'code': 'str',
22
- 'name': 'str',
23
- 'url': 'str',
24
- 'create_time': 'int',
25
- 'update_time': 'int',
26
- 'product_type_id': 'str',
27
- 'business_type_id': 'str',
28
- 'problem_type_id': 'str'
29
- }
30
-
31
- attribute_map = {
32
- 'id': 'id',
33
- 'code': 'code',
34
- 'name': 'name',
35
- 'url': 'url',
36
- 'create_time': 'create_time',
37
- 'update_time': 'update_time',
38
- 'product_type_id': 'product_type_id',
39
- 'business_type_id': 'business_type_id',
40
- 'problem_type_id': 'problem_type_id'
41
- }
42
-
43
- def __init__(self, id=None, code=None, name=None, url=None, create_time=None, update_time=None, product_type_id=None, business_type_id=None, problem_type_id=None):
44
- r"""Article
45
-
46
- The model defined in huaweicloud sdk
47
-
48
- :param id: 案例Id
49
- :type id: str
50
- :param code: 案例编码
51
- :type code: str
52
- :param name: 案例名称
53
- :type name: str
54
- :param url: 案例链接
55
- :type url: str
56
- :param create_time: 创建时间
57
- :type create_time: int
58
- :param update_time: 更新时间
59
- :type update_time: int
60
- :param product_type_id: 产品类型Id
61
- :type product_type_id: str
62
- :param business_type_id: 业务类型Id
63
- :type business_type_id: str
64
- :param problem_type_id: 问题类型Id
65
- :type problem_type_id: str
66
- """
67
-
68
-
69
-
70
- self._id = None
71
- self._code = None
72
- self._name = None
73
- self._url = None
74
- self._create_time = None
75
- self._update_time = None
76
- self._product_type_id = None
77
- self._business_type_id = None
78
- self._problem_type_id = None
79
- self.discriminator = None
80
-
81
- if id is not None:
82
- self.id = id
83
- if code is not None:
84
- self.code = code
85
- if name is not None:
86
- self.name = name
87
- if url is not None:
88
- self.url = url
89
- if create_time is not None:
90
- self.create_time = create_time
91
- if update_time is not None:
92
- self.update_time = update_time
93
- if product_type_id is not None:
94
- self.product_type_id = product_type_id
95
- if business_type_id is not None:
96
- self.business_type_id = business_type_id
97
- if problem_type_id is not None:
98
- self.problem_type_id = problem_type_id
99
-
100
- @property
101
- def id(self):
102
- r"""Gets the id of this Article.
103
-
104
- 案例Id
105
-
106
- :return: The id of this Article.
107
- :rtype: str
108
- """
109
- return self._id
110
-
111
- @id.setter
112
- def id(self, id):
113
- r"""Sets the id of this Article.
114
-
115
- 案例Id
116
-
117
- :param id: The id of this Article.
118
- :type id: str
119
- """
120
- self._id = id
121
-
122
- @property
123
- def code(self):
124
- r"""Gets the code of this Article.
125
-
126
- 案例编码
127
-
128
- :return: The code of this Article.
129
- :rtype: str
130
- """
131
- return self._code
132
-
133
- @code.setter
134
- def code(self, code):
135
- r"""Sets the code of this Article.
136
-
137
- 案例编码
138
-
139
- :param code: The code of this Article.
140
- :type code: str
141
- """
142
- self._code = code
143
-
144
- @property
145
- def name(self):
146
- r"""Gets the name of this Article.
147
-
148
- 案例名称
149
-
150
- :return: The name of this Article.
151
- :rtype: str
152
- """
153
- return self._name
154
-
155
- @name.setter
156
- def name(self, name):
157
- r"""Sets the name of this Article.
158
-
159
- 案例名称
160
-
161
- :param name: The name of this Article.
162
- :type name: str
163
- """
164
- self._name = name
165
-
166
- @property
167
- def url(self):
168
- r"""Gets the url of this Article.
169
-
170
- 案例链接
171
-
172
- :return: The url of this Article.
173
- :rtype: str
174
- """
175
- return self._url
176
-
177
- @url.setter
178
- def url(self, url):
179
- r"""Sets the url of this Article.
180
-
181
- 案例链接
182
-
183
- :param url: The url of this Article.
184
- :type url: str
185
- """
186
- self._url = url
187
-
188
- @property
189
- def create_time(self):
190
- r"""Gets the create_time of this Article.
191
-
192
- 创建时间
193
-
194
- :return: The create_time of this Article.
195
- :rtype: int
196
- """
197
- return self._create_time
198
-
199
- @create_time.setter
200
- def create_time(self, create_time):
201
- r"""Sets the create_time of this Article.
202
-
203
- 创建时间
204
-
205
- :param create_time: The create_time of this Article.
206
- :type create_time: int
207
- """
208
- self._create_time = create_time
209
-
210
- @property
211
- def update_time(self):
212
- r"""Gets the update_time of this Article.
213
-
214
- 更新时间
215
-
216
- :return: The update_time of this Article.
217
- :rtype: int
218
- """
219
- return self._update_time
220
-
221
- @update_time.setter
222
- def update_time(self, update_time):
223
- r"""Sets the update_time of this Article.
224
-
225
- 更新时间
226
-
227
- :param update_time: The update_time of this Article.
228
- :type update_time: int
229
- """
230
- self._update_time = update_time
231
-
232
- @property
233
- def product_type_id(self):
234
- r"""Gets the product_type_id of this Article.
235
-
236
- 产品类型Id
237
-
238
- :return: The product_type_id of this Article.
239
- :rtype: str
240
- """
241
- return self._product_type_id
242
-
243
- @product_type_id.setter
244
- def product_type_id(self, product_type_id):
245
- r"""Sets the product_type_id of this Article.
246
-
247
- 产品类型Id
248
-
249
- :param product_type_id: The product_type_id of this Article.
250
- :type product_type_id: str
251
- """
252
- self._product_type_id = product_type_id
253
-
254
- @property
255
- def business_type_id(self):
256
- r"""Gets the business_type_id of this Article.
257
-
258
- 业务类型Id
259
-
260
- :return: The business_type_id of this Article.
261
- :rtype: str
262
- """
263
- return self._business_type_id
264
-
265
- @business_type_id.setter
266
- def business_type_id(self, business_type_id):
267
- r"""Sets the business_type_id of this Article.
268
-
269
- 业务类型Id
270
-
271
- :param business_type_id: The business_type_id of this Article.
272
- :type business_type_id: str
273
- """
274
- self._business_type_id = business_type_id
275
-
276
- @property
277
- def problem_type_id(self):
278
- r"""Gets the problem_type_id of this Article.
279
-
280
- 问题类型Id
281
-
282
- :return: The problem_type_id of this Article.
283
- :rtype: str
284
- """
285
- return self._problem_type_id
286
-
287
- @problem_type_id.setter
288
- def problem_type_id(self, problem_type_id):
289
- r"""Sets the problem_type_id of this Article.
290
-
291
- 问题类型Id
292
-
293
- :param problem_type_id: The problem_type_id of this Article.
294
- :type problem_type_id: str
295
- """
296
- self._problem_type_id = problem_type_id
297
-
298
- def to_dict(self):
299
- """Returns the model properties as a dict"""
300
- result = {}
301
-
302
- for attr, _ in six.iteritems(self.openapi_types):
303
- value = getattr(self, attr)
304
- if isinstance(value, list):
305
- result[attr] = list(map(
306
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
307
- value
308
- ))
309
- elif hasattr(value, "to_dict"):
310
- result[attr] = value.to_dict()
311
- elif isinstance(value, dict):
312
- result[attr] = dict(map(
313
- lambda item: (item[0], item[1].to_dict())
314
- if hasattr(item[1], "to_dict") else item,
315
- value.items()
316
- ))
317
- else:
318
- if attr in self.sensitive_list:
319
- result[attr] = "****"
320
- else:
321
- result[attr] = value
322
-
323
- return result
324
-
325
- def to_str(self):
326
- """Returns the string representation of the model"""
327
- import simplejson as json
328
- if six.PY2:
329
- import sys
330
- reload(sys)
331
- sys.setdefaultencoding("utf-8")
332
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
333
-
334
- def __repr__(self):
335
- """For `print`"""
336
- return self.to_str()
337
-
338
- def __eq__(self, other):
339
- """Returns true if both objects are equal"""
340
- if not isinstance(other, Article):
341
- return False
342
-
343
- return self.__dict__ == other.__dict__
344
-
345
- def __ne__(self, other):
346
- """Returns true if both objects are not equal"""
347
- return not self == other
@@ -1,316 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class AskQuestionReq:
9
-
10
- """
11
- Attributes:
12
- openapi_types (dict): The key is attribute name
13
- and the value is attribute type.
14
- attribute_map (dict): The key is attribute name
15
- and the value is json key in definition.
16
- """
17
- sensitive_list = []
18
-
19
- openapi_types = {
20
- 'question': 'str',
21
- 'domains': 'list[str]',
22
- 'top': 'int',
23
- 'session_id': 'str',
24
- 'source_qa_pair_id': 'str',
25
- 'operate_type': 'int',
26
- 'threshold_enable': 'str',
27
- 'product_type_id': 'str'
28
- }
29
-
30
- attribute_map = {
31
- 'question': 'question',
32
- 'domains': 'domains',
33
- 'top': 'top',
34
- 'session_id': 'session_id',
35
- 'source_qa_pair_id': 'source_qa_pair_id',
36
- 'operate_type': 'operate_type',
37
- 'threshold_enable': 'threshold_enable',
38
- 'product_type_id': 'product_type_id'
39
- }
40
-
41
- def __init__(self, question=None, domains=None, top=None, session_id=None, source_qa_pair_id=None, operate_type=None, threshold_enable=None, product_type_id=None):
42
- r"""AskQuestionReq
43
-
44
- The model defined in huaweicloud sdk
45
-
46
- :param question: 用户输入问题
47
- :type question: str
48
- :param domains: 主题列表
49
- :type domains: list[str]
50
- :param top: 返回匹配度最高的数据条数
51
- :type top: int
52
- :param session_id: 会话ID
53
- :type session_id: str
54
- :param source_qa_pair_id: 语料ID
55
- :type source_qa_pair_id: str
56
- :param operate_type: 操作类型:0-手动输入,1-单击热点问题,2-单击猜你想问,3-单击推荐问题,4-单击问题提示
57
- :type operate_type: int
58
- :param threshold_enable: 是否启用内部阈值开关
59
- :type threshold_enable: str
60
- :param product_type_id: 产品类型id
61
- :type product_type_id: str
62
- """
63
-
64
-
65
-
66
- self._question = None
67
- self._domains = None
68
- self._top = None
69
- self._session_id = None
70
- self._source_qa_pair_id = None
71
- self._operate_type = None
72
- self._threshold_enable = None
73
- self._product_type_id = None
74
- self.discriminator = None
75
-
76
- self.question = question
77
- if domains is not None:
78
- self.domains = domains
79
- if top is not None:
80
- self.top = top
81
- self.session_id = session_id
82
- if source_qa_pair_id is not None:
83
- self.source_qa_pair_id = source_qa_pair_id
84
- if operate_type is not None:
85
- self.operate_type = operate_type
86
- if threshold_enable is not None:
87
- self.threshold_enable = threshold_enable
88
- if product_type_id is not None:
89
- self.product_type_id = product_type_id
90
-
91
- @property
92
- def question(self):
93
- r"""Gets the question of this AskQuestionReq.
94
-
95
- 用户输入问题
96
-
97
- :return: The question of this AskQuestionReq.
98
- :rtype: str
99
- """
100
- return self._question
101
-
102
- @question.setter
103
- def question(self, question):
104
- r"""Sets the question of this AskQuestionReq.
105
-
106
- 用户输入问题
107
-
108
- :param question: The question of this AskQuestionReq.
109
- :type question: str
110
- """
111
- self._question = question
112
-
113
- @property
114
- def domains(self):
115
- r"""Gets the domains of this AskQuestionReq.
116
-
117
- 主题列表
118
-
119
- :return: The domains of this AskQuestionReq.
120
- :rtype: list[str]
121
- """
122
- return self._domains
123
-
124
- @domains.setter
125
- def domains(self, domains):
126
- r"""Sets the domains of this AskQuestionReq.
127
-
128
- 主题列表
129
-
130
- :param domains: The domains of this AskQuestionReq.
131
- :type domains: list[str]
132
- """
133
- self._domains = domains
134
-
135
- @property
136
- def top(self):
137
- r"""Gets the top of this AskQuestionReq.
138
-
139
- 返回匹配度最高的数据条数
140
-
141
- :return: The top of this AskQuestionReq.
142
- :rtype: int
143
- """
144
- return self._top
145
-
146
- @top.setter
147
- def top(self, top):
148
- r"""Sets the top of this AskQuestionReq.
149
-
150
- 返回匹配度最高的数据条数
151
-
152
- :param top: The top of this AskQuestionReq.
153
- :type top: int
154
- """
155
- self._top = top
156
-
157
- @property
158
- def session_id(self):
159
- r"""Gets the session_id of this AskQuestionReq.
160
-
161
- 会话ID
162
-
163
- :return: The session_id of this AskQuestionReq.
164
- :rtype: str
165
- """
166
- return self._session_id
167
-
168
- @session_id.setter
169
- def session_id(self, session_id):
170
- r"""Sets the session_id of this AskQuestionReq.
171
-
172
- 会话ID
173
-
174
- :param session_id: The session_id of this AskQuestionReq.
175
- :type session_id: str
176
- """
177
- self._session_id = session_id
178
-
179
- @property
180
- def source_qa_pair_id(self):
181
- r"""Gets the source_qa_pair_id of this AskQuestionReq.
182
-
183
- 语料ID
184
-
185
- :return: The source_qa_pair_id of this AskQuestionReq.
186
- :rtype: str
187
- """
188
- return self._source_qa_pair_id
189
-
190
- @source_qa_pair_id.setter
191
- def source_qa_pair_id(self, source_qa_pair_id):
192
- r"""Sets the source_qa_pair_id of this AskQuestionReq.
193
-
194
- 语料ID
195
-
196
- :param source_qa_pair_id: The source_qa_pair_id of this AskQuestionReq.
197
- :type source_qa_pair_id: str
198
- """
199
- self._source_qa_pair_id = source_qa_pair_id
200
-
201
- @property
202
- def operate_type(self):
203
- r"""Gets the operate_type of this AskQuestionReq.
204
-
205
- 操作类型:0-手动输入,1-单击热点问题,2-单击猜你想问,3-单击推荐问题,4-单击问题提示
206
-
207
- :return: The operate_type of this AskQuestionReq.
208
- :rtype: int
209
- """
210
- return self._operate_type
211
-
212
- @operate_type.setter
213
- def operate_type(self, operate_type):
214
- r"""Sets the operate_type of this AskQuestionReq.
215
-
216
- 操作类型:0-手动输入,1-单击热点问题,2-单击猜你想问,3-单击推荐问题,4-单击问题提示
217
-
218
- :param operate_type: The operate_type of this AskQuestionReq.
219
- :type operate_type: int
220
- """
221
- self._operate_type = operate_type
222
-
223
- @property
224
- def threshold_enable(self):
225
- r"""Gets the threshold_enable of this AskQuestionReq.
226
-
227
- 是否启用内部阈值开关
228
-
229
- :return: The threshold_enable of this AskQuestionReq.
230
- :rtype: str
231
- """
232
- return self._threshold_enable
233
-
234
- @threshold_enable.setter
235
- def threshold_enable(self, threshold_enable):
236
- r"""Sets the threshold_enable of this AskQuestionReq.
237
-
238
- 是否启用内部阈值开关
239
-
240
- :param threshold_enable: The threshold_enable of this AskQuestionReq.
241
- :type threshold_enable: str
242
- """
243
- self._threshold_enable = threshold_enable
244
-
245
- @property
246
- def product_type_id(self):
247
- r"""Gets the product_type_id of this AskQuestionReq.
248
-
249
- 产品类型id
250
-
251
- :return: The product_type_id of this AskQuestionReq.
252
- :rtype: str
253
- """
254
- return self._product_type_id
255
-
256
- @product_type_id.setter
257
- def product_type_id(self, product_type_id):
258
- r"""Sets the product_type_id of this AskQuestionReq.
259
-
260
- 产品类型id
261
-
262
- :param product_type_id: The product_type_id of this AskQuestionReq.
263
- :type product_type_id: str
264
- """
265
- self._product_type_id = product_type_id
266
-
267
- def to_dict(self):
268
- """Returns the model properties as a dict"""
269
- result = {}
270
-
271
- for attr, _ in six.iteritems(self.openapi_types):
272
- value = getattr(self, attr)
273
- if isinstance(value, list):
274
- result[attr] = list(map(
275
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
276
- value
277
- ))
278
- elif hasattr(value, "to_dict"):
279
- result[attr] = value.to_dict()
280
- elif isinstance(value, dict):
281
- result[attr] = dict(map(
282
- lambda item: (item[0], item[1].to_dict())
283
- if hasattr(item[1], "to_dict") else item,
284
- value.items()
285
- ))
286
- else:
287
- if attr in self.sensitive_list:
288
- result[attr] = "****"
289
- else:
290
- result[attr] = value
291
-
292
- return result
293
-
294
- def to_str(self):
295
- """Returns the string representation of the model"""
296
- import simplejson as json
297
- if six.PY2:
298
- import sys
299
- reload(sys)
300
- sys.setdefaultencoding("utf-8")
301
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
302
-
303
- def __repr__(self):
304
- """For `print`"""
305
- return self.to_str()
306
-
307
- def __eq__(self, other):
308
- """Returns true if both objects are equal"""
309
- if not isinstance(other, AskQuestionReq):
310
- return False
311
-
312
- return self.__dict__ == other.__dict__
313
-
314
- def __ne__(self, other):
315
- """Returns true if both objects are not equal"""
316
- return not self == other