tencentcloud-sdk-python 3.0.1259__py2.py3-none-any.whl → 3.0.1261__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/apm/v20210622/errorcodes.py +3 -0
- tencentcloud/apm/v20210622/models.py +24 -0
- tencentcloud/ca/v20230228/models.py +103 -0
- tencentcloud/cbs/v20170312/models.py +1 -1
- tencentcloud/cdb/v20170320/cdb_client.py +0 -25
- tencentcloud/cdb/v20170320/errorcodes.py +1 -1
- tencentcloud/cdb/v20170320/models.py +0 -111
- tencentcloud/cdwdoris/v20211228/models.py +39 -0
- tencentcloud/cfs/v20190719/models.py +111 -1
- tencentcloud/cfw/v20190904/cfw_client.py +3 -1
- tencentcloud/cls/v20201016/models.py +14 -14
- tencentcloud/csip/v20221121/csip_client.py +1 -1
- tencentcloud/csip/v20221121/models.py +5 -584
- tencentcloud/dlc/v20210125/models.py +18 -3
- tencentcloud/dnspod/v20210323/dnspod_client.py +164 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +48 -0
- tencentcloud/dnspod/v20210323/models.py +1221 -143
- tencentcloud/ecm/v20190719/models.py +1 -1
- tencentcloud/es/v20180416/models.py +13 -0
- tencentcloud/ess/v20201111/ess_client.py +6 -1
- tencentcloud/ess/v20201111/models.py +10 -6
- tencentcloud/essbasic/v20210526/essbasic_client.py +6 -3
- tencentcloud/essbasic/v20210526/models.py +20 -12
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +170 -0
- tencentcloud/hunyuan/v20230901/models.py +2037 -118
- tencentcloud/ioa/v20220601/models.py +8 -125
- tencentcloud/kms/v20190118/models.py +24 -25
- tencentcloud/lke/v20231130/lke_client.py +3 -1
- tencentcloud/mongodb/v20190725/models.py +4 -4
- tencentcloud/mps/v20190612/models.py +30 -1
- tencentcloud/ms/v20180408/models.py +0 -24
- tencentcloud/oceanus/v20190422/models.py +179 -0
- tencentcloud/ocr/v20181119/models.py +165 -1
- tencentcloud/ocr/v20181119/ocr_client.py +25 -0
- tencentcloud/redis/v20180412/models.py +4 -4
- tencentcloud/scf/v20180416/models.py +1 -1
- tencentcloud/sms/v20190711/errorcodes.py +1 -1
- tencentcloud/sms/v20210111/errorcodes.py +1 -1
- tencentcloud/ssm/v20190923/models.py +6 -36
- tencentcloud/tdmq/v20200217/models.py +4 -5
- tencentcloud/tem/v20210701/models.py +1 -1
- tencentcloud/teo/v20220901/errorcodes.py +45 -0
- tencentcloud/teo/v20220901/models.py +53 -6
- tencentcloud/thpc/v20230321/models.py +3 -3
- tencentcloud/tke/v20180525/models.py +2 -2
- tencentcloud/trtc/v20190722/models.py +0 -31
- tencentcloud/trtc/v20190722/trtc_client.py +0 -25
- tencentcloud/vod/v20180717/models.py +343 -18
- tencentcloud/waf/v20180125/models.py +309 -514
- tencentcloud/waf/v20180125/waf_client.py +23 -50
- {tencentcloud_sdk_python-3.0.1259.dist-info → tencentcloud_sdk_python-3.0.1261.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1259.dist-info → tencentcloud_sdk_python-3.0.1261.dist-info}/RECORD +56 -56
- {tencentcloud_sdk_python-3.0.1259.dist-info → tencentcloud_sdk_python-3.0.1261.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1259.dist-info → tencentcloud_sdk_python-3.0.1261.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1259.dist-info → tencentcloud_sdk_python-3.0.1261.dist-info}/top_level.txt +0 -0
@@ -162,6 +162,8 @@ class ChatCompletionsRequest(AbstractModel):
|
|
162
162
|
4. 未传值时默认关闭。
|
163
163
|
5. 开启并搜索到对应的多媒体信息时,会输出对应的多媒体地址,可以定制个性化的图文消息。
|
164
164
|
:type EnableMultimedia: bool
|
165
|
+
:param _EnableDeepSearch: 是否开启搜索深度模式,默认是false,在值为true且命中搜索时,会请求深度搜索。
|
166
|
+
:type EnableDeepSearch: bool
|
165
167
|
:param _Seed: 说明: 1. 确保模型的输出是可复现的。 2. 取值区间为非0正整数,最大值10000。 3. 非必要不建议使用,不合理的取值会影响效果。
|
166
168
|
:type Seed: int
|
167
169
|
"""
|
@@ -179,6 +181,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
179
181
|
self._Citation = None
|
180
182
|
self._EnableSpeedSearch = None
|
181
183
|
self._EnableMultimedia = None
|
184
|
+
self._EnableDeepSearch = None
|
182
185
|
self._Seed = None
|
183
186
|
|
184
187
|
@property
|
@@ -293,6 +296,14 @@ class ChatCompletionsRequest(AbstractModel):
|
|
293
296
|
def EnableMultimedia(self, EnableMultimedia):
|
294
297
|
self._EnableMultimedia = EnableMultimedia
|
295
298
|
|
299
|
+
@property
|
300
|
+
def EnableDeepSearch(self):
|
301
|
+
return self._EnableDeepSearch
|
302
|
+
|
303
|
+
@EnableDeepSearch.setter
|
304
|
+
def EnableDeepSearch(self, EnableDeepSearch):
|
305
|
+
self._EnableDeepSearch = EnableDeepSearch
|
306
|
+
|
296
307
|
@property
|
297
308
|
def Seed(self):
|
298
309
|
return self._Seed
|
@@ -329,6 +340,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
329
340
|
self._Citation = params.get("Citation")
|
330
341
|
self._EnableSpeedSearch = params.get("EnableSpeedSearch")
|
331
342
|
self._EnableMultimedia = params.get("EnableMultimedia")
|
343
|
+
self._EnableDeepSearch = params.get("EnableDeepSearch")
|
332
344
|
self._Seed = params.get("Seed")
|
333
345
|
memeber_set = set(params.keys())
|
334
346
|
for name, value in vars(self).items():
|
@@ -626,6 +638,88 @@ class Content(AbstractModel):
|
|
626
638
|
|
627
639
|
|
628
640
|
|
641
|
+
class CreateThreadRequest(AbstractModel):
|
642
|
+
"""CreateThread请求参数结构体
|
643
|
+
|
644
|
+
"""
|
645
|
+
|
646
|
+
|
647
|
+
class CreateThreadResponse(AbstractModel):
|
648
|
+
"""CreateThread返回参数结构体
|
649
|
+
|
650
|
+
"""
|
651
|
+
|
652
|
+
def __init__(self):
|
653
|
+
r"""
|
654
|
+
:param _ID: 会话 ID
|
655
|
+
:type ID: str
|
656
|
+
:param _Object: 对象类型
|
657
|
+
:type Object: str
|
658
|
+
:param _CreatedAt: 创建时间,Unix 时间戳,单位为秒。
|
659
|
+
:type CreatedAt: int
|
660
|
+
:param _ToolResources: 提供给工具的资源列表
|
661
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
662
|
+
:type ToolResources: :class:`tencentcloud.hunyuan.v20230901.models.ThreadToolResources`
|
663
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
664
|
+
:type RequestId: str
|
665
|
+
"""
|
666
|
+
self._ID = None
|
667
|
+
self._Object = None
|
668
|
+
self._CreatedAt = None
|
669
|
+
self._ToolResources = None
|
670
|
+
self._RequestId = None
|
671
|
+
|
672
|
+
@property
|
673
|
+
def ID(self):
|
674
|
+
return self._ID
|
675
|
+
|
676
|
+
@ID.setter
|
677
|
+
def ID(self, ID):
|
678
|
+
self._ID = ID
|
679
|
+
|
680
|
+
@property
|
681
|
+
def Object(self):
|
682
|
+
return self._Object
|
683
|
+
|
684
|
+
@Object.setter
|
685
|
+
def Object(self, Object):
|
686
|
+
self._Object = Object
|
687
|
+
|
688
|
+
@property
|
689
|
+
def CreatedAt(self):
|
690
|
+
return self._CreatedAt
|
691
|
+
|
692
|
+
@CreatedAt.setter
|
693
|
+
def CreatedAt(self, CreatedAt):
|
694
|
+
self._CreatedAt = CreatedAt
|
695
|
+
|
696
|
+
@property
|
697
|
+
def ToolResources(self):
|
698
|
+
return self._ToolResources
|
699
|
+
|
700
|
+
@ToolResources.setter
|
701
|
+
def ToolResources(self, ToolResources):
|
702
|
+
self._ToolResources = ToolResources
|
703
|
+
|
704
|
+
@property
|
705
|
+
def RequestId(self):
|
706
|
+
return self._RequestId
|
707
|
+
|
708
|
+
@RequestId.setter
|
709
|
+
def RequestId(self, RequestId):
|
710
|
+
self._RequestId = RequestId
|
711
|
+
|
712
|
+
|
713
|
+
def _deserialize(self, params):
|
714
|
+
self._ID = params.get("ID")
|
715
|
+
self._Object = params.get("Object")
|
716
|
+
self._CreatedAt = params.get("CreatedAt")
|
717
|
+
if params.get("ToolResources") is not None:
|
718
|
+
self._ToolResources = ThreadToolResources()
|
719
|
+
self._ToolResources._deserialize(params.get("ToolResources"))
|
720
|
+
self._RequestId = params.get("RequestId")
|
721
|
+
|
722
|
+
|
629
723
|
class Delta(AbstractModel):
|
630
724
|
"""返回的内容(流式返回)
|
631
725
|
|
@@ -845,29 +939,89 @@ class ErrorMsg(AbstractModel):
|
|
845
939
|
|
846
940
|
|
847
941
|
|
848
|
-
class
|
849
|
-
"""
|
942
|
+
class FileObject(AbstractModel):
|
943
|
+
"""已上传的文件对象。
|
850
944
|
|
851
945
|
"""
|
852
946
|
|
853
947
|
def __init__(self):
|
854
948
|
r"""
|
855
|
-
:param
|
856
|
-
:type
|
949
|
+
:param _ID: 文件标识符,可在各个API中引用。
|
950
|
+
:type ID: str
|
951
|
+
:param _Object: 对象类型,始终为 file。
|
952
|
+
:type Object: str
|
953
|
+
:param _Bytes: 文件大小,单位为字节。
|
954
|
+
:type Bytes: int
|
955
|
+
:param _CreatedAt: 文件创建时的 Unix 时间戳(秒)。
|
956
|
+
:type CreatedAt: int
|
957
|
+
:param _Filename: 文件名。
|
958
|
+
:type Filename: str
|
959
|
+
:param _Purpose: 上传文件的用途。
|
960
|
+
:type Purpose: str
|
857
961
|
"""
|
858
|
-
self.
|
962
|
+
self._ID = None
|
963
|
+
self._Object = None
|
964
|
+
self._Bytes = None
|
965
|
+
self._CreatedAt = None
|
966
|
+
self._Filename = None
|
967
|
+
self._Purpose = None
|
859
968
|
|
860
969
|
@property
|
861
|
-
def
|
862
|
-
return self.
|
970
|
+
def ID(self):
|
971
|
+
return self._ID
|
863
972
|
|
864
|
-
@
|
865
|
-
def
|
866
|
-
self.
|
973
|
+
@ID.setter
|
974
|
+
def ID(self, ID):
|
975
|
+
self._ID = ID
|
976
|
+
|
977
|
+
@property
|
978
|
+
def Object(self):
|
979
|
+
return self._Object
|
980
|
+
|
981
|
+
@Object.setter
|
982
|
+
def Object(self, Object):
|
983
|
+
self._Object = Object
|
984
|
+
|
985
|
+
@property
|
986
|
+
def Bytes(self):
|
987
|
+
return self._Bytes
|
988
|
+
|
989
|
+
@Bytes.setter
|
990
|
+
def Bytes(self, Bytes):
|
991
|
+
self._Bytes = Bytes
|
992
|
+
|
993
|
+
@property
|
994
|
+
def CreatedAt(self):
|
995
|
+
return self._CreatedAt
|
996
|
+
|
997
|
+
@CreatedAt.setter
|
998
|
+
def CreatedAt(self, CreatedAt):
|
999
|
+
self._CreatedAt = CreatedAt
|
1000
|
+
|
1001
|
+
@property
|
1002
|
+
def Filename(self):
|
1003
|
+
return self._Filename
|
1004
|
+
|
1005
|
+
@Filename.setter
|
1006
|
+
def Filename(self, Filename):
|
1007
|
+
self._Filename = Filename
|
1008
|
+
|
1009
|
+
@property
|
1010
|
+
def Purpose(self):
|
1011
|
+
return self._Purpose
|
1012
|
+
|
1013
|
+
@Purpose.setter
|
1014
|
+
def Purpose(self, Purpose):
|
1015
|
+
self._Purpose = Purpose
|
867
1016
|
|
868
1017
|
|
869
1018
|
def _deserialize(self, params):
|
870
|
-
self.
|
1019
|
+
self._ID = params.get("ID")
|
1020
|
+
self._Object = params.get("Object")
|
1021
|
+
self._Bytes = params.get("Bytes")
|
1022
|
+
self._CreatedAt = params.get("CreatedAt")
|
1023
|
+
self._Filename = params.get("Filename")
|
1024
|
+
self._Purpose = params.get("Purpose")
|
871
1025
|
memeber_set = set(params.keys())
|
872
1026
|
for name, value in vars(self).items():
|
873
1027
|
property_name = name[1:]
|
@@ -878,39 +1032,83 @@ class GetEmbeddingRequest(AbstractModel):
|
|
878
1032
|
|
879
1033
|
|
880
1034
|
|
881
|
-
class
|
882
|
-
"""
|
1035
|
+
class FilesDeletionsRequest(AbstractModel):
|
1036
|
+
"""FilesDeletions请求参数结构体
|
883
1037
|
|
884
1038
|
"""
|
885
1039
|
|
886
1040
|
def __init__(self):
|
887
1041
|
r"""
|
888
|
-
:param
|
889
|
-
:type
|
890
|
-
|
891
|
-
|
892
|
-
|
1042
|
+
:param _ID: 文件标识符。
|
1043
|
+
:type ID: str
|
1044
|
+
"""
|
1045
|
+
self._ID = None
|
1046
|
+
|
1047
|
+
@property
|
1048
|
+
def ID(self):
|
1049
|
+
return self._ID
|
1050
|
+
|
1051
|
+
@ID.setter
|
1052
|
+
def ID(self, ID):
|
1053
|
+
self._ID = ID
|
1054
|
+
|
1055
|
+
|
1056
|
+
def _deserialize(self, params):
|
1057
|
+
self._ID = params.get("ID")
|
1058
|
+
memeber_set = set(params.keys())
|
1059
|
+
for name, value in vars(self).items():
|
1060
|
+
property_name = name[1:]
|
1061
|
+
if property_name in memeber_set:
|
1062
|
+
memeber_set.remove(property_name)
|
1063
|
+
if len(memeber_set) > 0:
|
1064
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1065
|
+
|
1066
|
+
|
1067
|
+
|
1068
|
+
class FilesDeletionsResponse(AbstractModel):
|
1069
|
+
"""FilesDeletions返回参数结构体
|
1070
|
+
|
1071
|
+
"""
|
1072
|
+
|
1073
|
+
def __init__(self):
|
1074
|
+
r"""
|
1075
|
+
:param _ID: 文件标识符。
|
1076
|
+
:type ID: str
|
1077
|
+
:param _Object: 对象类型,始终为 file。
|
1078
|
+
:type Object: str
|
1079
|
+
:param _Deleted: 是否删除成功。
|
1080
|
+
:type Deleted: bool
|
1081
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
893
1082
|
:type RequestId: str
|
894
1083
|
"""
|
895
|
-
self.
|
896
|
-
self.
|
1084
|
+
self._ID = None
|
1085
|
+
self._Object = None
|
1086
|
+
self._Deleted = None
|
897
1087
|
self._RequestId = None
|
898
1088
|
|
899
1089
|
@property
|
900
|
-
def
|
901
|
-
return self.
|
1090
|
+
def ID(self):
|
1091
|
+
return self._ID
|
902
1092
|
|
903
|
-
@
|
904
|
-
def
|
905
|
-
self.
|
1093
|
+
@ID.setter
|
1094
|
+
def ID(self, ID):
|
1095
|
+
self._ID = ID
|
906
1096
|
|
907
1097
|
@property
|
908
|
-
def
|
909
|
-
return self.
|
1098
|
+
def Object(self):
|
1099
|
+
return self._Object
|
910
1100
|
|
911
|
-
@
|
912
|
-
def
|
913
|
-
self.
|
1101
|
+
@Object.setter
|
1102
|
+
def Object(self, Object):
|
1103
|
+
self._Object = Object
|
1104
|
+
|
1105
|
+
@property
|
1106
|
+
def Deleted(self):
|
1107
|
+
return self._Deleted
|
1108
|
+
|
1109
|
+
@Deleted.setter
|
1110
|
+
def Deleted(self, Deleted):
|
1111
|
+
self._Deleted = Deleted
|
914
1112
|
|
915
1113
|
@property
|
916
1114
|
def RequestId(self):
|
@@ -922,41 +1120,47 @@ class GetEmbeddingResponse(AbstractModel):
|
|
922
1120
|
|
923
1121
|
|
924
1122
|
def _deserialize(self, params):
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
obj = EmbeddingData()
|
929
|
-
obj._deserialize(item)
|
930
|
-
self._Data.append(obj)
|
931
|
-
if params.get("Usage") is not None:
|
932
|
-
self._Usage = EmbeddingUsage()
|
933
|
-
self._Usage._deserialize(params.get("Usage"))
|
1123
|
+
self._ID = params.get("ID")
|
1124
|
+
self._Object = params.get("Object")
|
1125
|
+
self._Deleted = params.get("Deleted")
|
934
1126
|
self._RequestId = params.get("RequestId")
|
935
1127
|
|
936
1128
|
|
937
|
-
class
|
938
|
-
"""
|
1129
|
+
class FilesListRequest(AbstractModel):
|
1130
|
+
"""FilesList请求参数结构体
|
939
1131
|
|
940
1132
|
"""
|
941
1133
|
|
942
1134
|
def __init__(self):
|
943
1135
|
r"""
|
944
|
-
:param
|
945
|
-
:type
|
1136
|
+
:param _Offset: 分页偏移量。
|
1137
|
+
:type Offset: int
|
1138
|
+
:param _Limit: 每页数量,最大 100。
|
1139
|
+
:type Limit: int
|
946
1140
|
"""
|
947
|
-
self.
|
1141
|
+
self._Offset = None
|
1142
|
+
self._Limit = None
|
948
1143
|
|
949
1144
|
@property
|
950
|
-
def
|
951
|
-
return self.
|
1145
|
+
def Offset(self):
|
1146
|
+
return self._Offset
|
952
1147
|
|
953
|
-
@
|
954
|
-
def
|
955
|
-
self.
|
1148
|
+
@Offset.setter
|
1149
|
+
def Offset(self, Offset):
|
1150
|
+
self._Offset = Offset
|
1151
|
+
|
1152
|
+
@property
|
1153
|
+
def Limit(self):
|
1154
|
+
return self._Limit
|
1155
|
+
|
1156
|
+
@Limit.setter
|
1157
|
+
def Limit(self, Limit):
|
1158
|
+
self._Limit = Limit
|
956
1159
|
|
957
1160
|
|
958
1161
|
def _deserialize(self, params):
|
959
|
-
self.
|
1162
|
+
self._Offset = params.get("Offset")
|
1163
|
+
self._Limit = params.get("Limit")
|
960
1164
|
memeber_set = set(params.keys())
|
961
1165
|
for name, value in vars(self).items():
|
962
1166
|
property_name = name[1:]
|
@@ -967,50 +1171,50 @@ class GetTokenCountRequest(AbstractModel):
|
|
967
1171
|
|
968
1172
|
|
969
1173
|
|
970
|
-
class
|
971
|
-
"""
|
1174
|
+
class FilesListResponse(AbstractModel):
|
1175
|
+
"""FilesList返回参数结构体
|
972
1176
|
|
973
1177
|
"""
|
974
1178
|
|
975
1179
|
def __init__(self):
|
976
1180
|
r"""
|
977
|
-
:param
|
978
|
-
:type
|
979
|
-
:param
|
980
|
-
:type
|
981
|
-
:param
|
982
|
-
:type
|
983
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId
|
1181
|
+
:param _Total: 文件数量。
|
1182
|
+
:type Total: int
|
1183
|
+
:param _Object: 对象类型,始终为 list。
|
1184
|
+
:type Object: str
|
1185
|
+
:param _Data: FileObject 列表。
|
1186
|
+
:type Data: list of FileObject
|
1187
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
984
1188
|
:type RequestId: str
|
985
1189
|
"""
|
986
|
-
self.
|
987
|
-
self.
|
988
|
-
self.
|
1190
|
+
self._Total = None
|
1191
|
+
self._Object = None
|
1192
|
+
self._Data = None
|
989
1193
|
self._RequestId = None
|
990
1194
|
|
991
1195
|
@property
|
992
|
-
def
|
993
|
-
return self.
|
1196
|
+
def Total(self):
|
1197
|
+
return self._Total
|
994
1198
|
|
995
|
-
@
|
996
|
-
def
|
997
|
-
self.
|
1199
|
+
@Total.setter
|
1200
|
+
def Total(self, Total):
|
1201
|
+
self._Total = Total
|
998
1202
|
|
999
1203
|
@property
|
1000
|
-
def
|
1001
|
-
return self.
|
1204
|
+
def Object(self):
|
1205
|
+
return self._Object
|
1002
1206
|
|
1003
|
-
@
|
1004
|
-
def
|
1005
|
-
self.
|
1207
|
+
@Object.setter
|
1208
|
+
def Object(self, Object):
|
1209
|
+
self._Object = Object
|
1006
1210
|
|
1007
1211
|
@property
|
1008
|
-
def
|
1009
|
-
return self.
|
1212
|
+
def Data(self):
|
1213
|
+
return self._Data
|
1010
1214
|
|
1011
|
-
@
|
1012
|
-
def
|
1013
|
-
self.
|
1215
|
+
@Data.setter
|
1216
|
+
def Data(self, Data):
|
1217
|
+
self._Data = Data
|
1014
1218
|
|
1015
1219
|
@property
|
1016
1220
|
def RequestId(self):
|
@@ -1022,64 +1226,891 @@ class GetTokenCountResponse(AbstractModel):
|
|
1022
1226
|
|
1023
1227
|
|
1024
1228
|
def _deserialize(self, params):
|
1025
|
-
self.
|
1026
|
-
self.
|
1027
|
-
|
1229
|
+
self._Total = params.get("Total")
|
1230
|
+
self._Object = params.get("Object")
|
1231
|
+
if params.get("Data") is not None:
|
1232
|
+
self._Data = []
|
1233
|
+
for item in params.get("Data"):
|
1234
|
+
obj = FileObject()
|
1235
|
+
obj._deserialize(item)
|
1236
|
+
self._Data.append(obj)
|
1028
1237
|
self._RequestId = params.get("RequestId")
|
1029
1238
|
|
1030
1239
|
|
1031
|
-
class
|
1032
|
-
"""
|
1240
|
+
class FilesUploadsRequest(AbstractModel):
|
1241
|
+
"""FilesUploads请求参数结构体
|
1033
1242
|
|
1034
1243
|
"""
|
1035
1244
|
|
1036
1245
|
def __init__(self):
|
1037
1246
|
r"""
|
1038
|
-
:param
|
1039
|
-
|
1040
|
-
:
|
1041
|
-
:
|
1042
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1043
|
-
:type Prompt: str
|
1044
|
-
:param _RevisedPrompt: 扩写后的 Prompt 文本
|
1045
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1046
|
-
:type RevisedPrompt: str
|
1047
|
-
:param _Seed: 生成图的随机种子
|
1048
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1049
|
-
:type Seed: int
|
1247
|
+
:param _Name: 文件名。
|
1248
|
+
:type Name: str
|
1249
|
+
:param _URL: 文件链接。目前仅支持 pdf 格式,单文件大小限制为100M。
|
1250
|
+
:type URL: str
|
1050
1251
|
"""
|
1051
|
-
self.
|
1052
|
-
self.
|
1053
|
-
self._RevisedPrompt = None
|
1054
|
-
self._Seed = None
|
1252
|
+
self._Name = None
|
1253
|
+
self._URL = None
|
1055
1254
|
|
1056
1255
|
@property
|
1057
|
-
def
|
1058
|
-
return self.
|
1256
|
+
def Name(self):
|
1257
|
+
return self._Name
|
1059
1258
|
|
1060
|
-
@
|
1061
|
-
def
|
1062
|
-
self.
|
1259
|
+
@Name.setter
|
1260
|
+
def Name(self, Name):
|
1261
|
+
self._Name = Name
|
1063
1262
|
|
1064
1263
|
@property
|
1065
|
-
def
|
1066
|
-
return self.
|
1067
|
-
|
1068
|
-
@Prompt.setter
|
1069
|
-
def Prompt(self, Prompt):
|
1070
|
-
self._Prompt = Prompt
|
1264
|
+
def URL(self):
|
1265
|
+
return self._URL
|
1071
1266
|
|
1072
|
-
@
|
1073
|
-
def
|
1074
|
-
|
1267
|
+
@URL.setter
|
1268
|
+
def URL(self, URL):
|
1269
|
+
self._URL = URL
|
1075
1270
|
|
1076
|
-
@RevisedPrompt.setter
|
1077
|
-
def RevisedPrompt(self, RevisedPrompt):
|
1078
|
-
self._RevisedPrompt = RevisedPrompt
|
1079
1271
|
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1272
|
+
def _deserialize(self, params):
|
1273
|
+
self._Name = params.get("Name")
|
1274
|
+
self._URL = params.get("URL")
|
1275
|
+
memeber_set = set(params.keys())
|
1276
|
+
for name, value in vars(self).items():
|
1277
|
+
property_name = name[1:]
|
1278
|
+
if property_name in memeber_set:
|
1279
|
+
memeber_set.remove(property_name)
|
1280
|
+
if len(memeber_set) > 0:
|
1281
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1282
|
+
|
1283
|
+
|
1284
|
+
|
1285
|
+
class FilesUploadsResponse(AbstractModel):
|
1286
|
+
"""FilesUploads返回参数结构体
|
1287
|
+
|
1288
|
+
"""
|
1289
|
+
|
1290
|
+
def __init__(self):
|
1291
|
+
r"""
|
1292
|
+
:param _ID: 文件标识符,可在各个API中引用。
|
1293
|
+
:type ID: str
|
1294
|
+
:param _Object: 对象类型,始终为 file。
|
1295
|
+
:type Object: str
|
1296
|
+
:param _Bytes: 文件大小,单位为字节。
|
1297
|
+
:type Bytes: int
|
1298
|
+
:param _CreatedAt: 文件创建时的 Unix 时间戳(秒)。
|
1299
|
+
:type CreatedAt: int
|
1300
|
+
:param _Filename: 文件名。
|
1301
|
+
:type Filename: str
|
1302
|
+
:param _Purpose: 上传文件的用途。
|
1303
|
+
:type Purpose: str
|
1304
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
1305
|
+
:type RequestId: str
|
1306
|
+
"""
|
1307
|
+
self._ID = None
|
1308
|
+
self._Object = None
|
1309
|
+
self._Bytes = None
|
1310
|
+
self._CreatedAt = None
|
1311
|
+
self._Filename = None
|
1312
|
+
self._Purpose = None
|
1313
|
+
self._RequestId = None
|
1314
|
+
|
1315
|
+
@property
|
1316
|
+
def ID(self):
|
1317
|
+
return self._ID
|
1318
|
+
|
1319
|
+
@ID.setter
|
1320
|
+
def ID(self, ID):
|
1321
|
+
self._ID = ID
|
1322
|
+
|
1323
|
+
@property
|
1324
|
+
def Object(self):
|
1325
|
+
return self._Object
|
1326
|
+
|
1327
|
+
@Object.setter
|
1328
|
+
def Object(self, Object):
|
1329
|
+
self._Object = Object
|
1330
|
+
|
1331
|
+
@property
|
1332
|
+
def Bytes(self):
|
1333
|
+
return self._Bytes
|
1334
|
+
|
1335
|
+
@Bytes.setter
|
1336
|
+
def Bytes(self, Bytes):
|
1337
|
+
self._Bytes = Bytes
|
1338
|
+
|
1339
|
+
@property
|
1340
|
+
def CreatedAt(self):
|
1341
|
+
return self._CreatedAt
|
1342
|
+
|
1343
|
+
@CreatedAt.setter
|
1344
|
+
def CreatedAt(self, CreatedAt):
|
1345
|
+
self._CreatedAt = CreatedAt
|
1346
|
+
|
1347
|
+
@property
|
1348
|
+
def Filename(self):
|
1349
|
+
return self._Filename
|
1350
|
+
|
1351
|
+
@Filename.setter
|
1352
|
+
def Filename(self, Filename):
|
1353
|
+
self._Filename = Filename
|
1354
|
+
|
1355
|
+
@property
|
1356
|
+
def Purpose(self):
|
1357
|
+
return self._Purpose
|
1358
|
+
|
1359
|
+
@Purpose.setter
|
1360
|
+
def Purpose(self, Purpose):
|
1361
|
+
self._Purpose = Purpose
|
1362
|
+
|
1363
|
+
@property
|
1364
|
+
def RequestId(self):
|
1365
|
+
return self._RequestId
|
1366
|
+
|
1367
|
+
@RequestId.setter
|
1368
|
+
def RequestId(self, RequestId):
|
1369
|
+
self._RequestId = RequestId
|
1370
|
+
|
1371
|
+
|
1372
|
+
def _deserialize(self, params):
|
1373
|
+
self._ID = params.get("ID")
|
1374
|
+
self._Object = params.get("Object")
|
1375
|
+
self._Bytes = params.get("Bytes")
|
1376
|
+
self._CreatedAt = params.get("CreatedAt")
|
1377
|
+
self._Filename = params.get("Filename")
|
1378
|
+
self._Purpose = params.get("Purpose")
|
1379
|
+
self._RequestId = params.get("RequestId")
|
1380
|
+
|
1381
|
+
|
1382
|
+
class GetEmbeddingRequest(AbstractModel):
|
1383
|
+
"""GetEmbedding请求参数结构体
|
1384
|
+
|
1385
|
+
"""
|
1386
|
+
|
1387
|
+
def __init__(self):
|
1388
|
+
r"""
|
1389
|
+
:param _Input: 输入文本。总长度不超过 1024 个 Token,超过则会截断最后面的内容。
|
1390
|
+
:type Input: str
|
1391
|
+
"""
|
1392
|
+
self._Input = None
|
1393
|
+
|
1394
|
+
@property
|
1395
|
+
def Input(self):
|
1396
|
+
return self._Input
|
1397
|
+
|
1398
|
+
@Input.setter
|
1399
|
+
def Input(self, Input):
|
1400
|
+
self._Input = Input
|
1401
|
+
|
1402
|
+
|
1403
|
+
def _deserialize(self, params):
|
1404
|
+
self._Input = params.get("Input")
|
1405
|
+
memeber_set = set(params.keys())
|
1406
|
+
for name, value in vars(self).items():
|
1407
|
+
property_name = name[1:]
|
1408
|
+
if property_name in memeber_set:
|
1409
|
+
memeber_set.remove(property_name)
|
1410
|
+
if len(memeber_set) > 0:
|
1411
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1412
|
+
|
1413
|
+
|
1414
|
+
|
1415
|
+
class GetEmbeddingResponse(AbstractModel):
|
1416
|
+
"""GetEmbedding返回参数结构体
|
1417
|
+
|
1418
|
+
"""
|
1419
|
+
|
1420
|
+
def __init__(self):
|
1421
|
+
r"""
|
1422
|
+
:param _Data: 返回的 Embedding 信息。当前不支持批量,所以数组元素数目为 1。
|
1423
|
+
:type Data: list of EmbeddingData
|
1424
|
+
:param _Usage: Token 使用计数,按照总 Token 数量收费。
|
1425
|
+
:type Usage: :class:`tencentcloud.hunyuan.v20230901.models.EmbeddingUsage`
|
1426
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1427
|
+
:type RequestId: str
|
1428
|
+
"""
|
1429
|
+
self._Data = None
|
1430
|
+
self._Usage = None
|
1431
|
+
self._RequestId = None
|
1432
|
+
|
1433
|
+
@property
|
1434
|
+
def Data(self):
|
1435
|
+
return self._Data
|
1436
|
+
|
1437
|
+
@Data.setter
|
1438
|
+
def Data(self, Data):
|
1439
|
+
self._Data = Data
|
1440
|
+
|
1441
|
+
@property
|
1442
|
+
def Usage(self):
|
1443
|
+
return self._Usage
|
1444
|
+
|
1445
|
+
@Usage.setter
|
1446
|
+
def Usage(self, Usage):
|
1447
|
+
self._Usage = Usage
|
1448
|
+
|
1449
|
+
@property
|
1450
|
+
def RequestId(self):
|
1451
|
+
return self._RequestId
|
1452
|
+
|
1453
|
+
@RequestId.setter
|
1454
|
+
def RequestId(self, RequestId):
|
1455
|
+
self._RequestId = RequestId
|
1456
|
+
|
1457
|
+
|
1458
|
+
def _deserialize(self, params):
|
1459
|
+
if params.get("Data") is not None:
|
1460
|
+
self._Data = []
|
1461
|
+
for item in params.get("Data"):
|
1462
|
+
obj = EmbeddingData()
|
1463
|
+
obj._deserialize(item)
|
1464
|
+
self._Data.append(obj)
|
1465
|
+
if params.get("Usage") is not None:
|
1466
|
+
self._Usage = EmbeddingUsage()
|
1467
|
+
self._Usage._deserialize(params.get("Usage"))
|
1468
|
+
self._RequestId = params.get("RequestId")
|
1469
|
+
|
1470
|
+
|
1471
|
+
class GetThreadMessageListRequest(AbstractModel):
|
1472
|
+
"""GetThreadMessageList请求参数结构体
|
1473
|
+
|
1474
|
+
"""
|
1475
|
+
|
1476
|
+
def __init__(self):
|
1477
|
+
r"""
|
1478
|
+
:param _ThreadID: 会话 ID
|
1479
|
+
:type ThreadID: str
|
1480
|
+
:param _Limit: 返回的消息条数,1 - 100 条
|
1481
|
+
:type Limit: int
|
1482
|
+
:param _Order: 排序方式,按创建时间升序(asc)或降序(desc),默认为 desc
|
1483
|
+
:type Order: str
|
1484
|
+
"""
|
1485
|
+
self._ThreadID = None
|
1486
|
+
self._Limit = None
|
1487
|
+
self._Order = None
|
1488
|
+
|
1489
|
+
@property
|
1490
|
+
def ThreadID(self):
|
1491
|
+
return self._ThreadID
|
1492
|
+
|
1493
|
+
@ThreadID.setter
|
1494
|
+
def ThreadID(self, ThreadID):
|
1495
|
+
self._ThreadID = ThreadID
|
1496
|
+
|
1497
|
+
@property
|
1498
|
+
def Limit(self):
|
1499
|
+
return self._Limit
|
1500
|
+
|
1501
|
+
@Limit.setter
|
1502
|
+
def Limit(self, Limit):
|
1503
|
+
self._Limit = Limit
|
1504
|
+
|
1505
|
+
@property
|
1506
|
+
def Order(self):
|
1507
|
+
return self._Order
|
1508
|
+
|
1509
|
+
@Order.setter
|
1510
|
+
def Order(self, Order):
|
1511
|
+
self._Order = Order
|
1512
|
+
|
1513
|
+
|
1514
|
+
def _deserialize(self, params):
|
1515
|
+
self._ThreadID = params.get("ThreadID")
|
1516
|
+
self._Limit = params.get("Limit")
|
1517
|
+
self._Order = params.get("Order")
|
1518
|
+
memeber_set = set(params.keys())
|
1519
|
+
for name, value in vars(self).items():
|
1520
|
+
property_name = name[1:]
|
1521
|
+
if property_name in memeber_set:
|
1522
|
+
memeber_set.remove(property_name)
|
1523
|
+
if len(memeber_set) > 0:
|
1524
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1525
|
+
|
1526
|
+
|
1527
|
+
|
1528
|
+
class GetThreadMessageListResponse(AbstractModel):
|
1529
|
+
"""GetThreadMessageList返回参数结构体
|
1530
|
+
|
1531
|
+
"""
|
1532
|
+
|
1533
|
+
def __init__(self):
|
1534
|
+
r"""
|
1535
|
+
:param _Data: 消息列表
|
1536
|
+
:type Data: list of ThreadMessage
|
1537
|
+
:param _FirstID: 第一条消息 ID
|
1538
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1539
|
+
:type FirstID: str
|
1540
|
+
:param _LastID: 最后一条消息 ID
|
1541
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1542
|
+
:type LastID: int
|
1543
|
+
:param _HasMore: 是否还有更多消息
|
1544
|
+
:type HasMore: bool
|
1545
|
+
:param _Object: 对象类型
|
1546
|
+
:type Object: str
|
1547
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
1548
|
+
:type RequestId: str
|
1549
|
+
"""
|
1550
|
+
self._Data = None
|
1551
|
+
self._FirstID = None
|
1552
|
+
self._LastID = None
|
1553
|
+
self._HasMore = None
|
1554
|
+
self._Object = None
|
1555
|
+
self._RequestId = None
|
1556
|
+
|
1557
|
+
@property
|
1558
|
+
def Data(self):
|
1559
|
+
return self._Data
|
1560
|
+
|
1561
|
+
@Data.setter
|
1562
|
+
def Data(self, Data):
|
1563
|
+
self._Data = Data
|
1564
|
+
|
1565
|
+
@property
|
1566
|
+
def FirstID(self):
|
1567
|
+
return self._FirstID
|
1568
|
+
|
1569
|
+
@FirstID.setter
|
1570
|
+
def FirstID(self, FirstID):
|
1571
|
+
self._FirstID = FirstID
|
1572
|
+
|
1573
|
+
@property
|
1574
|
+
def LastID(self):
|
1575
|
+
return self._LastID
|
1576
|
+
|
1577
|
+
@LastID.setter
|
1578
|
+
def LastID(self, LastID):
|
1579
|
+
self._LastID = LastID
|
1580
|
+
|
1581
|
+
@property
|
1582
|
+
def HasMore(self):
|
1583
|
+
return self._HasMore
|
1584
|
+
|
1585
|
+
@HasMore.setter
|
1586
|
+
def HasMore(self, HasMore):
|
1587
|
+
self._HasMore = HasMore
|
1588
|
+
|
1589
|
+
@property
|
1590
|
+
def Object(self):
|
1591
|
+
return self._Object
|
1592
|
+
|
1593
|
+
@Object.setter
|
1594
|
+
def Object(self, Object):
|
1595
|
+
self._Object = Object
|
1596
|
+
|
1597
|
+
@property
|
1598
|
+
def RequestId(self):
|
1599
|
+
return self._RequestId
|
1600
|
+
|
1601
|
+
@RequestId.setter
|
1602
|
+
def RequestId(self, RequestId):
|
1603
|
+
self._RequestId = RequestId
|
1604
|
+
|
1605
|
+
|
1606
|
+
def _deserialize(self, params):
|
1607
|
+
if params.get("Data") is not None:
|
1608
|
+
self._Data = []
|
1609
|
+
for item in params.get("Data"):
|
1610
|
+
obj = ThreadMessage()
|
1611
|
+
obj._deserialize(item)
|
1612
|
+
self._Data.append(obj)
|
1613
|
+
self._FirstID = params.get("FirstID")
|
1614
|
+
self._LastID = params.get("LastID")
|
1615
|
+
self._HasMore = params.get("HasMore")
|
1616
|
+
self._Object = params.get("Object")
|
1617
|
+
self._RequestId = params.get("RequestId")
|
1618
|
+
|
1619
|
+
|
1620
|
+
class GetThreadMessageRequest(AbstractModel):
|
1621
|
+
"""GetThreadMessage请求参数结构体
|
1622
|
+
|
1623
|
+
"""
|
1624
|
+
|
1625
|
+
def __init__(self):
|
1626
|
+
r"""
|
1627
|
+
:param _ThreadID: 会话 ID
|
1628
|
+
:type ThreadID: str
|
1629
|
+
:param _MessageID: 消息 ID
|
1630
|
+
:type MessageID: str
|
1631
|
+
"""
|
1632
|
+
self._ThreadID = None
|
1633
|
+
self._MessageID = None
|
1634
|
+
|
1635
|
+
@property
|
1636
|
+
def ThreadID(self):
|
1637
|
+
return self._ThreadID
|
1638
|
+
|
1639
|
+
@ThreadID.setter
|
1640
|
+
def ThreadID(self, ThreadID):
|
1641
|
+
self._ThreadID = ThreadID
|
1642
|
+
|
1643
|
+
@property
|
1644
|
+
def MessageID(self):
|
1645
|
+
return self._MessageID
|
1646
|
+
|
1647
|
+
@MessageID.setter
|
1648
|
+
def MessageID(self, MessageID):
|
1649
|
+
self._MessageID = MessageID
|
1650
|
+
|
1651
|
+
|
1652
|
+
def _deserialize(self, params):
|
1653
|
+
self._ThreadID = params.get("ThreadID")
|
1654
|
+
self._MessageID = params.get("MessageID")
|
1655
|
+
memeber_set = set(params.keys())
|
1656
|
+
for name, value in vars(self).items():
|
1657
|
+
property_name = name[1:]
|
1658
|
+
if property_name in memeber_set:
|
1659
|
+
memeber_set.remove(property_name)
|
1660
|
+
if len(memeber_set) > 0:
|
1661
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1662
|
+
|
1663
|
+
|
1664
|
+
|
1665
|
+
class GetThreadMessageResponse(AbstractModel):
|
1666
|
+
"""GetThreadMessage返回参数结构体
|
1667
|
+
|
1668
|
+
"""
|
1669
|
+
|
1670
|
+
def __init__(self):
|
1671
|
+
r"""
|
1672
|
+
:param _ID: 消息 ID
|
1673
|
+
:type ID: str
|
1674
|
+
:param _Object: 对象类型
|
1675
|
+
:type Object: str
|
1676
|
+
:param _CreatedAt: 创建时间
|
1677
|
+
:type CreatedAt: int
|
1678
|
+
:param _ThreadID: 会话 ID
|
1679
|
+
:type ThreadID: str
|
1680
|
+
:param _Status: 状态,处理中 in_progress,已完成 completed,未完成 incomplete。
|
1681
|
+
:type Status: str
|
1682
|
+
:param _InCompleteDetails: 未完成原因
|
1683
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1684
|
+
:type InCompleteDetails: :class:`tencentcloud.hunyuan.v20230901.models.ThreadMessageInCompleteDetailsObject`
|
1685
|
+
:param _CompletedAt: 完成时间
|
1686
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1687
|
+
:type CompletedAt: int
|
1688
|
+
:param _InCompleteAt: 未完成时间
|
1689
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1690
|
+
:type InCompleteAt: int
|
1691
|
+
:param _Role: 角色
|
1692
|
+
:type Role: str
|
1693
|
+
:param _Content: 内容
|
1694
|
+
:type Content: str
|
1695
|
+
:param _AssistantID: 助手 ID
|
1696
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1697
|
+
:type AssistantID: str
|
1698
|
+
:param _RunID: 运行 ID
|
1699
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1700
|
+
:type RunID: str
|
1701
|
+
:param _Attachments: 附件
|
1702
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1703
|
+
:type Attachments: list of ThreadMessageAttachmentObject
|
1704
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
1705
|
+
:type RequestId: str
|
1706
|
+
"""
|
1707
|
+
self._ID = None
|
1708
|
+
self._Object = None
|
1709
|
+
self._CreatedAt = None
|
1710
|
+
self._ThreadID = None
|
1711
|
+
self._Status = None
|
1712
|
+
self._InCompleteDetails = None
|
1713
|
+
self._CompletedAt = None
|
1714
|
+
self._InCompleteAt = None
|
1715
|
+
self._Role = None
|
1716
|
+
self._Content = None
|
1717
|
+
self._AssistantID = None
|
1718
|
+
self._RunID = None
|
1719
|
+
self._Attachments = None
|
1720
|
+
self._RequestId = None
|
1721
|
+
|
1722
|
+
@property
|
1723
|
+
def ID(self):
|
1724
|
+
return self._ID
|
1725
|
+
|
1726
|
+
@ID.setter
|
1727
|
+
def ID(self, ID):
|
1728
|
+
self._ID = ID
|
1729
|
+
|
1730
|
+
@property
|
1731
|
+
def Object(self):
|
1732
|
+
return self._Object
|
1733
|
+
|
1734
|
+
@Object.setter
|
1735
|
+
def Object(self, Object):
|
1736
|
+
self._Object = Object
|
1737
|
+
|
1738
|
+
@property
|
1739
|
+
def CreatedAt(self):
|
1740
|
+
return self._CreatedAt
|
1741
|
+
|
1742
|
+
@CreatedAt.setter
|
1743
|
+
def CreatedAt(self, CreatedAt):
|
1744
|
+
self._CreatedAt = CreatedAt
|
1745
|
+
|
1746
|
+
@property
|
1747
|
+
def ThreadID(self):
|
1748
|
+
return self._ThreadID
|
1749
|
+
|
1750
|
+
@ThreadID.setter
|
1751
|
+
def ThreadID(self, ThreadID):
|
1752
|
+
self._ThreadID = ThreadID
|
1753
|
+
|
1754
|
+
@property
|
1755
|
+
def Status(self):
|
1756
|
+
return self._Status
|
1757
|
+
|
1758
|
+
@Status.setter
|
1759
|
+
def Status(self, Status):
|
1760
|
+
self._Status = Status
|
1761
|
+
|
1762
|
+
@property
|
1763
|
+
def InCompleteDetails(self):
|
1764
|
+
return self._InCompleteDetails
|
1765
|
+
|
1766
|
+
@InCompleteDetails.setter
|
1767
|
+
def InCompleteDetails(self, InCompleteDetails):
|
1768
|
+
self._InCompleteDetails = InCompleteDetails
|
1769
|
+
|
1770
|
+
@property
|
1771
|
+
def CompletedAt(self):
|
1772
|
+
return self._CompletedAt
|
1773
|
+
|
1774
|
+
@CompletedAt.setter
|
1775
|
+
def CompletedAt(self, CompletedAt):
|
1776
|
+
self._CompletedAt = CompletedAt
|
1777
|
+
|
1778
|
+
@property
|
1779
|
+
def InCompleteAt(self):
|
1780
|
+
return self._InCompleteAt
|
1781
|
+
|
1782
|
+
@InCompleteAt.setter
|
1783
|
+
def InCompleteAt(self, InCompleteAt):
|
1784
|
+
self._InCompleteAt = InCompleteAt
|
1785
|
+
|
1786
|
+
@property
|
1787
|
+
def Role(self):
|
1788
|
+
return self._Role
|
1789
|
+
|
1790
|
+
@Role.setter
|
1791
|
+
def Role(self, Role):
|
1792
|
+
self._Role = Role
|
1793
|
+
|
1794
|
+
@property
|
1795
|
+
def Content(self):
|
1796
|
+
return self._Content
|
1797
|
+
|
1798
|
+
@Content.setter
|
1799
|
+
def Content(self, Content):
|
1800
|
+
self._Content = Content
|
1801
|
+
|
1802
|
+
@property
|
1803
|
+
def AssistantID(self):
|
1804
|
+
return self._AssistantID
|
1805
|
+
|
1806
|
+
@AssistantID.setter
|
1807
|
+
def AssistantID(self, AssistantID):
|
1808
|
+
self._AssistantID = AssistantID
|
1809
|
+
|
1810
|
+
@property
|
1811
|
+
def RunID(self):
|
1812
|
+
return self._RunID
|
1813
|
+
|
1814
|
+
@RunID.setter
|
1815
|
+
def RunID(self, RunID):
|
1816
|
+
self._RunID = RunID
|
1817
|
+
|
1818
|
+
@property
|
1819
|
+
def Attachments(self):
|
1820
|
+
return self._Attachments
|
1821
|
+
|
1822
|
+
@Attachments.setter
|
1823
|
+
def Attachments(self, Attachments):
|
1824
|
+
self._Attachments = Attachments
|
1825
|
+
|
1826
|
+
@property
|
1827
|
+
def RequestId(self):
|
1828
|
+
return self._RequestId
|
1829
|
+
|
1830
|
+
@RequestId.setter
|
1831
|
+
def RequestId(self, RequestId):
|
1832
|
+
self._RequestId = RequestId
|
1833
|
+
|
1834
|
+
|
1835
|
+
def _deserialize(self, params):
|
1836
|
+
self._ID = params.get("ID")
|
1837
|
+
self._Object = params.get("Object")
|
1838
|
+
self._CreatedAt = params.get("CreatedAt")
|
1839
|
+
self._ThreadID = params.get("ThreadID")
|
1840
|
+
self._Status = params.get("Status")
|
1841
|
+
if params.get("InCompleteDetails") is not None:
|
1842
|
+
self._InCompleteDetails = ThreadMessageInCompleteDetailsObject()
|
1843
|
+
self._InCompleteDetails._deserialize(params.get("InCompleteDetails"))
|
1844
|
+
self._CompletedAt = params.get("CompletedAt")
|
1845
|
+
self._InCompleteAt = params.get("InCompleteAt")
|
1846
|
+
self._Role = params.get("Role")
|
1847
|
+
self._Content = params.get("Content")
|
1848
|
+
self._AssistantID = params.get("AssistantID")
|
1849
|
+
self._RunID = params.get("RunID")
|
1850
|
+
if params.get("Attachments") is not None:
|
1851
|
+
self._Attachments = []
|
1852
|
+
for item in params.get("Attachments"):
|
1853
|
+
obj = ThreadMessageAttachmentObject()
|
1854
|
+
obj._deserialize(item)
|
1855
|
+
self._Attachments.append(obj)
|
1856
|
+
self._RequestId = params.get("RequestId")
|
1857
|
+
|
1858
|
+
|
1859
|
+
class GetThreadRequest(AbstractModel):
|
1860
|
+
"""GetThread请求参数结构体
|
1861
|
+
|
1862
|
+
"""
|
1863
|
+
|
1864
|
+
def __init__(self):
|
1865
|
+
r"""
|
1866
|
+
:param _ThreadID: 会话 ID
|
1867
|
+
:type ThreadID: str
|
1868
|
+
"""
|
1869
|
+
self._ThreadID = None
|
1870
|
+
|
1871
|
+
@property
|
1872
|
+
def ThreadID(self):
|
1873
|
+
return self._ThreadID
|
1874
|
+
|
1875
|
+
@ThreadID.setter
|
1876
|
+
def ThreadID(self, ThreadID):
|
1877
|
+
self._ThreadID = ThreadID
|
1878
|
+
|
1879
|
+
|
1880
|
+
def _deserialize(self, params):
|
1881
|
+
self._ThreadID = params.get("ThreadID")
|
1882
|
+
memeber_set = set(params.keys())
|
1883
|
+
for name, value in vars(self).items():
|
1884
|
+
property_name = name[1:]
|
1885
|
+
if property_name in memeber_set:
|
1886
|
+
memeber_set.remove(property_name)
|
1887
|
+
if len(memeber_set) > 0:
|
1888
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1889
|
+
|
1890
|
+
|
1891
|
+
|
1892
|
+
class GetThreadResponse(AbstractModel):
|
1893
|
+
"""GetThread返回参数结构体
|
1894
|
+
|
1895
|
+
"""
|
1896
|
+
|
1897
|
+
def __init__(self):
|
1898
|
+
r"""
|
1899
|
+
:param _ID: 会话 ID
|
1900
|
+
:type ID: str
|
1901
|
+
:param _Object: 对象类型
|
1902
|
+
:type Object: str
|
1903
|
+
:param _CreatedAt: 创建时间,Unix 时间戳,单位为秒。
|
1904
|
+
:type CreatedAt: int
|
1905
|
+
:param _ToolResources: 提供给工具的资源列表
|
1906
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1907
|
+
:type ToolResources: :class:`tencentcloud.hunyuan.v20230901.models.ThreadToolResources`
|
1908
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
1909
|
+
:type RequestId: str
|
1910
|
+
"""
|
1911
|
+
self._ID = None
|
1912
|
+
self._Object = None
|
1913
|
+
self._CreatedAt = None
|
1914
|
+
self._ToolResources = None
|
1915
|
+
self._RequestId = None
|
1916
|
+
|
1917
|
+
@property
|
1918
|
+
def ID(self):
|
1919
|
+
return self._ID
|
1920
|
+
|
1921
|
+
@ID.setter
|
1922
|
+
def ID(self, ID):
|
1923
|
+
self._ID = ID
|
1924
|
+
|
1925
|
+
@property
|
1926
|
+
def Object(self):
|
1927
|
+
return self._Object
|
1928
|
+
|
1929
|
+
@Object.setter
|
1930
|
+
def Object(self, Object):
|
1931
|
+
self._Object = Object
|
1932
|
+
|
1933
|
+
@property
|
1934
|
+
def CreatedAt(self):
|
1935
|
+
return self._CreatedAt
|
1936
|
+
|
1937
|
+
@CreatedAt.setter
|
1938
|
+
def CreatedAt(self, CreatedAt):
|
1939
|
+
self._CreatedAt = CreatedAt
|
1940
|
+
|
1941
|
+
@property
|
1942
|
+
def ToolResources(self):
|
1943
|
+
return self._ToolResources
|
1944
|
+
|
1945
|
+
@ToolResources.setter
|
1946
|
+
def ToolResources(self, ToolResources):
|
1947
|
+
self._ToolResources = ToolResources
|
1948
|
+
|
1949
|
+
@property
|
1950
|
+
def RequestId(self):
|
1951
|
+
return self._RequestId
|
1952
|
+
|
1953
|
+
@RequestId.setter
|
1954
|
+
def RequestId(self, RequestId):
|
1955
|
+
self._RequestId = RequestId
|
1956
|
+
|
1957
|
+
|
1958
|
+
def _deserialize(self, params):
|
1959
|
+
self._ID = params.get("ID")
|
1960
|
+
self._Object = params.get("Object")
|
1961
|
+
self._CreatedAt = params.get("CreatedAt")
|
1962
|
+
if params.get("ToolResources") is not None:
|
1963
|
+
self._ToolResources = ThreadToolResources()
|
1964
|
+
self._ToolResources._deserialize(params.get("ToolResources"))
|
1965
|
+
self._RequestId = params.get("RequestId")
|
1966
|
+
|
1967
|
+
|
1968
|
+
class GetTokenCountRequest(AbstractModel):
|
1969
|
+
"""GetTokenCount请求参数结构体
|
1970
|
+
|
1971
|
+
"""
|
1972
|
+
|
1973
|
+
def __init__(self):
|
1974
|
+
r"""
|
1975
|
+
:param _Prompt: 输入文本
|
1976
|
+
:type Prompt: str
|
1977
|
+
"""
|
1978
|
+
self._Prompt = None
|
1979
|
+
|
1980
|
+
@property
|
1981
|
+
def Prompt(self):
|
1982
|
+
return self._Prompt
|
1983
|
+
|
1984
|
+
@Prompt.setter
|
1985
|
+
def Prompt(self, Prompt):
|
1986
|
+
self._Prompt = Prompt
|
1987
|
+
|
1988
|
+
|
1989
|
+
def _deserialize(self, params):
|
1990
|
+
self._Prompt = params.get("Prompt")
|
1991
|
+
memeber_set = set(params.keys())
|
1992
|
+
for name, value in vars(self).items():
|
1993
|
+
property_name = name[1:]
|
1994
|
+
if property_name in memeber_set:
|
1995
|
+
memeber_set.remove(property_name)
|
1996
|
+
if len(memeber_set) > 0:
|
1997
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1998
|
+
|
1999
|
+
|
2000
|
+
|
2001
|
+
class GetTokenCountResponse(AbstractModel):
|
2002
|
+
"""GetTokenCount返回参数结构体
|
2003
|
+
|
2004
|
+
"""
|
2005
|
+
|
2006
|
+
def __init__(self):
|
2007
|
+
r"""
|
2008
|
+
:param _TokenCount: token计数
|
2009
|
+
:type TokenCount: int
|
2010
|
+
:param _CharacterCount: 字符计数
|
2011
|
+
:type CharacterCount: int
|
2012
|
+
:param _Tokens: 切分后的列表
|
2013
|
+
:type Tokens: list of str
|
2014
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2015
|
+
:type RequestId: str
|
2016
|
+
"""
|
2017
|
+
self._TokenCount = None
|
2018
|
+
self._CharacterCount = None
|
2019
|
+
self._Tokens = None
|
2020
|
+
self._RequestId = None
|
2021
|
+
|
2022
|
+
@property
|
2023
|
+
def TokenCount(self):
|
2024
|
+
return self._TokenCount
|
2025
|
+
|
2026
|
+
@TokenCount.setter
|
2027
|
+
def TokenCount(self, TokenCount):
|
2028
|
+
self._TokenCount = TokenCount
|
2029
|
+
|
2030
|
+
@property
|
2031
|
+
def CharacterCount(self):
|
2032
|
+
return self._CharacterCount
|
2033
|
+
|
2034
|
+
@CharacterCount.setter
|
2035
|
+
def CharacterCount(self, CharacterCount):
|
2036
|
+
self._CharacterCount = CharacterCount
|
2037
|
+
|
2038
|
+
@property
|
2039
|
+
def Tokens(self):
|
2040
|
+
return self._Tokens
|
2041
|
+
|
2042
|
+
@Tokens.setter
|
2043
|
+
def Tokens(self, Tokens):
|
2044
|
+
self._Tokens = Tokens
|
2045
|
+
|
2046
|
+
@property
|
2047
|
+
def RequestId(self):
|
2048
|
+
return self._RequestId
|
2049
|
+
|
2050
|
+
@RequestId.setter
|
2051
|
+
def RequestId(self, RequestId):
|
2052
|
+
self._RequestId = RequestId
|
2053
|
+
|
2054
|
+
|
2055
|
+
def _deserialize(self, params):
|
2056
|
+
self._TokenCount = params.get("TokenCount")
|
2057
|
+
self._CharacterCount = params.get("CharacterCount")
|
2058
|
+
self._Tokens = params.get("Tokens")
|
2059
|
+
self._RequestId = params.get("RequestId")
|
2060
|
+
|
2061
|
+
|
2062
|
+
class History(AbstractModel):
|
2063
|
+
"""混元生图多轮对话历史记录。
|
2064
|
+
|
2065
|
+
"""
|
2066
|
+
|
2067
|
+
def __init__(self):
|
2068
|
+
r"""
|
2069
|
+
:param _ChatId: 对话的 ID,用于唯一标识一轮对话
|
2070
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2071
|
+
:type ChatId: str
|
2072
|
+
:param _Prompt: 原始输入的 Prompt 文本
|
2073
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2074
|
+
:type Prompt: str
|
2075
|
+
:param _RevisedPrompt: 扩写后的 Prompt 文本
|
2076
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2077
|
+
:type RevisedPrompt: str
|
2078
|
+
:param _Seed: 生成图的随机种子
|
2079
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2080
|
+
:type Seed: int
|
2081
|
+
"""
|
2082
|
+
self._ChatId = None
|
2083
|
+
self._Prompt = None
|
2084
|
+
self._RevisedPrompt = None
|
2085
|
+
self._Seed = None
|
2086
|
+
|
2087
|
+
@property
|
2088
|
+
def ChatId(self):
|
2089
|
+
return self._ChatId
|
2090
|
+
|
2091
|
+
@ChatId.setter
|
2092
|
+
def ChatId(self, ChatId):
|
2093
|
+
self._ChatId = ChatId
|
2094
|
+
|
2095
|
+
@property
|
2096
|
+
def Prompt(self):
|
2097
|
+
return self._Prompt
|
2098
|
+
|
2099
|
+
@Prompt.setter
|
2100
|
+
def Prompt(self, Prompt):
|
2101
|
+
self._Prompt = Prompt
|
2102
|
+
|
2103
|
+
@property
|
2104
|
+
def RevisedPrompt(self):
|
2105
|
+
return self._RevisedPrompt
|
2106
|
+
|
2107
|
+
@RevisedPrompt.setter
|
2108
|
+
def RevisedPrompt(self, RevisedPrompt):
|
2109
|
+
self._RevisedPrompt = RevisedPrompt
|
2110
|
+
|
2111
|
+
@property
|
2112
|
+
def Seed(self):
|
2113
|
+
return self._Seed
|
1083
2114
|
|
1084
2115
|
@Seed.setter
|
1085
2116
|
def Seed(self, Seed):
|
@@ -1357,6 +2388,53 @@ class Message(AbstractModel):
|
|
1357
2388
|
|
1358
2389
|
|
1359
2390
|
|
2391
|
+
class Mindmap(AbstractModel):
|
2392
|
+
"""脑图
|
2393
|
+
|
2394
|
+
"""
|
2395
|
+
|
2396
|
+
def __init__(self):
|
2397
|
+
r"""
|
2398
|
+
:param _ThumbUrl: 脑图缩略图链接
|
2399
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2400
|
+
:type ThumbUrl: str
|
2401
|
+
:param _Url: 脑图图片链接
|
2402
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2403
|
+
:type Url: str
|
2404
|
+
"""
|
2405
|
+
self._ThumbUrl = None
|
2406
|
+
self._Url = None
|
2407
|
+
|
2408
|
+
@property
|
2409
|
+
def ThumbUrl(self):
|
2410
|
+
return self._ThumbUrl
|
2411
|
+
|
2412
|
+
@ThumbUrl.setter
|
2413
|
+
def ThumbUrl(self, ThumbUrl):
|
2414
|
+
self._ThumbUrl = ThumbUrl
|
2415
|
+
|
2416
|
+
@property
|
2417
|
+
def Url(self):
|
2418
|
+
return self._Url
|
2419
|
+
|
2420
|
+
@Url.setter
|
2421
|
+
def Url(self, Url):
|
2422
|
+
self._Url = Url
|
2423
|
+
|
2424
|
+
|
2425
|
+
def _deserialize(self, params):
|
2426
|
+
self._ThumbUrl = params.get("ThumbUrl")
|
2427
|
+
self._Url = params.get("Url")
|
2428
|
+
memeber_set = set(params.keys())
|
2429
|
+
for name, value in vars(self).items():
|
2430
|
+
property_name = name[1:]
|
2431
|
+
if property_name in memeber_set:
|
2432
|
+
memeber_set.remove(property_name)
|
2433
|
+
if len(memeber_set) > 0:
|
2434
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2435
|
+
|
2436
|
+
|
2437
|
+
|
1360
2438
|
class Multimedia(AbstractModel):
|
1361
2439
|
"""多媒体详情
|
1362
2440
|
|
@@ -1796,6 +2874,139 @@ class QueryHunyuanImageJobResponse(AbstractModel):
|
|
1796
2874
|
self._RequestId = params.get("RequestId")
|
1797
2875
|
|
1798
2876
|
|
2877
|
+
class RelevantEntity(AbstractModel):
|
2878
|
+
"""相关组织及人物
|
2879
|
+
|
2880
|
+
"""
|
2881
|
+
|
2882
|
+
def __init__(self):
|
2883
|
+
r"""
|
2884
|
+
:param _Name: 相关组织及人物名称
|
2885
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2886
|
+
:type Name: str
|
2887
|
+
:param _Content: 相关组织及人物内容
|
2888
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2889
|
+
:type Content: str
|
2890
|
+
:param _Reference: 相关事件引用文章标号
|
2891
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2892
|
+
:type Reference: list of int
|
2893
|
+
"""
|
2894
|
+
self._Name = None
|
2895
|
+
self._Content = None
|
2896
|
+
self._Reference = None
|
2897
|
+
|
2898
|
+
@property
|
2899
|
+
def Name(self):
|
2900
|
+
return self._Name
|
2901
|
+
|
2902
|
+
@Name.setter
|
2903
|
+
def Name(self, Name):
|
2904
|
+
self._Name = Name
|
2905
|
+
|
2906
|
+
@property
|
2907
|
+
def Content(self):
|
2908
|
+
return self._Content
|
2909
|
+
|
2910
|
+
@Content.setter
|
2911
|
+
def Content(self, Content):
|
2912
|
+
self._Content = Content
|
2913
|
+
|
2914
|
+
@property
|
2915
|
+
def Reference(self):
|
2916
|
+
return self._Reference
|
2917
|
+
|
2918
|
+
@Reference.setter
|
2919
|
+
def Reference(self, Reference):
|
2920
|
+
self._Reference = Reference
|
2921
|
+
|
2922
|
+
|
2923
|
+
def _deserialize(self, params):
|
2924
|
+
self._Name = params.get("Name")
|
2925
|
+
self._Content = params.get("Content")
|
2926
|
+
self._Reference = params.get("Reference")
|
2927
|
+
memeber_set = set(params.keys())
|
2928
|
+
for name, value in vars(self).items():
|
2929
|
+
property_name = name[1:]
|
2930
|
+
if property_name in memeber_set:
|
2931
|
+
memeber_set.remove(property_name)
|
2932
|
+
if len(memeber_set) > 0:
|
2933
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2934
|
+
|
2935
|
+
|
2936
|
+
|
2937
|
+
class RelevantEvent(AbstractModel):
|
2938
|
+
"""相关事件
|
2939
|
+
|
2940
|
+
"""
|
2941
|
+
|
2942
|
+
def __init__(self):
|
2943
|
+
r"""
|
2944
|
+
:param _Title: 相关事件标题
|
2945
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2946
|
+
:type Title: str
|
2947
|
+
:param _Content: 相关事件内容
|
2948
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2949
|
+
:type Content: str
|
2950
|
+
:param _Datetime: 相关事件时间
|
2951
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2952
|
+
:type Datetime: str
|
2953
|
+
:param _Reference: 相关事件引用文章标号
|
2954
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2955
|
+
:type Reference: list of int
|
2956
|
+
"""
|
2957
|
+
self._Title = None
|
2958
|
+
self._Content = None
|
2959
|
+
self._Datetime = None
|
2960
|
+
self._Reference = None
|
2961
|
+
|
2962
|
+
@property
|
2963
|
+
def Title(self):
|
2964
|
+
return self._Title
|
2965
|
+
|
2966
|
+
@Title.setter
|
2967
|
+
def Title(self, Title):
|
2968
|
+
self._Title = Title
|
2969
|
+
|
2970
|
+
@property
|
2971
|
+
def Content(self):
|
2972
|
+
return self._Content
|
2973
|
+
|
2974
|
+
@Content.setter
|
2975
|
+
def Content(self, Content):
|
2976
|
+
self._Content = Content
|
2977
|
+
|
2978
|
+
@property
|
2979
|
+
def Datetime(self):
|
2980
|
+
return self._Datetime
|
2981
|
+
|
2982
|
+
@Datetime.setter
|
2983
|
+
def Datetime(self, Datetime):
|
2984
|
+
self._Datetime = Datetime
|
2985
|
+
|
2986
|
+
@property
|
2987
|
+
def Reference(self):
|
2988
|
+
return self._Reference
|
2989
|
+
|
2990
|
+
@Reference.setter
|
2991
|
+
def Reference(self, Reference):
|
2992
|
+
self._Reference = Reference
|
2993
|
+
|
2994
|
+
|
2995
|
+
def _deserialize(self, params):
|
2996
|
+
self._Title = params.get("Title")
|
2997
|
+
self._Content = params.get("Content")
|
2998
|
+
self._Datetime = params.get("Datetime")
|
2999
|
+
self._Reference = params.get("Reference")
|
3000
|
+
memeber_set = set(params.keys())
|
3001
|
+
for name, value in vars(self).items():
|
3002
|
+
property_name = name[1:]
|
3003
|
+
if property_name in memeber_set:
|
3004
|
+
memeber_set.remove(property_name)
|
3005
|
+
if len(memeber_set) > 0:
|
3006
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3007
|
+
|
3008
|
+
|
3009
|
+
|
1799
3010
|
class Replace(AbstractModel):
|
1800
3011
|
"""多媒体占位符替换信息
|
1801
3012
|
|
@@ -1846,6 +3057,194 @@ class Replace(AbstractModel):
|
|
1846
3057
|
|
1847
3058
|
|
1848
3059
|
|
3060
|
+
class RunThreadRequest(AbstractModel):
|
3061
|
+
"""RunThread请求参数结构体
|
3062
|
+
|
3063
|
+
"""
|
3064
|
+
|
3065
|
+
def __init__(self):
|
3066
|
+
r"""
|
3067
|
+
:param _ThreadID: 会话 ID
|
3068
|
+
:type ThreadID: str
|
3069
|
+
:param _AssistantID: 助手 ID
|
3070
|
+
:type AssistantID: str
|
3071
|
+
:param _Model: 模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro、 hunyuan-code、 hunyuan-role、 hunyuan-functioncall、 hunyuan-vision、 hunyuan-turbo。各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。注意:不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。
|
3072
|
+
:type Model: str
|
3073
|
+
:param _AdditionalMessages: 附加消息
|
3074
|
+
:type AdditionalMessages: list of ThreadAdditionalMessage
|
3075
|
+
:param _Temperature: 说明:1. 影响模型输出多样性,模型已有默认参数,不传值时使用各模型推荐值,不推荐用户修改。2. 取值区间为 [0.0, 2.0]。较高的数值会使输出更加多样化和不可预测,而较低的数值会使其更加集中和确定。
|
3076
|
+
:type Temperature: float
|
3077
|
+
:param _TopP: 说明:1. 影响输出文本的多样性。模型已有默认参数,不传值时使用各模型推荐值,不推荐用户修改。2. 取值区间为 [0.0, 1.0]。取值越大,生成文本的多样性越强。
|
3078
|
+
:type TopP: float
|
3079
|
+
:param _Stream: 是否流式输出,当前只允许 true
|
3080
|
+
:type Stream: bool
|
3081
|
+
:param _MaxPromptTokens: 运行过程中可使用的 token 最大数量。
|
3082
|
+
:type MaxPromptTokens: int
|
3083
|
+
:param _MaxCompletionTokens: 运行过程中可使用的完成 token 的最大数量。
|
3084
|
+
:type MaxCompletionTokens: int
|
3085
|
+
:param _Tools: 可调用的工具列表,仅对 hunyuan-pro、hunyuan-turbo、hunyuan-functioncall 模型生效。
|
3086
|
+
:type Tools: list of Tool
|
3087
|
+
:param _ToolChoice: 工具使用选项,可选值包括 none、auto、custom。说明:1. 仅对 hunyuan-pro、hunyuan-turbo、hunyuan-functioncall 模型生效。2. none:不调用工具;auto:模型自行选择生成回复或调用工具;custom:强制模型调用指定的工具。3. 未设置时,默认值为auto
|
3088
|
+
:type ToolChoice: str
|
3089
|
+
"""
|
3090
|
+
self._ThreadID = None
|
3091
|
+
self._AssistantID = None
|
3092
|
+
self._Model = None
|
3093
|
+
self._AdditionalMessages = None
|
3094
|
+
self._Temperature = None
|
3095
|
+
self._TopP = None
|
3096
|
+
self._Stream = None
|
3097
|
+
self._MaxPromptTokens = None
|
3098
|
+
self._MaxCompletionTokens = None
|
3099
|
+
self._Tools = None
|
3100
|
+
self._ToolChoice = None
|
3101
|
+
|
3102
|
+
@property
|
3103
|
+
def ThreadID(self):
|
3104
|
+
return self._ThreadID
|
3105
|
+
|
3106
|
+
@ThreadID.setter
|
3107
|
+
def ThreadID(self, ThreadID):
|
3108
|
+
self._ThreadID = ThreadID
|
3109
|
+
|
3110
|
+
@property
|
3111
|
+
def AssistantID(self):
|
3112
|
+
return self._AssistantID
|
3113
|
+
|
3114
|
+
@AssistantID.setter
|
3115
|
+
def AssistantID(self, AssistantID):
|
3116
|
+
self._AssistantID = AssistantID
|
3117
|
+
|
3118
|
+
@property
|
3119
|
+
def Model(self):
|
3120
|
+
return self._Model
|
3121
|
+
|
3122
|
+
@Model.setter
|
3123
|
+
def Model(self, Model):
|
3124
|
+
self._Model = Model
|
3125
|
+
|
3126
|
+
@property
|
3127
|
+
def AdditionalMessages(self):
|
3128
|
+
return self._AdditionalMessages
|
3129
|
+
|
3130
|
+
@AdditionalMessages.setter
|
3131
|
+
def AdditionalMessages(self, AdditionalMessages):
|
3132
|
+
self._AdditionalMessages = AdditionalMessages
|
3133
|
+
|
3134
|
+
@property
|
3135
|
+
def Temperature(self):
|
3136
|
+
return self._Temperature
|
3137
|
+
|
3138
|
+
@Temperature.setter
|
3139
|
+
def Temperature(self, Temperature):
|
3140
|
+
self._Temperature = Temperature
|
3141
|
+
|
3142
|
+
@property
|
3143
|
+
def TopP(self):
|
3144
|
+
return self._TopP
|
3145
|
+
|
3146
|
+
@TopP.setter
|
3147
|
+
def TopP(self, TopP):
|
3148
|
+
self._TopP = TopP
|
3149
|
+
|
3150
|
+
@property
|
3151
|
+
def Stream(self):
|
3152
|
+
return self._Stream
|
3153
|
+
|
3154
|
+
@Stream.setter
|
3155
|
+
def Stream(self, Stream):
|
3156
|
+
self._Stream = Stream
|
3157
|
+
|
3158
|
+
@property
|
3159
|
+
def MaxPromptTokens(self):
|
3160
|
+
return self._MaxPromptTokens
|
3161
|
+
|
3162
|
+
@MaxPromptTokens.setter
|
3163
|
+
def MaxPromptTokens(self, MaxPromptTokens):
|
3164
|
+
self._MaxPromptTokens = MaxPromptTokens
|
3165
|
+
|
3166
|
+
@property
|
3167
|
+
def MaxCompletionTokens(self):
|
3168
|
+
return self._MaxCompletionTokens
|
3169
|
+
|
3170
|
+
@MaxCompletionTokens.setter
|
3171
|
+
def MaxCompletionTokens(self, MaxCompletionTokens):
|
3172
|
+
self._MaxCompletionTokens = MaxCompletionTokens
|
3173
|
+
|
3174
|
+
@property
|
3175
|
+
def Tools(self):
|
3176
|
+
return self._Tools
|
3177
|
+
|
3178
|
+
@Tools.setter
|
3179
|
+
def Tools(self, Tools):
|
3180
|
+
self._Tools = Tools
|
3181
|
+
|
3182
|
+
@property
|
3183
|
+
def ToolChoice(self):
|
3184
|
+
return self._ToolChoice
|
3185
|
+
|
3186
|
+
@ToolChoice.setter
|
3187
|
+
def ToolChoice(self, ToolChoice):
|
3188
|
+
self._ToolChoice = ToolChoice
|
3189
|
+
|
3190
|
+
|
3191
|
+
def _deserialize(self, params):
|
3192
|
+
self._ThreadID = params.get("ThreadID")
|
3193
|
+
self._AssistantID = params.get("AssistantID")
|
3194
|
+
self._Model = params.get("Model")
|
3195
|
+
if params.get("AdditionalMessages") is not None:
|
3196
|
+
self._AdditionalMessages = []
|
3197
|
+
for item in params.get("AdditionalMessages"):
|
3198
|
+
obj = ThreadAdditionalMessage()
|
3199
|
+
obj._deserialize(item)
|
3200
|
+
self._AdditionalMessages.append(obj)
|
3201
|
+
self._Temperature = params.get("Temperature")
|
3202
|
+
self._TopP = params.get("TopP")
|
3203
|
+
self._Stream = params.get("Stream")
|
3204
|
+
self._MaxPromptTokens = params.get("MaxPromptTokens")
|
3205
|
+
self._MaxCompletionTokens = params.get("MaxCompletionTokens")
|
3206
|
+
if params.get("Tools") is not None:
|
3207
|
+
self._Tools = []
|
3208
|
+
for item in params.get("Tools"):
|
3209
|
+
obj = Tool()
|
3210
|
+
obj._deserialize(item)
|
3211
|
+
self._Tools.append(obj)
|
3212
|
+
self._ToolChoice = params.get("ToolChoice")
|
3213
|
+
memeber_set = set(params.keys())
|
3214
|
+
for name, value in vars(self).items():
|
3215
|
+
property_name = name[1:]
|
3216
|
+
if property_name in memeber_set:
|
3217
|
+
memeber_set.remove(property_name)
|
3218
|
+
if len(memeber_set) > 0:
|
3219
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3220
|
+
|
3221
|
+
|
3222
|
+
|
3223
|
+
class RunThreadResponse(AbstractModel):
|
3224
|
+
"""RunThread返回参数结构体
|
3225
|
+
|
3226
|
+
"""
|
3227
|
+
|
3228
|
+
def __init__(self):
|
3229
|
+
r"""
|
3230
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
3231
|
+
:type RequestId: str
|
3232
|
+
"""
|
3233
|
+
self._RequestId = None
|
3234
|
+
|
3235
|
+
@property
|
3236
|
+
def RequestId(self):
|
3237
|
+
return self._RequestId
|
3238
|
+
|
3239
|
+
@RequestId.setter
|
3240
|
+
def RequestId(self, RequestId):
|
3241
|
+
self._RequestId = RequestId
|
3242
|
+
|
3243
|
+
|
3244
|
+
def _deserialize(self, params):
|
3245
|
+
self._RequestId = params.get("RequestId")
|
3246
|
+
|
3247
|
+
|
1849
3248
|
class SearchInfo(AbstractModel):
|
1850
3249
|
"""搜索结果信息
|
1851
3250
|
|
@@ -1856,8 +3255,32 @@ class SearchInfo(AbstractModel):
|
|
1856
3255
|
:param _SearchResults: 搜索引文信息
|
1857
3256
|
注意:此字段可能返回 null,表示取不到有效值。
|
1858
3257
|
:type SearchResults: list of SearchResult
|
3258
|
+
:param _Mindmap: 脑图(回复中不一定存在,流式协议中,仅在最后一条流式数据中返回)
|
3259
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3260
|
+
:type Mindmap: :class:`tencentcloud.hunyuan.v20230901.models.Mindmap`
|
3261
|
+
:param _RelevantEvents: 相关事件(回复中不一定存在,流式协议中,仅在最后一条流式数据中返回,深度模式下返回)
|
3262
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3263
|
+
:type RelevantEvents: list of RelevantEvent
|
3264
|
+
:param _RelevantEntities: 相关组织及人物(回复中不一定存在,流式协议中,仅在最后一条流式数据中返回,深度模式下返回)
|
3265
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3266
|
+
:type RelevantEntities: list of RelevantEntity
|
3267
|
+
:param _Timeline: 时间线(回复中不一定存在,流式协议中,仅在最后一条流式数据中返回,深度模式下返回)
|
3268
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3269
|
+
:type Timeline: list of Timeline
|
3270
|
+
:param _SupportDeepSearch: 是否命中搜索深度模式
|
3271
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3272
|
+
:type SupportDeepSearch: bool
|
3273
|
+
:param _Outline: 搜索回复大纲(深度模式下返回)
|
3274
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3275
|
+
:type Outline: list of str
|
1859
3276
|
"""
|
1860
3277
|
self._SearchResults = None
|
3278
|
+
self._Mindmap = None
|
3279
|
+
self._RelevantEvents = None
|
3280
|
+
self._RelevantEntities = None
|
3281
|
+
self._Timeline = None
|
3282
|
+
self._SupportDeepSearch = None
|
3283
|
+
self._Outline = None
|
1861
3284
|
|
1862
3285
|
@property
|
1863
3286
|
def SearchResults(self):
|
@@ -1867,6 +3290,54 @@ class SearchInfo(AbstractModel):
|
|
1867
3290
|
def SearchResults(self, SearchResults):
|
1868
3291
|
self._SearchResults = SearchResults
|
1869
3292
|
|
3293
|
+
@property
|
3294
|
+
def Mindmap(self):
|
3295
|
+
return self._Mindmap
|
3296
|
+
|
3297
|
+
@Mindmap.setter
|
3298
|
+
def Mindmap(self, Mindmap):
|
3299
|
+
self._Mindmap = Mindmap
|
3300
|
+
|
3301
|
+
@property
|
3302
|
+
def RelevantEvents(self):
|
3303
|
+
return self._RelevantEvents
|
3304
|
+
|
3305
|
+
@RelevantEvents.setter
|
3306
|
+
def RelevantEvents(self, RelevantEvents):
|
3307
|
+
self._RelevantEvents = RelevantEvents
|
3308
|
+
|
3309
|
+
@property
|
3310
|
+
def RelevantEntities(self):
|
3311
|
+
return self._RelevantEntities
|
3312
|
+
|
3313
|
+
@RelevantEntities.setter
|
3314
|
+
def RelevantEntities(self, RelevantEntities):
|
3315
|
+
self._RelevantEntities = RelevantEntities
|
3316
|
+
|
3317
|
+
@property
|
3318
|
+
def Timeline(self):
|
3319
|
+
return self._Timeline
|
3320
|
+
|
3321
|
+
@Timeline.setter
|
3322
|
+
def Timeline(self, Timeline):
|
3323
|
+
self._Timeline = Timeline
|
3324
|
+
|
3325
|
+
@property
|
3326
|
+
def SupportDeepSearch(self):
|
3327
|
+
return self._SupportDeepSearch
|
3328
|
+
|
3329
|
+
@SupportDeepSearch.setter
|
3330
|
+
def SupportDeepSearch(self, SupportDeepSearch):
|
3331
|
+
self._SupportDeepSearch = SupportDeepSearch
|
3332
|
+
|
3333
|
+
@property
|
3334
|
+
def Outline(self):
|
3335
|
+
return self._Outline
|
3336
|
+
|
3337
|
+
@Outline.setter
|
3338
|
+
def Outline(self, Outline):
|
3339
|
+
self._Outline = Outline
|
3340
|
+
|
1870
3341
|
|
1871
3342
|
def _deserialize(self, params):
|
1872
3343
|
if params.get("SearchResults") is not None:
|
@@ -1875,6 +3346,29 @@ class SearchInfo(AbstractModel):
|
|
1875
3346
|
obj = SearchResult()
|
1876
3347
|
obj._deserialize(item)
|
1877
3348
|
self._SearchResults.append(obj)
|
3349
|
+
if params.get("Mindmap") is not None:
|
3350
|
+
self._Mindmap = Mindmap()
|
3351
|
+
self._Mindmap._deserialize(params.get("Mindmap"))
|
3352
|
+
if params.get("RelevantEvents") is not None:
|
3353
|
+
self._RelevantEvents = []
|
3354
|
+
for item in params.get("RelevantEvents"):
|
3355
|
+
obj = RelevantEvent()
|
3356
|
+
obj._deserialize(item)
|
3357
|
+
self._RelevantEvents.append(obj)
|
3358
|
+
if params.get("RelevantEntities") is not None:
|
3359
|
+
self._RelevantEntities = []
|
3360
|
+
for item in params.get("RelevantEntities"):
|
3361
|
+
obj = RelevantEntity()
|
3362
|
+
obj._deserialize(item)
|
3363
|
+
self._RelevantEntities.append(obj)
|
3364
|
+
if params.get("Timeline") is not None:
|
3365
|
+
self._Timeline = []
|
3366
|
+
for item in params.get("Timeline"):
|
3367
|
+
obj = Timeline()
|
3368
|
+
obj._deserialize(item)
|
3369
|
+
self._Timeline.append(obj)
|
3370
|
+
self._SupportDeepSearch = params.get("SupportDeepSearch")
|
3371
|
+
self._Outline = params.get("Outline")
|
1878
3372
|
memeber_set = set(params.keys())
|
1879
3373
|
for name, value in vars(self).items():
|
1880
3374
|
property_name = name[1:]
|
@@ -2510,6 +4004,431 @@ class TextToImageLiteResponse(AbstractModel):
|
|
2510
4004
|
self._RequestId = params.get("RequestId")
|
2511
4005
|
|
2512
4006
|
|
4007
|
+
class ThreadAdditionalMessage(AbstractModel):
|
4008
|
+
"""会话额外消息
|
4009
|
+
|
4010
|
+
"""
|
4011
|
+
|
4012
|
+
def __init__(self):
|
4013
|
+
r"""
|
4014
|
+
:param _Role: 角色
|
4015
|
+
:type Role: str
|
4016
|
+
:param _Content: 内容
|
4017
|
+
:type Content: str
|
4018
|
+
:param _Attachments: 附件
|
4019
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4020
|
+
:type Attachments: list of ThreadMessageAttachmentObject
|
4021
|
+
"""
|
4022
|
+
self._Role = None
|
4023
|
+
self._Content = None
|
4024
|
+
self._Attachments = None
|
4025
|
+
|
4026
|
+
@property
|
4027
|
+
def Role(self):
|
4028
|
+
return self._Role
|
4029
|
+
|
4030
|
+
@Role.setter
|
4031
|
+
def Role(self, Role):
|
4032
|
+
self._Role = Role
|
4033
|
+
|
4034
|
+
@property
|
4035
|
+
def Content(self):
|
4036
|
+
return self._Content
|
4037
|
+
|
4038
|
+
@Content.setter
|
4039
|
+
def Content(self, Content):
|
4040
|
+
self._Content = Content
|
4041
|
+
|
4042
|
+
@property
|
4043
|
+
def Attachments(self):
|
4044
|
+
return self._Attachments
|
4045
|
+
|
4046
|
+
@Attachments.setter
|
4047
|
+
def Attachments(self, Attachments):
|
4048
|
+
self._Attachments = Attachments
|
4049
|
+
|
4050
|
+
|
4051
|
+
def _deserialize(self, params):
|
4052
|
+
self._Role = params.get("Role")
|
4053
|
+
self._Content = params.get("Content")
|
4054
|
+
if params.get("Attachments") is not None:
|
4055
|
+
self._Attachments = []
|
4056
|
+
for item in params.get("Attachments"):
|
4057
|
+
obj = ThreadMessageAttachmentObject()
|
4058
|
+
obj._deserialize(item)
|
4059
|
+
self._Attachments.append(obj)
|
4060
|
+
memeber_set = set(params.keys())
|
4061
|
+
for name, value in vars(self).items():
|
4062
|
+
property_name = name[1:]
|
4063
|
+
if property_name in memeber_set:
|
4064
|
+
memeber_set.remove(property_name)
|
4065
|
+
if len(memeber_set) > 0:
|
4066
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4067
|
+
|
4068
|
+
|
4069
|
+
|
4070
|
+
class ThreadMessage(AbstractModel):
|
4071
|
+
"""会话消息
|
4072
|
+
|
4073
|
+
"""
|
4074
|
+
|
4075
|
+
def __init__(self):
|
4076
|
+
r"""
|
4077
|
+
:param _ID: 消息 ID
|
4078
|
+
:type ID: str
|
4079
|
+
:param _Object: 对象类型
|
4080
|
+
:type Object: str
|
4081
|
+
:param _CreatedAt: 创建时间
|
4082
|
+
:type CreatedAt: int
|
4083
|
+
:param _ThreadID: 会话 ID
|
4084
|
+
:type ThreadID: str
|
4085
|
+
:param _Status: 状态,处理中 in_progress,已完成 completed,未完成 incomplete。
|
4086
|
+
:type Status: str
|
4087
|
+
:param _InCompleteDetails: 未完成原因
|
4088
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4089
|
+
:type InCompleteDetails: :class:`tencentcloud.hunyuan.v20230901.models.ThreadMessageInCompleteDetailsObject`
|
4090
|
+
:param _CompletedAt: 完成时间
|
4091
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4092
|
+
:type CompletedAt: int
|
4093
|
+
:param _InCompleteAt: 未完成时间
|
4094
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4095
|
+
:type InCompleteAt: int
|
4096
|
+
:param _Role: 角色
|
4097
|
+
:type Role: str
|
4098
|
+
:param _Content: 内容
|
4099
|
+
:type Content: str
|
4100
|
+
:param _AssistantID: 助手 ID
|
4101
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4102
|
+
:type AssistantID: str
|
4103
|
+
:param _RunID: 运行 ID
|
4104
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4105
|
+
:type RunID: str
|
4106
|
+
:param _Attachments: 附件
|
4107
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4108
|
+
:type Attachments: list of ThreadMessageAttachmentObject
|
4109
|
+
"""
|
4110
|
+
self._ID = None
|
4111
|
+
self._Object = None
|
4112
|
+
self._CreatedAt = None
|
4113
|
+
self._ThreadID = None
|
4114
|
+
self._Status = None
|
4115
|
+
self._InCompleteDetails = None
|
4116
|
+
self._CompletedAt = None
|
4117
|
+
self._InCompleteAt = None
|
4118
|
+
self._Role = None
|
4119
|
+
self._Content = None
|
4120
|
+
self._AssistantID = None
|
4121
|
+
self._RunID = None
|
4122
|
+
self._Attachments = None
|
4123
|
+
|
4124
|
+
@property
|
4125
|
+
def ID(self):
|
4126
|
+
return self._ID
|
4127
|
+
|
4128
|
+
@ID.setter
|
4129
|
+
def ID(self, ID):
|
4130
|
+
self._ID = ID
|
4131
|
+
|
4132
|
+
@property
|
4133
|
+
def Object(self):
|
4134
|
+
return self._Object
|
4135
|
+
|
4136
|
+
@Object.setter
|
4137
|
+
def Object(self, Object):
|
4138
|
+
self._Object = Object
|
4139
|
+
|
4140
|
+
@property
|
4141
|
+
def CreatedAt(self):
|
4142
|
+
return self._CreatedAt
|
4143
|
+
|
4144
|
+
@CreatedAt.setter
|
4145
|
+
def CreatedAt(self, CreatedAt):
|
4146
|
+
self._CreatedAt = CreatedAt
|
4147
|
+
|
4148
|
+
@property
|
4149
|
+
def ThreadID(self):
|
4150
|
+
return self._ThreadID
|
4151
|
+
|
4152
|
+
@ThreadID.setter
|
4153
|
+
def ThreadID(self, ThreadID):
|
4154
|
+
self._ThreadID = ThreadID
|
4155
|
+
|
4156
|
+
@property
|
4157
|
+
def Status(self):
|
4158
|
+
return self._Status
|
4159
|
+
|
4160
|
+
@Status.setter
|
4161
|
+
def Status(self, Status):
|
4162
|
+
self._Status = Status
|
4163
|
+
|
4164
|
+
@property
|
4165
|
+
def InCompleteDetails(self):
|
4166
|
+
return self._InCompleteDetails
|
4167
|
+
|
4168
|
+
@InCompleteDetails.setter
|
4169
|
+
def InCompleteDetails(self, InCompleteDetails):
|
4170
|
+
self._InCompleteDetails = InCompleteDetails
|
4171
|
+
|
4172
|
+
@property
|
4173
|
+
def CompletedAt(self):
|
4174
|
+
return self._CompletedAt
|
4175
|
+
|
4176
|
+
@CompletedAt.setter
|
4177
|
+
def CompletedAt(self, CompletedAt):
|
4178
|
+
self._CompletedAt = CompletedAt
|
4179
|
+
|
4180
|
+
@property
|
4181
|
+
def InCompleteAt(self):
|
4182
|
+
return self._InCompleteAt
|
4183
|
+
|
4184
|
+
@InCompleteAt.setter
|
4185
|
+
def InCompleteAt(self, InCompleteAt):
|
4186
|
+
self._InCompleteAt = InCompleteAt
|
4187
|
+
|
4188
|
+
@property
|
4189
|
+
def Role(self):
|
4190
|
+
return self._Role
|
4191
|
+
|
4192
|
+
@Role.setter
|
4193
|
+
def Role(self, Role):
|
4194
|
+
self._Role = Role
|
4195
|
+
|
4196
|
+
@property
|
4197
|
+
def Content(self):
|
4198
|
+
return self._Content
|
4199
|
+
|
4200
|
+
@Content.setter
|
4201
|
+
def Content(self, Content):
|
4202
|
+
self._Content = Content
|
4203
|
+
|
4204
|
+
@property
|
4205
|
+
def AssistantID(self):
|
4206
|
+
return self._AssistantID
|
4207
|
+
|
4208
|
+
@AssistantID.setter
|
4209
|
+
def AssistantID(self, AssistantID):
|
4210
|
+
self._AssistantID = AssistantID
|
4211
|
+
|
4212
|
+
@property
|
4213
|
+
def RunID(self):
|
4214
|
+
return self._RunID
|
4215
|
+
|
4216
|
+
@RunID.setter
|
4217
|
+
def RunID(self, RunID):
|
4218
|
+
self._RunID = RunID
|
4219
|
+
|
4220
|
+
@property
|
4221
|
+
def Attachments(self):
|
4222
|
+
return self._Attachments
|
4223
|
+
|
4224
|
+
@Attachments.setter
|
4225
|
+
def Attachments(self, Attachments):
|
4226
|
+
self._Attachments = Attachments
|
4227
|
+
|
4228
|
+
|
4229
|
+
def _deserialize(self, params):
|
4230
|
+
self._ID = params.get("ID")
|
4231
|
+
self._Object = params.get("Object")
|
4232
|
+
self._CreatedAt = params.get("CreatedAt")
|
4233
|
+
self._ThreadID = params.get("ThreadID")
|
4234
|
+
self._Status = params.get("Status")
|
4235
|
+
if params.get("InCompleteDetails") is not None:
|
4236
|
+
self._InCompleteDetails = ThreadMessageInCompleteDetailsObject()
|
4237
|
+
self._InCompleteDetails._deserialize(params.get("InCompleteDetails"))
|
4238
|
+
self._CompletedAt = params.get("CompletedAt")
|
4239
|
+
self._InCompleteAt = params.get("InCompleteAt")
|
4240
|
+
self._Role = params.get("Role")
|
4241
|
+
self._Content = params.get("Content")
|
4242
|
+
self._AssistantID = params.get("AssistantID")
|
4243
|
+
self._RunID = params.get("RunID")
|
4244
|
+
if params.get("Attachments") is not None:
|
4245
|
+
self._Attachments = []
|
4246
|
+
for item in params.get("Attachments"):
|
4247
|
+
obj = ThreadMessageAttachmentObject()
|
4248
|
+
obj._deserialize(item)
|
4249
|
+
self._Attachments.append(obj)
|
4250
|
+
memeber_set = set(params.keys())
|
4251
|
+
for name, value in vars(self).items():
|
4252
|
+
property_name = name[1:]
|
4253
|
+
if property_name in memeber_set:
|
4254
|
+
memeber_set.remove(property_name)
|
4255
|
+
if len(memeber_set) > 0:
|
4256
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4257
|
+
|
4258
|
+
|
4259
|
+
|
4260
|
+
class ThreadMessageAttachmentObject(AbstractModel):
|
4261
|
+
"""会话消息附件
|
4262
|
+
|
4263
|
+
"""
|
4264
|
+
|
4265
|
+
def __init__(self):
|
4266
|
+
r"""
|
4267
|
+
:param _FileID: 文件 ID
|
4268
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4269
|
+
:type FileID: str
|
4270
|
+
"""
|
4271
|
+
self._FileID = None
|
4272
|
+
|
4273
|
+
@property
|
4274
|
+
def FileID(self):
|
4275
|
+
return self._FileID
|
4276
|
+
|
4277
|
+
@FileID.setter
|
4278
|
+
def FileID(self, FileID):
|
4279
|
+
self._FileID = FileID
|
4280
|
+
|
4281
|
+
|
4282
|
+
def _deserialize(self, params):
|
4283
|
+
self._FileID = params.get("FileID")
|
4284
|
+
memeber_set = set(params.keys())
|
4285
|
+
for name, value in vars(self).items():
|
4286
|
+
property_name = name[1:]
|
4287
|
+
if property_name in memeber_set:
|
4288
|
+
memeber_set.remove(property_name)
|
4289
|
+
if len(memeber_set) > 0:
|
4290
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4291
|
+
|
4292
|
+
|
4293
|
+
|
4294
|
+
class ThreadMessageInCompleteDetailsObject(AbstractModel):
|
4295
|
+
"""会话消息未完成原因
|
4296
|
+
|
4297
|
+
"""
|
4298
|
+
|
4299
|
+
def __init__(self):
|
4300
|
+
r"""
|
4301
|
+
:param _Reason: 会话消息未完成原因
|
4302
|
+
:type Reason: str
|
4303
|
+
"""
|
4304
|
+
self._Reason = None
|
4305
|
+
|
4306
|
+
@property
|
4307
|
+
def Reason(self):
|
4308
|
+
return self._Reason
|
4309
|
+
|
4310
|
+
@Reason.setter
|
4311
|
+
def Reason(self, Reason):
|
4312
|
+
self._Reason = Reason
|
4313
|
+
|
4314
|
+
|
4315
|
+
def _deserialize(self, params):
|
4316
|
+
self._Reason = params.get("Reason")
|
4317
|
+
memeber_set = set(params.keys())
|
4318
|
+
for name, value in vars(self).items():
|
4319
|
+
property_name = name[1:]
|
4320
|
+
if property_name in memeber_set:
|
4321
|
+
memeber_set.remove(property_name)
|
4322
|
+
if len(memeber_set) > 0:
|
4323
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4324
|
+
|
4325
|
+
|
4326
|
+
|
4327
|
+
class ThreadToolResources(AbstractModel):
|
4328
|
+
"""在会话中提供给助手工具的一系列资源。不同类型的工具会有各自对应的资源。比如代码解释器需要一个文件 ID 的列表,而文件搜索工具则需要一个向量存储 ID 的列表。
|
4329
|
+
|
4330
|
+
"""
|
4331
|
+
|
4332
|
+
def __init__(self):
|
4333
|
+
r"""
|
4334
|
+
:param _CodeInterpreter: 文件 ID 列表
|
4335
|
+
:type CodeInterpreter: list of str
|
4336
|
+
:param _VectorStoreIDs: 向量存储 ID 列表
|
4337
|
+
:type VectorStoreIDs: list of str
|
4338
|
+
"""
|
4339
|
+
self._CodeInterpreter = None
|
4340
|
+
self._VectorStoreIDs = None
|
4341
|
+
|
4342
|
+
@property
|
4343
|
+
def CodeInterpreter(self):
|
4344
|
+
return self._CodeInterpreter
|
4345
|
+
|
4346
|
+
@CodeInterpreter.setter
|
4347
|
+
def CodeInterpreter(self, CodeInterpreter):
|
4348
|
+
self._CodeInterpreter = CodeInterpreter
|
4349
|
+
|
4350
|
+
@property
|
4351
|
+
def VectorStoreIDs(self):
|
4352
|
+
return self._VectorStoreIDs
|
4353
|
+
|
4354
|
+
@VectorStoreIDs.setter
|
4355
|
+
def VectorStoreIDs(self, VectorStoreIDs):
|
4356
|
+
self._VectorStoreIDs = VectorStoreIDs
|
4357
|
+
|
4358
|
+
|
4359
|
+
def _deserialize(self, params):
|
4360
|
+
self._CodeInterpreter = params.get("CodeInterpreter")
|
4361
|
+
self._VectorStoreIDs = params.get("VectorStoreIDs")
|
4362
|
+
memeber_set = set(params.keys())
|
4363
|
+
for name, value in vars(self).items():
|
4364
|
+
property_name = name[1:]
|
4365
|
+
if property_name in memeber_set:
|
4366
|
+
memeber_set.remove(property_name)
|
4367
|
+
if len(memeber_set) > 0:
|
4368
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4369
|
+
|
4370
|
+
|
4371
|
+
|
4372
|
+
class Timeline(AbstractModel):
|
4373
|
+
"""时间线
|
4374
|
+
|
4375
|
+
"""
|
4376
|
+
|
4377
|
+
def __init__(self):
|
4378
|
+
r"""
|
4379
|
+
:param _Title: 标题
|
4380
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4381
|
+
:type Title: str
|
4382
|
+
:param _Datetime: 时间
|
4383
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4384
|
+
:type Datetime: str
|
4385
|
+
:param _Url: 相关网页链接
|
4386
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4387
|
+
:type Url: str
|
4388
|
+
"""
|
4389
|
+
self._Title = None
|
4390
|
+
self._Datetime = None
|
4391
|
+
self._Url = None
|
4392
|
+
|
4393
|
+
@property
|
4394
|
+
def Title(self):
|
4395
|
+
return self._Title
|
4396
|
+
|
4397
|
+
@Title.setter
|
4398
|
+
def Title(self, Title):
|
4399
|
+
self._Title = Title
|
4400
|
+
|
4401
|
+
@property
|
4402
|
+
def Datetime(self):
|
4403
|
+
return self._Datetime
|
4404
|
+
|
4405
|
+
@Datetime.setter
|
4406
|
+
def Datetime(self, Datetime):
|
4407
|
+
self._Datetime = Datetime
|
4408
|
+
|
4409
|
+
@property
|
4410
|
+
def Url(self):
|
4411
|
+
return self._Url
|
4412
|
+
|
4413
|
+
@Url.setter
|
4414
|
+
def Url(self, Url):
|
4415
|
+
self._Url = Url
|
4416
|
+
|
4417
|
+
|
4418
|
+
def _deserialize(self, params):
|
4419
|
+
self._Title = params.get("Title")
|
4420
|
+
self._Datetime = params.get("Datetime")
|
4421
|
+
self._Url = params.get("Url")
|
4422
|
+
memeber_set = set(params.keys())
|
4423
|
+
for name, value in vars(self).items():
|
4424
|
+
property_name = name[1:]
|
4425
|
+
if property_name in memeber_set:
|
4426
|
+
memeber_set.remove(property_name)
|
4427
|
+
if len(memeber_set) > 0:
|
4428
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4429
|
+
|
4430
|
+
|
4431
|
+
|
2513
4432
|
class Tool(AbstractModel):
|
2514
4433
|
"""用户指定模型使用的工具
|
2515
4434
|
|