tencentcloud-sdk-python 3.0.1260__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.
Files changed (31) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/apm/v20210622/errorcodes.py +3 -0
  3. tencentcloud/apm/v20210622/models.py +24 -0
  4. tencentcloud/cdb/v20170320/errorcodes.py +1 -1
  5. tencentcloud/cdwdoris/v20211228/models.py +39 -0
  6. tencentcloud/cfs/v20190719/models.py +109 -0
  7. tencentcloud/cfw/v20190904/cfw_client.py +3 -1
  8. tencentcloud/cls/v20201016/models.py +14 -14
  9. tencentcloud/dlc/v20210125/models.py +15 -0
  10. tencentcloud/dnspod/v20210323/dnspod_client.py +115 -0
  11. tencentcloud/dnspod/v20210323/errorcodes.py +48 -0
  12. tencentcloud/dnspod/v20210323/models.py +736 -14
  13. tencentcloud/ess/v20201111/models.py +2 -6
  14. tencentcloud/essbasic/v20210526/essbasic_client.py +1 -1
  15. tencentcloud/essbasic/v20210526/models.py +12 -11
  16. tencentcloud/hunyuan/v20230901/hunyuan_client.py +170 -0
  17. tencentcloud/hunyuan/v20230901/models.py +2069 -162
  18. tencentcloud/kms/v20190118/models.py +24 -0
  19. tencentcloud/ssm/v20190923/models.py +6 -36
  20. tencentcloud/tdmq/v20200217/models.py +3 -4
  21. tencentcloud/teo/v20220901/errorcodes.py +45 -0
  22. tencentcloud/teo/v20220901/models.py +52 -3
  23. tencentcloud/thpc/v20230321/models.py +3 -3
  24. tencentcloud/tke/v20180525/models.py +2 -2
  25. tencentcloud/vod/v20180717/models.py +343 -18
  26. tencentcloud/waf/v20180125/models.py +1 -1
  27. {tencentcloud_sdk_python-3.0.1260.dist-info → tencentcloud_sdk_python-3.0.1261.dist-info}/METADATA +1 -1
  28. {tencentcloud_sdk_python-3.0.1260.dist-info → tencentcloud_sdk_python-3.0.1261.dist-info}/RECORD +31 -31
  29. {tencentcloud_sdk_python-3.0.1260.dist-info → tencentcloud_sdk_python-3.0.1261.dist-info}/LICENSE +0 -0
  30. {tencentcloud_sdk_python-3.0.1260.dist-info → tencentcloud_sdk_python-3.0.1261.dist-info}/WHEEL +0 -0
  31. {tencentcloud_sdk_python-3.0.1260.dist-info → tencentcloud_sdk_python-3.0.1261.dist-info}/top_level.txt +0 -0
@@ -638,6 +638,88 @@ class Content(AbstractModel):
638
638
 
639
639
 
640
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
+
641
723
  class Delta(AbstractModel):
642
724
  """返回的内容(流式返回)
643
725
 
@@ -664,36 +746,912 @@ class Delta(AbstractModel):
664
746
  def Role(self):
665
747
  return self._Role
666
748
 
667
- @Role.setter
668
- def Role(self, Role):
669
- self._Role = Role
749
+ @Role.setter
750
+ def Role(self, Role):
751
+ self._Role = Role
752
+
753
+ @property
754
+ def Content(self):
755
+ return self._Content
756
+
757
+ @Content.setter
758
+ def Content(self, Content):
759
+ self._Content = Content
760
+
761
+ @property
762
+ def ToolCalls(self):
763
+ return self._ToolCalls
764
+
765
+ @ToolCalls.setter
766
+ def ToolCalls(self, ToolCalls):
767
+ self._ToolCalls = ToolCalls
768
+
769
+
770
+ def _deserialize(self, params):
771
+ self._Role = params.get("Role")
772
+ self._Content = params.get("Content")
773
+ if params.get("ToolCalls") is not None:
774
+ self._ToolCalls = []
775
+ for item in params.get("ToolCalls"):
776
+ obj = ToolCall()
777
+ obj._deserialize(item)
778
+ self._ToolCalls.append(obj)
779
+ memeber_set = set(params.keys())
780
+ for name, value in vars(self).items():
781
+ property_name = name[1:]
782
+ if property_name in memeber_set:
783
+ memeber_set.remove(property_name)
784
+ if len(memeber_set) > 0:
785
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
786
+
787
+
788
+
789
+ class EmbeddingData(AbstractModel):
790
+ """Embedding 信息。
791
+
792
+ """
793
+
794
+ def __init__(self):
795
+ r"""
796
+ :param _Embedding: Embedding 信息,目前为 1024 维浮点数。
797
+ 注意:此字段可能返回 null,表示取不到有效值。
798
+ :type Embedding: list of float
799
+ :param _Index: 下标,目前不支持批量,因此固定为 0。
800
+ 注意:此字段可能返回 null,表示取不到有效值。
801
+ :type Index: int
802
+ :param _Object: 目前固定为 "embedding"。
803
+ 注意:此字段可能返回 null,表示取不到有效值。
804
+ :type Object: str
805
+ """
806
+ self._Embedding = None
807
+ self._Index = None
808
+ self._Object = None
809
+
810
+ @property
811
+ def Embedding(self):
812
+ return self._Embedding
813
+
814
+ @Embedding.setter
815
+ def Embedding(self, Embedding):
816
+ self._Embedding = Embedding
817
+
818
+ @property
819
+ def Index(self):
820
+ return self._Index
821
+
822
+ @Index.setter
823
+ def Index(self, Index):
824
+ self._Index = Index
825
+
826
+ @property
827
+ def Object(self):
828
+ return self._Object
829
+
830
+ @Object.setter
831
+ def Object(self, Object):
832
+ self._Object = Object
833
+
834
+
835
+ def _deserialize(self, params):
836
+ self._Embedding = params.get("Embedding")
837
+ self._Index = params.get("Index")
838
+ self._Object = params.get("Object")
839
+ memeber_set = set(params.keys())
840
+ for name, value in vars(self).items():
841
+ property_name = name[1:]
842
+ if property_name in memeber_set:
843
+ memeber_set.remove(property_name)
844
+ if len(memeber_set) > 0:
845
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
846
+
847
+
848
+
849
+ class EmbeddingUsage(AbstractModel):
850
+ """Token 使用计数。
851
+
852
+ """
853
+
854
+ def __init__(self):
855
+ r"""
856
+ :param _PromptTokens: 输入 Token 数。
857
+ :type PromptTokens: int
858
+ :param _TotalTokens: 总 Token 数。
859
+ :type TotalTokens: int
860
+ """
861
+ self._PromptTokens = None
862
+ self._TotalTokens = None
863
+
864
+ @property
865
+ def PromptTokens(self):
866
+ return self._PromptTokens
867
+
868
+ @PromptTokens.setter
869
+ def PromptTokens(self, PromptTokens):
870
+ self._PromptTokens = PromptTokens
871
+
872
+ @property
873
+ def TotalTokens(self):
874
+ return self._TotalTokens
875
+
876
+ @TotalTokens.setter
877
+ def TotalTokens(self, TotalTokens):
878
+ self._TotalTokens = TotalTokens
879
+
880
+
881
+ def _deserialize(self, params):
882
+ self._PromptTokens = params.get("PromptTokens")
883
+ self._TotalTokens = params.get("TotalTokens")
884
+ memeber_set = set(params.keys())
885
+ for name, value in vars(self).items():
886
+ property_name = name[1:]
887
+ if property_name in memeber_set:
888
+ memeber_set.remove(property_name)
889
+ if len(memeber_set) > 0:
890
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
891
+
892
+
893
+
894
+ class ErrorMsg(AbstractModel):
895
+ """运行时异常信息。
896
+
897
+ """
898
+
899
+ def __init__(self):
900
+ r"""
901
+ :param _Msg: 错误提示信息。
902
+ :type Msg: str
903
+ :param _Code: 错误码。
904
+ 4000 服务内部异常。
905
+ 4001 请求模型超时。
906
+
907
+ :type Code: int
908
+ """
909
+ self._Msg = None
910
+ self._Code = None
911
+
912
+ @property
913
+ def Msg(self):
914
+ return self._Msg
915
+
916
+ @Msg.setter
917
+ def Msg(self, Msg):
918
+ self._Msg = Msg
919
+
920
+ @property
921
+ def Code(self):
922
+ return self._Code
923
+
924
+ @Code.setter
925
+ def Code(self, Code):
926
+ self._Code = Code
927
+
928
+
929
+ def _deserialize(self, params):
930
+ self._Msg = params.get("Msg")
931
+ self._Code = params.get("Code")
932
+ memeber_set = set(params.keys())
933
+ for name, value in vars(self).items():
934
+ property_name = name[1:]
935
+ if property_name in memeber_set:
936
+ memeber_set.remove(property_name)
937
+ if len(memeber_set) > 0:
938
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
939
+
940
+
941
+
942
+ class FileObject(AbstractModel):
943
+ """已上传的文件对象。
944
+
945
+ """
946
+
947
+ def __init__(self):
948
+ r"""
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
961
+ """
962
+ self._ID = None
963
+ self._Object = None
964
+ self._Bytes = None
965
+ self._CreatedAt = None
966
+ self._Filename = None
967
+ self._Purpose = None
968
+
969
+ @property
970
+ def ID(self):
971
+ return self._ID
972
+
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
1016
+
1017
+
1018
+ def _deserialize(self, params):
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")
1025
+ memeber_set = set(params.keys())
1026
+ for name, value in vars(self).items():
1027
+ property_name = name[1:]
1028
+ if property_name in memeber_set:
1029
+ memeber_set.remove(property_name)
1030
+ if len(memeber_set) > 0:
1031
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1032
+
1033
+
1034
+
1035
+ class FilesDeletionsRequest(AbstractModel):
1036
+ """FilesDeletions请求参数结构体
1037
+
1038
+ """
1039
+
1040
+ def __init__(self):
1041
+ r"""
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" 中。
1082
+ :type RequestId: str
1083
+ """
1084
+ self._ID = None
1085
+ self._Object = None
1086
+ self._Deleted = None
1087
+ self._RequestId = None
1088
+
1089
+ @property
1090
+ def ID(self):
1091
+ return self._ID
1092
+
1093
+ @ID.setter
1094
+ def ID(self, ID):
1095
+ self._ID = ID
1096
+
1097
+ @property
1098
+ def Object(self):
1099
+ return self._Object
1100
+
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
1112
+
1113
+ @property
1114
+ def RequestId(self):
1115
+ return self._RequestId
1116
+
1117
+ @RequestId.setter
1118
+ def RequestId(self, RequestId):
1119
+ self._RequestId = RequestId
1120
+
1121
+
1122
+ def _deserialize(self, params):
1123
+ self._ID = params.get("ID")
1124
+ self._Object = params.get("Object")
1125
+ self._Deleted = params.get("Deleted")
1126
+ self._RequestId = params.get("RequestId")
1127
+
1128
+
1129
+ class FilesListRequest(AbstractModel):
1130
+ """FilesList请求参数结构体
1131
+
1132
+ """
1133
+
1134
+ def __init__(self):
1135
+ r"""
1136
+ :param _Offset: 分页偏移量。
1137
+ :type Offset: int
1138
+ :param _Limit: 每页数量,最大 100。
1139
+ :type Limit: int
1140
+ """
1141
+ self._Offset = None
1142
+ self._Limit = None
1143
+
1144
+ @property
1145
+ def Offset(self):
1146
+ return self._Offset
1147
+
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
1159
+
1160
+
1161
+ def _deserialize(self, params):
1162
+ self._Offset = params.get("Offset")
1163
+ self._Limit = params.get("Limit")
1164
+ memeber_set = set(params.keys())
1165
+ for name, value in vars(self).items():
1166
+ property_name = name[1:]
1167
+ if property_name in memeber_set:
1168
+ memeber_set.remove(property_name)
1169
+ if len(memeber_set) > 0:
1170
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1171
+
1172
+
1173
+
1174
+ class FilesListResponse(AbstractModel):
1175
+ """FilesList返回参数结构体
1176
+
1177
+ """
1178
+
1179
+ def __init__(self):
1180
+ r"""
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" 中。
1188
+ :type RequestId: str
1189
+ """
1190
+ self._Total = None
1191
+ self._Object = None
1192
+ self._Data = None
1193
+ self._RequestId = None
1194
+
1195
+ @property
1196
+ def Total(self):
1197
+ return self._Total
1198
+
1199
+ @Total.setter
1200
+ def Total(self, Total):
1201
+ self._Total = Total
1202
+
1203
+ @property
1204
+ def Object(self):
1205
+ return self._Object
1206
+
1207
+ @Object.setter
1208
+ def Object(self, Object):
1209
+ self._Object = Object
1210
+
1211
+ @property
1212
+ def Data(self):
1213
+ return self._Data
1214
+
1215
+ @Data.setter
1216
+ def Data(self, Data):
1217
+ self._Data = Data
1218
+
1219
+ @property
1220
+ def RequestId(self):
1221
+ return self._RequestId
1222
+
1223
+ @RequestId.setter
1224
+ def RequestId(self, RequestId):
1225
+ self._RequestId = RequestId
1226
+
1227
+
1228
+ def _deserialize(self, params):
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)
1237
+ self._RequestId = params.get("RequestId")
1238
+
1239
+
1240
+ class FilesUploadsRequest(AbstractModel):
1241
+ """FilesUploads请求参数结构体
1242
+
1243
+ """
1244
+
1245
+ def __init__(self):
1246
+ r"""
1247
+ :param _Name: 文件名。
1248
+ :type Name: str
1249
+ :param _URL: 文件链接。目前仅支持 pdf 格式,单文件大小限制为100M。
1250
+ :type URL: str
1251
+ """
1252
+ self._Name = None
1253
+ self._URL = None
1254
+
1255
+ @property
1256
+ def Name(self):
1257
+ return self._Name
1258
+
1259
+ @Name.setter
1260
+ def Name(self, Name):
1261
+ self._Name = Name
1262
+
1263
+ @property
1264
+ def URL(self):
1265
+ return self._URL
1266
+
1267
+ @URL.setter
1268
+ def URL(self, URL):
1269
+ self._URL = URL
1270
+
1271
+
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
670
1634
 
671
1635
  @property
672
- def Content(self):
673
- return self._Content
1636
+ def ThreadID(self):
1637
+ return self._ThreadID
674
1638
 
675
- @Content.setter
676
- def Content(self, Content):
677
- self._Content = Content
1639
+ @ThreadID.setter
1640
+ def ThreadID(self, ThreadID):
1641
+ self._ThreadID = ThreadID
678
1642
 
679
1643
  @property
680
- def ToolCalls(self):
681
- return self._ToolCalls
1644
+ def MessageID(self):
1645
+ return self._MessageID
682
1646
 
683
- @ToolCalls.setter
684
- def ToolCalls(self, ToolCalls):
685
- self._ToolCalls = ToolCalls
1647
+ @MessageID.setter
1648
+ def MessageID(self, MessageID):
1649
+ self._MessageID = MessageID
686
1650
 
687
1651
 
688
1652
  def _deserialize(self, params):
689
- self._Role = params.get("Role")
690
- self._Content = params.get("Content")
691
- if params.get("ToolCalls") is not None:
692
- self._ToolCalls = []
693
- for item in params.get("ToolCalls"):
694
- obj = ToolCall()
695
- obj._deserialize(item)
696
- self._ToolCalls.append(obj)
1653
+ self._ThreadID = params.get("ThreadID")
1654
+ self._MessageID = params.get("MessageID")
697
1655
  memeber_set = set(params.keys())
698
1656
  for name, value in vars(self).items():
699
1657
  property_name = name[1:]
@@ -704,42 +1662,70 @@ class Delta(AbstractModel):
704
1662
 
705
1663
 
706
1664
 
707
- class EmbeddingData(AbstractModel):
708
- """Embedding 信息。
1665
+ class GetThreadMessageResponse(AbstractModel):
1666
+ """GetThreadMessage返回参数结构体
709
1667
 
710
1668
  """
711
1669
 
712
1670
  def __init__(self):
713
1671
  r"""
714
- :param _Embedding: Embedding 信息,目前为 1024 维浮点数。
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: 未完成原因
715
1683
  注意:此字段可能返回 null,表示取不到有效值。
716
- :type Embedding: list of float
717
- :param _Index: 下标,目前不支持批量,因此固定为 0。
1684
+ :type InCompleteDetails: :class:`tencentcloud.hunyuan.v20230901.models.ThreadMessageInCompleteDetailsObject`
1685
+ :param _CompletedAt: 完成时间
718
1686
  注意:此字段可能返回 null,表示取不到有效值。
719
- :type Index: int
720
- :param _Object: 目前固定为 "embedding"。
1687
+ :type CompletedAt: int
1688
+ :param _InCompleteAt: 未完成时间
721
1689
  注意:此字段可能返回 null,表示取不到有效值。
722
- :type Object: str
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
723
1706
  """
724
- self._Embedding = None
725
- self._Index = None
1707
+ self._ID = None
726
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
727
1721
 
728
1722
  @property
729
- def Embedding(self):
730
- return self._Embedding
731
-
732
- @Embedding.setter
733
- def Embedding(self, Embedding):
734
- self._Embedding = Embedding
735
-
736
- @property
737
- def Index(self):
738
- return self._Index
1723
+ def ID(self):
1724
+ return self._ID
739
1725
 
740
- @Index.setter
741
- def Index(self, Index):
742
- self._Index = Index
1726
+ @ID.setter
1727
+ def ID(self, ID):
1728
+ self._ID = ID
743
1729
 
744
1730
  @property
745
1731
  def Object(self):
@@ -749,137 +1735,150 @@ class EmbeddingData(AbstractModel):
749
1735
  def Object(self, Object):
750
1736
  self._Object = Object
751
1737
 
1738
+ @property
1739
+ def CreatedAt(self):
1740
+ return self._CreatedAt
752
1741
 
753
- def _deserialize(self, params):
754
- self._Embedding = params.get("Embedding")
755
- self._Index = params.get("Index")
756
- self._Object = params.get("Object")
757
- memeber_set = set(params.keys())
758
- for name, value in vars(self).items():
759
- property_name = name[1:]
760
- if property_name in memeber_set:
761
- memeber_set.remove(property_name)
762
- if len(memeber_set) > 0:
763
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
764
-
1742
+ @CreatedAt.setter
1743
+ def CreatedAt(self, CreatedAt):
1744
+ self._CreatedAt = CreatedAt
765
1745
 
1746
+ @property
1747
+ def ThreadID(self):
1748
+ return self._ThreadID
766
1749
 
767
- class EmbeddingUsage(AbstractModel):
768
- """Token 使用计数。
1750
+ @ThreadID.setter
1751
+ def ThreadID(self, ThreadID):
1752
+ self._ThreadID = ThreadID
769
1753
 
770
- """
1754
+ @property
1755
+ def Status(self):
1756
+ return self._Status
771
1757
 
772
- def __init__(self):
773
- r"""
774
- :param _PromptTokens: 输入 Token 数。
775
- :type PromptTokens: int
776
- :param _TotalTokens: 总 Token 数。
777
- :type TotalTokens: int
778
- """
779
- self._PromptTokens = None
780
- self._TotalTokens = None
1758
+ @Status.setter
1759
+ def Status(self, Status):
1760
+ self._Status = Status
781
1761
 
782
1762
  @property
783
- def PromptTokens(self):
784
- return self._PromptTokens
1763
+ def InCompleteDetails(self):
1764
+ return self._InCompleteDetails
785
1765
 
786
- @PromptTokens.setter
787
- def PromptTokens(self, PromptTokens):
788
- self._PromptTokens = PromptTokens
1766
+ @InCompleteDetails.setter
1767
+ def InCompleteDetails(self, InCompleteDetails):
1768
+ self._InCompleteDetails = InCompleteDetails
789
1769
 
790
1770
  @property
791
- def TotalTokens(self):
792
- return self._TotalTokens
1771
+ def CompletedAt(self):
1772
+ return self._CompletedAt
793
1773
 
794
- @TotalTokens.setter
795
- def TotalTokens(self, TotalTokens):
796
- self._TotalTokens = TotalTokens
1774
+ @CompletedAt.setter
1775
+ def CompletedAt(self, CompletedAt):
1776
+ self._CompletedAt = CompletedAt
797
1777
 
1778
+ @property
1779
+ def InCompleteAt(self):
1780
+ return self._InCompleteAt
798
1781
 
799
- def _deserialize(self, params):
800
- self._PromptTokens = params.get("PromptTokens")
801
- self._TotalTokens = params.get("TotalTokens")
802
- memeber_set = set(params.keys())
803
- for name, value in vars(self).items():
804
- property_name = name[1:]
805
- if property_name in memeber_set:
806
- memeber_set.remove(property_name)
807
- if len(memeber_set) > 0:
808
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
809
-
1782
+ @InCompleteAt.setter
1783
+ def InCompleteAt(self, InCompleteAt):
1784
+ self._InCompleteAt = InCompleteAt
810
1785
 
1786
+ @property
1787
+ def Role(self):
1788
+ return self._Role
811
1789
 
812
- class ErrorMsg(AbstractModel):
813
- """运行时异常信息。
1790
+ @Role.setter
1791
+ def Role(self, Role):
1792
+ self._Role = Role
814
1793
 
815
- """
1794
+ @property
1795
+ def Content(self):
1796
+ return self._Content
816
1797
 
817
- def __init__(self):
818
- r"""
819
- :param _Msg: 错误提示信息。
820
- :type Msg: str
821
- :param _Code: 错误码。
822
- 4000 服务内部异常。
823
- 4001 请求模型超时。
1798
+ @Content.setter
1799
+ def Content(self, Content):
1800
+ self._Content = Content
824
1801
 
825
- :type Code: int
826
- """
827
- self._Msg = None
828
- self._Code = None
1802
+ @property
1803
+ def AssistantID(self):
1804
+ return self._AssistantID
1805
+
1806
+ @AssistantID.setter
1807
+ def AssistantID(self, AssistantID):
1808
+ self._AssistantID = AssistantID
829
1809
 
830
1810
  @property
831
- def Msg(self):
832
- return self._Msg
1811
+ def RunID(self):
1812
+ return self._RunID
833
1813
 
834
- @Msg.setter
835
- def Msg(self, Msg):
836
- self._Msg = Msg
1814
+ @RunID.setter
1815
+ def RunID(self, RunID):
1816
+ self._RunID = RunID
837
1817
 
838
1818
  @property
839
- def Code(self):
840
- return self._Code
1819
+ def Attachments(self):
1820
+ return self._Attachments
841
1821
 
842
- @Code.setter
843
- def Code(self, Code):
844
- self._Code = Code
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
845
1833
 
846
1834
 
847
1835
  def _deserialize(self, params):
848
- self._Msg = params.get("Msg")
849
- self._Code = params.get("Code")
850
- memeber_set = set(params.keys())
851
- for name, value in vars(self).items():
852
- property_name = name[1:]
853
- if property_name in memeber_set:
854
- memeber_set.remove(property_name)
855
- if len(memeber_set) > 0:
856
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
857
-
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")
858
1857
 
859
1858
 
860
- class GetEmbeddingRequest(AbstractModel):
861
- """GetEmbedding请求参数结构体
1859
+ class GetThreadRequest(AbstractModel):
1860
+ """GetThread请求参数结构体
862
1861
 
863
1862
  """
864
1863
 
865
1864
  def __init__(self):
866
1865
  r"""
867
- :param _Input: 输入文本。总长度不超过 1024 个 Token,超过则会截断最后面的内容。
868
- :type Input: str
1866
+ :param _ThreadID: 会话 ID
1867
+ :type ThreadID: str
869
1868
  """
870
- self._Input = None
1869
+ self._ThreadID = None
871
1870
 
872
1871
  @property
873
- def Input(self):
874
- return self._Input
1872
+ def ThreadID(self):
1873
+ return self._ThreadID
875
1874
 
876
- @Input.setter
877
- def Input(self, Input):
878
- self._Input = Input
1875
+ @ThreadID.setter
1876
+ def ThreadID(self, ThreadID):
1877
+ self._ThreadID = ThreadID
879
1878
 
880
1879
 
881
1880
  def _deserialize(self, params):
882
- self._Input = params.get("Input")
1881
+ self._ThreadID = params.get("ThreadID")
883
1882
  memeber_set = set(params.keys())
884
1883
  for name, value in vars(self).items():
885
1884
  property_name = name[1:]
@@ -890,39 +1889,62 @@ class GetEmbeddingRequest(AbstractModel):
890
1889
 
891
1890
 
892
1891
 
893
- class GetEmbeddingResponse(AbstractModel):
894
- """GetEmbedding返回参数结构体
1892
+ class GetThreadResponse(AbstractModel):
1893
+ """GetThread返回参数结构体
895
1894
 
896
1895
  """
897
1896
 
898
1897
  def __init__(self):
899
1898
  r"""
900
- :param _Data: 返回的 Embedding 信息。当前不支持批量,所以数组元素数目为 1。
901
- :type Data: list of EmbeddingData
902
- :param _Usage: Token 使用计数,按照总 Token 数量收费。
903
- :type Usage: :class:`tencentcloud.hunyuan.v20230901.models.EmbeddingUsage`
904
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
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" 中。
905
1909
  :type RequestId: str
906
1910
  """
907
- self._Data = None
908
- self._Usage = None
1911
+ self._ID = None
1912
+ self._Object = None
1913
+ self._CreatedAt = None
1914
+ self._ToolResources = None
909
1915
  self._RequestId = None
910
1916
 
911
1917
  @property
912
- def Data(self):
913
- return self._Data
1918
+ def ID(self):
1919
+ return self._ID
914
1920
 
915
- @Data.setter
916
- def Data(self, Data):
917
- self._Data = Data
1921
+ @ID.setter
1922
+ def ID(self, ID):
1923
+ self._ID = ID
918
1924
 
919
1925
  @property
920
- def Usage(self):
921
- return self._Usage
1926
+ def Object(self):
1927
+ return self._Object
922
1928
 
923
- @Usage.setter
924
- def Usage(self, Usage):
925
- self._Usage = Usage
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
926
1948
 
927
1949
  @property
928
1950
  def RequestId(self):
@@ -934,15 +1956,12 @@ class GetEmbeddingResponse(AbstractModel):
934
1956
 
935
1957
 
936
1958
  def _deserialize(self, params):
937
- if params.get("Data") is not None:
938
- self._Data = []
939
- for item in params.get("Data"):
940
- obj = EmbeddingData()
941
- obj._deserialize(item)
942
- self._Data.append(obj)
943
- if params.get("Usage") is not None:
944
- self._Usage = EmbeddingUsage()
945
- self._Usage._deserialize(params.get("Usage"))
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"))
946
1965
  self._RequestId = params.get("RequestId")
947
1966
 
948
1967
 
@@ -1369,6 +2388,53 @@ class Message(AbstractModel):
1369
2388
 
1370
2389
 
1371
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
+
1372
2438
  class Multimedia(AbstractModel):
1373
2439
  """多媒体详情
1374
2440
 
@@ -1808,6 +2874,139 @@ class QueryHunyuanImageJobResponse(AbstractModel):
1808
2874
  self._RequestId = params.get("RequestId")
1809
2875
 
1810
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
+
1811
3010
  class Replace(AbstractModel):
1812
3011
  """多媒体占位符替换信息
1813
3012
 
@@ -1858,6 +3057,194 @@ class Replace(AbstractModel):
1858
3057
 
1859
3058
 
1860
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
+
1861
3248
  class SearchInfo(AbstractModel):
1862
3249
  """搜索结果信息
1863
3250
 
@@ -1868,8 +3255,32 @@ class SearchInfo(AbstractModel):
1868
3255
  :param _SearchResults: 搜索引文信息
1869
3256
  注意:此字段可能返回 null,表示取不到有效值。
1870
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
1871
3276
  """
1872
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
1873
3284
 
1874
3285
  @property
1875
3286
  def SearchResults(self):
@@ -1879,6 +3290,54 @@ class SearchInfo(AbstractModel):
1879
3290
  def SearchResults(self, SearchResults):
1880
3291
  self._SearchResults = SearchResults
1881
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
+
1882
3341
 
1883
3342
  def _deserialize(self, params):
1884
3343
  if params.get("SearchResults") is not None:
@@ -1887,6 +3346,29 @@ class SearchInfo(AbstractModel):
1887
3346
  obj = SearchResult()
1888
3347
  obj._deserialize(item)
1889
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")
1890
3372
  memeber_set = set(params.keys())
1891
3373
  for name, value in vars(self).items():
1892
3374
  property_name = name[1:]
@@ -2522,6 +4004,431 @@ class TextToImageLiteResponse(AbstractModel):
2522
4004
  self._RequestId = params.get("RequestId")
2523
4005
 
2524
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
+
2525
4432
  class Tool(AbstractModel):
2526
4433
  """用户指定模型使用的工具
2527
4434