tencentcloud-sdk-python 3.1.13__py2.py3-none-any.whl → 3.1.33__py2.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 tencentcloud-sdk-python might be problematic. Click here for more details.

Files changed (260) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/ags/v20250920/ags_client.py +46 -0
  3. tencentcloud/ags/v20250920/ags_client_async.py +36 -0
  4. tencentcloud/ags/v20250920/errorcodes.py +45 -0
  5. tencentcloud/ags/v20250920/models.py +1704 -110
  6. tencentcloud/ai3d/v20250513/ai3d_client.py +4 -4
  7. tencentcloud/ai3d/v20250513/ai3d_client_async.py +4 -4
  8. tencentcloud/ai3d/v20250513/models.py +78 -36
  9. tencentcloud/aiart/v20221229/aiart_client.py +46 -0
  10. tencentcloud/aiart/v20221229/aiart_client_async.py +36 -0
  11. tencentcloud/aiart/v20221229/models.py +289 -0
  12. tencentcloud/ams/v20201229/models.py +101 -0
  13. tencentcloud/antiddos/v20200309/antiddos_client.py +69 -0
  14. tencentcloud/antiddos/v20200309/antiddos_client_async.py +54 -0
  15. tencentcloud/antiddos/v20200309/errorcodes.py +27 -0
  16. tencentcloud/antiddos/v20200309/models.py +1671 -97
  17. tencentcloud/apm/v20210622/apm_client.py +23 -0
  18. tencentcloud/apm/v20210622/apm_client_async.py +18 -0
  19. tencentcloud/apm/v20210622/errorcodes.py +3 -0
  20. tencentcloud/apm/v20210622/models.py +1678 -78
  21. tencentcloud/asr/v20190614/models.py +100 -2
  22. tencentcloud/autoscaling/v20180419/autoscaling_client.py +1 -1
  23. tencentcloud/autoscaling/v20180419/autoscaling_client_async.py +1 -1
  24. tencentcloud/autoscaling/v20180419/models.py +475 -338
  25. tencentcloud/bh/v20230418/models.py +179 -6
  26. tencentcloud/billing/v20180709/billing_client.py +23 -0
  27. tencentcloud/billing/v20180709/billing_client_async.py +18 -0
  28. tencentcloud/billing/v20180709/models.py +328 -6
  29. tencentcloud/cam/v20190116/models.py +111 -2
  30. tencentcloud/car/v20220110/car_client.py +23 -0
  31. tencentcloud/car/v20220110/car_client_async.py +18 -0
  32. tencentcloud/car/v20220110/models.py +109 -0
  33. tencentcloud/cbs/v20170312/models.py +14 -14
  34. tencentcloud/ccc/v20200210/ccc_client.py +42 -13
  35. tencentcloud/ccc/v20200210/ccc_client_async.py +37 -13
  36. tencentcloud/ccc/v20200210/errorcodes.py +6 -0
  37. tencentcloud/ccc/v20200210/models.py +256 -4
  38. tencentcloud/cdb/v20170320/models.py +37 -16
  39. tencentcloud/cdc/v20201214/models.py +92 -124
  40. tencentcloud/cdn/v20180606/cdn_client.py +0 -78
  41. tencentcloud/cdn/v20180606/cdn_client_async.py +0 -63
  42. tencentcloud/cdn/v20180606/errorcodes.py +3 -0
  43. tencentcloud/cdn/v20180606/models.py +464 -1028
  44. tencentcloud/cdwch/v20200915/cdwch_client.py +23 -0
  45. tencentcloud/cdwch/v20200915/cdwch_client_async.py +18 -0
  46. tencentcloud/cdwch/v20200915/models.py +555 -0
  47. tencentcloud/cdwdoris/v20211228/models.py +505 -0
  48. tencentcloud/cfs/v20190719/errorcodes.py +1 -1
  49. tencentcloud/cfs/v20190719/models.py +2 -2
  50. tencentcloud/cfw/v20190904/cfw_client.py +278 -23
  51. tencentcloud/cfw/v20190904/cfw_client_async.py +218 -18
  52. tencentcloud/cfw/v20190904/models.py +3319 -1154
  53. tencentcloud/chdfs/v20201112/models.py +150 -0
  54. tencentcloud/ckafka/v20190819/models.py +458 -282
  55. tencentcloud/clb/v20180317/clb_client.py +23 -0
  56. tencentcloud/clb/v20180317/clb_client_async.py +18 -0
  57. tencentcloud/clb/v20180317/models.py +230 -130
  58. tencentcloud/cloudapp/v20220530/models.py +190 -36
  59. tencentcloud/cloudaudit/v20190319/models.py +32 -4
  60. tencentcloud/cloudmate/__init__.py +0 -0
  61. tencentcloud/cloudmate/v20251030/__init__.py +0 -0
  62. tencentcloud/cloudmate/v20251030/cloudmate_client.py +45 -0
  63. tencentcloud/cloudmate/v20251030/cloudmate_client_async.py +45 -0
  64. tencentcloud/cloudmate/v20251030/errorcodes.py +30 -0
  65. tencentcloud/cloudmate/v20251030/models.py +387 -0
  66. tencentcloud/cls/v20201016/cls_client.py +1064 -0
  67. tencentcloud/cls/v20201016/cls_client_async.py +860 -26
  68. tencentcloud/cls/v20201016/models.py +10246 -384
  69. tencentcloud/cme/v20191029/models.py +23 -0
  70. tencentcloud/csip/v20221121/models.py +317 -0
  71. tencentcloud/cvm/v20170312/cvm_client.py +1 -1
  72. tencentcloud/cvm/v20170312/cvm_client_async.py +1 -1
  73. tencentcloud/cvm/v20170312/errorcodes.py +9 -0
  74. tencentcloud/cvm/v20170312/models.py +28 -8
  75. tencentcloud/cwp/v20180228/cwp_client.py +0 -188
  76. tencentcloud/cwp/v20180228/cwp_client_async.py +0 -148
  77. tencentcloud/cwp/v20180228/models.py +1097 -1814
  78. tencentcloud/cynosdb/v20190107/models.py +181 -48
  79. tencentcloud/dataagent/v20250513/dataagent_client.py +161 -0
  80. tencentcloud/dataagent/v20250513/dataagent_client_async.py +126 -0
  81. tencentcloud/dataagent/v20250513/models.py +1477 -52
  82. tencentcloud/dbbrain/v20210527/dbbrain_client.py +23 -0
  83. tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +18 -0
  84. tencentcloud/dbbrain/v20210527/models.py +261 -15
  85. tencentcloud/dbs/v20211108/dbs_client.py +69 -0
  86. tencentcloud/dbs/v20211108/dbs_client_async.py +54 -0
  87. tencentcloud/dbs/v20211108/errorcodes.py +15 -0
  88. tencentcloud/dbs/v20211108/models.py +1173 -27
  89. tencentcloud/dlc/v20210125/dlc_client.py +69 -0
  90. tencentcloud/dlc/v20210125/dlc_client_async.py +54 -0
  91. tencentcloud/dlc/v20210125/errorcodes.py +15 -0
  92. tencentcloud/dlc/v20210125/models.py +1016 -0
  93. tencentcloud/dnspod/v20210323/errorcodes.py +6 -0
  94. tencentcloud/dnspod/v20210323/models.py +4 -4
  95. tencentcloud/emr/v20190103/emr_client.py +46 -0
  96. tencentcloud/emr/v20190103/emr_client_async.py +36 -0
  97. tencentcloud/emr/v20190103/models.py +625 -2
  98. tencentcloud/es/v20180416/errorcodes.py +15 -0
  99. tencentcloud/es/v20180416/es_client.py +115 -0
  100. tencentcloud/es/v20180416/es_client_async.py +90 -0
  101. tencentcloud/es/v20180416/models.py +498 -4
  102. tencentcloud/ess/v20201111/ess_client.py +153 -6
  103. tencentcloud/ess/v20201111/ess_client_async.py +128 -6
  104. tencentcloud/ess/v20201111/models.py +1496 -58
  105. tencentcloud/essbasic/v20210526/models.py +129 -23
  106. tencentcloud/evt/v20250217/evt_client.py +46 -0
  107. tencentcloud/evt/v20250217/evt_client_async.py +36 -0
  108. tencentcloud/evt/v20250217/models.py +188 -0
  109. tencentcloud/faceid/v20180301/models.py +10 -4
  110. tencentcloud/gaap/v20180529/models.py +260 -352
  111. tencentcloud/gs/v20191118/models.py +150 -4
  112. tencentcloud/gwlb/v20240906/models.py +48 -70
  113. tencentcloud/iai/v20180301/models.py +4 -4
  114. tencentcloud/iai/v20200303/models.py +4 -4
  115. tencentcloud/igtm/v20231024/errorcodes.py +1 -1
  116. tencentcloud/ims/v20201229/ims_client.py +1 -1
  117. tencentcloud/ims/v20201229/ims_client_async.py +1 -1
  118. tencentcloud/ioa/v20220601/models.py +60 -0
  119. tencentcloud/keewidb/v20220308/models.py +52 -68
  120. tencentcloud/lcic/v20220817/models.py +15 -0
  121. tencentcloud/lighthouse/v20200324/errorcodes.py +2 -2
  122. tencentcloud/lighthouse/v20200324/models.py +8 -0
  123. tencentcloud/live/v20180801/errorcodes.py +6 -0
  124. tencentcloud/live/v20180801/live_client.py +143 -0
  125. tencentcloud/live/v20180801/live_client_async.py +113 -0
  126. tencentcloud/live/v20180801/models.py +914 -311
  127. tencentcloud/lke/v20231130/lke_client.py +48 -1
  128. tencentcloud/lke/v20231130/lke_client_async.py +43 -1
  129. tencentcloud/lke/v20231130/models.py +2940 -459
  130. tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
  131. tencentcloud/lkeap/v20240522/lkeap_client_async.py +1 -1
  132. tencentcloud/lkeap/v20240522/models.py +2 -6
  133. tencentcloud/lowcode/v20210108/models.py +30 -0
  134. tencentcloud/mna/v20210119/models.py +18 -2
  135. tencentcloud/mongodb/v20190725/models.py +2 -2
  136. tencentcloud/monitor/v20180724/models.py +258 -0
  137. tencentcloud/mps/v20190612/errorcodes.py +9 -0
  138. tencentcloud/mps/v20190612/models.py +3007 -140
  139. tencentcloud/mps/v20190612/mps_client.py +115 -0
  140. tencentcloud/mps/v20190612/mps_client_async.py +90 -0
  141. tencentcloud/oceanus/v20190422/errorcodes.py +9 -0
  142. tencentcloud/oceanus/v20190422/models.py +210 -4
  143. tencentcloud/ocr/v20181119/models.py +72 -4
  144. tencentcloud/ocr/v20181119/ocr_client.py +12 -8
  145. tencentcloud/ocr/v20181119/ocr_client_async.py +11 -7
  146. tencentcloud/partners/v20180321/models.py +88 -92
  147. tencentcloud/pts/v20210728/models.py +206 -0
  148. tencentcloud/rce/v20250425/__init__.py +0 -0
  149. tencentcloud/rce/v20250425/errorcodes.py +15 -0
  150. tencentcloud/rce/v20250425/models.py +301 -0
  151. tencentcloud/rce/v20250425/rce_client.py +49 -0
  152. tencentcloud/rce/v20250425/rce_client_async.py +44 -0
  153. tencentcloud/redis/v20180412/models.py +65 -70
  154. tencentcloud/rum/v20210622/models.py +548 -0
  155. tencentcloud/rum/v20210622/rum_client.py +23 -0
  156. tencentcloud/rum/v20210622/rum_client_async.py +18 -0
  157. tencentcloud/scf/v20180416/models.py +28 -2
  158. tencentcloud/ses/v20201002/errorcodes.py +3 -0
  159. tencentcloud/ssl/v20191205/models.py +991 -70
  160. tencentcloud/ssl/v20191205/ssl_client.py +2 -2
  161. tencentcloud/ssl/v20191205/ssl_client_async.py +2 -2
  162. tencentcloud/ssm/v20190923/models.py +134 -0
  163. tencentcloud/svp/v20240125/models.py +35 -20
  164. tencentcloud/tag/v20180813/models.py +34 -54
  165. tencentcloud/tat/v20201028/models.py +2 -0
  166. tencentcloud/tcaplusdb/v20190823/models.py +0 -337
  167. tencentcloud/tcaplusdb/v20190823/tcaplusdb_client.py +0 -25
  168. tencentcloud/tcaplusdb/v20190823/tcaplusdb_client_async.py +0 -20
  169. tencentcloud/tcb/v20180608/errorcodes.py +15 -12
  170. tencentcloud/tcb/v20180608/models.py +5761 -8383
  171. tencentcloud/tcb/v20180608/tcb_client.py +0 -276
  172. tencentcloud/tcb/v20180608/tcb_client_async.py +0 -216
  173. tencentcloud/tcbr/v20220217/errorcodes.py +27 -0
  174. tencentcloud/tcbr/v20220217/models.py +4193 -1389
  175. tencentcloud/tcbr/v20220217/tcbr_client.py +207 -0
  176. tencentcloud/tcbr/v20220217/tcbr_client_async.py +162 -0
  177. tencentcloud/tcr/v20190924/models.py +727 -61
  178. tencentcloud/tcr/v20190924/tcr_client.py +92 -0
  179. tencentcloud/tcr/v20190924/tcr_client_async.py +72 -0
  180. tencentcloud/tcss/v20201101/models.py +30 -0
  181. tencentcloud/tdai/v20250717/models.py +440 -2
  182. tencentcloud/tdai/v20250717/tdai_client.py +23 -0
  183. tencentcloud/tdai/v20250717/tdai_client_async.py +18 -0
  184. tencentcloud/tdmq/v20200217/errorcodes.py +1 -1
  185. tencentcloud/tdmq/v20200217/models.py +432 -4
  186. tencentcloud/tdmq/v20200217/tdmq_client.py +24 -0
  187. tencentcloud/tdmq/v20200217/tdmq_client_async.py +19 -0
  188. tencentcloud/teo/v20220901/errorcodes.py +39 -0
  189. tencentcloud/teo/v20220901/models.py +596 -79
  190. tencentcloud/teo/v20220901/teo_client.py +107 -1
  191. tencentcloud/teo/v20220901/teo_client_async.py +97 -1
  192. tencentcloud/thpc/v20211109/models.py +14 -14
  193. tencentcloud/thpc/v20220401/models.py +14 -14
  194. tencentcloud/thpc/v20230321/models.py +20 -54
  195. tencentcloud/tione/v20211111/errorcodes.py +9 -0
  196. tencentcloud/tione/v20211111/models.py +910 -73
  197. tencentcloud/tione/v20211111/tione_client.py +69 -0
  198. tencentcloud/tione/v20211111/tione_client_async.py +54 -0
  199. tencentcloud/tke/v20180525/models.py +468 -18
  200. tencentcloud/tke/v20180525/tke_client.py +69 -0
  201. tencentcloud/tke/v20180525/tke_client_async.py +54 -0
  202. tencentcloud/tke/v20220501/models.py +539 -0
  203. tencentcloud/tke/v20220501/tke_client.py +23 -0
  204. tencentcloud/tke/v20220501/tke_client_async.py +18 -0
  205. tencentcloud/trocket/v20230308/models.py +42 -21
  206. tencentcloud/trocket/v20230308/trocket_client.py +2 -1
  207. tencentcloud/trocket/v20230308/trocket_client_async.py +2 -1
  208. tencentcloud/trtc/v20190722/errorcodes.py +3 -0
  209. tencentcloud/trtc/v20190722/models.py +173 -30
  210. tencentcloud/tse/v20201207/models.py +42 -0
  211. tencentcloud/tsf/v20180326/errorcodes.py +4 -4
  212. tencentcloud/tsf/v20180326/models.py +15 -510
  213. tencentcloud/tsf/v20180326/tsf_client.py +66 -47
  214. tencentcloud/tsf/v20180326/tsf_client_async.py +44 -20
  215. tencentcloud/tts/v20190823/tts_client.py +1 -1
  216. tencentcloud/tts/v20190823/tts_client_async.py +1 -1
  217. tencentcloud/vclm/v20240523/models.py +383 -0
  218. tencentcloud/vclm/v20240523/vclm_client.py +46 -0
  219. tencentcloud/vclm/v20240523/vclm_client_async.py +36 -0
  220. tencentcloud/vcube/v20220410/models.py +30 -0
  221. tencentcloud/vdb/v20230616/models.py +567 -0
  222. tencentcloud/vdb/v20230616/vdb_client.py +69 -0
  223. tencentcloud/vdb/v20230616/vdb_client_async.py +54 -0
  224. tencentcloud/vm/v20210922/models.py +116 -0
  225. tencentcloud/vod/v20180717/errorcodes.py +3 -0
  226. tencentcloud/vod/v20180717/models.py +4107 -622
  227. tencentcloud/vod/v20180717/vod_client.py +72 -3
  228. tencentcloud/vod/v20180717/vod_client_async.py +57 -3
  229. tencentcloud/vpc/v20170312/errorcodes.py +15 -0
  230. tencentcloud/vpc/v20170312/models.py +387 -2
  231. tencentcloud/vpc/v20170312/vpc_client.py +23 -0
  232. tencentcloud/vpc/v20170312/vpc_client_async.py +18 -0
  233. tencentcloud/waf/v20180125/errorcodes.py +3 -0
  234. tencentcloud/waf/v20180125/models.py +970 -0
  235. tencentcloud/waf/v20180125/waf_client.py +46 -0
  236. tencentcloud/waf/v20180125/waf_client_async.py +36 -0
  237. tencentcloud/wedata/v20210820/models.py +2851 -29
  238. tencentcloud/wedata/v20210820/wedata_client.py +23 -0
  239. tencentcloud/wedata/v20210820/wedata_client_async.py +18 -0
  240. tencentcloud/wedata/v20250806/errorcodes.py +21 -0
  241. tencentcloud/wedata/v20250806/models.py +40999 -15704
  242. tencentcloud/wedata/v20250806/wedata_client.py +1402 -65
  243. tencentcloud/wedata/v20250806/wedata_client_async.py +1047 -0
  244. tencentcloud/weilingwith/v20230427/errorcodes.py +0 -3
  245. tencentcloud/weilingwith/v20230427/models.py +17 -336
  246. tencentcloud/weilingwith/v20230427/weilingwith_client.py +0 -25
  247. tencentcloud/weilingwith/v20230427/weilingwith_client_async.py +0 -20
  248. tencentcloud/wimgs/__init__.py +0 -0
  249. tencentcloud/wimgs/v20251106/__init__.py +0 -0
  250. tencentcloud/wimgs/v20251106/errorcodes.py +33 -0
  251. tencentcloud/wimgs/v20251106/models.py +132 -0
  252. tencentcloud/wimgs/v20251106/wimgs_client.py +49 -0
  253. tencentcloud/wimgs/v20251106/wimgs_client_async.py +44 -0
  254. tencentcloud/wsa/v20250508/errorcodes.py +6 -0
  255. tencentcloud/wsa/v20250508/models.py +17 -2
  256. {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/METADATA +1 -1
  257. {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/RECORD +260 -243
  258. {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/WHEEL +1 -1
  259. {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/LICENSE +0 -0
  260. {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,387 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import warnings
17
+
18
+ from tencentcloud.common.abstract_model import AbstractModel
19
+
20
+
21
+ class ChatContent(AbstractModel):
22
+ r"""智能诊断结果内容结构
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _Role: 角色,可选值:
29
+ - user
30
+ - model_thinking
31
+ - model_output
32
+ - knowledge
33
+ :type Role: str
34
+ :param _Parts: 内容分片
35
+ 注意:此字段可能返回 null,表示取不到有效值。
36
+ :type Parts: list of ChatEventContentPart
37
+ """
38
+ self._Role = None
39
+ self._Parts = None
40
+
41
+ @property
42
+ def Role(self):
43
+ r"""角色,可选值:
44
+ - user
45
+ - model_thinking
46
+ - model_output
47
+ - knowledge
48
+ :rtype: str
49
+ """
50
+ return self._Role
51
+
52
+ @Role.setter
53
+ def Role(self, Role):
54
+ self._Role = Role
55
+
56
+ @property
57
+ def Parts(self):
58
+ r"""内容分片
59
+ 注意:此字段可能返回 null,表示取不到有效值。
60
+ :rtype: list of ChatEventContentPart
61
+ """
62
+ return self._Parts
63
+
64
+ @Parts.setter
65
+ def Parts(self, Parts):
66
+ self._Parts = Parts
67
+
68
+
69
+ def _deserialize(self, params):
70
+ self._Role = params.get("Role")
71
+ if params.get("Parts") is not None:
72
+ self._Parts = []
73
+ for item in params.get("Parts"):
74
+ obj = ChatEventContentPart()
75
+ obj._deserialize(item)
76
+ self._Parts.append(obj)
77
+ memeber_set = set(params.keys())
78
+ for name, value in vars(self).items():
79
+ property_name = name[1:]
80
+ if property_name in memeber_set:
81
+ memeber_set.remove(property_name)
82
+ if len(memeber_set) > 0:
83
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
84
+
85
+
86
+
87
+ class ChatEventContentPart(AbstractModel):
88
+ r"""智能诊断时间内容分片结构
89
+
90
+ """
91
+
92
+ def __init__(self):
93
+ r"""
94
+ :param _Text: 文本内容(流式或完整)
95
+ :type Text: str
96
+ :param _FunctionCall: 函数调用信息
97
+ :type FunctionCall: str
98
+ :param _FunctionResponse: 函数返回结果
99
+ :type FunctionResponse: str
100
+ """
101
+ self._Text = None
102
+ self._FunctionCall = None
103
+ self._FunctionResponse = None
104
+
105
+ @property
106
+ def Text(self):
107
+ r"""文本内容(流式或完整)
108
+ :rtype: str
109
+ """
110
+ return self._Text
111
+
112
+ @Text.setter
113
+ def Text(self, Text):
114
+ self._Text = Text
115
+
116
+ @property
117
+ def FunctionCall(self):
118
+ r"""函数调用信息
119
+ :rtype: str
120
+ """
121
+ return self._FunctionCall
122
+
123
+ @FunctionCall.setter
124
+ def FunctionCall(self, FunctionCall):
125
+ self._FunctionCall = FunctionCall
126
+
127
+ @property
128
+ def FunctionResponse(self):
129
+ r"""函数返回结果
130
+ :rtype: str
131
+ """
132
+ return self._FunctionResponse
133
+
134
+ @FunctionResponse.setter
135
+ def FunctionResponse(self, FunctionResponse):
136
+ self._FunctionResponse = FunctionResponse
137
+
138
+
139
+ def _deserialize(self, params):
140
+ self._Text = params.get("Text")
141
+ self._FunctionCall = params.get("FunctionCall")
142
+ self._FunctionResponse = params.get("FunctionResponse")
143
+ memeber_set = set(params.keys())
144
+ for name, value in vars(self).items():
145
+ property_name = name[1:]
146
+ if property_name in memeber_set:
147
+ memeber_set.remove(property_name)
148
+ if len(memeber_set) > 0:
149
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
150
+
151
+
152
+
153
+ class CloudMateAgentRequest(AbstractModel):
154
+ r"""CloudMateAgent请求参数结构体
155
+
156
+ """
157
+
158
+ def __init__(self):
159
+ r"""
160
+ :param _WorkspaceId: 空间 ID
161
+ :type WorkspaceId: str
162
+ :param _Message: 用户提问内容
163
+ :type Message: str
164
+ :param _ScenarioId: 场景 ID
165
+ :type ScenarioId: str
166
+ :param _SessionId: 会话 ID
167
+
168
+ - 填写上一次接口调用返回的会话 ID(SessionId),可在原有会话基础上继续对话
169
+ - 未填写会话 ID 时,创建新会话
170
+ :type SessionId: str
171
+ :param _Streaming: 是否使用流式响应,默认为 false,不启用流式响应
172
+ :type Streaming: bool
173
+ """
174
+ self._WorkspaceId = None
175
+ self._Message = None
176
+ self._ScenarioId = None
177
+ self._SessionId = None
178
+ self._Streaming = None
179
+
180
+ @property
181
+ def WorkspaceId(self):
182
+ r"""空间 ID
183
+ :rtype: str
184
+ """
185
+ return self._WorkspaceId
186
+
187
+ @WorkspaceId.setter
188
+ def WorkspaceId(self, WorkspaceId):
189
+ self._WorkspaceId = WorkspaceId
190
+
191
+ @property
192
+ def Message(self):
193
+ r"""用户提问内容
194
+ :rtype: str
195
+ """
196
+ return self._Message
197
+
198
+ @Message.setter
199
+ def Message(self, Message):
200
+ self._Message = Message
201
+
202
+ @property
203
+ def ScenarioId(self):
204
+ r"""场景 ID
205
+ :rtype: str
206
+ """
207
+ return self._ScenarioId
208
+
209
+ @ScenarioId.setter
210
+ def ScenarioId(self, ScenarioId):
211
+ self._ScenarioId = ScenarioId
212
+
213
+ @property
214
+ def SessionId(self):
215
+ r"""会话 ID
216
+
217
+ - 填写上一次接口调用返回的会话 ID(SessionId),可在原有会话基础上继续对话
218
+ - 未填写会话 ID 时,创建新会话
219
+ :rtype: str
220
+ """
221
+ return self._SessionId
222
+
223
+ @SessionId.setter
224
+ def SessionId(self, SessionId):
225
+ self._SessionId = SessionId
226
+
227
+ @property
228
+ def Streaming(self):
229
+ r"""是否使用流式响应,默认为 false,不启用流式响应
230
+ :rtype: bool
231
+ """
232
+ return self._Streaming
233
+
234
+ @Streaming.setter
235
+ def Streaming(self, Streaming):
236
+ self._Streaming = Streaming
237
+
238
+
239
+ def _deserialize(self, params):
240
+ self._WorkspaceId = params.get("WorkspaceId")
241
+ self._Message = params.get("Message")
242
+ self._ScenarioId = params.get("ScenarioId")
243
+ self._SessionId = params.get("SessionId")
244
+ self._Streaming = params.get("Streaming")
245
+ memeber_set = set(params.keys())
246
+ for name, value in vars(self).items():
247
+ property_name = name[1:]
248
+ if property_name in memeber_set:
249
+ memeber_set.remove(property_name)
250
+ if len(memeber_set) > 0:
251
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
252
+
253
+
254
+
255
+ class CloudMateAgentResponse(AbstractModel):
256
+ r"""CloudMateAgent返回参数结构体
257
+
258
+ """
259
+
260
+ def __init__(self):
261
+ r"""
262
+ :param _SessionId: 会话ID,用于后续继续对话
263
+ :type SessionId: str
264
+ :param _Timestamp: Unix 时间戳
265
+ :type Timestamp: int
266
+ :param _Content: 诊断内容
267
+ :type Content: :class:`tencentcloud.cloudmate.v20251030.models.ChatContent`
268
+ :param _Partial: 是否为部分内容(流式场景)
269
+ :type Partial: bool
270
+ :param _TurnComplete: 本轮对话是否完成
271
+ :type TurnComplete: bool
272
+ :param _ErrorCode: 错误代码,无错误时无该字段
273
+ :type ErrorCode: str
274
+ :param _ErrorMessage: 错误详细信息,无错误时无该字段
275
+ :type ErrorMessage: str
276
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
277
+ :type RequestId: str
278
+ """
279
+ self._SessionId = None
280
+ self._Timestamp = None
281
+ self._Content = None
282
+ self._Partial = None
283
+ self._TurnComplete = None
284
+ self._ErrorCode = None
285
+ self._ErrorMessage = None
286
+ self._RequestId = None
287
+
288
+ @property
289
+ def SessionId(self):
290
+ r"""会话ID,用于后续继续对话
291
+ :rtype: str
292
+ """
293
+ return self._SessionId
294
+
295
+ @SessionId.setter
296
+ def SessionId(self, SessionId):
297
+ self._SessionId = SessionId
298
+
299
+ @property
300
+ def Timestamp(self):
301
+ r"""Unix 时间戳
302
+ :rtype: int
303
+ """
304
+ return self._Timestamp
305
+
306
+ @Timestamp.setter
307
+ def Timestamp(self, Timestamp):
308
+ self._Timestamp = Timestamp
309
+
310
+ @property
311
+ def Content(self):
312
+ r"""诊断内容
313
+ :rtype: :class:`tencentcloud.cloudmate.v20251030.models.ChatContent`
314
+ """
315
+ return self._Content
316
+
317
+ @Content.setter
318
+ def Content(self, Content):
319
+ self._Content = Content
320
+
321
+ @property
322
+ def Partial(self):
323
+ r"""是否为部分内容(流式场景)
324
+ :rtype: bool
325
+ """
326
+ return self._Partial
327
+
328
+ @Partial.setter
329
+ def Partial(self, Partial):
330
+ self._Partial = Partial
331
+
332
+ @property
333
+ def TurnComplete(self):
334
+ r"""本轮对话是否完成
335
+ :rtype: bool
336
+ """
337
+ return self._TurnComplete
338
+
339
+ @TurnComplete.setter
340
+ def TurnComplete(self, TurnComplete):
341
+ self._TurnComplete = TurnComplete
342
+
343
+ @property
344
+ def ErrorCode(self):
345
+ r"""错误代码,无错误时无该字段
346
+ :rtype: str
347
+ """
348
+ return self._ErrorCode
349
+
350
+ @ErrorCode.setter
351
+ def ErrorCode(self, ErrorCode):
352
+ self._ErrorCode = ErrorCode
353
+
354
+ @property
355
+ def ErrorMessage(self):
356
+ r"""错误详细信息,无错误时无该字段
357
+ :rtype: str
358
+ """
359
+ return self._ErrorMessage
360
+
361
+ @ErrorMessage.setter
362
+ def ErrorMessage(self, ErrorMessage):
363
+ self._ErrorMessage = ErrorMessage
364
+
365
+ @property
366
+ def RequestId(self):
367
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
368
+ :rtype: str
369
+ """
370
+ return self._RequestId
371
+
372
+ @RequestId.setter
373
+ def RequestId(self, RequestId):
374
+ self._RequestId = RequestId
375
+
376
+
377
+ def _deserialize(self, params):
378
+ self._SessionId = params.get("SessionId")
379
+ self._Timestamp = params.get("Timestamp")
380
+ if params.get("Content") is not None:
381
+ self._Content = ChatContent()
382
+ self._Content._deserialize(params.get("Content"))
383
+ self._Partial = params.get("Partial")
384
+ self._TurnComplete = params.get("TurnComplete")
385
+ self._ErrorCode = params.get("ErrorCode")
386
+ self._ErrorMessage = params.get("ErrorMessage")
387
+ self._RequestId = params.get("RequestId")