tencentcloud-sdk-python 3.0.1299__py2.py3-none-any.whl → 3.0.1307__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.
Files changed (91) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/aiart_client.py +55 -0
  3. tencentcloud/aiart/v20221229/models.py +386 -0
  4. tencentcloud/apm/v20210622/apm_client.py +3 -3
  5. tencentcloud/apm/v20210622/errorcodes.py +10 -10
  6. tencentcloud/apm/v20210622/models.py +586 -538
  7. tencentcloud/autoscaling/v20180419/models.py +141 -0
  8. tencentcloud/batch/v20170312/models.py +2 -2
  9. tencentcloud/cat/v20180409/cat_client.py +1 -1
  10. tencentcloud/ccc/v20200210/ccc_client.py +25 -0
  11. tencentcloud/ccc/v20200210/models.py +159 -0
  12. tencentcloud/cdb/v20170320/models.py +42 -0
  13. tencentcloud/cdn/v20180606/models.py +2 -2
  14. tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +1 -1
  15. tencentcloud/cdwdoris/v20211228/models.py +165 -380
  16. tencentcloud/cfs/v20190719/cfs_client.py +23 -0
  17. tencentcloud/cfs/v20190719/models.py +79 -0
  18. tencentcloud/clb/v20180317/models.py +146 -20
  19. tencentcloud/cmq/v20190304/cmq_client.py +0 -365
  20. tencentcloud/cmq/v20190304/models.py +324 -2473
  21. tencentcloud/config/v20220802/config_client.py +46 -0
  22. tencentcloud/config/v20220802/errorcodes.py +3 -0
  23. tencentcloud/config/v20220802/models.py +716 -26
  24. tencentcloud/csxg/v20230303/errorcodes.py +48 -0
  25. tencentcloud/cvm/v20170312/cvm_client.py +24 -0
  26. tencentcloud/cvm/v20170312/errorcodes.py +9 -0
  27. tencentcloud/cvm/v20170312/models.py +198 -14
  28. tencentcloud/dc/v20180410/dc_client.py +1 -1
  29. tencentcloud/dc/v20180410/models.py +46 -48
  30. tencentcloud/dlc/v20210125/models.py +89 -0
  31. tencentcloud/ecm/v20190719/models.py +0 -18
  32. tencentcloud/emr/v20190103/models.py +50 -122
  33. tencentcloud/es/v20180416/models.py +17 -0
  34. tencentcloud/ess/v20201111/ess_client.py +26 -5
  35. tencentcloud/ess/v20201111/models.py +58 -86
  36. tencentcloud/essbasic/v20210526/models.py +86 -134
  37. tencentcloud/faceid/v20180301/models.py +14 -14
  38. tencentcloud/hai/v20230812/hai_client.py +23 -0
  39. tencentcloud/hai/v20230812/models.py +326 -0
  40. tencentcloud/hunyuan/v20230901/hunyuan_client.py +3 -1
  41. tencentcloud/hunyuan/v20230901/models.py +84 -2
  42. tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +115 -0
  43. tencentcloud/iotexplorer/v20190423/models.py +1473 -75
  44. tencentcloud/iotvideo/v20211125/iotvideo_client.py +23 -0
  45. tencentcloud/iotvideo/v20211125/models.py +135 -0
  46. tencentcloud/lcic/v20220817/lcic_client.py +1 -1
  47. tencentcloud/lcic/v20220817/models.py +6 -8
  48. tencentcloud/lighthouse/v20200324/models.py +30 -0
  49. tencentcloud/lke/v20231130/models.py +23 -14
  50. tencentcloud/lkeap/v20240522/errorcodes.py +3 -0
  51. tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
  52. tencentcloud/lkeap/v20240522/models.py +60 -18
  53. tencentcloud/mna/v20210119/models.py +0 -52
  54. tencentcloud/monitor/v20180724/models.py +57 -6
  55. tencentcloud/monitor/v20180724/monitor_client.py +1 -1
  56. tencentcloud/mps/v20190612/errorcodes.py +6 -0
  57. tencentcloud/mps/v20190612/models.py +871 -18
  58. tencentcloud/mps/v20190612/mps_client.py +138 -0
  59. tencentcloud/ocr/v20181119/models.py +49 -4
  60. tencentcloud/postgres/v20170312/errorcodes.py +6 -0
  61. tencentcloud/postgres/v20170312/models.py +72 -30
  62. tencentcloud/pts/v20210728/models.py +0 -348
  63. tencentcloud/redis/v20180412/models.py +6 -2
  64. tencentcloud/rum/v20210622/models.py +92 -4
  65. tencentcloud/scf/v20180416/models.py +4 -4
  66. tencentcloud/sms/v20190711/errorcodes.py +6 -0
  67. tencentcloud/sms/v20190711/models.py +81 -0
  68. tencentcloud/sms/v20210111/errorcodes.py +6 -0
  69. tencentcloud/sms/v20210111/models.py +81 -0
  70. tencentcloud/ssl/v20191205/models.py +19 -4
  71. tencentcloud/ssl/v20191205/ssl_client.py +1 -1
  72. tencentcloud/tcb/v20180608/models.py +2 -86
  73. tencentcloud/tchd/v20230306/models.py +0 -2
  74. tencentcloud/teo/v20220901/models.py +8 -18
  75. tencentcloud/tiw/v20190919/models.py +6 -0
  76. tencentcloud/tke/v20220501/models.py +2 -2
  77. tencentcloud/trro/v20220325/models.py +15 -58
  78. tencentcloud/trtc/v20190722/models.py +30 -0
  79. tencentcloud/tse/v20201207/models.py +185 -0
  80. tencentcloud/tse/v20201207/tse_client.py +23 -0
  81. tencentcloud/vod/v20180717/models.py +6 -6
  82. tencentcloud/vpc/v20170312/errorcodes.py +15 -0
  83. tencentcloud/vpc/v20170312/models.py +508 -40
  84. tencentcloud/vpc/v20170312/vpc_client.py +23 -0
  85. tencentcloud/wedata/v20210820/models.py +1368 -2
  86. tencentcloud/wedata/v20210820/wedata_client.py +23 -0
  87. {tencentcloud_sdk_python-3.0.1299.dist-info → tencentcloud_sdk_python-3.0.1307.dist-info}/METADATA +1 -1
  88. {tencentcloud_sdk_python-3.0.1299.dist-info → tencentcloud_sdk_python-3.0.1307.dist-info}/RECORD +91 -91
  89. {tencentcloud_sdk_python-3.0.1299.dist-info → tencentcloud_sdk_python-3.0.1307.dist-info}/LICENSE +0 -0
  90. {tencentcloud_sdk_python-3.0.1299.dist-info → tencentcloud_sdk_python-3.0.1307.dist-info}/WHEEL +0 -0
  91. {tencentcloud_sdk_python-3.0.1299.dist-info → tencentcloud_sdk_python-3.0.1307.dist-info}/top_level.txt +0 -0
@@ -1032,14 +1032,14 @@ class CheckEidTokenStatusRequest(AbstractModel):
1032
1032
 
1033
1033
  def __init__(self):
1034
1034
  r"""
1035
- :param _EidToken: E证通流程的唯一标识,调用GetEidToken接口时生成。
1035
+ :param _EidToken: E证通流程的唯一标识,调用[GetEidToken](https://cloud.tencent.com/document/product/1007/54089)接口时生成。
1036
1036
  :type EidToken: str
1037
1037
  """
1038
1038
  self._EidToken = None
1039
1039
 
1040
1040
  @property
1041
1041
  def EidToken(self):
1042
- """E证通流程的唯一标识,调用GetEidToken接口时生成。
1042
+ """E证通流程的唯一标识,调用[GetEidToken](https://cloud.tencent.com/document/product/1007/54089)接口时生成。
1043
1043
  :rtype: str
1044
1044
  """
1045
1045
  return self._EidToken
@@ -4077,7 +4077,7 @@ class GetDetectInfoEnhancedRequest(AbstractModel):
4077
4077
 
4078
4078
  def __init__(self):
4079
4079
  r"""
4080
- :param _BizToken: 人脸核身流程的标识,调用DetectAuth接口时生成。
4080
+ :param _BizToken: 人脸核身流程的标识,调用[DetectAuth](https://cloud.tencent.com/document/product/1007/31816)接口时生成。
4081
4081
  :type BizToken: str
4082
4082
  :param _RuleId: 用于细分客户使用场景,由腾讯侧在线下对接时分配。
4083
4083
  :type RuleId: str
@@ -4120,7 +4120,7 @@ class GetDetectInfoEnhancedRequest(AbstractModel):
4120
4120
 
4121
4121
  @property
4122
4122
  def BizToken(self):
4123
- """人脸核身流程的标识,调用DetectAuth接口时生成。
4123
+ """人脸核身流程的标识,调用[DetectAuth](https://cloud.tencent.com/document/product/1007/31816)接口时生成。
4124
4124
  :rtype: str
4125
4125
  """
4126
4126
  return self._BizToken
@@ -5217,7 +5217,7 @@ class GetEidTokenRequest(AbstractModel):
5217
5217
 
5218
5218
  def __init__(self):
5219
5219
  r"""
5220
- :param _MerchantId: EID商户id。
5220
+ :param _MerchantId: EID商户ID。通过人脸核身控制台[自助接入](https://console.cloud.tencent.com/faceid/access)申请。
5221
5221
  - 字段长度最长50位。
5222
5222
  :type MerchantId: str
5223
5223
  :param _IdCard: 身份标识。
@@ -5253,7 +5253,7 @@ class GetEidTokenRequest(AbstractModel):
5253
5253
 
5254
5254
  @property
5255
5255
  def MerchantId(self):
5256
- """EID商户id。
5256
+ """EID商户ID。通过人脸核身控制台[自助接入](https://console.cloud.tencent.com/faceid/access)申请。
5257
5257
  - 字段长度最长50位。
5258
5258
  :rtype: str
5259
5259
  """
@@ -5434,7 +5434,7 @@ class GetFaceIdResultRequest(AbstractModel):
5434
5434
  def __init__(self):
5435
5435
  r"""
5436
5436
  :param _FaceIdToken: SDK人脸核身流程的标识。
5437
- - 调用GetFaceIdToken接口时生成。
5437
+ - 调用[GetFaceIdToken](https://cloud.tencent.com/document/product/1007/49198)接口时生成。
5438
5438
  :type FaceIdToken: str
5439
5439
  :param _IsNeedVideo: 是否需要拉取视频。
5440
5440
  - 默认false:不需要。
@@ -5450,7 +5450,7 @@ class GetFaceIdResultRequest(AbstractModel):
5450
5450
  @property
5451
5451
  def FaceIdToken(self):
5452
5452
  """SDK人脸核身流程的标识。
5453
- - 调用GetFaceIdToken接口时生成。
5453
+ - 调用[GetFaceIdToken](https://cloud.tencent.com/document/product/1007/49198)接口时生成。
5454
5454
  :rtype: str
5455
5455
  """
5456
5456
  return self._FaceIdToken
@@ -5807,14 +5807,14 @@ class GetFaceIdRiskInfoRequest(AbstractModel):
5807
5807
 
5808
5808
  def __init__(self):
5809
5809
  r"""
5810
- :param _FaceIdToken: SDK人脸核身流程的标识,调用GetFaceidRiskInfoToken接口时生成。
5810
+ :param _FaceIdToken: SDK人脸核身流程的标识,调用[GetFaceidRiskInfoToken](https://cloud.tencent.com/document/product/1007/104581)接口时生成。
5811
5811
  :type FaceIdToken: str
5812
5812
  """
5813
5813
  self._FaceIdToken = None
5814
5814
 
5815
5815
  @property
5816
5816
  def FaceIdToken(self):
5817
- """SDK人脸核身流程的标识,调用GetFaceidRiskInfoToken接口时生成。
5817
+ """SDK人脸核身流程的标识,调用[GetFaceidRiskInfoToken](https://cloud.tencent.com/document/product/1007/104581)接口时生成。
5818
5818
  :rtype: str
5819
5819
  """
5820
5820
  return self._FaceIdToken
@@ -9054,7 +9054,7 @@ class MobileNetworkTimeVerificationResponse(AbstractModel):
9054
9054
  :param _Description: 业务结果描述。
9055
9055
  :type Description: str
9056
9056
  :param _Range: 在网时长区间。
9057
- - 格式为(a,b],表示在网时长在a个月以上,b个月以下。
9057
+ - 格式为[a,b),表示在网时长在a个月以上,b个月以下。
9058
9058
  - 若b为+时表示没有上限。
9059
9059
  :type Range: str
9060
9060
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -9099,7 +9099,7 @@ class MobileNetworkTimeVerificationResponse(AbstractModel):
9099
9099
  @property
9100
9100
  def Range(self):
9101
9101
  """在网时长区间。
9102
- - 格式为(a,b],表示在网时长在a个月以上,b个月以下。
9102
+ - 格式为[a,b),表示在网时长在a个月以上,b个月以下。
9103
9103
  - 若b为+时表示没有上限。
9104
9104
  :rtype: str
9105
9105
  """
@@ -9395,7 +9395,7 @@ class ParseNfcDataResponse(AbstractModel):
9395
9395
  :type PersonalNumber: str
9396
9396
  :param _CheckMRTD: 旅行证件类的核验结果。
9397
9397
  - JSON格式如下:
9398
- {"result_issuer ":"签发者证书合法性验证结果 ","result_pape r":"证件安全对象合法性验证结果 ","result_data" :"防数据篡改验证结果 ","result_chip" :"防证书件芯片被复制验证结果"} 。
9398
+ {"result_issuer ":"签发者证书合法性验证结果 ","result_paper":"证件安全对象合法性验证结果 ","result_data" :"防数据篡改验证结果 ","result_chip" :"防证书件芯片被复制验证结果"} 。
9399
9399
  - 取值范围: 0:验证通过,1: 验证不通过,2: 未验证,3:部分通过,当4项核验结果都为0时,表示证件为真。
9400
9400
  注意:此字段可能返回 null,表示取不到有效值。
9401
9401
  :type CheckMRTD: str
@@ -9647,7 +9647,7 @@ class ParseNfcDataResponse(AbstractModel):
9647
9647
  def CheckMRTD(self):
9648
9648
  """旅行证件类的核验结果。
9649
9649
  - JSON格式如下:
9650
- {"result_issuer ":"签发者证书合法性验证结果 ","result_pape r":"证件安全对象合法性验证结果 ","result_data" :"防数据篡改验证结果 ","result_chip" :"防证书件芯片被复制验证结果"} 。
9650
+ {"result_issuer ":"签发者证书合法性验证结果 ","result_paper":"证件安全对象合法性验证结果 ","result_data" :"防数据篡改验证结果 ","result_chip" :"防证书件芯片被复制验证结果"} 。
9651
9651
  - 取值范围: 0:验证通过,1: 验证不通过,2: 未验证,3:部分通过,当4项核验结果都为0时,表示证件为真。
9652
9652
  注意:此字段可能返回 null,表示取不到有效值。
9653
9653
  :rtype: str
@@ -118,6 +118,29 @@ class HaiClient(AbstractClient):
118
118
  raise TencentCloudSDKException(type(e).__name__, str(e))
119
119
 
120
120
 
121
+ def DescribeMuskPrompts(self, request):
122
+ """获取prompt任务列表
123
+
124
+ :param request: Request instance for DescribeMuskPrompts.
125
+ :type request: :class:`tencentcloud.hai.v20230812.models.DescribeMuskPromptsRequest`
126
+ :rtype: :class:`tencentcloud.hai.v20230812.models.DescribeMuskPromptsResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("DescribeMuskPrompts", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.DescribeMuskPromptsResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
142
+
143
+
121
144
  def DescribeRegions(self, request):
122
145
  """查询地域列表
123
146
 
@@ -764,6 +764,170 @@ class DescribeInstancesResponse(AbstractModel):
764
764
  self._RequestId = params.get("RequestId")
765
765
 
766
766
 
767
+ class DescribeMuskPromptsRequest(AbstractModel):
768
+ """DescribeMuskPrompts请求参数结构体
769
+
770
+ """
771
+
772
+ def __init__(self):
773
+ r"""
774
+ :param _WorkgroupId: workgroup id
775
+ :type WorkgroupId: str
776
+ :param _WorkflowId: workflow id
777
+ :type WorkflowId: str
778
+ :param _Offset: offset
779
+ :type Offset: int
780
+ :param _Limit: limit
781
+ :type Limit: int
782
+ :param _Filters: 过滤参数 支持过滤的键值: PromptId,Status
783
+ :type Filters: list of Filter
784
+ """
785
+ self._WorkgroupId = None
786
+ self._WorkflowId = None
787
+ self._Offset = None
788
+ self._Limit = None
789
+ self._Filters = None
790
+
791
+ @property
792
+ def WorkgroupId(self):
793
+ """workgroup id
794
+ :rtype: str
795
+ """
796
+ return self._WorkgroupId
797
+
798
+ @WorkgroupId.setter
799
+ def WorkgroupId(self, WorkgroupId):
800
+ self._WorkgroupId = WorkgroupId
801
+
802
+ @property
803
+ def WorkflowId(self):
804
+ """workflow id
805
+ :rtype: str
806
+ """
807
+ return self._WorkflowId
808
+
809
+ @WorkflowId.setter
810
+ def WorkflowId(self, WorkflowId):
811
+ self._WorkflowId = WorkflowId
812
+
813
+ @property
814
+ def Offset(self):
815
+ """offset
816
+ :rtype: int
817
+ """
818
+ return self._Offset
819
+
820
+ @Offset.setter
821
+ def Offset(self, Offset):
822
+ self._Offset = Offset
823
+
824
+ @property
825
+ def Limit(self):
826
+ """limit
827
+ :rtype: int
828
+ """
829
+ return self._Limit
830
+
831
+ @Limit.setter
832
+ def Limit(self, Limit):
833
+ self._Limit = Limit
834
+
835
+ @property
836
+ def Filters(self):
837
+ """过滤参数 支持过滤的键值: PromptId,Status
838
+ :rtype: list of Filter
839
+ """
840
+ return self._Filters
841
+
842
+ @Filters.setter
843
+ def Filters(self, Filters):
844
+ self._Filters = Filters
845
+
846
+
847
+ def _deserialize(self, params):
848
+ self._WorkgroupId = params.get("WorkgroupId")
849
+ self._WorkflowId = params.get("WorkflowId")
850
+ self._Offset = params.get("Offset")
851
+ self._Limit = params.get("Limit")
852
+ if params.get("Filters") is not None:
853
+ self._Filters = []
854
+ for item in params.get("Filters"):
855
+ obj = Filter()
856
+ obj._deserialize(item)
857
+ self._Filters.append(obj)
858
+ memeber_set = set(params.keys())
859
+ for name, value in vars(self).items():
860
+ property_name = name[1:]
861
+ if property_name in memeber_set:
862
+ memeber_set.remove(property_name)
863
+ if len(memeber_set) > 0:
864
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
865
+
866
+
867
+
868
+ class DescribeMuskPromptsResponse(AbstractModel):
869
+ """DescribeMuskPrompts返回参数结构体
870
+
871
+ """
872
+
873
+ def __init__(self):
874
+ r"""
875
+ :param _TotalCount: total count
876
+ :type TotalCount: int
877
+ :param _MuskPromptInfos: prompt列表详情
878
+ :type MuskPromptInfos: list of MuskPromptInfo
879
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
880
+ :type RequestId: str
881
+ """
882
+ self._TotalCount = None
883
+ self._MuskPromptInfos = None
884
+ self._RequestId = None
885
+
886
+ @property
887
+ def TotalCount(self):
888
+ """total count
889
+ :rtype: int
890
+ """
891
+ return self._TotalCount
892
+
893
+ @TotalCount.setter
894
+ def TotalCount(self, TotalCount):
895
+ self._TotalCount = TotalCount
896
+
897
+ @property
898
+ def MuskPromptInfos(self):
899
+ """prompt列表详情
900
+ :rtype: list of MuskPromptInfo
901
+ """
902
+ return self._MuskPromptInfos
903
+
904
+ @MuskPromptInfos.setter
905
+ def MuskPromptInfos(self, MuskPromptInfos):
906
+ self._MuskPromptInfos = MuskPromptInfos
907
+
908
+ @property
909
+ def RequestId(self):
910
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
911
+ :rtype: str
912
+ """
913
+ return self._RequestId
914
+
915
+ @RequestId.setter
916
+ def RequestId(self, RequestId):
917
+ self._RequestId = RequestId
918
+
919
+
920
+ def _deserialize(self, params):
921
+ self._TotalCount = params.get("TotalCount")
922
+ if params.get("MuskPromptInfos") is not None:
923
+ self._MuskPromptInfos = []
924
+ for item in params.get("MuskPromptInfos"):
925
+ obj = MuskPromptInfo()
926
+ obj._deserialize(item)
927
+ self._MuskPromptInfos.append(obj)
928
+ self._RequestId = params.get("RequestId")
929
+
930
+
767
931
  class DescribeRegionsRequest(AbstractModel):
768
932
  """DescribeRegions请求参数结构体
769
933
 
@@ -2074,6 +2238,168 @@ class LoginSetting(AbstractModel):
2074
2238
 
2075
2239
 
2076
2240
 
2241
+ class MuskPromptInfo(AbstractModel):
2242
+ """musk prompt详情
2243
+
2244
+ """
2245
+
2246
+ def __init__(self):
2247
+ r"""
2248
+ :param _WorkflowId: workflow id
2249
+ :type WorkflowId: str
2250
+ :param _WorkgroupId: workgroup id
2251
+ :type WorkgroupId: str
2252
+ :param _PromptId: prompt id
2253
+ :type PromptId: str
2254
+ :param _OutputResource: 生成的内容
2255
+ :type OutputResource: list of str
2256
+ :param _Status: prompt status
2257
+ 0: 执行中
2258
+ 1: 执行成功
2259
+ 2: 执行失败
2260
+ :type Status: int
2261
+ :param _CreateTime: 创建时间
2262
+ :type CreateTime: str
2263
+ :param _UpdateTime: 更新时间
2264
+ :type UpdateTime: str
2265
+ :param _Cost: 任务执行耗时,单位毫秒
2266
+ :type Cost: int
2267
+ :param _ErrorMessage: 任务执行失败错误信息
2268
+ :type ErrorMessage: str
2269
+ """
2270
+ self._WorkflowId = None
2271
+ self._WorkgroupId = None
2272
+ self._PromptId = None
2273
+ self._OutputResource = None
2274
+ self._Status = None
2275
+ self._CreateTime = None
2276
+ self._UpdateTime = None
2277
+ self._Cost = None
2278
+ self._ErrorMessage = None
2279
+
2280
+ @property
2281
+ def WorkflowId(self):
2282
+ """workflow id
2283
+ :rtype: str
2284
+ """
2285
+ return self._WorkflowId
2286
+
2287
+ @WorkflowId.setter
2288
+ def WorkflowId(self, WorkflowId):
2289
+ self._WorkflowId = WorkflowId
2290
+
2291
+ @property
2292
+ def WorkgroupId(self):
2293
+ """workgroup id
2294
+ :rtype: str
2295
+ """
2296
+ return self._WorkgroupId
2297
+
2298
+ @WorkgroupId.setter
2299
+ def WorkgroupId(self, WorkgroupId):
2300
+ self._WorkgroupId = WorkgroupId
2301
+
2302
+ @property
2303
+ def PromptId(self):
2304
+ """prompt id
2305
+ :rtype: str
2306
+ """
2307
+ return self._PromptId
2308
+
2309
+ @PromptId.setter
2310
+ def PromptId(self, PromptId):
2311
+ self._PromptId = PromptId
2312
+
2313
+ @property
2314
+ def OutputResource(self):
2315
+ """生成的内容
2316
+ :rtype: list of str
2317
+ """
2318
+ return self._OutputResource
2319
+
2320
+ @OutputResource.setter
2321
+ def OutputResource(self, OutputResource):
2322
+ self._OutputResource = OutputResource
2323
+
2324
+ @property
2325
+ def Status(self):
2326
+ """prompt status
2327
+ 0: 执行中
2328
+ 1: 执行成功
2329
+ 2: 执行失败
2330
+ :rtype: int
2331
+ """
2332
+ return self._Status
2333
+
2334
+ @Status.setter
2335
+ def Status(self, Status):
2336
+ self._Status = Status
2337
+
2338
+ @property
2339
+ def CreateTime(self):
2340
+ """创建时间
2341
+ :rtype: str
2342
+ """
2343
+ return self._CreateTime
2344
+
2345
+ @CreateTime.setter
2346
+ def CreateTime(self, CreateTime):
2347
+ self._CreateTime = CreateTime
2348
+
2349
+ @property
2350
+ def UpdateTime(self):
2351
+ """更新时间
2352
+ :rtype: str
2353
+ """
2354
+ return self._UpdateTime
2355
+
2356
+ @UpdateTime.setter
2357
+ def UpdateTime(self, UpdateTime):
2358
+ self._UpdateTime = UpdateTime
2359
+
2360
+ @property
2361
+ def Cost(self):
2362
+ """任务执行耗时,单位毫秒
2363
+ :rtype: int
2364
+ """
2365
+ return self._Cost
2366
+
2367
+ @Cost.setter
2368
+ def Cost(self, Cost):
2369
+ self._Cost = Cost
2370
+
2371
+ @property
2372
+ def ErrorMessage(self):
2373
+ """任务执行失败错误信息
2374
+ :rtype: str
2375
+ """
2376
+ return self._ErrorMessage
2377
+
2378
+ @ErrorMessage.setter
2379
+ def ErrorMessage(self, ErrorMessage):
2380
+ self._ErrorMessage = ErrorMessage
2381
+
2382
+
2383
+ def _deserialize(self, params):
2384
+ self._WorkflowId = params.get("WorkflowId")
2385
+ self._WorkgroupId = params.get("WorkgroupId")
2386
+ self._PromptId = params.get("PromptId")
2387
+ self._OutputResource = params.get("OutputResource")
2388
+ self._Status = params.get("Status")
2389
+ self._CreateTime = params.get("CreateTime")
2390
+ self._UpdateTime = params.get("UpdateTime")
2391
+ self._Cost = params.get("Cost")
2392
+ self._ErrorMessage = params.get("ErrorMessage")
2393
+ memeber_set = set(params.keys())
2394
+ for name, value in vars(self).items():
2395
+ property_name = name[1:]
2396
+ if property_name in memeber_set:
2397
+ memeber_set.remove(property_name)
2398
+ if len(memeber_set) > 0:
2399
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2400
+
2401
+
2402
+
2077
2403
  class NetworkStatus(AbstractModel):
2078
2404
  """HAI 实例的网络配置和消耗情况
2079
2405
 
@@ -50,7 +50,9 @@ class HunyuanClient(AbstractClient):
50
50
 
51
51
 
52
52
  def ChatCompletions(self, request):
53
- """腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
53
+ """如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
54
+
55
+ 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
54
56
 
55
57
  1. 本接口暂不支持返回图片内容。
56
58
  2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
@@ -178,6 +178,13 @@ class ChatCompletionsRequest(AbstractModel):
178
178
  2. 开启后,将强制走AI搜索,当AI搜索结果为空时,由大模型回复兜底话术。
179
179
  :type ForceSearchEnhancement: bool
180
180
  :param _Stop: 自定义结束生成字符串
181
+
182
+ 调用 OpenAI 的接口时,如果您指定了 `stop` 参数, 模型会停止在匹配到 `stop` 的内容之前。
183
+ 在调用混元接口时,会停止在匹配到 `stop` 的内容之后。
184
+
185
+ **说明:**
186
+ 未来我们可能会修改此行为以便和 OpenAI 保持一致。
187
+ 但是目前有使用该参数的情况下,开发者需要注意该参数是否会对应用造成影响,以及未来该行为调整时带来的影响。
181
188
  :type Stop: list of str
182
189
  :param _EnableRecommendedQuestions: 推荐问答开关。
183
190
  说明:
@@ -449,6 +456,13 @@ class ChatCompletionsRequest(AbstractModel):
449
456
  @property
450
457
  def Stop(self):
451
458
  """自定义结束生成字符串
459
+
460
+ 调用 OpenAI 的接口时,如果您指定了 `stop` 参数, 模型会停止在匹配到 `stop` 的内容之前。
461
+ 在调用混元接口时,会停止在匹配到 `stop` 的内容之后。
462
+
463
+ **说明:**
464
+ 未来我们可能会修改此行为以便和 OpenAI 保持一致。
465
+ 但是目前有使用该参数的情况下,开发者需要注意该参数是否会对应用造成影响,以及未来该行为调整时带来的影响。
452
466
  :rtype: list of str
453
467
  """
454
468
  return self._Stop
@@ -2260,13 +2274,17 @@ class GetThreadMessageListResponse(AbstractModel):
2260
2274
  :param _FirstID: 第一条消息 ID
2261
2275
  注意:此字段可能返回 null,表示取不到有效值。
2262
2276
  :type FirstID: str
2263
- :param _LastID: 最后一条消息 ID
2277
+ :param _LastID: 已废弃
2264
2278
  注意:此字段可能返回 null,表示取不到有效值。
2265
2279
  :type LastID: int
2266
2280
  :param _HasMore: 是否还有更多消息
2267
2281
  :type HasMore: bool
2268
2282
  :param _Object: 对象类型
2269
2283
  :type Object: str
2284
+ :param _FirstMsgID: 第一条消息 ID
2285
+ :type FirstMsgID: str
2286
+ :param _LastMsgID: 最后一条消息 ID
2287
+ :type LastMsgID: str
2270
2288
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
2271
2289
  :type RequestId: str
2272
2290
  """
@@ -2275,6 +2293,8 @@ class GetThreadMessageListResponse(AbstractModel):
2275
2293
  self._LastID = None
2276
2294
  self._HasMore = None
2277
2295
  self._Object = None
2296
+ self._FirstMsgID = None
2297
+ self._LastMsgID = None
2278
2298
  self._RequestId = None
2279
2299
 
2280
2300
  @property
@@ -2290,6 +2310,8 @@ class GetThreadMessageListResponse(AbstractModel):
2290
2310
 
2291
2311
  @property
2292
2312
  def FirstID(self):
2313
+ warnings.warn("parameter `FirstID` is deprecated", DeprecationWarning)
2314
+
2293
2315
  """第一条消息 ID
2294
2316
  注意:此字段可能返回 null,表示取不到有效值。
2295
2317
  :rtype: str
@@ -2298,11 +2320,15 @@ class GetThreadMessageListResponse(AbstractModel):
2298
2320
 
2299
2321
  @FirstID.setter
2300
2322
  def FirstID(self, FirstID):
2323
+ warnings.warn("parameter `FirstID` is deprecated", DeprecationWarning)
2324
+
2301
2325
  self._FirstID = FirstID
2302
2326
 
2303
2327
  @property
2304
2328
  def LastID(self):
2305
- """最后一条消息 ID
2329
+ warnings.warn("parameter `LastID` is deprecated", DeprecationWarning)
2330
+
2331
+ """已废弃
2306
2332
  注意:此字段可能返回 null,表示取不到有效值。
2307
2333
  :rtype: int
2308
2334
  """
@@ -2310,6 +2336,8 @@ class GetThreadMessageListResponse(AbstractModel):
2310
2336
 
2311
2337
  @LastID.setter
2312
2338
  def LastID(self, LastID):
2339
+ warnings.warn("parameter `LastID` is deprecated", DeprecationWarning)
2340
+
2313
2341
  self._LastID = LastID
2314
2342
 
2315
2343
  @property
@@ -2334,6 +2362,28 @@ class GetThreadMessageListResponse(AbstractModel):
2334
2362
  def Object(self, Object):
2335
2363
  self._Object = Object
2336
2364
 
2365
+ @property
2366
+ def FirstMsgID(self):
2367
+ """第一条消息 ID
2368
+ :rtype: str
2369
+ """
2370
+ return self._FirstMsgID
2371
+
2372
+ @FirstMsgID.setter
2373
+ def FirstMsgID(self, FirstMsgID):
2374
+ self._FirstMsgID = FirstMsgID
2375
+
2376
+ @property
2377
+ def LastMsgID(self):
2378
+ """最后一条消息 ID
2379
+ :rtype: str
2380
+ """
2381
+ return self._LastMsgID
2382
+
2383
+ @LastMsgID.setter
2384
+ def LastMsgID(self, LastMsgID):
2385
+ self._LastMsgID = LastMsgID
2386
+
2337
2387
  @property
2338
2388
  def RequestId(self):
2339
2389
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
@@ -2357,6 +2407,8 @@ class GetThreadMessageListResponse(AbstractModel):
2357
2407
  self._LastID = params.get("LastID")
2358
2408
  self._HasMore = params.get("HasMore")
2359
2409
  self._Object = params.get("Object")
2410
+ self._FirstMsgID = params.get("FirstMsgID")
2411
+ self._LastMsgID = params.get("LastMsgID")
2360
2412
  self._RequestId = params.get("RequestId")
2361
2413
 
2362
2414
 
@@ -4583,10 +4635,16 @@ class SearchResult(AbstractModel):
4583
4635
  :param _Url: 搜索引文链接
4584
4636
  注意:此字段可能返回 null,表示取不到有效值。
4585
4637
  :type Url: str
4638
+ :param _Text: 搜索引文站点名
4639
+ :type Text: str
4640
+ :param _Icon: 搜索引文图标
4641
+ :type Icon: str
4586
4642
  """
4587
4643
  self._Index = None
4588
4644
  self._Title = None
4589
4645
  self._Url = None
4646
+ self._Text = None
4647
+ self._Icon = None
4590
4648
 
4591
4649
  @property
4592
4650
  def Index(self):
@@ -4624,11 +4682,35 @@ class SearchResult(AbstractModel):
4624
4682
  def Url(self, Url):
4625
4683
  self._Url = Url
4626
4684
 
4685
+ @property
4686
+ def Text(self):
4687
+ """搜索引文站点名
4688
+ :rtype: str
4689
+ """
4690
+ return self._Text
4691
+
4692
+ @Text.setter
4693
+ def Text(self, Text):
4694
+ self._Text = Text
4695
+
4696
+ @property
4697
+ def Icon(self):
4698
+ """搜索引文图标
4699
+ :rtype: str
4700
+ """
4701
+ return self._Icon
4702
+
4703
+ @Icon.setter
4704
+ def Icon(self, Icon):
4705
+ self._Icon = Icon
4706
+
4627
4707
 
4628
4708
  def _deserialize(self, params):
4629
4709
  self._Index = params.get("Index")
4630
4710
  self._Title = params.get("Title")
4631
4711
  self._Url = params.get("Url")
4712
+ self._Text = params.get("Text")
4713
+ self._Icon = params.get("Icon")
4632
4714
  memeber_set = set(params.keys())
4633
4715
  for name, value in vars(self).items():
4634
4716
  property_name = name[1:]