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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ags/v20250920/ags_client.py +46 -0
- tencentcloud/ags/v20250920/ags_client_async.py +36 -0
- tencentcloud/ags/v20250920/errorcodes.py +45 -0
- tencentcloud/ags/v20250920/models.py +1704 -110
- tencentcloud/ai3d/v20250513/ai3d_client.py +4 -4
- tencentcloud/ai3d/v20250513/ai3d_client_async.py +4 -4
- tencentcloud/ai3d/v20250513/models.py +78 -36
- tencentcloud/aiart/v20221229/aiart_client.py +46 -0
- tencentcloud/aiart/v20221229/aiart_client_async.py +36 -0
- tencentcloud/aiart/v20221229/models.py +289 -0
- tencentcloud/ams/v20201229/models.py +101 -0
- tencentcloud/antiddos/v20200309/antiddos_client.py +69 -0
- tencentcloud/antiddos/v20200309/antiddos_client_async.py +54 -0
- tencentcloud/antiddos/v20200309/errorcodes.py +27 -0
- tencentcloud/antiddos/v20200309/models.py +1671 -97
- tencentcloud/apm/v20210622/apm_client.py +23 -0
- tencentcloud/apm/v20210622/apm_client_async.py +18 -0
- tencentcloud/apm/v20210622/errorcodes.py +3 -0
- tencentcloud/apm/v20210622/models.py +1678 -78
- tencentcloud/asr/v20190614/models.py +100 -2
- tencentcloud/autoscaling/v20180419/autoscaling_client.py +1 -1
- tencentcloud/autoscaling/v20180419/autoscaling_client_async.py +1 -1
- tencentcloud/autoscaling/v20180419/models.py +475 -338
- tencentcloud/bh/v20230418/models.py +179 -6
- tencentcloud/billing/v20180709/billing_client.py +23 -0
- tencentcloud/billing/v20180709/billing_client_async.py +18 -0
- tencentcloud/billing/v20180709/models.py +328 -6
- tencentcloud/cam/v20190116/models.py +111 -2
- tencentcloud/car/v20220110/car_client.py +23 -0
- tencentcloud/car/v20220110/car_client_async.py +18 -0
- tencentcloud/car/v20220110/models.py +109 -0
- tencentcloud/cbs/v20170312/models.py +14 -14
- tencentcloud/ccc/v20200210/ccc_client.py +42 -13
- tencentcloud/ccc/v20200210/ccc_client_async.py +37 -13
- tencentcloud/ccc/v20200210/errorcodes.py +6 -0
- tencentcloud/ccc/v20200210/models.py +256 -4
- tencentcloud/cdb/v20170320/models.py +37 -16
- tencentcloud/cdc/v20201214/models.py +92 -124
- tencentcloud/cdn/v20180606/cdn_client.py +0 -78
- tencentcloud/cdn/v20180606/cdn_client_async.py +0 -63
- tencentcloud/cdn/v20180606/errorcodes.py +3 -0
- tencentcloud/cdn/v20180606/models.py +464 -1028
- tencentcloud/cdwch/v20200915/cdwch_client.py +23 -0
- tencentcloud/cdwch/v20200915/cdwch_client_async.py +18 -0
- tencentcloud/cdwch/v20200915/models.py +555 -0
- tencentcloud/cdwdoris/v20211228/models.py +505 -0
- tencentcloud/cfs/v20190719/errorcodes.py +1 -1
- tencentcloud/cfs/v20190719/models.py +2 -2
- tencentcloud/cfw/v20190904/cfw_client.py +278 -23
- tencentcloud/cfw/v20190904/cfw_client_async.py +218 -18
- tencentcloud/cfw/v20190904/models.py +3319 -1154
- tencentcloud/chdfs/v20201112/models.py +150 -0
- tencentcloud/ckafka/v20190819/models.py +458 -282
- tencentcloud/clb/v20180317/clb_client.py +23 -0
- tencentcloud/clb/v20180317/clb_client_async.py +18 -0
- tencentcloud/clb/v20180317/models.py +230 -130
- tencentcloud/cloudapp/v20220530/models.py +190 -36
- tencentcloud/cloudaudit/v20190319/models.py +32 -4
- tencentcloud/cloudmate/__init__.py +0 -0
- tencentcloud/cloudmate/v20251030/__init__.py +0 -0
- tencentcloud/cloudmate/v20251030/cloudmate_client.py +45 -0
- tencentcloud/cloudmate/v20251030/cloudmate_client_async.py +45 -0
- tencentcloud/cloudmate/v20251030/errorcodes.py +30 -0
- tencentcloud/cloudmate/v20251030/models.py +387 -0
- tencentcloud/cls/v20201016/cls_client.py +1064 -0
- tencentcloud/cls/v20201016/cls_client_async.py +860 -26
- tencentcloud/cls/v20201016/models.py +10246 -384
- tencentcloud/cme/v20191029/models.py +23 -0
- tencentcloud/csip/v20221121/models.py +317 -0
- tencentcloud/cvm/v20170312/cvm_client.py +1 -1
- tencentcloud/cvm/v20170312/cvm_client_async.py +1 -1
- tencentcloud/cvm/v20170312/errorcodes.py +9 -0
- tencentcloud/cvm/v20170312/models.py +28 -8
- tencentcloud/cwp/v20180228/cwp_client.py +0 -188
- tencentcloud/cwp/v20180228/cwp_client_async.py +0 -148
- tencentcloud/cwp/v20180228/models.py +1097 -1814
- tencentcloud/cynosdb/v20190107/models.py +181 -48
- tencentcloud/dataagent/v20250513/dataagent_client.py +161 -0
- tencentcloud/dataagent/v20250513/dataagent_client_async.py +126 -0
- tencentcloud/dataagent/v20250513/models.py +1477 -52
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +23 -0
- tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +18 -0
- tencentcloud/dbbrain/v20210527/models.py +261 -15
- tencentcloud/dbs/v20211108/dbs_client.py +69 -0
- tencentcloud/dbs/v20211108/dbs_client_async.py +54 -0
- tencentcloud/dbs/v20211108/errorcodes.py +15 -0
- tencentcloud/dbs/v20211108/models.py +1173 -27
- tencentcloud/dlc/v20210125/dlc_client.py +69 -0
- tencentcloud/dlc/v20210125/dlc_client_async.py +54 -0
- tencentcloud/dlc/v20210125/errorcodes.py +15 -0
- tencentcloud/dlc/v20210125/models.py +1016 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +6 -0
- tencentcloud/dnspod/v20210323/models.py +4 -4
- tencentcloud/emr/v20190103/emr_client.py +46 -0
- tencentcloud/emr/v20190103/emr_client_async.py +36 -0
- tencentcloud/emr/v20190103/models.py +625 -2
- tencentcloud/es/v20180416/errorcodes.py +15 -0
- tencentcloud/es/v20180416/es_client.py +115 -0
- tencentcloud/es/v20180416/es_client_async.py +90 -0
- tencentcloud/es/v20180416/models.py +498 -4
- tencentcloud/ess/v20201111/ess_client.py +153 -6
- tencentcloud/ess/v20201111/ess_client_async.py +128 -6
- tencentcloud/ess/v20201111/models.py +1496 -58
- tencentcloud/essbasic/v20210526/models.py +129 -23
- tencentcloud/evt/v20250217/evt_client.py +46 -0
- tencentcloud/evt/v20250217/evt_client_async.py +36 -0
- tencentcloud/evt/v20250217/models.py +188 -0
- tencentcloud/faceid/v20180301/models.py +10 -4
- tencentcloud/gaap/v20180529/models.py +260 -352
- tencentcloud/gs/v20191118/models.py +150 -4
- tencentcloud/gwlb/v20240906/models.py +48 -70
- tencentcloud/iai/v20180301/models.py +4 -4
- tencentcloud/iai/v20200303/models.py +4 -4
- tencentcloud/igtm/v20231024/errorcodes.py +1 -1
- tencentcloud/ims/v20201229/ims_client.py +1 -1
- tencentcloud/ims/v20201229/ims_client_async.py +1 -1
- tencentcloud/ioa/v20220601/models.py +60 -0
- tencentcloud/keewidb/v20220308/models.py +52 -68
- tencentcloud/lcic/v20220817/models.py +15 -0
- tencentcloud/lighthouse/v20200324/errorcodes.py +2 -2
- tencentcloud/lighthouse/v20200324/models.py +8 -0
- tencentcloud/live/v20180801/errorcodes.py +6 -0
- tencentcloud/live/v20180801/live_client.py +143 -0
- tencentcloud/live/v20180801/live_client_async.py +113 -0
- tencentcloud/live/v20180801/models.py +914 -311
- tencentcloud/lke/v20231130/lke_client.py +48 -1
- tencentcloud/lke/v20231130/lke_client_async.py +43 -1
- tencentcloud/lke/v20231130/models.py +2940 -459
- tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
- tencentcloud/lkeap/v20240522/lkeap_client_async.py +1 -1
- tencentcloud/lkeap/v20240522/models.py +2 -6
- tencentcloud/lowcode/v20210108/models.py +30 -0
- tencentcloud/mna/v20210119/models.py +18 -2
- tencentcloud/mongodb/v20190725/models.py +2 -2
- tencentcloud/monitor/v20180724/models.py +258 -0
- tencentcloud/mps/v20190612/errorcodes.py +9 -0
- tencentcloud/mps/v20190612/models.py +3007 -140
- tencentcloud/mps/v20190612/mps_client.py +115 -0
- tencentcloud/mps/v20190612/mps_client_async.py +90 -0
- tencentcloud/oceanus/v20190422/errorcodes.py +9 -0
- tencentcloud/oceanus/v20190422/models.py +210 -4
- tencentcloud/ocr/v20181119/models.py +72 -4
- tencentcloud/ocr/v20181119/ocr_client.py +12 -8
- tencentcloud/ocr/v20181119/ocr_client_async.py +11 -7
- tencentcloud/partners/v20180321/models.py +88 -92
- tencentcloud/pts/v20210728/models.py +206 -0
- tencentcloud/rce/v20250425/__init__.py +0 -0
- tencentcloud/rce/v20250425/errorcodes.py +15 -0
- tencentcloud/rce/v20250425/models.py +301 -0
- tencentcloud/rce/v20250425/rce_client.py +49 -0
- tencentcloud/rce/v20250425/rce_client_async.py +44 -0
- tencentcloud/redis/v20180412/models.py +65 -70
- tencentcloud/rum/v20210622/models.py +548 -0
- tencentcloud/rum/v20210622/rum_client.py +23 -0
- tencentcloud/rum/v20210622/rum_client_async.py +18 -0
- tencentcloud/scf/v20180416/models.py +28 -2
- tencentcloud/ses/v20201002/errorcodes.py +3 -0
- tencentcloud/ssl/v20191205/models.py +991 -70
- tencentcloud/ssl/v20191205/ssl_client.py +2 -2
- tencentcloud/ssl/v20191205/ssl_client_async.py +2 -2
- tencentcloud/ssm/v20190923/models.py +134 -0
- tencentcloud/svp/v20240125/models.py +35 -20
- tencentcloud/tag/v20180813/models.py +34 -54
- tencentcloud/tat/v20201028/models.py +2 -0
- tencentcloud/tcaplusdb/v20190823/models.py +0 -337
- tencentcloud/tcaplusdb/v20190823/tcaplusdb_client.py +0 -25
- tencentcloud/tcaplusdb/v20190823/tcaplusdb_client_async.py +0 -20
- tencentcloud/tcb/v20180608/errorcodes.py +15 -12
- tencentcloud/tcb/v20180608/models.py +5761 -8383
- tencentcloud/tcb/v20180608/tcb_client.py +0 -276
- tencentcloud/tcb/v20180608/tcb_client_async.py +0 -216
- tencentcloud/tcbr/v20220217/errorcodes.py +27 -0
- tencentcloud/tcbr/v20220217/models.py +4193 -1389
- tencentcloud/tcbr/v20220217/tcbr_client.py +207 -0
- tencentcloud/tcbr/v20220217/tcbr_client_async.py +162 -0
- tencentcloud/tcr/v20190924/models.py +727 -61
- tencentcloud/tcr/v20190924/tcr_client.py +92 -0
- tencentcloud/tcr/v20190924/tcr_client_async.py +72 -0
- tencentcloud/tcss/v20201101/models.py +30 -0
- tencentcloud/tdai/v20250717/models.py +440 -2
- tencentcloud/tdai/v20250717/tdai_client.py +23 -0
- tencentcloud/tdai/v20250717/tdai_client_async.py +18 -0
- tencentcloud/tdmq/v20200217/errorcodes.py +1 -1
- tencentcloud/tdmq/v20200217/models.py +432 -4
- tencentcloud/tdmq/v20200217/tdmq_client.py +24 -0
- tencentcloud/tdmq/v20200217/tdmq_client_async.py +19 -0
- tencentcloud/teo/v20220901/errorcodes.py +39 -0
- tencentcloud/teo/v20220901/models.py +596 -79
- tencentcloud/teo/v20220901/teo_client.py +107 -1
- tencentcloud/teo/v20220901/teo_client_async.py +97 -1
- tencentcloud/thpc/v20211109/models.py +14 -14
- tencentcloud/thpc/v20220401/models.py +14 -14
- tencentcloud/thpc/v20230321/models.py +20 -54
- tencentcloud/tione/v20211111/errorcodes.py +9 -0
- tencentcloud/tione/v20211111/models.py +910 -73
- tencentcloud/tione/v20211111/tione_client.py +69 -0
- tencentcloud/tione/v20211111/tione_client_async.py +54 -0
- tencentcloud/tke/v20180525/models.py +468 -18
- tencentcloud/tke/v20180525/tke_client.py +69 -0
- tencentcloud/tke/v20180525/tke_client_async.py +54 -0
- tencentcloud/tke/v20220501/models.py +539 -0
- tencentcloud/tke/v20220501/tke_client.py +23 -0
- tencentcloud/tke/v20220501/tke_client_async.py +18 -0
- tencentcloud/trocket/v20230308/models.py +42 -21
- tencentcloud/trocket/v20230308/trocket_client.py +2 -1
- tencentcloud/trocket/v20230308/trocket_client_async.py +2 -1
- tencentcloud/trtc/v20190722/errorcodes.py +3 -0
- tencentcloud/trtc/v20190722/models.py +173 -30
- tencentcloud/tse/v20201207/models.py +42 -0
- tencentcloud/tsf/v20180326/errorcodes.py +4 -4
- tencentcloud/tsf/v20180326/models.py +15 -510
- tencentcloud/tsf/v20180326/tsf_client.py +66 -47
- tencentcloud/tsf/v20180326/tsf_client_async.py +44 -20
- tencentcloud/tts/v20190823/tts_client.py +1 -1
- tencentcloud/tts/v20190823/tts_client_async.py +1 -1
- tencentcloud/vclm/v20240523/models.py +383 -0
- tencentcloud/vclm/v20240523/vclm_client.py +46 -0
- tencentcloud/vclm/v20240523/vclm_client_async.py +36 -0
- tencentcloud/vcube/v20220410/models.py +30 -0
- tencentcloud/vdb/v20230616/models.py +567 -0
- tencentcloud/vdb/v20230616/vdb_client.py +69 -0
- tencentcloud/vdb/v20230616/vdb_client_async.py +54 -0
- tencentcloud/vm/v20210922/models.py +116 -0
- tencentcloud/vod/v20180717/errorcodes.py +3 -0
- tencentcloud/vod/v20180717/models.py +4107 -622
- tencentcloud/vod/v20180717/vod_client.py +72 -3
- tencentcloud/vod/v20180717/vod_client_async.py +57 -3
- tencentcloud/vpc/v20170312/errorcodes.py +15 -0
- tencentcloud/vpc/v20170312/models.py +387 -2
- tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- tencentcloud/vpc/v20170312/vpc_client_async.py +18 -0
- tencentcloud/waf/v20180125/errorcodes.py +3 -0
- tencentcloud/waf/v20180125/models.py +970 -0
- tencentcloud/waf/v20180125/waf_client.py +46 -0
- tencentcloud/waf/v20180125/waf_client_async.py +36 -0
- tencentcloud/wedata/v20210820/models.py +2851 -29
- tencentcloud/wedata/v20210820/wedata_client.py +23 -0
- tencentcloud/wedata/v20210820/wedata_client_async.py +18 -0
- tencentcloud/wedata/v20250806/errorcodes.py +21 -0
- tencentcloud/wedata/v20250806/models.py +40999 -15704
- tencentcloud/wedata/v20250806/wedata_client.py +1402 -65
- tencentcloud/wedata/v20250806/wedata_client_async.py +1047 -0
- tencentcloud/weilingwith/v20230427/errorcodes.py +0 -3
- tencentcloud/weilingwith/v20230427/models.py +17 -336
- tencentcloud/weilingwith/v20230427/weilingwith_client.py +0 -25
- tencentcloud/weilingwith/v20230427/weilingwith_client_async.py +0 -20
- tencentcloud/wimgs/__init__.py +0 -0
- tencentcloud/wimgs/v20251106/__init__.py +0 -0
- tencentcloud/wimgs/v20251106/errorcodes.py +33 -0
- tencentcloud/wimgs/v20251106/models.py +132 -0
- tencentcloud/wimgs/v20251106/wimgs_client.py +49 -0
- tencentcloud/wimgs/v20251106/wimgs_client_async.py +44 -0
- tencentcloud/wsa/v20250508/errorcodes.py +6 -0
- tencentcloud/wsa/v20250508/models.py +17 -2
- {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/RECORD +260 -243
- {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/WHEEL +1 -1
- {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/LICENSE +0 -0
- {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")
|