huaweicloudsdkversatile 3.1.184__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 (35) hide show
  1. huaweicloudsdkversatile/__init__.py +0 -0
  2. huaweicloudsdkversatile/v1/__init__.py +32 -0
  3. huaweicloudsdkversatile/v1/model/__init__.py +29 -0
  4. huaweicloudsdkversatile/v1/model/agent_run_req.py +302 -0
  5. huaweicloudsdkversatile/v1/model/conversation.py +129 -0
  6. huaweicloudsdkversatile/v1/model/feedback_reason.py +136 -0
  7. huaweicloudsdkversatile/v1/model/knowledge_base_retrieval_req.py +251 -0
  8. huaweicloudsdkversatile/v1/model/message.py +506 -0
  9. huaweicloudsdkversatile/v1/model/node_message.py +282 -0
  10. huaweicloudsdkversatile/v1/model/node_run_info.py +709 -0
  11. huaweicloudsdkversatile/v1/model/node_run_info_inner_error.py +133 -0
  12. huaweicloudsdkversatile/v1/model/node_run_info_inner_error_error_body.py +137 -0
  13. huaweicloudsdkversatile/v1/model/plugin_config.py +137 -0
  14. huaweicloudsdkversatile/v1/model/retrieval_result_info.py +282 -0
  15. huaweicloudsdkversatile/v1/model/run_agent_request.py +276 -0
  16. huaweicloudsdkversatile/v1/model/run_agent_response.py +378 -0
  17. huaweicloudsdkversatile/v1/model/run_workflow_request.py +247 -0
  18. huaweicloudsdkversatile/v1/model/run_workflow_response.py +378 -0
  19. huaweicloudsdkversatile/v1/model/search_knowledge_base_request.py +104 -0
  20. huaweicloudsdkversatile/v1/model/search_knowledge_base_response.py +141 -0
  21. huaweicloudsdkversatile/v1/model/status.py +135 -0
  22. huaweicloudsdkversatile/v1/model/upload_agent_file_request.py +190 -0
  23. huaweicloudsdkversatile/v1/model/upload_agent_file_request_body.py +107 -0
  24. huaweicloudsdkversatile/v1/model/upload_agent_file_response.py +170 -0
  25. huaweicloudsdkversatile/v1/model/user_profile.py +137 -0
  26. huaweicloudsdkversatile/v1/model/workflow_run_req.py +344 -0
  27. huaweicloudsdkversatile/v1/model/workflow_run_stream_rsp.py +195 -0
  28. huaweicloudsdkversatile/v1/region/__init__.py +0 -0
  29. huaweicloudsdkversatile/v1/region/versatile_region.py +31 -0
  30. huaweicloudsdkversatile/v1/versatile_async_client.py +378 -0
  31. huaweicloudsdkversatile/v1/versatile_client.py +375 -0
  32. huaweicloudsdkversatile-3.1.184.dist-info/METADATA +25 -0
  33. huaweicloudsdkversatile-3.1.184.dist-info/RECORD +35 -0
  34. huaweicloudsdkversatile-3.1.184.dist-info/WHEEL +4 -0
  35. huaweicloudsdkversatile-3.1.184.dist-info/licenses/LICENSE +13 -0
@@ -0,0 +1,247 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class RunWorkflowRequest:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'workflow_id': 'str',
19
+ 'conversation_id': 'str',
20
+ 'workspace_id': 'str',
21
+ 'version': 'str',
22
+ 'stream': 'bool',
23
+ 'body': 'WorkflowRunReq'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'workflow_id': 'workflow_id',
28
+ 'conversation_id': 'conversation_id',
29
+ 'workspace_id': 'workspace_id',
30
+ 'version': 'version',
31
+ 'stream': 'stream',
32
+ 'body': 'body'
33
+ }
34
+
35
+ def __init__(self, workflow_id=None, conversation_id=None, workspace_id=None, version=None, stream=None, body=None):
36
+ r"""RunWorkflowRequest
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param workflow_id: **参数解释**: 工作流ID **取值范围**: 由英文,数字,“-”,“_”组成,不超过64位字符。
41
+ :type workflow_id: str
42
+ :param conversation_id: **参数解释**: 会话ID,历史对话记忆功能基于同一个会话 **取值范围**: 由英文,数字,“-”,“_”组成,不超过64位字符。
43
+ :type conversation_id: str
44
+ :param workspace_id: **参数解释**: 空间ID,当前资源所属工作空间 **取值范围**: 由英文,数字,“-”,“_”组成,不超过64位字符。
45
+ :type workspace_id: str
46
+ :param version: **参数解释**: 运行的智能体/工作流的发布版本号,默认运行最新发布版本 **取值范围**: 不涉及
47
+ :type version: str
48
+ :param stream: **参数解释**: 是否流式响应 **取值范围**: true,false(不传默认 true,支持流式)
49
+ :type stream: bool
50
+ :param body: Body of the RunWorkflowRequest
51
+ :type body: :class:`huaweicloudsdkversatile.v1.WorkflowRunReq`
52
+ """
53
+
54
+
55
+
56
+ self._workflow_id = None
57
+ self._conversation_id = None
58
+ self._workspace_id = None
59
+ self._version = None
60
+ self._stream = None
61
+ self._body = None
62
+ self.discriminator = None
63
+
64
+ self.workflow_id = workflow_id
65
+ self.conversation_id = conversation_id
66
+ if workspace_id is not None:
67
+ self.workspace_id = workspace_id
68
+ if version is not None:
69
+ self.version = version
70
+ if stream is not None:
71
+ self.stream = stream
72
+ if body is not None:
73
+ self.body = body
74
+
75
+ @property
76
+ def workflow_id(self):
77
+ r"""Gets the workflow_id of this RunWorkflowRequest.
78
+
79
+ **参数解释**: 工作流ID **取值范围**: 由英文,数字,“-”,“_”组成,不超过64位字符。
80
+
81
+ :return: The workflow_id of this RunWorkflowRequest.
82
+ :rtype: str
83
+ """
84
+ return self._workflow_id
85
+
86
+ @workflow_id.setter
87
+ def workflow_id(self, workflow_id):
88
+ r"""Sets the workflow_id of this RunWorkflowRequest.
89
+
90
+ **参数解释**: 工作流ID **取值范围**: 由英文,数字,“-”,“_”组成,不超过64位字符。
91
+
92
+ :param workflow_id: The workflow_id of this RunWorkflowRequest.
93
+ :type workflow_id: str
94
+ """
95
+ self._workflow_id = workflow_id
96
+
97
+ @property
98
+ def conversation_id(self):
99
+ r"""Gets the conversation_id of this RunWorkflowRequest.
100
+
101
+ **参数解释**: 会话ID,历史对话记忆功能基于同一个会话 **取值范围**: 由英文,数字,“-”,“_”组成,不超过64位字符。
102
+
103
+ :return: The conversation_id of this RunWorkflowRequest.
104
+ :rtype: str
105
+ """
106
+ return self._conversation_id
107
+
108
+ @conversation_id.setter
109
+ def conversation_id(self, conversation_id):
110
+ r"""Sets the conversation_id of this RunWorkflowRequest.
111
+
112
+ **参数解释**: 会话ID,历史对话记忆功能基于同一个会话 **取值范围**: 由英文,数字,“-”,“_”组成,不超过64位字符。
113
+
114
+ :param conversation_id: The conversation_id of this RunWorkflowRequest.
115
+ :type conversation_id: str
116
+ """
117
+ self._conversation_id = conversation_id
118
+
119
+ @property
120
+ def workspace_id(self):
121
+ r"""Gets the workspace_id of this RunWorkflowRequest.
122
+
123
+ **参数解释**: 空间ID,当前资源所属工作空间 **取值范围**: 由英文,数字,“-”,“_”组成,不超过64位字符。
124
+
125
+ :return: The workspace_id of this RunWorkflowRequest.
126
+ :rtype: str
127
+ """
128
+ return self._workspace_id
129
+
130
+ @workspace_id.setter
131
+ def workspace_id(self, workspace_id):
132
+ r"""Sets the workspace_id of this RunWorkflowRequest.
133
+
134
+ **参数解释**: 空间ID,当前资源所属工作空间 **取值范围**: 由英文,数字,“-”,“_”组成,不超过64位字符。
135
+
136
+ :param workspace_id: The workspace_id of this RunWorkflowRequest.
137
+ :type workspace_id: str
138
+ """
139
+ self._workspace_id = workspace_id
140
+
141
+ @property
142
+ def version(self):
143
+ r"""Gets the version of this RunWorkflowRequest.
144
+
145
+ **参数解释**: 运行的智能体/工作流的发布版本号,默认运行最新发布版本 **取值范围**: 不涉及
146
+
147
+ :return: The version of this RunWorkflowRequest.
148
+ :rtype: str
149
+ """
150
+ return self._version
151
+
152
+ @version.setter
153
+ def version(self, version):
154
+ r"""Sets the version of this RunWorkflowRequest.
155
+
156
+ **参数解释**: 运行的智能体/工作流的发布版本号,默认运行最新发布版本 **取值范围**: 不涉及
157
+
158
+ :param version: The version of this RunWorkflowRequest.
159
+ :type version: str
160
+ """
161
+ self._version = version
162
+
163
+ @property
164
+ def stream(self):
165
+ r"""Gets the stream of this RunWorkflowRequest.
166
+
167
+ **参数解释**: 是否流式响应 **取值范围**: true,false(不传默认 true,支持流式)
168
+
169
+ :return: The stream of this RunWorkflowRequest.
170
+ :rtype: bool
171
+ """
172
+ return self._stream
173
+
174
+ @stream.setter
175
+ def stream(self, stream):
176
+ r"""Sets the stream of this RunWorkflowRequest.
177
+
178
+ **参数解释**: 是否流式响应 **取值范围**: true,false(不传默认 true,支持流式)
179
+
180
+ :param stream: The stream of this RunWorkflowRequest.
181
+ :type stream: bool
182
+ """
183
+ self._stream = stream
184
+
185
+ @property
186
+ def body(self):
187
+ r"""Gets the body of this RunWorkflowRequest.
188
+
189
+ :return: The body of this RunWorkflowRequest.
190
+ :rtype: :class:`huaweicloudsdkversatile.v1.WorkflowRunReq`
191
+ """
192
+ return self._body
193
+
194
+ @body.setter
195
+ def body(self, body):
196
+ r"""Sets the body of this RunWorkflowRequest.
197
+
198
+ :param body: The body of this RunWorkflowRequest.
199
+ :type body: :class:`huaweicloudsdkversatile.v1.WorkflowRunReq`
200
+ """
201
+ self._body = body
202
+
203
+ def to_dict(self):
204
+ result = {}
205
+
206
+ for attr, _ in self.openapi_types.items():
207
+ value = getattr(self, attr)
208
+ if isinstance(value, list):
209
+ result[attr] = list(map(
210
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
211
+ value
212
+ ))
213
+ elif hasattr(value, "to_dict"):
214
+ result[attr] = value.to_dict()
215
+ elif isinstance(value, dict):
216
+ result[attr] = dict(map(
217
+ lambda item: (item[0], item[1].to_dict())
218
+ if hasattr(item[1], "to_dict") else item,
219
+ value.items()
220
+ ))
221
+ else:
222
+ if attr in self.sensitive_list:
223
+ result[attr] = "****"
224
+ else:
225
+ result[attr] = value
226
+
227
+ return result
228
+
229
+ def to_str(self):
230
+ """Returns the string representation of the model"""
231
+ import simplejson as json
232
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
233
+
234
+ def __repr__(self):
235
+ """For `print`"""
236
+ return self.to_str()
237
+
238
+ def __eq__(self, other):
239
+ """Returns true if both objects are equal"""
240
+ if not isinstance(other, RunWorkflowRequest):
241
+ return False
242
+
243
+ return self.__dict__ == other.__dict__
244
+
245
+ def __ne__(self, other):
246
+ """Returns true if both objects are not equal"""
247
+ return not self == other
@@ -0,0 +1,378 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.sdk_response import SdkResponse
4
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
5
+
6
+
7
+ class RunWorkflowResponse(SdkResponse):
8
+
9
+ """
10
+ Attributes:
11
+ openapi_types (dict): The key is attribute name
12
+ and the value is attribute type.
13
+ attribute_map (dict): The key is attribute name
14
+ and the value is json key in definition.
15
+ """
16
+ sensitive_list = []
17
+
18
+ openapi_types = {
19
+ 'conversation_id': 'str',
20
+ 'outputs': 'dict(str, object)',
21
+ 'messages': 'list[NodeMessage]',
22
+ 'error_code': 'str',
23
+ 'error_message': 'str',
24
+ 'metadata': 'dict(str, object)',
25
+ 'status': 'Status',
26
+ 'start_time': 'int',
27
+ 'end_time': 'int',
28
+ 'node_info': 'list[NodeRunInfo]',
29
+ 'events': 'list[WorkflowRunStreamRsp]'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'conversation_id': 'conversation_id',
34
+ 'outputs': 'outputs',
35
+ 'messages': 'messages',
36
+ 'error_code': 'error_code',
37
+ 'error_message': 'error_message',
38
+ 'metadata': 'metadata',
39
+ 'status': 'status',
40
+ 'start_time': 'start_time',
41
+ 'end_time': 'end_time',
42
+ 'node_info': 'node_info',
43
+ 'events': 'events'
44
+ }
45
+
46
+ def __init__(self, conversation_id=None, outputs=None, messages=None, error_code=None, error_message=None, metadata=None, status=None, start_time=None, end_time=None, node_info=None, events=None):
47
+ r"""RunWorkflowResponse
48
+
49
+ The model defined in huaweicloud sdk
50
+
51
+ :param conversation_id: 会话id
52
+ :type conversation_id: str
53
+ :param outputs:
54
+ :type outputs: dict(str, object)
55
+ :param messages:
56
+ :type messages: list[:class:`huaweicloudsdkversatile.v1.NodeMessage`]
57
+ :param error_code: 会话id
58
+ :type error_code: str
59
+ :param error_message: 会话id
60
+ :type error_message: str
61
+ :param metadata:
62
+ :type metadata: dict(str, object)
63
+ :param status:
64
+ :type status: :class:`huaweicloudsdkversatile.v1.Status`
65
+ :param start_time: 开始时间
66
+ :type start_time: int
67
+ :param end_time: 结束时间
68
+ :type end_time: int
69
+ :param node_info:
70
+ :type node_info: list[:class:`huaweicloudsdkversatile.v1.NodeRunInfo`]
71
+ :param events:
72
+ :type events: list[:class:`huaweicloudsdkversatile.v1.WorkflowRunStreamRsp`]
73
+ """
74
+
75
+ super().__init__()
76
+
77
+ self._conversation_id = None
78
+ self._outputs = None
79
+ self._messages = None
80
+ self._error_code = None
81
+ self._error_message = None
82
+ self._metadata = None
83
+ self._status = None
84
+ self._start_time = None
85
+ self._end_time = None
86
+ self._node_info = None
87
+ self._events = None
88
+ self.discriminator = None
89
+
90
+ if conversation_id is not None:
91
+ self.conversation_id = conversation_id
92
+ if outputs is not None:
93
+ self.outputs = outputs
94
+ if messages is not None:
95
+ self.messages = messages
96
+ if error_code is not None:
97
+ self.error_code = error_code
98
+ if error_message is not None:
99
+ self.error_message = error_message
100
+ if metadata is not None:
101
+ self.metadata = metadata
102
+ if status is not None:
103
+ self.status = status
104
+ if start_time is not None:
105
+ self.start_time = start_time
106
+ if end_time is not None:
107
+ self.end_time = end_time
108
+ if node_info is not None:
109
+ self.node_info = node_info
110
+ if events is not None:
111
+ self.events = events
112
+
113
+ @property
114
+ def conversation_id(self):
115
+ r"""Gets the conversation_id of this RunWorkflowResponse.
116
+
117
+ 会话id
118
+
119
+ :return: The conversation_id of this RunWorkflowResponse.
120
+ :rtype: str
121
+ """
122
+ return self._conversation_id
123
+
124
+ @conversation_id.setter
125
+ def conversation_id(self, conversation_id):
126
+ r"""Sets the conversation_id of this RunWorkflowResponse.
127
+
128
+ 会话id
129
+
130
+ :param conversation_id: The conversation_id of this RunWorkflowResponse.
131
+ :type conversation_id: str
132
+ """
133
+ self._conversation_id = conversation_id
134
+
135
+ @property
136
+ def outputs(self):
137
+ r"""Gets the outputs of this RunWorkflowResponse.
138
+
139
+ :return: The outputs of this RunWorkflowResponse.
140
+ :rtype: dict(str, object)
141
+ """
142
+ return self._outputs
143
+
144
+ @outputs.setter
145
+ def outputs(self, outputs):
146
+ r"""Sets the outputs of this RunWorkflowResponse.
147
+
148
+ :param outputs: The outputs of this RunWorkflowResponse.
149
+ :type outputs: dict(str, object)
150
+ """
151
+ self._outputs = outputs
152
+
153
+ @property
154
+ def messages(self):
155
+ r"""Gets the messages of this RunWorkflowResponse.
156
+
157
+ :return: The messages of this RunWorkflowResponse.
158
+ :rtype: list[:class:`huaweicloudsdkversatile.v1.NodeMessage`]
159
+ """
160
+ return self._messages
161
+
162
+ @messages.setter
163
+ def messages(self, messages):
164
+ r"""Sets the messages of this RunWorkflowResponse.
165
+
166
+ :param messages: The messages of this RunWorkflowResponse.
167
+ :type messages: list[:class:`huaweicloudsdkversatile.v1.NodeMessage`]
168
+ """
169
+ self._messages = messages
170
+
171
+ @property
172
+ def error_code(self):
173
+ r"""Gets the error_code of this RunWorkflowResponse.
174
+
175
+ 会话id
176
+
177
+ :return: The error_code of this RunWorkflowResponse.
178
+ :rtype: str
179
+ """
180
+ return self._error_code
181
+
182
+ @error_code.setter
183
+ def error_code(self, error_code):
184
+ r"""Sets the error_code of this RunWorkflowResponse.
185
+
186
+ 会话id
187
+
188
+ :param error_code: The error_code of this RunWorkflowResponse.
189
+ :type error_code: str
190
+ """
191
+ self._error_code = error_code
192
+
193
+ @property
194
+ def error_message(self):
195
+ r"""Gets the error_message of this RunWorkflowResponse.
196
+
197
+ 会话id
198
+
199
+ :return: The error_message of this RunWorkflowResponse.
200
+ :rtype: str
201
+ """
202
+ return self._error_message
203
+
204
+ @error_message.setter
205
+ def error_message(self, error_message):
206
+ r"""Sets the error_message of this RunWorkflowResponse.
207
+
208
+ 会话id
209
+
210
+ :param error_message: The error_message of this RunWorkflowResponse.
211
+ :type error_message: str
212
+ """
213
+ self._error_message = error_message
214
+
215
+ @property
216
+ def metadata(self):
217
+ r"""Gets the metadata of this RunWorkflowResponse.
218
+
219
+ :return: The metadata of this RunWorkflowResponse.
220
+ :rtype: dict(str, object)
221
+ """
222
+ return self._metadata
223
+
224
+ @metadata.setter
225
+ def metadata(self, metadata):
226
+ r"""Sets the metadata of this RunWorkflowResponse.
227
+
228
+ :param metadata: The metadata of this RunWorkflowResponse.
229
+ :type metadata: dict(str, object)
230
+ """
231
+ self._metadata = metadata
232
+
233
+ @property
234
+ def status(self):
235
+ r"""Gets the status of this RunWorkflowResponse.
236
+
237
+ :return: The status of this RunWorkflowResponse.
238
+ :rtype: :class:`huaweicloudsdkversatile.v1.Status`
239
+ """
240
+ return self._status
241
+
242
+ @status.setter
243
+ def status(self, status):
244
+ r"""Sets the status of this RunWorkflowResponse.
245
+
246
+ :param status: The status of this RunWorkflowResponse.
247
+ :type status: :class:`huaweicloudsdkversatile.v1.Status`
248
+ """
249
+ self._status = status
250
+
251
+ @property
252
+ def start_time(self):
253
+ r"""Gets the start_time of this RunWorkflowResponse.
254
+
255
+ 开始时间
256
+
257
+ :return: The start_time of this RunWorkflowResponse.
258
+ :rtype: int
259
+ """
260
+ return self._start_time
261
+
262
+ @start_time.setter
263
+ def start_time(self, start_time):
264
+ r"""Sets the start_time of this RunWorkflowResponse.
265
+
266
+ 开始时间
267
+
268
+ :param start_time: The start_time of this RunWorkflowResponse.
269
+ :type start_time: int
270
+ """
271
+ self._start_time = start_time
272
+
273
+ @property
274
+ def end_time(self):
275
+ r"""Gets the end_time of this RunWorkflowResponse.
276
+
277
+ 结束时间
278
+
279
+ :return: The end_time of this RunWorkflowResponse.
280
+ :rtype: int
281
+ """
282
+ return self._end_time
283
+
284
+ @end_time.setter
285
+ def end_time(self, end_time):
286
+ r"""Sets the end_time of this RunWorkflowResponse.
287
+
288
+ 结束时间
289
+
290
+ :param end_time: The end_time of this RunWorkflowResponse.
291
+ :type end_time: int
292
+ """
293
+ self._end_time = end_time
294
+
295
+ @property
296
+ def node_info(self):
297
+ r"""Gets the node_info of this RunWorkflowResponse.
298
+
299
+ :return: The node_info of this RunWorkflowResponse.
300
+ :rtype: list[:class:`huaweicloudsdkversatile.v1.NodeRunInfo`]
301
+ """
302
+ return self._node_info
303
+
304
+ @node_info.setter
305
+ def node_info(self, node_info):
306
+ r"""Sets the node_info of this RunWorkflowResponse.
307
+
308
+ :param node_info: The node_info of this RunWorkflowResponse.
309
+ :type node_info: list[:class:`huaweicloudsdkversatile.v1.NodeRunInfo`]
310
+ """
311
+ self._node_info = node_info
312
+
313
+ @property
314
+ def events(self):
315
+ r"""Gets the events of this RunWorkflowResponse.
316
+
317
+ :return: The events of this RunWorkflowResponse.
318
+ :rtype: list[:class:`huaweicloudsdkversatile.v1.WorkflowRunStreamRsp`]
319
+ """
320
+ return self._events
321
+
322
+ @events.setter
323
+ def events(self, events):
324
+ r"""Sets the events of this RunWorkflowResponse.
325
+
326
+ :param events: The events of this RunWorkflowResponse.
327
+ :type events: list[:class:`huaweicloudsdkversatile.v1.WorkflowRunStreamRsp`]
328
+ """
329
+ self._events = events
330
+
331
+ def to_dict(self):
332
+ import warnings
333
+ warnings.warn("RunWorkflowResponse.to_dict() is deprecated and no longer maintained, "
334
+ "use to_json_object() to get the response content.", DeprecationWarning)
335
+ result = {}
336
+
337
+ for attr, _ in self.openapi_types.items():
338
+ value = getattr(self, attr)
339
+ if isinstance(value, list):
340
+ result[attr] = list(map(
341
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
342
+ value
343
+ ))
344
+ elif hasattr(value, "to_dict"):
345
+ result[attr] = value.to_dict()
346
+ elif isinstance(value, dict):
347
+ result[attr] = dict(map(
348
+ lambda item: (item[0], item[1].to_dict())
349
+ if hasattr(item[1], "to_dict") else item,
350
+ value.items()
351
+ ))
352
+ else:
353
+ if attr in self.sensitive_list:
354
+ result[attr] = "****"
355
+ else:
356
+ result[attr] = value
357
+
358
+ return result
359
+
360
+ def to_str(self):
361
+ """Returns the string representation of the model"""
362
+ import simplejson as json
363
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
364
+
365
+ def __repr__(self):
366
+ """For `print`"""
367
+ return self.to_str()
368
+
369
+ def __eq__(self, other):
370
+ """Returns true if both objects are equal"""
371
+ if not isinstance(other, RunWorkflowResponse):
372
+ return False
373
+
374
+ return self.__dict__ == other.__dict__
375
+
376
+ def __ne__(self, other):
377
+ """Returns true if both objects are not equal"""
378
+ return not self == other