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,709 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class NodeRunInfo:
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
+ 'agent_id': 'str',
19
+ 'node_id': 'str',
20
+ 'parent_node_id': 'str',
21
+ 'node_status': 'str',
22
+ 'parent_workflow_id': 'str',
23
+ 'loop_index': 'int',
24
+ 'loop_node_id': 'str',
25
+ 'status': 'Status',
26
+ 'node_name': 'str',
27
+ 'node_type': 'str',
28
+ 'error_message': 'str',
29
+ 'inputs': 'dict(str, object)',
30
+ 'outputs': 'dict(str, object)',
31
+ 'messages': 'list[Message]',
32
+ 'metadata': 'dict(str, object)',
33
+ 'start_time': 'int',
34
+ 'end_time': 'int',
35
+ 'startup_time': 'int',
36
+ 'prefill_time': 'int',
37
+ 'execution_id': 'str',
38
+ 'inner_error': 'NodeRunInfoInnerError',
39
+ 'memory': 'dict(str, object)'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'agent_id': 'agent_id',
44
+ 'node_id': 'node_id',
45
+ 'parent_node_id': 'parent_node_id',
46
+ 'node_status': 'node_status',
47
+ 'parent_workflow_id': 'parent_workflow_id',
48
+ 'loop_index': 'loop_index',
49
+ 'loop_node_id': 'loop_node_id',
50
+ 'status': 'status',
51
+ 'node_name': 'node_name',
52
+ 'node_type': 'node_type',
53
+ 'error_message': 'error_message',
54
+ 'inputs': 'inputs',
55
+ 'outputs': 'outputs',
56
+ 'messages': 'messages',
57
+ 'metadata': 'metadata',
58
+ 'start_time': 'start_time',
59
+ 'end_time': 'end_time',
60
+ 'startup_time': 'startup_time',
61
+ 'prefill_time': 'prefill_time',
62
+ 'execution_id': 'execution_id',
63
+ 'inner_error': 'inner_error',
64
+ 'memory': 'memory'
65
+ }
66
+
67
+ def __init__(self, agent_id=None, node_id=None, parent_node_id=None, node_status=None, parent_workflow_id=None, loop_index=None, loop_node_id=None, status=None, node_name=None, node_type=None, error_message=None, inputs=None, outputs=None, messages=None, metadata=None, start_time=None, end_time=None, startup_time=None, prefill_time=None, execution_id=None, inner_error=None, memory=None):
68
+ r"""NodeRunInfo
69
+
70
+ The model defined in huaweicloud sdk
71
+
72
+ :param agent_id: 工作流id
73
+ :type agent_id: str
74
+ :param node_id: 节点id
75
+ :type node_id: str
76
+ :param parent_node_id: 父节点id
77
+ :type parent_node_id: str
78
+ :param node_status: 工作流节点状态
79
+ :type node_status: str
80
+ :param parent_workflow_id: 父工作流节点id
81
+ :type parent_workflow_id: str
82
+ :param loop_index: 循环次数
83
+ :type loop_index: int
84
+ :param loop_node_id: 上层循环节点id
85
+ :type loop_node_id: str
86
+ :param status:
87
+ :type status: :class:`huaweicloudsdkversatile.v1.Status`
88
+ :param node_name: 节点名称
89
+ :type node_name: str
90
+ :param node_type: 节点类型
91
+ :type node_type: str
92
+ :param error_message: 错误信息
93
+ :type error_message: str
94
+ :param inputs: 输入参数:debug才设置
95
+ :type inputs: dict(str, object)
96
+ :param outputs: 输出参数:debug才设置
97
+ :type outputs: dict(str, object)
98
+ :param messages: 消息节点或提问器节点的输出
99
+ :type messages: list[:class:`huaweicloudsdkversatile.v1.Message`]
100
+ :param metadata: 节点特有的输出,如:大模型原始回复debug才设置
101
+ :type metadata: dict(str, object)
102
+ :param start_time: 开始时间,13位时间戳 workflow_started,node_started必填
103
+ :type start_time: int
104
+ :param end_time: 结束时间,13位时间戳 workflow_finished,node_finished必填
105
+ :type end_time: int
106
+ :param startup_time: 真正启动的时间,13位时间戳
107
+ :type startup_time: int
108
+ :param prefill_time: 预热时间,如大模型节点表示首token时间
109
+ :type prefill_time: int
110
+ :param execution_id: execution id
111
+ :type execution_id: str
112
+ :param inner_error:
113
+ :type inner_error: :class:`huaweicloudsdkversatile.v1.NodeRunInfoInnerError`
114
+ :param memory: 记忆变量
115
+ :type memory: dict(str, object)
116
+ """
117
+
118
+
119
+
120
+ self._agent_id = None
121
+ self._node_id = None
122
+ self._parent_node_id = None
123
+ self._node_status = None
124
+ self._parent_workflow_id = None
125
+ self._loop_index = None
126
+ self._loop_node_id = None
127
+ self._status = None
128
+ self._node_name = None
129
+ self._node_type = None
130
+ self._error_message = None
131
+ self._inputs = None
132
+ self._outputs = None
133
+ self._messages = None
134
+ self._metadata = None
135
+ self._start_time = None
136
+ self._end_time = None
137
+ self._startup_time = None
138
+ self._prefill_time = None
139
+ self._execution_id = None
140
+ self._inner_error = None
141
+ self._memory = None
142
+ self.discriminator = None
143
+
144
+ if agent_id is not None:
145
+ self.agent_id = agent_id
146
+ if node_id is not None:
147
+ self.node_id = node_id
148
+ if parent_node_id is not None:
149
+ self.parent_node_id = parent_node_id
150
+ if node_status is not None:
151
+ self.node_status = node_status
152
+ if parent_workflow_id is not None:
153
+ self.parent_workflow_id = parent_workflow_id
154
+ if loop_index is not None:
155
+ self.loop_index = loop_index
156
+ if loop_node_id is not None:
157
+ self.loop_node_id = loop_node_id
158
+ if status is not None:
159
+ self.status = status
160
+ if node_name is not None:
161
+ self.node_name = node_name
162
+ if node_type is not None:
163
+ self.node_type = node_type
164
+ if error_message is not None:
165
+ self.error_message = error_message
166
+ if inputs is not None:
167
+ self.inputs = inputs
168
+ if outputs is not None:
169
+ self.outputs = outputs
170
+ if messages is not None:
171
+ self.messages = messages
172
+ if metadata is not None:
173
+ self.metadata = metadata
174
+ if start_time is not None:
175
+ self.start_time = start_time
176
+ if end_time is not None:
177
+ self.end_time = end_time
178
+ if startup_time is not None:
179
+ self.startup_time = startup_time
180
+ if prefill_time is not None:
181
+ self.prefill_time = prefill_time
182
+ if execution_id is not None:
183
+ self.execution_id = execution_id
184
+ if inner_error is not None:
185
+ self.inner_error = inner_error
186
+ if memory is not None:
187
+ self.memory = memory
188
+
189
+ @property
190
+ def agent_id(self):
191
+ r"""Gets the agent_id of this NodeRunInfo.
192
+
193
+ 工作流id
194
+
195
+ :return: The agent_id of this NodeRunInfo.
196
+ :rtype: str
197
+ """
198
+ return self._agent_id
199
+
200
+ @agent_id.setter
201
+ def agent_id(self, agent_id):
202
+ r"""Sets the agent_id of this NodeRunInfo.
203
+
204
+ 工作流id
205
+
206
+ :param agent_id: The agent_id of this NodeRunInfo.
207
+ :type agent_id: str
208
+ """
209
+ self._agent_id = agent_id
210
+
211
+ @property
212
+ def node_id(self):
213
+ r"""Gets the node_id of this NodeRunInfo.
214
+
215
+ 节点id
216
+
217
+ :return: The node_id of this NodeRunInfo.
218
+ :rtype: str
219
+ """
220
+ return self._node_id
221
+
222
+ @node_id.setter
223
+ def node_id(self, node_id):
224
+ r"""Sets the node_id of this NodeRunInfo.
225
+
226
+ 节点id
227
+
228
+ :param node_id: The node_id of this NodeRunInfo.
229
+ :type node_id: str
230
+ """
231
+ self._node_id = node_id
232
+
233
+ @property
234
+ def parent_node_id(self):
235
+ r"""Gets the parent_node_id of this NodeRunInfo.
236
+
237
+ 父节点id
238
+
239
+ :return: The parent_node_id of this NodeRunInfo.
240
+ :rtype: str
241
+ """
242
+ return self._parent_node_id
243
+
244
+ @parent_node_id.setter
245
+ def parent_node_id(self, parent_node_id):
246
+ r"""Sets the parent_node_id of this NodeRunInfo.
247
+
248
+ 父节点id
249
+
250
+ :param parent_node_id: The parent_node_id of this NodeRunInfo.
251
+ :type parent_node_id: str
252
+ """
253
+ self._parent_node_id = parent_node_id
254
+
255
+ @property
256
+ def node_status(self):
257
+ r"""Gets the node_status of this NodeRunInfo.
258
+
259
+ 工作流节点状态
260
+
261
+ :return: The node_status of this NodeRunInfo.
262
+ :rtype: str
263
+ """
264
+ return self._node_status
265
+
266
+ @node_status.setter
267
+ def node_status(self, node_status):
268
+ r"""Sets the node_status of this NodeRunInfo.
269
+
270
+ 工作流节点状态
271
+
272
+ :param node_status: The node_status of this NodeRunInfo.
273
+ :type node_status: str
274
+ """
275
+ self._node_status = node_status
276
+
277
+ @property
278
+ def parent_workflow_id(self):
279
+ r"""Gets the parent_workflow_id of this NodeRunInfo.
280
+
281
+ 父工作流节点id
282
+
283
+ :return: The parent_workflow_id of this NodeRunInfo.
284
+ :rtype: str
285
+ """
286
+ return self._parent_workflow_id
287
+
288
+ @parent_workflow_id.setter
289
+ def parent_workflow_id(self, parent_workflow_id):
290
+ r"""Sets the parent_workflow_id of this NodeRunInfo.
291
+
292
+ 父工作流节点id
293
+
294
+ :param parent_workflow_id: The parent_workflow_id of this NodeRunInfo.
295
+ :type parent_workflow_id: str
296
+ """
297
+ self._parent_workflow_id = parent_workflow_id
298
+
299
+ @property
300
+ def loop_index(self):
301
+ r"""Gets the loop_index of this NodeRunInfo.
302
+
303
+ 循环次数
304
+
305
+ :return: The loop_index of this NodeRunInfo.
306
+ :rtype: int
307
+ """
308
+ return self._loop_index
309
+
310
+ @loop_index.setter
311
+ def loop_index(self, loop_index):
312
+ r"""Sets the loop_index of this NodeRunInfo.
313
+
314
+ 循环次数
315
+
316
+ :param loop_index: The loop_index of this NodeRunInfo.
317
+ :type loop_index: int
318
+ """
319
+ self._loop_index = loop_index
320
+
321
+ @property
322
+ def loop_node_id(self):
323
+ r"""Gets the loop_node_id of this NodeRunInfo.
324
+
325
+ 上层循环节点id
326
+
327
+ :return: The loop_node_id of this NodeRunInfo.
328
+ :rtype: str
329
+ """
330
+ return self._loop_node_id
331
+
332
+ @loop_node_id.setter
333
+ def loop_node_id(self, loop_node_id):
334
+ r"""Sets the loop_node_id of this NodeRunInfo.
335
+
336
+ 上层循环节点id
337
+
338
+ :param loop_node_id: The loop_node_id of this NodeRunInfo.
339
+ :type loop_node_id: str
340
+ """
341
+ self._loop_node_id = loop_node_id
342
+
343
+ @property
344
+ def status(self):
345
+ r"""Gets the status of this NodeRunInfo.
346
+
347
+ :return: The status of this NodeRunInfo.
348
+ :rtype: :class:`huaweicloudsdkversatile.v1.Status`
349
+ """
350
+ return self._status
351
+
352
+ @status.setter
353
+ def status(self, status):
354
+ r"""Sets the status of this NodeRunInfo.
355
+
356
+ :param status: The status of this NodeRunInfo.
357
+ :type status: :class:`huaweicloudsdkversatile.v1.Status`
358
+ """
359
+ self._status = status
360
+
361
+ @property
362
+ def node_name(self):
363
+ r"""Gets the node_name of this NodeRunInfo.
364
+
365
+ 节点名称
366
+
367
+ :return: The node_name of this NodeRunInfo.
368
+ :rtype: str
369
+ """
370
+ return self._node_name
371
+
372
+ @node_name.setter
373
+ def node_name(self, node_name):
374
+ r"""Sets the node_name of this NodeRunInfo.
375
+
376
+ 节点名称
377
+
378
+ :param node_name: The node_name of this NodeRunInfo.
379
+ :type node_name: str
380
+ """
381
+ self._node_name = node_name
382
+
383
+ @property
384
+ def node_type(self):
385
+ r"""Gets the node_type of this NodeRunInfo.
386
+
387
+ 节点类型
388
+
389
+ :return: The node_type of this NodeRunInfo.
390
+ :rtype: str
391
+ """
392
+ return self._node_type
393
+
394
+ @node_type.setter
395
+ def node_type(self, node_type):
396
+ r"""Sets the node_type of this NodeRunInfo.
397
+
398
+ 节点类型
399
+
400
+ :param node_type: The node_type of this NodeRunInfo.
401
+ :type node_type: str
402
+ """
403
+ self._node_type = node_type
404
+
405
+ @property
406
+ def error_message(self):
407
+ r"""Gets the error_message of this NodeRunInfo.
408
+
409
+ 错误信息
410
+
411
+ :return: The error_message of this NodeRunInfo.
412
+ :rtype: str
413
+ """
414
+ return self._error_message
415
+
416
+ @error_message.setter
417
+ def error_message(self, error_message):
418
+ r"""Sets the error_message of this NodeRunInfo.
419
+
420
+ 错误信息
421
+
422
+ :param error_message: The error_message of this NodeRunInfo.
423
+ :type error_message: str
424
+ """
425
+ self._error_message = error_message
426
+
427
+ @property
428
+ def inputs(self):
429
+ r"""Gets the inputs of this NodeRunInfo.
430
+
431
+ 输入参数:debug才设置
432
+
433
+ :return: The inputs of this NodeRunInfo.
434
+ :rtype: dict(str, object)
435
+ """
436
+ return self._inputs
437
+
438
+ @inputs.setter
439
+ def inputs(self, inputs):
440
+ r"""Sets the inputs of this NodeRunInfo.
441
+
442
+ 输入参数:debug才设置
443
+
444
+ :param inputs: The inputs of this NodeRunInfo.
445
+ :type inputs: dict(str, object)
446
+ """
447
+ self._inputs = inputs
448
+
449
+ @property
450
+ def outputs(self):
451
+ r"""Gets the outputs of this NodeRunInfo.
452
+
453
+ 输出参数:debug才设置
454
+
455
+ :return: The outputs of this NodeRunInfo.
456
+ :rtype: dict(str, object)
457
+ """
458
+ return self._outputs
459
+
460
+ @outputs.setter
461
+ def outputs(self, outputs):
462
+ r"""Sets the outputs of this NodeRunInfo.
463
+
464
+ 输出参数:debug才设置
465
+
466
+ :param outputs: The outputs of this NodeRunInfo.
467
+ :type outputs: dict(str, object)
468
+ """
469
+ self._outputs = outputs
470
+
471
+ @property
472
+ def messages(self):
473
+ r"""Gets the messages of this NodeRunInfo.
474
+
475
+ 消息节点或提问器节点的输出
476
+
477
+ :return: The messages of this NodeRunInfo.
478
+ :rtype: list[:class:`huaweicloudsdkversatile.v1.Message`]
479
+ """
480
+ return self._messages
481
+
482
+ @messages.setter
483
+ def messages(self, messages):
484
+ r"""Sets the messages of this NodeRunInfo.
485
+
486
+ 消息节点或提问器节点的输出
487
+
488
+ :param messages: The messages of this NodeRunInfo.
489
+ :type messages: list[:class:`huaweicloudsdkversatile.v1.Message`]
490
+ """
491
+ self._messages = messages
492
+
493
+ @property
494
+ def metadata(self):
495
+ r"""Gets the metadata of this NodeRunInfo.
496
+
497
+ 节点特有的输出,如:大模型原始回复debug才设置
498
+
499
+ :return: The metadata of this NodeRunInfo.
500
+ :rtype: dict(str, object)
501
+ """
502
+ return self._metadata
503
+
504
+ @metadata.setter
505
+ def metadata(self, metadata):
506
+ r"""Sets the metadata of this NodeRunInfo.
507
+
508
+ 节点特有的输出,如:大模型原始回复debug才设置
509
+
510
+ :param metadata: The metadata of this NodeRunInfo.
511
+ :type metadata: dict(str, object)
512
+ """
513
+ self._metadata = metadata
514
+
515
+ @property
516
+ def start_time(self):
517
+ r"""Gets the start_time of this NodeRunInfo.
518
+
519
+ 开始时间,13位时间戳 workflow_started,node_started必填
520
+
521
+ :return: The start_time of this NodeRunInfo.
522
+ :rtype: int
523
+ """
524
+ return self._start_time
525
+
526
+ @start_time.setter
527
+ def start_time(self, start_time):
528
+ r"""Sets the start_time of this NodeRunInfo.
529
+
530
+ 开始时间,13位时间戳 workflow_started,node_started必填
531
+
532
+ :param start_time: The start_time of this NodeRunInfo.
533
+ :type start_time: int
534
+ """
535
+ self._start_time = start_time
536
+
537
+ @property
538
+ def end_time(self):
539
+ r"""Gets the end_time of this NodeRunInfo.
540
+
541
+ 结束时间,13位时间戳 workflow_finished,node_finished必填
542
+
543
+ :return: The end_time of this NodeRunInfo.
544
+ :rtype: int
545
+ """
546
+ return self._end_time
547
+
548
+ @end_time.setter
549
+ def end_time(self, end_time):
550
+ r"""Sets the end_time of this NodeRunInfo.
551
+
552
+ 结束时间,13位时间戳 workflow_finished,node_finished必填
553
+
554
+ :param end_time: The end_time of this NodeRunInfo.
555
+ :type end_time: int
556
+ """
557
+ self._end_time = end_time
558
+
559
+ @property
560
+ def startup_time(self):
561
+ r"""Gets the startup_time of this NodeRunInfo.
562
+
563
+ 真正启动的时间,13位时间戳
564
+
565
+ :return: The startup_time of this NodeRunInfo.
566
+ :rtype: int
567
+ """
568
+ return self._startup_time
569
+
570
+ @startup_time.setter
571
+ def startup_time(self, startup_time):
572
+ r"""Sets the startup_time of this NodeRunInfo.
573
+
574
+ 真正启动的时间,13位时间戳
575
+
576
+ :param startup_time: The startup_time of this NodeRunInfo.
577
+ :type startup_time: int
578
+ """
579
+ self._startup_time = startup_time
580
+
581
+ @property
582
+ def prefill_time(self):
583
+ r"""Gets the prefill_time of this NodeRunInfo.
584
+
585
+ 预热时间,如大模型节点表示首token时间
586
+
587
+ :return: The prefill_time of this NodeRunInfo.
588
+ :rtype: int
589
+ """
590
+ return self._prefill_time
591
+
592
+ @prefill_time.setter
593
+ def prefill_time(self, prefill_time):
594
+ r"""Sets the prefill_time of this NodeRunInfo.
595
+
596
+ 预热时间,如大模型节点表示首token时间
597
+
598
+ :param prefill_time: The prefill_time of this NodeRunInfo.
599
+ :type prefill_time: int
600
+ """
601
+ self._prefill_time = prefill_time
602
+
603
+ @property
604
+ def execution_id(self):
605
+ r"""Gets the execution_id of this NodeRunInfo.
606
+
607
+ execution id
608
+
609
+ :return: The execution_id of this NodeRunInfo.
610
+ :rtype: str
611
+ """
612
+ return self._execution_id
613
+
614
+ @execution_id.setter
615
+ def execution_id(self, execution_id):
616
+ r"""Sets the execution_id of this NodeRunInfo.
617
+
618
+ execution id
619
+
620
+ :param execution_id: The execution_id of this NodeRunInfo.
621
+ :type execution_id: str
622
+ """
623
+ self._execution_id = execution_id
624
+
625
+ @property
626
+ def inner_error(self):
627
+ r"""Gets the inner_error of this NodeRunInfo.
628
+
629
+ :return: The inner_error of this NodeRunInfo.
630
+ :rtype: :class:`huaweicloudsdkversatile.v1.NodeRunInfoInnerError`
631
+ """
632
+ return self._inner_error
633
+
634
+ @inner_error.setter
635
+ def inner_error(self, inner_error):
636
+ r"""Sets the inner_error of this NodeRunInfo.
637
+
638
+ :param inner_error: The inner_error of this NodeRunInfo.
639
+ :type inner_error: :class:`huaweicloudsdkversatile.v1.NodeRunInfoInnerError`
640
+ """
641
+ self._inner_error = inner_error
642
+
643
+ @property
644
+ def memory(self):
645
+ r"""Gets the memory of this NodeRunInfo.
646
+
647
+ 记忆变量
648
+
649
+ :return: The memory of this NodeRunInfo.
650
+ :rtype: dict(str, object)
651
+ """
652
+ return self._memory
653
+
654
+ @memory.setter
655
+ def memory(self, memory):
656
+ r"""Sets the memory of this NodeRunInfo.
657
+
658
+ 记忆变量
659
+
660
+ :param memory: The memory of this NodeRunInfo.
661
+ :type memory: dict(str, object)
662
+ """
663
+ self._memory = memory
664
+
665
+ def to_dict(self):
666
+ result = {}
667
+
668
+ for attr, _ in self.openapi_types.items():
669
+ value = getattr(self, attr)
670
+ if isinstance(value, list):
671
+ result[attr] = list(map(
672
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
673
+ value
674
+ ))
675
+ elif hasattr(value, "to_dict"):
676
+ result[attr] = value.to_dict()
677
+ elif isinstance(value, dict):
678
+ result[attr] = dict(map(
679
+ lambda item: (item[0], item[1].to_dict())
680
+ if hasattr(item[1], "to_dict") else item,
681
+ value.items()
682
+ ))
683
+ else:
684
+ if attr in self.sensitive_list:
685
+ result[attr] = "****"
686
+ else:
687
+ result[attr] = value
688
+
689
+ return result
690
+
691
+ def to_str(self):
692
+ """Returns the string representation of the model"""
693
+ import simplejson as json
694
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
695
+
696
+ def __repr__(self):
697
+ """For `print`"""
698
+ return self.to_str()
699
+
700
+ def __eq__(self, other):
701
+ """Returns true if both objects are equal"""
702
+ if not isinstance(other, NodeRunInfo):
703
+ return False
704
+
705
+ return self.__dict__ == other.__dict__
706
+
707
+ def __ne__(self, other):
708
+ """Returns true if both objects are not equal"""
709
+ return not self == other