huaweicloudsdkosm 3.1.164__py3-none-any.whl → 3.1.166__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.166.dist-info}/METADATA +9 -10
  6. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info}/RECORD +8 -69
  7. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info}/WHEEL +1 -2
  8. huaweicloudsdkosm/v2/model/answer.py +0 -227
  9. huaweicloudsdkosm/v2/model/answer_detail.py +0 -194
  10. huaweicloudsdkosm/v2/model/answer_info.py +0 -231
  11. huaweicloudsdkosm/v2/model/answer_qa_pair.py +0 -318
  12. huaweicloudsdkosm/v2/model/article.py +0 -347
  13. huaweicloudsdkosm/v2/model/ask_question_req.py +0 -316
  14. huaweicloudsdkosm/v2/model/cbs_flow_entry.py +0 -144
  15. huaweicloudsdkosm/v2/model/create_ask_question_request.py +0 -197
  16. huaweicloudsdkosm/v2/model/create_ask_question_response.py +0 -232
  17. huaweicloudsdkosm/v2/model/create_evaluate_request.py +0 -253
  18. huaweicloudsdkosm/v2/model/create_evaluate_response.py +0 -174
  19. huaweicloudsdkosm/v2/model/create_qa_ask_request.py +0 -197
  20. huaweicloudsdkosm/v2/model/create_qa_ask_response.py +0 -282
  21. huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +0 -226
  22. huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +0 -174
  23. huaweicloudsdkosm/v2/model/create_question_in_session_request.py +0 -225
  24. huaweicloudsdkosm/v2/model/create_question_in_session_response.py +0 -232
  25. huaweicloudsdkosm/v2/model/create_session_request.py +0 -172
  26. huaweicloudsdkosm/v2/model/create_session_response.py +0 -174
  27. huaweicloudsdkosm/v2/model/evaluate_request_req.py +0 -115
  28. huaweicloudsdkosm/v2/model/extend_question.py +0 -144
  29. huaweicloudsdkosm/v2/model/feedback_option.py +0 -144
  30. huaweicloudsdkosm/v2/model/lang_result.py +0 -144
  31. huaweicloudsdkosm/v2/model/list_articles_request.py +0 -226
  32. huaweicloudsdkosm/v2/model/list_articles_response.py +0 -174
  33. huaweicloudsdkosm/v2/model/list_feedback_option_request.py +0 -230
  34. huaweicloudsdkosm/v2/model/list_feedback_option_response.py +0 -174
  35. huaweicloudsdkosm/v2/model/list_notices_request.py +0 -198
  36. huaweicloudsdkosm/v2/model/list_notices_response.py +0 -174
  37. huaweicloudsdkosm/v2/model/list_recommend_words_request.py +0 -260
  38. huaweicloudsdkosm/v2/model/list_recommend_words_response.py +0 -203
  39. huaweicloudsdkosm/v2/model/list_tools_request.py +0 -198
  40. huaweicloudsdkosm/v2/model/list_tools_response.py +0 -174
  41. huaweicloudsdkosm/v2/model/notice.py +0 -199
  42. huaweicloudsdkosm/v2/model/qa_ask_req.py +0 -346
  43. huaweicloudsdkosm/v2/model/qa_feedback_req.py +0 -345
  44. huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +0 -202
  45. huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +0 -198
  46. huaweicloudsdkosm/v2/model/qa_graph_answer.py +0 -202
  47. huaweicloudsdkosm/v2/model/qa_pair.py +0 -289
  48. huaweicloudsdkosm/v2/model/qabot_answer.py +0 -347
  49. huaweicloudsdkosm/v2/model/query_associated_question_req.py +0 -172
  50. huaweicloudsdkosm/v2/model/recommend_word.py +0 -285
  51. huaweicloudsdkosm/v2/model/relation_theme.py +0 -144
  52. huaweicloudsdkosm/v2/model/relevance_qapair.py +0 -173
  53. huaweicloudsdkosm/v2/model/search_articles_req.py +0 -201
  54. huaweicloudsdkosm/v2/model/search_notices_req.py +0 -143
  55. huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +0 -144
  56. huaweicloudsdkosm/v2/model/search_tools_req.py +0 -201
  57. huaweicloudsdkosm/v2/model/session_ask_question_req.py +0 -288
  58. huaweicloudsdkosm/v2/model/show_associated_questions_request.py +0 -197
  59. huaweicloudsdkosm/v2/model/show_associated_questions_response.py +0 -174
  60. huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +0 -200
  61. huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +0 -170
  62. huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +0 -225
  63. huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +0 -174
  64. huaweicloudsdkosm/v2/model/show_theme_request.py +0 -259
  65. huaweicloudsdkosm/v2/model/show_theme_response.py +0 -232
  66. huaweicloudsdkosm/v2/model/simple_qa_pair.py +0 -173
  67. huaweicloudsdkosm/v2/model/tool.py +0 -287
  68. huaweicloudsdkosm-3.1.164.dist-info/top_level.txt +0 -1
  69. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -1,318 +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 AnswerQaPair:
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
- 'score': 'float',
21
- 'answer': 'str',
22
- 'domain': 'str',
23
- 'link': 'str',
24
- 'question': 'str',
25
- 'qa_pair_id': 'str',
26
- 'relevance_details': 'list[RelevanceQapair]',
27
- 'task_complete': 'bool'
28
- }
29
-
30
- attribute_map = {
31
- 'score': 'score',
32
- 'answer': 'answer',
33
- 'domain': 'domain',
34
- 'link': 'link',
35
- 'question': 'question',
36
- 'qa_pair_id': 'qa_pair_id',
37
- 'relevance_details': 'relevance_details',
38
- 'task_complete': 'task_complete'
39
- }
40
-
41
- def __init__(self, score=None, answer=None, domain=None, link=None, question=None, qa_pair_id=None, relevance_details=None, task_complete=None):
42
- r"""AnswerQaPair
43
-
44
- The model defined in huaweicloud sdk
45
-
46
- :param score: 相似度得分
47
- :type score: float
48
- :param answer: 答案
49
- :type answer: str
50
- :param domain: 主题
51
- :type domain: str
52
- :param link: 链接
53
- :type link: str
54
- :param question: 问题
55
- :type question: str
56
- :param qa_pair_id: 语料Id
57
- :type qa_pair_id: str
58
- :param relevance_details: 相关问题详情列表
59
- :type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
60
- :param task_complete: 技能意图识别是否结束
61
- :type task_complete: bool
62
- """
63
-
64
-
65
-
66
- self._score = None
67
- self._answer = None
68
- self._domain = None
69
- self._link = None
70
- self._question = None
71
- self._qa_pair_id = None
72
- self._relevance_details = None
73
- self._task_complete = None
74
- self.discriminator = None
75
-
76
- if score is not None:
77
- self.score = score
78
- if answer is not None:
79
- self.answer = answer
80
- if domain is not None:
81
- self.domain = domain
82
- if link is not None:
83
- self.link = link
84
- if question is not None:
85
- self.question = question
86
- if qa_pair_id is not None:
87
- self.qa_pair_id = qa_pair_id
88
- if relevance_details is not None:
89
- self.relevance_details = relevance_details
90
- if task_complete is not None:
91
- self.task_complete = task_complete
92
-
93
- @property
94
- def score(self):
95
- r"""Gets the score of this AnswerQaPair.
96
-
97
- 相似度得分
98
-
99
- :return: The score of this AnswerQaPair.
100
- :rtype: float
101
- """
102
- return self._score
103
-
104
- @score.setter
105
- def score(self, score):
106
- r"""Sets the score of this AnswerQaPair.
107
-
108
- 相似度得分
109
-
110
- :param score: The score of this AnswerQaPair.
111
- :type score: float
112
- """
113
- self._score = score
114
-
115
- @property
116
- def answer(self):
117
- r"""Gets the answer of this AnswerQaPair.
118
-
119
- 答案
120
-
121
- :return: The answer of this AnswerQaPair.
122
- :rtype: str
123
- """
124
- return self._answer
125
-
126
- @answer.setter
127
- def answer(self, answer):
128
- r"""Sets the answer of this AnswerQaPair.
129
-
130
- 答案
131
-
132
- :param answer: The answer of this AnswerQaPair.
133
- :type answer: str
134
- """
135
- self._answer = answer
136
-
137
- @property
138
- def domain(self):
139
- r"""Gets the domain of this AnswerQaPair.
140
-
141
- 主题
142
-
143
- :return: The domain of this AnswerQaPair.
144
- :rtype: str
145
- """
146
- return self._domain
147
-
148
- @domain.setter
149
- def domain(self, domain):
150
- r"""Sets the domain of this AnswerQaPair.
151
-
152
- 主题
153
-
154
- :param domain: The domain of this AnswerQaPair.
155
- :type domain: str
156
- """
157
- self._domain = domain
158
-
159
- @property
160
- def link(self):
161
- r"""Gets the link of this AnswerQaPair.
162
-
163
- 链接
164
-
165
- :return: The link of this AnswerQaPair.
166
- :rtype: str
167
- """
168
- return self._link
169
-
170
- @link.setter
171
- def link(self, link):
172
- r"""Sets the link of this AnswerQaPair.
173
-
174
- 链接
175
-
176
- :param link: The link of this AnswerQaPair.
177
- :type link: str
178
- """
179
- self._link = link
180
-
181
- @property
182
- def question(self):
183
- r"""Gets the question of this AnswerQaPair.
184
-
185
- 问题
186
-
187
- :return: The question of this AnswerQaPair.
188
- :rtype: str
189
- """
190
- return self._question
191
-
192
- @question.setter
193
- def question(self, question):
194
- r"""Sets the question of this AnswerQaPair.
195
-
196
- 问题
197
-
198
- :param question: The question of this AnswerQaPair.
199
- :type question: str
200
- """
201
- self._question = question
202
-
203
- @property
204
- def qa_pair_id(self):
205
- r"""Gets the qa_pair_id of this AnswerQaPair.
206
-
207
- 语料Id
208
-
209
- :return: The qa_pair_id of this AnswerQaPair.
210
- :rtype: str
211
- """
212
- return self._qa_pair_id
213
-
214
- @qa_pair_id.setter
215
- def qa_pair_id(self, qa_pair_id):
216
- r"""Sets the qa_pair_id of this AnswerQaPair.
217
-
218
- 语料Id
219
-
220
- :param qa_pair_id: The qa_pair_id of this AnswerQaPair.
221
- :type qa_pair_id: str
222
- """
223
- self._qa_pair_id = qa_pair_id
224
-
225
- @property
226
- def relevance_details(self):
227
- r"""Gets the relevance_details of this AnswerQaPair.
228
-
229
- 相关问题详情列表
230
-
231
- :return: The relevance_details of this AnswerQaPair.
232
- :rtype: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
233
- """
234
- return self._relevance_details
235
-
236
- @relevance_details.setter
237
- def relevance_details(self, relevance_details):
238
- r"""Sets the relevance_details of this AnswerQaPair.
239
-
240
- 相关问题详情列表
241
-
242
- :param relevance_details: The relevance_details of this AnswerQaPair.
243
- :type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
244
- """
245
- self._relevance_details = relevance_details
246
-
247
- @property
248
- def task_complete(self):
249
- r"""Gets the task_complete of this AnswerQaPair.
250
-
251
- 技能意图识别是否结束
252
-
253
- :return: The task_complete of this AnswerQaPair.
254
- :rtype: bool
255
- """
256
- return self._task_complete
257
-
258
- @task_complete.setter
259
- def task_complete(self, task_complete):
260
- r"""Sets the task_complete of this AnswerQaPair.
261
-
262
- 技能意图识别是否结束
263
-
264
- :param task_complete: The task_complete of this AnswerQaPair.
265
- :type task_complete: bool
266
- """
267
- self._task_complete = task_complete
268
-
269
- def to_dict(self):
270
- """Returns the model properties as a dict"""
271
- result = {}
272
-
273
- for attr, _ in six.iteritems(self.openapi_types):
274
- value = getattr(self, attr)
275
- if isinstance(value, list):
276
- result[attr] = list(map(
277
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
278
- value
279
- ))
280
- elif hasattr(value, "to_dict"):
281
- result[attr] = value.to_dict()
282
- elif isinstance(value, dict):
283
- result[attr] = dict(map(
284
- lambda item: (item[0], item[1].to_dict())
285
- if hasattr(item[1], "to_dict") else item,
286
- value.items()
287
- ))
288
- else:
289
- if attr in self.sensitive_list:
290
- result[attr] = "****"
291
- else:
292
- result[attr] = value
293
-
294
- return result
295
-
296
- def to_str(self):
297
- """Returns the string representation of the model"""
298
- import simplejson as json
299
- if six.PY2:
300
- import sys
301
- reload(sys)
302
- sys.setdefaultencoding("utf-8")
303
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
304
-
305
- def __repr__(self):
306
- """For `print`"""
307
- return self.to_str()
308
-
309
- def __eq__(self, other):
310
- """Returns true if both objects are equal"""
311
- if not isinstance(other, AnswerQaPair):
312
- return False
313
-
314
- return self.__dict__ == other.__dict__
315
-
316
- def __ne__(self, other):
317
- """Returns true if both objects are not equal"""
318
- return not self == other
@@ -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