tencentcloud-sdk-python 3.0.1491__py2.py3-none-any.whl → 3.1.6__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 (391) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aai/v20180522/aai_client_async.py +100 -0
  3. tencentcloud/aca/v20210323/aca_client_async.py +170 -0
  4. tencentcloud/acp/v20220105/acp_client_async.py +170 -0
  5. tencentcloud/advisor/v20200721/advisor_client_async.py +62 -0
  6. tencentcloud/af/v20200226/af_client_async.py +86 -0
  7. tencentcloud/afc/v20200226/afc_client_async.py +82 -0
  8. tencentcloud/ags/v20250920/ags_client_async.py +243 -0
  9. tencentcloud/ai3d/v20250513/ai3d_client_async.py +102 -0
  10. tencentcloud/aiart/v20221229/aiart_client_async.py +513 -0
  11. tencentcloud/ame/v20190916/ame_client_async.py +586 -0
  12. tencentcloud/ams/v20200608/ams_client_async.py +179 -0
  13. tencentcloud/ams/v20201229/ams_client_async.py +169 -0
  14. tencentcloud/anicloud/v20220923/anicloud_client_async.py +80 -0
  15. tencentcloud/antiddos/v20200309/antiddos_client_async.py +1718 -0
  16. tencentcloud/ape/v20200513/ape_client_async.py +170 -0
  17. tencentcloud/api/v20201106/api_client_async.py +80 -0
  18. tencentcloud/apigateway/v20180808/apigateway_client_async.py +1830 -0
  19. tencentcloud/apm/v20210622/apm_client_async.py +495 -0
  20. tencentcloud/asr/v20190614/asr_client_async.py +647 -0
  21. tencentcloud/asw/v20200722/asw_client_async.py +188 -0
  22. tencentcloud/autoscaling/v20180419/autoscaling_client.py +1 -0
  23. tencentcloud/autoscaling/v20180419/autoscaling_client_async.py +1230 -0
  24. tencentcloud/autoscaling/v20180419/models.py +36 -0
  25. tencentcloud/ba/v20200720/ba_client_async.py +81 -0
  26. tencentcloud/batch/v20170312/batch_client_async.py +582 -0
  27. tencentcloud/bda/v20200324/bda_client_async.py +116 -0
  28. tencentcloud/bh/v20230418/bh_client.py +230 -0
  29. tencentcloud/bh/v20230418/bh_client_async.py +1844 -0
  30. tencentcloud/bh/v20230418/models.py +1677 -216
  31. tencentcloud/bi/v20220105/bi_client_async.py +548 -0
  32. tencentcloud/billing/v20180709/billing_client_async.py +1149 -0
  33. tencentcloud/bizlive/v20190313/bizlive_client_async.py +134 -0
  34. tencentcloud/bm/v20180423/bm_client_async.py +1012 -0
  35. tencentcloud/bma/v20210624/bma_client_async.py +530 -0
  36. tencentcloud/bma/v20221115/bma_client_async.py +224 -0
  37. tencentcloud/bmeip/v20180625/bmeip_client_async.py +386 -0
  38. tencentcloud/bmlb/v20180625/bmlb_client_async.py +908 -0
  39. tencentcloud/bmvpc/v20180625/bmvpc_client_async.py +1171 -0
  40. tencentcloud/bpaas/v20181217/bpaas_client_async.py +62 -0
  41. tencentcloud/bri/v20190328/bri_client_async.py +58 -0
  42. tencentcloud/bsca/v20210811/bsca_client_async.py +152 -0
  43. tencentcloud/btoe/v20210303/btoe_client_async.py +267 -0
  44. tencentcloud/btoe/v20210514/btoe_client_async.py +287 -0
  45. tencentcloud/ca/v20230228/ca_client_async.py +80 -0
  46. tencentcloud/cam/v20190116/cam_client_async.py +1684 -0
  47. tencentcloud/captcha/v20190722/captcha_client_async.py +350 -0
  48. tencentcloud/car/v20220110/car_client_async.py +134 -0
  49. tencentcloud/cat/v20180409/cat_client_async.py +279 -0
  50. tencentcloud/cbs/v20170312/cbs_client_async.py +959 -0
  51. tencentcloud/ccc/v20200210/ccc_client_async.py +1494 -0
  52. tencentcloud/ccc/v20200210/models.py +15 -0
  53. tencentcloud/cdb/v20170320/cdb_client_async.py +3254 -0
  54. tencentcloud/cdb/v20170320/models.py +74 -44
  55. tencentcloud/cdc/v20201214/cdc_client_async.py +440 -0
  56. tencentcloud/cdn/v20180606/cdn_client_async.py +1090 -0
  57. tencentcloud/cds/v20180420/cds_client_async.py +116 -0
  58. tencentcloud/cdwch/v20200915/cdwch_client_async.py +548 -0
  59. tencentcloud/cdwch/v20200915/models.py +34 -4
  60. tencentcloud/cdwdoris/v20211228/cdwdoris_client_async.py +1106 -0
  61. tencentcloud/cdwpg/v20201230/cdwpg_client_async.py +458 -0
  62. tencentcloud/cdz/v20221123/cdz_client_async.py +62 -0
  63. tencentcloud/cfg/v20210820/cfg_client_async.py +332 -0
  64. tencentcloud/cfs/v20190719/cfs_client_async.py +1054 -0
  65. tencentcloud/cfs/v20190719/models.py +40 -0
  66. tencentcloud/cfw/v20190904/cfw_client.py +23 -0
  67. tencentcloud/cfw/v20190904/cfw_client_async.py +2067 -0
  68. tencentcloud/cfw/v20190904/models.py +784 -8
  69. tencentcloud/chc/v20230418/chc_client_async.py +710 -0
  70. tencentcloud/chdfs/v20190718/chdfs_client_async.py +546 -0
  71. tencentcloud/chdfs/v20201112/chdfs_client_async.py +548 -0
  72. tencentcloud/ciam/v20220331/ciam_client_async.py +440 -0
  73. tencentcloud/cii/v20201210/cii_client_async.py +80 -0
  74. tencentcloud/cii/v20210408/cii_client_async.py +262 -0
  75. tencentcloud/cim/v20190318/cim_client_async.py +44 -0
  76. tencentcloud/ckafka/v20190819/ckafka_client.py +92 -0
  77. tencentcloud/ckafka/v20190819/ckafka_client_async.py +1701 -0
  78. tencentcloud/ckafka/v20190819/errorcodes.py +3 -0
  79. tencentcloud/ckafka/v20190819/models.py +741 -62
  80. tencentcloud/clb/v20180317/clb_client_async.py +1683 -0
  81. tencentcloud/cloudapp/v20220530/cloudapp_client_async.py +175 -0
  82. tencentcloud/cloudaudit/v20190319/cloudaudit_client_async.py +372 -0
  83. tencentcloud/cloudhsm/v20191112/cloudhsm_client_async.py +278 -0
  84. tencentcloud/cloudhsm/v20191112/models.py +49 -0
  85. tencentcloud/cloudstudio/v20230508/cloudstudio_client_async.py +188 -0
  86. tencentcloud/cls/v20201016/cls_client.py +92 -0
  87. tencentcloud/cls/v20201016/cls_client_async.py +2362 -0
  88. tencentcloud/cls/v20201016/models.py +1427 -74
  89. tencentcloud/cme/v20191029/cme_client_async.py +983 -0
  90. tencentcloud/cmq/v20190304/cmq_client_async.py +62 -0
  91. tencentcloud/cms/v20190321/cms_client_async.py +134 -0
  92. tencentcloud/common/abstract_client_async.py +654 -0
  93. tencentcloud/common/common_client_async.py +45 -0
  94. tencentcloud/common/http/request_async.py +62 -0
  95. tencentcloud/common/retry_async.py +87 -0
  96. tencentcloud/config/v20220802/config_client_async.py +152 -0
  97. tencentcloud/controlcenter/v20230110/controlcenter_client_async.py +116 -0
  98. tencentcloud/cpdp/v20190820/cpdp_client_async.py +3979 -0
  99. tencentcloud/csip/v20221121/csip_client.py +1 -1
  100. tencentcloud/csip/v20221121/csip_client_async.py +1502 -0
  101. tencentcloud/csip/v20221121/models.py +105 -0
  102. tencentcloud/csxg/v20230303/csxg_client_async.py +116 -0
  103. tencentcloud/ctem/v20231128/ctem_client.py +644 -0
  104. tencentcloud/ctem/v20231128/ctem_client_async.py +1124 -0
  105. tencentcloud/ctem/v20231128/models.py +4999 -711
  106. tencentcloud/ctsdb/v20230202/ctsdb_client_async.py +69 -0
  107. tencentcloud/cvm/v20170312/cvm_client.py +1 -1
  108. tencentcloud/cvm/v20170312/cvm_client_async.py +2025 -0
  109. tencentcloud/cvm/v20170312/errorcodes.py +3 -0
  110. tencentcloud/cvm/v20170312/models.py +14 -14
  111. tencentcloud/cwp/v20180228/cwp_client_async.py +9288 -0
  112. tencentcloud/cws/v20180312/cws_client_async.py +368 -0
  113. tencentcloud/cynosdb/v20190107/cynosdb_client_async.py +3068 -0
  114. tencentcloud/cynosdb/v20190107/models.py +99 -2
  115. tencentcloud/dasb/v20191018/dasb_client_async.py +1160 -0
  116. tencentcloud/dataagent/v20250513/dataagent_client_async.py +224 -0
  117. tencentcloud/dataagent/v20250513/models.py +15 -0
  118. tencentcloud/dayu/v20180709/dayu_client_async.py +2042 -0
  119. tencentcloud/dbbrain/v20191016/dbbrain_client_async.py +530 -0
  120. tencentcloud/dbbrain/v20210527/dbbrain_client.py +23 -0
  121. tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +1538 -0
  122. tencentcloud/dbbrain/v20210527/models.py +463 -12
  123. tencentcloud/dbdc/v20201029/dbdc_client_async.py +134 -0
  124. tencentcloud/dc/v20180410/dc_client_async.py +425 -0
  125. tencentcloud/dcdb/v20180411/dcdb_client_async.py +1541 -0
  126. tencentcloud/dlc/v20210125/dlc_client.py +23 -0
  127. tencentcloud/dlc/v20210125/dlc_client_async.py +3322 -0
  128. tencentcloud/dlc/v20210125/errorcodes.py +9 -0
  129. tencentcloud/dlc/v20210125/models.py +1424 -17
  130. tencentcloud/dnspod/v20210323/dnspod_client_async.py +1710 -0
  131. tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
  132. tencentcloud/dnspod/v20210323/models.py +2 -2
  133. tencentcloud/domain/v20180808/domain_client_async.py +1022 -0
  134. tencentcloud/drm/v20181115/drm_client_async.py +231 -0
  135. tencentcloud/ds/v20180523/ds_client_async.py +244 -0
  136. tencentcloud/dsgc/v20190723/dsgc_client_async.py +2452 -0
  137. tencentcloud/dsgc/v20190723/models.py +36 -36
  138. tencentcloud/dts/v20180330/dts_client_async.py +438 -0
  139. tencentcloud/dts/v20211206/dts_client.py +184 -0
  140. tencentcloud/dts/v20211206/dts_client_async.py +1480 -0
  141. tencentcloud/dts/v20211206/models.py +1275 -98
  142. tencentcloud/eb/v20210416/eb_client_async.py +602 -0
  143. tencentcloud/ecc/v20181213/ecc_client_async.py +100 -0
  144. tencentcloud/ecdn/v20191012/ecdn_client_async.py +162 -0
  145. tencentcloud/ecm/v20190719/ecm_client_async.py +2602 -0
  146. tencentcloud/eiam/v20210420/eiam_client_async.py +782 -0
  147. tencentcloud/eis/v20200715/eis_client_async.py +80 -0
  148. tencentcloud/eis/v20210601/eis_client_async.py +116 -0
  149. tencentcloud/emr/v20190103/emr_client.py +23 -0
  150. tencentcloud/emr/v20190103/emr_client_async.py +1659 -0
  151. tencentcloud/emr/v20190103/models.py +395 -0
  152. tencentcloud/es/v20180416/es_client_async.py +1209 -0
  153. tencentcloud/es/v20250101/es_client.py +6 -5
  154. tencentcloud/es/v20250101/es_client_async.py +216 -0
  155. tencentcloud/es/v20250101/models.py +6 -6
  156. tencentcloud/ess/v20201111/ess_client.py +6 -2
  157. tencentcloud/ess/v20201111/ess_client_async.py +3406 -0
  158. tencentcloud/ess/v20201111/models.py +468 -19
  159. tencentcloud/essbasic/v20201222/essbasic_client_async.py +1029 -0
  160. tencentcloud/essbasic/v20210526/essbasic_client.py +1 -1
  161. tencentcloud/essbasic/v20210526/essbasic_client_async.py +2757 -0
  162. tencentcloud/essbasic/v20210526/models.py +320 -6
  163. tencentcloud/evt/__init__.py +0 -0
  164. tencentcloud/evt/v20250217/__init__.py +0 -0
  165. tencentcloud/evt/v20250217/errorcodes.py +15 -0
  166. tencentcloud/evt/v20250217/evt_client.py +49 -0
  167. tencentcloud/evt/v20250217/evt_client_async.py +44 -0
  168. tencentcloud/evt/v20250217/models.py +228 -0
  169. tencentcloud/facefusion/v20181201/facefusion_client_async.py +86 -0
  170. tencentcloud/facefusion/v20220927/facefusion_client_async.py +83 -0
  171. tencentcloud/faceid/v20180301/errorcodes.py +0 -6
  172. tencentcloud/faceid/v20180301/faceid_client.py +0 -23
  173. tencentcloud/faceid/v20180301/faceid_client_async.py +674 -0
  174. tencentcloud/faceid/v20180301/models.py +45 -195
  175. tencentcloud/fmu/v20191213/fmu_client_async.py +161 -0
  176. tencentcloud/ft/v20200304/ft_client_async.py +134 -0
  177. tencentcloud/gaap/v20180529/gaap_client_async.py +1865 -0
  178. tencentcloud/gme/v20180711/gme_client_async.py +865 -0
  179. tencentcloud/goosefs/v20220519/goosefs_client_async.py +514 -0
  180. tencentcloud/gs/v20191118/gs_client.py +46 -0
  181. tencentcloud/gs/v20191118/gs_client_async.py +1527 -0
  182. tencentcloud/gs/v20191118/models.py +227 -0
  183. tencentcloud/gwlb/v20240906/gwlb_client_async.py +373 -0
  184. tencentcloud/habo/v20181203/habo_client_async.py +62 -0
  185. tencentcloud/hai/v20230812/hai_client_async.py +316 -0
  186. tencentcloud/hasim/v20210716/hasim_client_async.py +422 -0
  187. tencentcloud/hcm/v20181106/hcm_client_async.py +44 -0
  188. tencentcloud/hunyuan/v20230901/hunyuan_client_async.py +469 -0
  189. tencentcloud/iai/v20180301/iai_client.py +0 -44
  190. tencentcloud/iai/v20180301/iai_client_async.py +728 -0
  191. tencentcloud/iai/v20180301/models.py +0 -171
  192. tencentcloud/iai/v20200303/iai_client.py +1 -35
  193. tencentcloud/iai/v20200303/iai_client_async.py +802 -0
  194. tencentcloud/iai/v20200303/models.py +0 -175
  195. tencentcloud/iap/v20240713/iap_client_async.py +134 -0
  196. tencentcloud/ic/v20190307/ic_client_async.py +193 -0
  197. tencentcloud/icr/v20211014/icr_client_async.py +44 -0
  198. tencentcloud/ie/v20200304/ie_client_async.py +206 -0
  199. tencentcloud/ig/v20210518/ig_client_async.py +44 -0
  200. tencentcloud/igtm/v20231024/igtm_client_async.py +494 -0
  201. tencentcloud/igtm/v20231024/models.py +110 -0
  202. tencentcloud/ims/v20200713/ims_client_async.py +60 -0
  203. tencentcloud/ims/v20201229/ims_client_async.py +132 -0
  204. tencentcloud/ioa/v20220601/ioa_client_async.py +512 -0
  205. tencentcloud/iot/v20180123/iot_client_async.py +838 -0
  206. tencentcloud/iotcloud/v20180614/iotcloud_client_async.py +1268 -0
  207. tencentcloud/iotcloud/v20210408/iotcloud_client_async.py +1340 -0
  208. tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +161 -0
  209. tencentcloud/iotexplorer/v20190423/iotexplorer_client_async.py +3632 -0
  210. tencentcloud/iotexplorer/v20190423/models.py +1669 -337
  211. tencentcloud/iotvideo/v20191126/iotvideo_client_async.py +1278 -0
  212. tencentcloud/iotvideo/v20201215/iotvideo_client_async.py +1448 -0
  213. tencentcloud/iotvideo/v20211125/iotvideo_client_async.py +1970 -0
  214. tencentcloud/iotvideoindustry/v20201201/iotvideoindustry_client_async.py +1921 -0
  215. tencentcloud/irp/v20220324/irp_client_async.py +98 -0
  216. tencentcloud/irp/v20220805/irp_client_async.py +152 -0
  217. tencentcloud/iss/v20230517/iss_client_async.py +1686 -0
  218. tencentcloud/iss/v20230517/models.py +2 -2
  219. tencentcloud/ivld/v20210903/ivld_client_async.py +636 -0
  220. tencentcloud/keewidb/v20220308/keewidb_client_async.py +711 -0
  221. tencentcloud/kms/v20190118/kms_client_async.py +1252 -0
  222. tencentcloud/lcic/v20220817/lcic_client_async.py +1331 -0
  223. tencentcloud/lighthouse/v20200324/lighthouse_client_async.py +2331 -0
  224. tencentcloud/live/v20180801/live_client.py +0 -25
  225. tencentcloud/live/v20180801/live_client_async.py +3758 -0
  226. tencentcloud/live/v20180801/models.py +0 -282
  227. tencentcloud/lke/v20231130/lke_client_async.py +1923 -0
  228. tencentcloud/lke/v20231130/models.py +82 -0
  229. tencentcloud/lkeap/v20240522/lkeap_client.py +3 -13
  230. tencentcloud/lkeap/v20240522/lkeap_client_async.py +618 -0
  231. tencentcloud/lowcode/v20210108/lowcode_client_async.py +332 -0
  232. tencentcloud/mall/v20230518/mall_client_async.py +44 -0
  233. tencentcloud/mariadb/v20170312/mariadb_client_async.py +1505 -0
  234. tencentcloud/market/v20191010/market_client_async.py +62 -0
  235. tencentcloud/memcached/v20190318/memcached_client_async.py +44 -0
  236. tencentcloud/mmps/v20200710/mmps_client_async.py +296 -0
  237. tencentcloud/mna/v20210119/mna_client_async.py +764 -0
  238. tencentcloud/mongodb/v20180408/mongodb_client_async.py +260 -0
  239. tencentcloud/mongodb/v20190725/errorcodes.py +3 -0
  240. tencentcloud/mongodb/v20190725/models.py +390 -2
  241. tencentcloud/mongodb/v20190725/mongodb_client.py +46 -0
  242. tencentcloud/mongodb/v20190725/mongodb_client_async.py +1220 -0
  243. tencentcloud/monitor/v20180724/monitor_client_async.py +3099 -0
  244. tencentcloud/monitor/v20230616/monitor_client_async.py +44 -0
  245. tencentcloud/mps/v20190612/errorcodes.py +9 -0
  246. tencentcloud/mps/v20190612/models.py +2329 -290
  247. tencentcloud/mps/v20190612/mps_client.py +232 -0
  248. tencentcloud/mps/v20190612/mps_client_async.py +2729 -0
  249. tencentcloud/mqtt/v20240516/mqtt_client_async.py +1153 -0
  250. tencentcloud/mrs/v20200910/mrs_client_async.py +231 -0
  251. tencentcloud/ms/v20180408/ms_client_async.py +450 -0
  252. tencentcloud/msp/v20180319/msp_client_async.py +154 -0
  253. tencentcloud/nlp/v20190408/nlp_client_async.py +140 -0
  254. tencentcloud/npp/v20190823/npp_client_async.py +170 -0
  255. tencentcloud/oceanus/v20190422/oceanus_client_async.py +844 -0
  256. tencentcloud/ocr/v20181119/models.py +232 -0
  257. tencentcloud/ocr/v20181119/ocr_client_async.py +2228 -0
  258. tencentcloud/omics/v20221128/omics_client_async.py +386 -0
  259. tencentcloud/organization/v20181225/organization_client_async.py +386 -0
  260. tencentcloud/organization/v20210331/organization_client_async.py +2348 -0
  261. tencentcloud/partners/v20180321/partners_client_async.py +444 -0
  262. tencentcloud/postgres/v20170312/errorcodes.py +6 -0
  263. tencentcloud/postgres/v20170312/postgres_client_async.py +1908 -0
  264. tencentcloud/privatedns/v20201028/errorcodes.py +9 -0
  265. tencentcloud/privatedns/v20201028/models.py +783 -17
  266. tencentcloud/privatedns/v20201028/privatedns_client.py +93 -1
  267. tencentcloud/privatedns/v20201028/privatedns_client_async.py +746 -0
  268. tencentcloud/pts/v20210728/pts_client_async.py +890 -0
  269. tencentcloud/rce/v20201103/rce_client_async.py +224 -0
  270. tencentcloud/redis/v20180412/redis_client_async.py +2008 -0
  271. tencentcloud/region/v20220627/region_client_async.py +80 -0
  272. tencentcloud/rum/v20210622/rum_client_async.py +999 -0
  273. tencentcloud/scf/v20180416/errorcodes.py +6 -0
  274. tencentcloud/scf/v20180416/models.py +263 -0
  275. tencentcloud/scf/v20180416/scf_client_async.py +984 -0
  276. tencentcloud/securitylake/v20240117/securitylake_client_async.py +44 -0
  277. tencentcloud/ses/v20201002/ses_client_async.py +657 -0
  278. tencentcloud/smh/v20210712/smh_client_async.py +296 -0
  279. tencentcloud/smop/v20201203/smop_client_async.py +46 -0
  280. tencentcloud/sms/v20190711/sms_client_async.py +326 -0
  281. tencentcloud/sms/v20210111/sms_client_async.py +365 -0
  282. tencentcloud/soe/v20180724/soe_client_async.py +98 -0
  283. tencentcloud/sqlserver/v20180328/sqlserver_client_async.py +2693 -0
  284. tencentcloud/ssa/v20180608/ssa_client_async.py +440 -0
  285. tencentcloud/ssl/v20191205/ssl_client_async.py +1257 -0
  286. tencentcloud/sslpod/v20190605/sslpod_client_async.py +206 -0
  287. tencentcloud/ssm/v20190923/ssm_client_async.py +468 -0
  288. tencentcloud/sts/v20180813/sts_client_async.py +205 -0
  289. tencentcloud/svp/v20240125/svp_client_async.py +116 -0
  290. tencentcloud/taf/v20200210/taf_client_async.py +44 -0
  291. tencentcloud/tag/v20180813/tag_client_async.py +584 -0
  292. tencentcloud/tat/v20201028/tat_client_async.py +565 -0
  293. tencentcloud/tbaas/v20180416/tbaas_client_async.py +458 -0
  294. tencentcloud/tbp/v20190311/tbp_client_async.py +98 -0
  295. tencentcloud/tbp/v20190627/tbp_client_async.py +62 -0
  296. tencentcloud/tcaplusdb/v20190823/tcaplusdb_client_async.py +986 -0
  297. tencentcloud/tcb/v20180608/tcb_client_async.py +1632 -0
  298. tencentcloud/tcbr/v20220217/models.py +15 -0
  299. tencentcloud/tcbr/v20220217/tcbr_client_async.py +206 -0
  300. tencentcloud/tccatalog/v20241024/tccatalog_client_async.py +98 -0
  301. tencentcloud/tchd/v20230306/tchd_client_async.py +65 -0
  302. tencentcloud/tcm/v20210413/tcm_client_async.py +242 -0
  303. tencentcloud/tcr/v20190924/tcr_client_async.py +2008 -0
  304. tencentcloud/tcss/v20201101/tcss_client_async.py +6169 -0
  305. tencentcloud/tdai/v20250717/models.py +55 -10
  306. tencentcloud/tdai/v20250717/tdai_client.py +1 -1
  307. tencentcloud/tdai/v20250717/tdai_client_async.py +350 -0
  308. tencentcloud/tdcpg/v20211118/tdcpg_client_async.py +482 -0
  309. tencentcloud/tdid/v20210519/tdid_client_async.py +353 -0
  310. tencentcloud/tdmq/v20200217/errorcodes.py +3 -0
  311. tencentcloud/tdmq/v20200217/models.py +636 -904
  312. tencentcloud/tdmq/v20200217/tdmq_client.py +44 -73
  313. tencentcloud/tdmq/v20200217/tdmq_client_async.py +2732 -0
  314. tencentcloud/tds/v20220801/tds_client_async.py +116 -0
  315. tencentcloud/tem/v20201221/tem_client_async.py +332 -0
  316. tencentcloud/tem/v20210701/tem_client_async.py +949 -0
  317. tencentcloud/teo/v20220106/teo_client_async.py +120 -0
  318. tencentcloud/teo/v20220901/models.py +267 -4
  319. tencentcloud/teo/v20220901/teo_client_async.py +3609 -0
  320. tencentcloud/thpc/v20211109/thpc_client_async.py +98 -0
  321. tencentcloud/thpc/v20220401/thpc_client_async.py +321 -0
  322. tencentcloud/thpc/v20230321/models.py +30 -0
  323. tencentcloud/thpc/v20230321/thpc_client_async.py +591 -0
  324. tencentcloud/tia/v20180226/tia_client_async.py +206 -0
  325. tencentcloud/tiia/v20190529/tiia_client_async.py +536 -0
  326. tencentcloud/tione/v20191022/tione_client_async.py +422 -0
  327. tencentcloud/tione/v20211111/tione_client_async.py +1003 -0
  328. tencentcloud/tiw/v20190919/tiw_client_async.py +656 -0
  329. tencentcloud/tke/v20180525/errorcodes.py +3 -0
  330. tencentcloud/tke/v20180525/models.py +3129 -288
  331. tencentcloud/tke/v20180525/tke_client.py +414 -0
  332. tencentcloud/tke/v20180525/tke_client_async.py +4562 -0
  333. tencentcloud/tke/v20220501/tke_client_async.py +343 -0
  334. tencentcloud/tkgdq/v20190411/tkgdq_client_async.py +80 -0
  335. tencentcloud/tms/v20200713/tms_client_async.py +98 -0
  336. tencentcloud/tms/v20201229/tms_client_async.py +97 -0
  337. tencentcloud/tmt/v20180321/tmt_client_async.py +183 -0
  338. tencentcloud/tourism/v20230215/tourism_client_async.py +44 -0
  339. tencentcloud/trabbit/v20230418/trabbit_client_async.py +548 -0
  340. tencentcloud/trocket/v20230308/trocket_client_async.py +1390 -0
  341. tencentcloud/trp/v20210515/trp_client_async.py +1002 -0
  342. tencentcloud/trro/v20220325/trro_client_async.py +588 -0
  343. tencentcloud/trtc/v20190722/errorcodes.py +3 -0
  344. tencentcloud/trtc/v20190722/models.py +21 -6
  345. tencentcloud/trtc/v20190722/trtc_client.py +1 -0
  346. tencentcloud/trtc/v20190722/trtc_client_async.py +1516 -0
  347. tencentcloud/tse/v20201207/tse_client_async.py +2240 -0
  348. tencentcloud/tsf/v20180326/models.py +4 -4
  349. tencentcloud/tsf/v20180326/tsf_client_async.py +4143 -0
  350. tencentcloud/tsi/v20210325/tsi_client_async.py +104 -0
  351. tencentcloud/tsw/v20200924/tsw_client_async.py +44 -0
  352. tencentcloud/tsw/v20210412/tsw_client_async.py +80 -0
  353. tencentcloud/tts/v20190823/tts_client_async.py +107 -0
  354. tencentcloud/vcg/v20240404/vcg_client_async.py +62 -0
  355. tencentcloud/vclm/v20240523/errorcodes.py +27 -0
  356. tencentcloud/vclm/v20240523/models.py +415 -16
  357. tencentcloud/vclm/v20240523/vclm_client.py +47 -0
  358. tencentcloud/vclm/v20240523/vclm_client_async.py +263 -0
  359. tencentcloud/vcube/v20220410/models.py +98 -0
  360. tencentcloud/vcube/v20220410/vcube_client.py +46 -0
  361. tencentcloud/vcube/v20220410/vcube_client_async.py +674 -0
  362. tencentcloud/vdb/v20230616/vdb_client_async.py +278 -0
  363. tencentcloud/vm/v20200709/vm_client_async.py +120 -0
  364. tencentcloud/vm/v20201229/vm_client_async.py +139 -0
  365. tencentcloud/vm/v20210922/models.py +2 -2
  366. tencentcloud/vm/v20210922/vm_client_async.py +148 -0
  367. tencentcloud/vms/v20200902/vms_client_async.py +62 -0
  368. tencentcloud/vod/v20180717/models.py +6 -2
  369. tencentcloud/vod/v20180717/vod_client_async.py +3712 -0
  370. tencentcloud/vod/v20240718/vod_client_async.py +160 -0
  371. tencentcloud/vpc/v20170312/vpc_client_async.py +8139 -0
  372. tencentcloud/vrs/v20200824/vrs_client_async.py +182 -0
  373. tencentcloud/vtc/v20240223/vtc_client_async.py +132 -0
  374. tencentcloud/waf/v20180125/models.py +3924 -0
  375. tencentcloud/waf/v20180125/waf_client.py +230 -0
  376. tencentcloud/waf/v20180125/waf_client_async.py +3542 -0
  377. tencentcloud/wav/v20210129/wav_client_async.py +494 -0
  378. tencentcloud/wedata/v20210820/wedata_client_async.py +5384 -0
  379. tencentcloud/wedata/v20250806/wedata_client_async.py +2168 -0
  380. tencentcloud/weilingwith/v20230427/weilingwith_client_async.py +1180 -0
  381. tencentcloud/wsa/v20250508/wsa_client_async.py +44 -0
  382. tencentcloud/wss/v20180426/wss_client_async.py +80 -0
  383. tencentcloud/yinsuda/v20220527/yinsuda_client_async.py +386 -0
  384. tencentcloud/yunjing/v20180228/yunjing_client_async.py +1826 -0
  385. tencentcloud/yunsou/v20180504/yunsou_client_async.py +62 -0
  386. tencentcloud/yunsou/v20191115/yunsou_client_async.py +62 -0
  387. {tencentcloud_sdk_python-3.0.1491.dist-info → tencentcloud_sdk_python-3.1.6.dist-info}/METADATA +3 -1
  388. {tencentcloud_sdk_python-3.0.1491.dist-info → tencentcloud_sdk_python-3.1.6.dist-info}/RECORD +391 -103
  389. {tencentcloud_sdk_python-3.0.1491.dist-info → tencentcloud_sdk_python-3.1.6.dist-info}/LICENSE +0 -0
  390. {tencentcloud_sdk_python-3.0.1491.dist-info → tencentcloud_sdk_python-3.1.6.dist-info}/WHEEL +0 -0
  391. {tencentcloud_sdk_python-3.0.1491.dist-info → tencentcloud_sdk_python-3.1.6.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,618 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.lkeap.v20240522 import models
20
+ from typing import Dict
21
+
22
+
23
+ class LkeapClient(AbstractClient):
24
+ _apiVersion = '2024-05-22'
25
+ _endpoint = 'lkeap.tencentcloudapi.com'
26
+ _service = 'lkeap'
27
+
28
+ async def ChatCompletions(
29
+ self,
30
+ request: models.ChatCompletionsRequest,
31
+ opts: Dict = None,
32
+ ) -> models.ChatCompletionsResponse:
33
+ """
34
+ ### 接口功能
35
+
36
+ 调用接口,发起一次对话请求。默认该接口下的单账号QPM上限为15000 ,TPM上限为1200000
37
+ 如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)
38
+
39
+ #### 在线体验
40
+ 如您希望在网页内直接体验 DeepSeek 模型对话,推荐您前往[腾讯云智能体开发平台](https://cloud.tencent.com/product/lke),使用[ DeepSeek 联网助手](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR)。
41
+
42
+ #### 已支持的模型
43
+ - DeepSeek-V3-0324(model 参数值为**deepseek-v3-0324**)
44
+ - DeepSeek-V3-0324为671B参数MoE模型,在编程与技术能力、上下文理解与长文本处理等方面优势突出。
45
+ - 支持128K上下文长度,最大输出16k(不含思维链)。
46
+ - 注意:相比于DeepSeek-V3,DeepSeek-V3-0324仅更新了模型权重,未增加参数量。总模型大小为685B,其中包括671B的主模型权重和 14B 的多令牌预测(MTP)模块权重,后续均描述主模型参数量。
47
+ - DeepSeek-R1-0528(model 参数值为**deepseek-r1-0528**)
48
+ - DeepSeek-R1-0528为671B 模型,架构优化与训练策略升级后,相比上一版本在代码生成、长文本处理和复杂推理领域提升明显。
49
+ - 支持128K上下文长度,最大输入长度96k,最大输出16k(默认4k),最大思维链输出长度32k。
50
+ - DeepSeek-V3.1(model 参数值为 deepseek-v3.1)
51
+ - DeepSeek-V3.1 为685B 参数 MoE 模型,支持混合推理架构,有更高的思考效率和更强的 Agent 能力。
52
+ - 支持128K上下文长度,最大输入长度96k,最大输出32k(默认4k),最大思维链输出长度32k。
53
+ - DeepSeek-V3.1-Terminus(model 参数值为 deepseek-v3.1-terminus)
54
+ - DeepSeek-V3.1-Terminus 为685B 参数 MoE 模型,在保持模型原有能力的基础上,优化了语言一致性,Agent 能力等问题,输出效果相比前一版本更加稳定。
55
+ - 支持128K上下文长度,最大输入长度96k,最大输出32k(默认4k),最大思维链输出长度32k。
56
+ - DeepSeek-V3.2-Exp(model 参数值为 deepseek-v3.2-exp)
57
+ - DeepSeek-V3.2-Exp 为685B 参数 MoE 模型,在 V3.1-Terminus 的基础上引入了 DeepSeek Sparse Attention(一种稀疏注意力机制),针对长文本的训练和推理效率进行了探索性的优化和验证。
58
+ - 支持128K上下文长度,最大输入长度96k,非思考模式最大输出8k(默认4k),思考模式最大输出64k(默认32k),最大思维链输出长度32k。
59
+ - 该模型目前处于试运营阶段,仅支持少量接入,如需申请开通请联系您的商务经理。
60
+ ### 计费说明
61
+
62
+ - 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://console.cloud.tencent.com/lkeap/settings)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。
63
+
64
+ - DeepSeek-R1-0528 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token
65
+
66
+ - DeepSeek-V3-0324 模型 | 输入:0.002元/千token | 输出:0.008元/千token
67
+
68
+ - DeepSeek-V3.1 模型 | 输入:0.004元/千token | 输出:0.012元/千token
69
+
70
+ - DeepSeek-V3.1-Terminus 模型 | 输入:0.004元/千token | 输出:0.012元/千token
71
+
72
+ - DeepSeek-V3.2-Exp 模型 | 输入:0.002元/千token | 输出:0.003元/千token
73
+
74
+
75
+ ### Openai兼容协议接口
76
+ 知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)。
77
+ > base_url: https://api.lkeap.cloud.tencent.com/v1
78
+
79
+ > api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)
80
+
81
+
82
+ ### 快速接入
83
+ 1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。
84
+ 2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。
85
+ 3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。
86
+ 4. 使用[官方 SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK)调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言)。
87
+
88
+ -----------
89
+
90
+ ### SDK调用示例
91
+ 通过本地代码调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言):下面的代码以 Python 语言为例,展示如何访问腾讯云上的DeepSeek模型API的样例。
92
+ (1)安装环境
93
+ ```
94
+ python3 -m pip install --upgrade tencentcloud-sdk-python-common
95
+ python3 -m pip install --upgrade tencentcloud-sdk-python-lkeap
96
+ ```
97
+
98
+ (2)示例代码
99
+
100
+ - 其中SecretKey和SecretID需要从腾讯云控制台获取
101
+
102
+ - 参数params中模型Model字段可以选择“deepseek-r1-0528“和“deepseek-v3-0324”
103
+
104
+ ```
105
+ # -*- coding: utf-8 -*-
106
+ import json
107
+
108
+ from tencentcloud.common.common_client import CommonClient
109
+ from tencentcloud.common import credential
110
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
111
+ from tencentcloud.common.profile.client_profile import ClientProfile
112
+ from tencentcloud.common.profile.http_profile import HttpProfile
113
+
114
+ class NonStreamResponse(object):
115
+ def __init__(self):
116
+ self.response = ""
117
+
118
+ def _deserialize(self, obj):
119
+ self.response = json.dumps(obj)
120
+
121
+ try:
122
+ # 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密
123
+ # 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305
124
+ # 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取
125
+ cred = credential.Credential("", "")
126
+
127
+ httpProfile = HttpProfile()
128
+ httpProfile.endpoint = "lkeap.tencentcloudapi.com"
129
+ httpProfile.reqTimeout = 40000 # 流式接口可能耗时较长
130
+ clientProfile = ClientProfile()
131
+ clientProfile.httpProfile = httpProfile
132
+
133
+ params = "{\"Model\":\"deepseek-r1-0528\",\"Messages\":[{\"Role\":\"user\",\"Content\":\"你好\"}],\"Stream\":true}";
134
+ common_client = CommonClient("lkeap", "2024-05-22", cred, "ap-guangzhou", profile=clientProfile)
135
+ resp = common_client._call_and_deserialize("ChatCompletions", json.loads(params), NonStreamResponse)
136
+ if isinstance(resp, NonStreamResponse): # 非流式响应
137
+ print(resp.response)
138
+ else: # 流式响应
139
+ for event in resp:
140
+ print(event)
141
+ except TencentCloudSDKException as err:
142
+ print(err)
143
+
144
+ ```
145
+
146
+ **DeepSeek-R1-0528使用建议**
147
+
148
+ 1. 将温度设置在 0.5-0.7 范围内(建议为0.6),以防止无休止的重复或不连贯的输出。
149
+ 2. 避免添加system prompt,所有说明都应包含在user prompt中。
150
+ """
151
+
152
+ kwargs = {}
153
+ kwargs["action"] = "ChatCompletions"
154
+ kwargs["params"] = request._serialize()
155
+ kwargs["resp_cls"] = models.ChatCompletionsResponse
156
+ kwargs["headers"] = request.headers
157
+ kwargs["opts"] = opts or {}
158
+
159
+ return await self.call_and_deserialize(**kwargs)
160
+
161
+ async def CreateAttributeLabel(
162
+ self,
163
+ request: models.CreateAttributeLabelRequest,
164
+ opts: Dict = None,
165
+ ) -> models.CreateAttributeLabelResponse:
166
+ """
167
+ 用于为问答对创建属性标签,以便对内容进行分类和管理。 使用场景:当需要为问答对添加分类标签和属性标记时使用,比如为问答对添加“售后”标签。
168
+ """
169
+
170
+ kwargs = {}
171
+ kwargs["action"] = "CreateAttributeLabel"
172
+ kwargs["params"] = request._serialize()
173
+ kwargs["resp_cls"] = models.CreateAttributeLabelResponse
174
+ kwargs["headers"] = request.headers
175
+ kwargs["opts"] = opts or {}
176
+
177
+ return await self.call_and_deserialize(**kwargs)
178
+
179
+ async def CreateKnowledgeBase(
180
+ self,
181
+ request: models.CreateKnowledgeBaseRequest,
182
+ opts: Dict = None,
183
+ ) -> models.CreateKnowledgeBaseResponse:
184
+ """
185
+ 用于在系统中创建一个新的知识库。知识库是一个用于存储和管理知识条目的集合,可以包括文档、问答对、属性标签等。创建知识库后,可以向其中添加各种知识条目,以便在后续的知识检索中使用。 使用场景:当需要在系统中建立一个新的知识库以存储和管理特定领域或项目的知识条目时使用。例如,一个用户可能需要创建一个知识库,以存储用户指南、常见问题解答和技术文档。体验用户最多可创建3个知识库,付费用户最多可创建100个知识库。
186
+ """
187
+
188
+ kwargs = {}
189
+ kwargs["action"] = "CreateKnowledgeBase"
190
+ kwargs["params"] = request._serialize()
191
+ kwargs["resp_cls"] = models.CreateKnowledgeBaseResponse
192
+ kwargs["headers"] = request.headers
193
+ kwargs["opts"] = opts or {}
194
+
195
+ return await self.call_and_deserialize(**kwargs)
196
+
197
+ async def CreateQA(
198
+ self,
199
+ request: models.CreateQARequest,
200
+ opts: Dict = None,
201
+ ) -> models.CreateQAResponse:
202
+ """
203
+ 用于创建新的问答对。问答对可以在SearchKnowledge接口知识检索时提供匹配的答案。 使用场景:当需要添加新的知识点和对应的问答对时使用,比如为产品添加新的常见问题解答。
204
+ """
205
+
206
+ kwargs = {}
207
+ kwargs["action"] = "CreateQA"
208
+ kwargs["params"] = request._serialize()
209
+ kwargs["resp_cls"] = models.CreateQAResponse
210
+ kwargs["headers"] = request.headers
211
+ kwargs["opts"] = opts or {}
212
+
213
+ return await self.call_and_deserialize(**kwargs)
214
+
215
+ async def CreateReconstructDocumentFlow(
216
+ self,
217
+ request: models.CreateReconstructDocumentFlowRequest,
218
+ opts: Dict = None,
219
+ ) -> models.CreateReconstructDocumentFlowResponse:
220
+ """
221
+ 本接口为异步接口的发起请求接口,用于发起文档解析任务。
222
+ 文档解析支持将图片或PDF、DOCX、PPTX、EXCEL等文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。具体支持文件类型请查看下方输入参数列表。
223
+
224
+ 体验期间单账号限制qps仅为1,若有正式接入需要请与产研团队沟通开放。
225
+ """
226
+
227
+ kwargs = {}
228
+ kwargs["action"] = "CreateReconstructDocumentFlow"
229
+ kwargs["params"] = request._serialize()
230
+ kwargs["resp_cls"] = models.CreateReconstructDocumentFlowResponse
231
+ kwargs["headers"] = request.headers
232
+ kwargs["opts"] = opts or {}
233
+
234
+ return await self.call_and_deserialize(**kwargs)
235
+
236
+ async def CreateSplitDocumentFlow(
237
+ self,
238
+ request: models.CreateSplitDocumentFlowRequest,
239
+ opts: Dict = None,
240
+ ) -> models.CreateSplitDocumentFlowResponse:
241
+ """
242
+ 用于创建一个文档拆分任务,支持多种文件类型,具备mllm能力,能够解析并深入理解图表中的信息。
243
+ """
244
+
245
+ kwargs = {}
246
+ kwargs["action"] = "CreateSplitDocumentFlow"
247
+ kwargs["params"] = request._serialize()
248
+ kwargs["resp_cls"] = models.CreateSplitDocumentFlowResponse
249
+ kwargs["headers"] = request.headers
250
+ kwargs["opts"] = opts or {}
251
+
252
+ return await self.call_and_deserialize(**kwargs)
253
+
254
+ async def DeleteAttributeLabels(
255
+ self,
256
+ request: models.DeleteAttributeLabelsRequest,
257
+ opts: Dict = None,
258
+ ) -> models.DeleteAttributeLabelsResponse:
259
+ """
260
+ 用于删除不再需要的属性标签。 使用场景:当某个标签不再使用时,可以将其删除以保持标签系统的整洁。
261
+ """
262
+
263
+ kwargs = {}
264
+ kwargs["action"] = "DeleteAttributeLabels"
265
+ kwargs["params"] = request._serialize()
266
+ kwargs["resp_cls"] = models.DeleteAttributeLabelsResponse
267
+ kwargs["headers"] = request.headers
268
+ kwargs["opts"] = opts or {}
269
+
270
+ return await self.call_and_deserialize(**kwargs)
271
+
272
+ async def DeleteDocs(
273
+ self,
274
+ request: models.DeleteDocsRequest,
275
+ opts: Dict = None,
276
+ ) -> models.DeleteDocsResponse:
277
+ """
278
+ 用于删除已有的文档。 使用场景:当某个文档不再需要时,可以将其删除以保持文档库的整洁。
279
+ """
280
+
281
+ kwargs = {}
282
+ kwargs["action"] = "DeleteDocs"
283
+ kwargs["params"] = request._serialize()
284
+ kwargs["resp_cls"] = models.DeleteDocsResponse
285
+ kwargs["headers"] = request.headers
286
+ kwargs["opts"] = opts or {}
287
+
288
+ return await self.call_and_deserialize(**kwargs)
289
+
290
+ async def DeleteKnowledgeBase(
291
+ self,
292
+ request: models.DeleteKnowledgeBaseRequest,
293
+ opts: Dict = None,
294
+ ) -> models.DeleteKnowledgeBaseResponse:
295
+ """
296
+ 用于从系统中删除一个现有的知识库。删除知识库将移除该知识库及其所有关联的知识条目(如文档、问答对、属性标签等)。该操作是不可逆的,请在执行前确认是否需要删除。**使用场景**:当某个知识库不再需要时,可以使用此接口将其从系统中删除。例如,一个项目结束后,其相关的知识库可能不再需要存储,可以使用该接口进行删除。
297
+ """
298
+
299
+ kwargs = {}
300
+ kwargs["action"] = "DeleteKnowledgeBase"
301
+ kwargs["params"] = request._serialize()
302
+ kwargs["resp_cls"] = models.DeleteKnowledgeBaseResponse
303
+ kwargs["headers"] = request.headers
304
+ kwargs["opts"] = opts or {}
305
+
306
+ return await self.call_and_deserialize(**kwargs)
307
+
308
+ async def DeleteQAs(
309
+ self,
310
+ request: models.DeleteQAsRequest,
311
+ opts: Dict = None,
312
+ ) -> models.DeleteQAsResponse:
313
+ """
314
+ 用于删除已有的问答对。 使用场景:当某个问答对不再适用或需要移除时使用。
315
+ """
316
+
317
+ kwargs = {}
318
+ kwargs["action"] = "DeleteQAs"
319
+ kwargs["params"] = request._serialize()
320
+ kwargs["resp_cls"] = models.DeleteQAsResponse
321
+ kwargs["headers"] = request.headers
322
+ kwargs["opts"] = opts or {}
323
+
324
+ return await self.call_and_deserialize(**kwargs)
325
+
326
+ async def DescribeDoc(
327
+ self,
328
+ request: models.DescribeDocRequest,
329
+ opts: Dict = None,
330
+ ) -> models.DescribeDocResponse:
331
+ """
332
+ 用于查询特定文档的详细信息。 使用场景:当需要查看某个文档的具体内容和属性时使用。
333
+ """
334
+
335
+ kwargs = {}
336
+ kwargs["action"] = "DescribeDoc"
337
+ kwargs["params"] = request._serialize()
338
+ kwargs["resp_cls"] = models.DescribeDocResponse
339
+ kwargs["headers"] = request.headers
340
+ kwargs["opts"] = opts or {}
341
+
342
+ return await self.call_and_deserialize(**kwargs)
343
+
344
+ async def GetCharacterUsage(
345
+ self,
346
+ request: models.GetCharacterUsageRequest,
347
+ opts: Dict = None,
348
+ ) -> models.GetCharacterUsageResponse:
349
+ """
350
+ 获取字符使用量统计
351
+ """
352
+
353
+ kwargs = {}
354
+ kwargs["action"] = "GetCharacterUsage"
355
+ kwargs["params"] = request._serialize()
356
+ kwargs["resp_cls"] = models.GetCharacterUsageResponse
357
+ kwargs["headers"] = request.headers
358
+ kwargs["opts"] = opts or {}
359
+
360
+ return await self.call_and_deserialize(**kwargs)
361
+
362
+ async def GetEmbedding(
363
+ self,
364
+ request: models.GetEmbeddingRequest,
365
+ opts: Dict = None,
366
+ ) -> models.GetEmbeddingResponse:
367
+ """
368
+ 本接口(GetEmbedding)调用文本表示模型,将文本转化为用数值表示的向量形式,可用于文本检索、信息推荐、知识挖掘等场景。
369
+ 本接口(GetEmbedding)有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
370
+ """
371
+
372
+ kwargs = {}
373
+ kwargs["action"] = "GetEmbedding"
374
+ kwargs["params"] = request._serialize()
375
+ kwargs["resp_cls"] = models.GetEmbeddingResponse
376
+ kwargs["headers"] = request.headers
377
+ kwargs["opts"] = opts or {}
378
+
379
+ return await self.call_and_deserialize(**kwargs)
380
+
381
+ async def GetReconstructDocumentResult(
382
+ self,
383
+ request: models.GetReconstructDocumentResultRequest,
384
+ opts: Dict = None,
385
+ ) -> models.GetReconstructDocumentResultResponse:
386
+ """
387
+ 本接口为异步接口的查询结果接口,用于获取文档解析处理结果。
388
+ """
389
+
390
+ kwargs = {}
391
+ kwargs["action"] = "GetReconstructDocumentResult"
392
+ kwargs["params"] = request._serialize()
393
+ kwargs["resp_cls"] = models.GetReconstructDocumentResultResponse
394
+ kwargs["headers"] = request.headers
395
+ kwargs["opts"] = opts or {}
396
+
397
+ return await self.call_and_deserialize(**kwargs)
398
+
399
+ async def GetSplitDocumentResult(
400
+ self,
401
+ request: models.GetSplitDocumentResultRequest,
402
+ opts: Dict = None,
403
+ ) -> models.GetSplitDocumentResultResponse:
404
+ """
405
+ 查询文档拆分任务结果
406
+ """
407
+
408
+ kwargs = {}
409
+ kwargs["action"] = "GetSplitDocumentResult"
410
+ kwargs["params"] = request._serialize()
411
+ kwargs["resp_cls"] = models.GetSplitDocumentResultResponse
412
+ kwargs["headers"] = request.headers
413
+ kwargs["opts"] = opts or {}
414
+
415
+ return await self.call_and_deserialize(**kwargs)
416
+
417
+ async def ImportQAs(
418
+ self,
419
+ request: models.ImportQAsRequest,
420
+ opts: Dict = None,
421
+ ) -> models.ImportQAsResponse:
422
+ """
423
+ 用于批量导入问答对,最多支持50,000条数据导入。通过此接口,可以将多个问答对一次性导入系统中,以便在后续的知识检索中使用。导入的问答对可以来自外部系统、文件或其他数据源。使用场景:当需要一次性导入大量的问答对时使用。例如,一个公司可能需要将其产品的常见问题解答从一个文档或外部系统批量导入到知识库中,以便用户可以通过知识检索系统进行查询。
424
+ """
425
+
426
+ kwargs = {}
427
+ kwargs["action"] = "ImportQAs"
428
+ kwargs["params"] = request._serialize()
429
+ kwargs["resp_cls"] = models.ImportQAsResponse
430
+ kwargs["headers"] = request.headers
431
+ kwargs["opts"] = opts or {}
432
+
433
+ return await self.call_and_deserialize(**kwargs)
434
+
435
+ async def ListAttributeLabels(
436
+ self,
437
+ request: models.ListAttributeLabelsRequest,
438
+ opts: Dict = None,
439
+ ) -> models.ListAttributeLabelsResponse:
440
+ """
441
+ 用于获取所有属性标签的列表。 使用场景:用于查看当前系统中所有已有的属性标签,方便进行管理和维护。
442
+ """
443
+
444
+ kwargs = {}
445
+ kwargs["action"] = "ListAttributeLabels"
446
+ kwargs["params"] = request._serialize()
447
+ kwargs["resp_cls"] = models.ListAttributeLabelsResponse
448
+ kwargs["headers"] = request.headers
449
+ kwargs["opts"] = opts or {}
450
+
451
+ return await self.call_and_deserialize(**kwargs)
452
+
453
+ async def ListDocs(
454
+ self,
455
+ request: models.ListDocsRequest,
456
+ opts: Dict = None,
457
+ ) -> models.ListDocsResponse:
458
+ """
459
+ 用于获取所有文档的列表。 使用场景:用于查看当前系统中所有已有的文档,方便进行管理和维护。
460
+ """
461
+
462
+ kwargs = {}
463
+ kwargs["action"] = "ListDocs"
464
+ kwargs["params"] = request._serialize()
465
+ kwargs["resp_cls"] = models.ListDocsResponse
466
+ kwargs["headers"] = request.headers
467
+ kwargs["opts"] = opts or {}
468
+
469
+ return await self.call_and_deserialize(**kwargs)
470
+
471
+ async def ListQAs(
472
+ self,
473
+ request: models.ListQAsRequest,
474
+ opts: Dict = None,
475
+ ) -> models.ListQAsResponse:
476
+ """
477
+ 用于获取所有问答对的列表。 使用场景:用于查看当前系统中所有已有的问答对,方便进行管理和维护。
478
+ """
479
+
480
+ kwargs = {}
481
+ kwargs["action"] = "ListQAs"
482
+ kwargs["params"] = request._serialize()
483
+ kwargs["resp_cls"] = models.ListQAsResponse
484
+ kwargs["headers"] = request.headers
485
+ kwargs["opts"] = opts or {}
486
+
487
+ return await self.call_and_deserialize(**kwargs)
488
+
489
+ async def ModifyAttributeLabel(
490
+ self,
491
+ request: models.ModifyAttributeLabelRequest,
492
+ opts: Dict = None,
493
+ ) -> models.ModifyAttributeLabelResponse:
494
+ """
495
+ 用于修改已有的属性标签。 使用场景:当需要更改属性标签的名称或描述时使用,比如将“售后”标签改为“售前”。
496
+ """
497
+
498
+ kwargs = {}
499
+ kwargs["action"] = "ModifyAttributeLabel"
500
+ kwargs["params"] = request._serialize()
501
+ kwargs["resp_cls"] = models.ModifyAttributeLabelResponse
502
+ kwargs["headers"] = request.headers
503
+ kwargs["opts"] = opts or {}
504
+
505
+ return await self.call_and_deserialize(**kwargs)
506
+
507
+ async def ModifyQA(
508
+ self,
509
+ request: models.ModifyQARequest,
510
+ opts: Dict = None,
511
+ ) -> models.ModifyQAResponse:
512
+ """
513
+ 用于修改已有的问答对。 使用场景:当需要更新问答对的内容或答案时使用。
514
+ """
515
+
516
+ kwargs = {}
517
+ kwargs["action"] = "ModifyQA"
518
+ kwargs["params"] = request._serialize()
519
+ kwargs["resp_cls"] = models.ModifyQAResponse
520
+ kwargs["headers"] = request.headers
521
+ kwargs["opts"] = opts or {}
522
+
523
+ return await self.call_and_deserialize(**kwargs)
524
+
525
+ async def QueryRewrite(
526
+ self,
527
+ request: models.QueryRewriteRequest,
528
+ opts: Dict = None,
529
+ ) -> models.QueryRewriteResponse:
530
+ """
531
+ 多轮改写(QueryRewrite)主要用于多轮对话中,进行指代消解和省略补全。使用本接口,无需输入prompt描述,根据对话历史即可生成更精确的用户查询。在应用场景上,本接口可应用于智能问答、对话式搜索等多种场景。
532
+ 开通[产品体验](https://lke.cloud.tencent.com/lke/#/trialProduct)后可获得50wtoken体验额度。本接口(QueryRewrite)有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
533
+ """
534
+
535
+ kwargs = {}
536
+ kwargs["action"] = "QueryRewrite"
537
+ kwargs["params"] = request._serialize()
538
+ kwargs["resp_cls"] = models.QueryRewriteResponse
539
+ kwargs["headers"] = request.headers
540
+ kwargs["opts"] = opts or {}
541
+
542
+ return await self.call_and_deserialize(**kwargs)
543
+
544
+ async def ReconstructDocumentSSE(
545
+ self,
546
+ request: models.ReconstructDocumentSSERequest,
547
+ opts: Dict = None,
548
+ ) -> models.ReconstructDocumentSSEResponse:
549
+ """
550
+ 准实时文档解析接口,使用HTTP SSE 协议通信。
551
+ 支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
552
+ 输入:pdf、ppt、docx、doc、jpg等
553
+ 输出:正常阅读顺序的md文件、识别结果的json(可选)等
554
+ """
555
+
556
+ kwargs = {}
557
+ kwargs["action"] = "ReconstructDocumentSSE"
558
+ kwargs["params"] = request._serialize()
559
+ kwargs["resp_cls"] = models.ReconstructDocumentSSEResponse
560
+ kwargs["headers"] = request.headers
561
+ kwargs["opts"] = opts or {}
562
+
563
+ return await self.call_and_deserialize(**kwargs)
564
+
565
+ async def RetrieveKnowledge(
566
+ self,
567
+ request: models.RetrieveKnowledgeRequest,
568
+ opts: Dict = None,
569
+ ) -> models.RetrieveKnowledgeResponse:
570
+ """
571
+ 用于检索知识库中的文档和问答对内容。 使用场景:适用于查询长期存储在知识库中的文档和问答对,比如产品手册、用户指南等内容的检索。
572
+ """
573
+
574
+ kwargs = {}
575
+ kwargs["action"] = "RetrieveKnowledge"
576
+ kwargs["params"] = request._serialize()
577
+ kwargs["resp_cls"] = models.RetrieveKnowledgeResponse
578
+ kwargs["headers"] = request.headers
579
+ kwargs["opts"] = opts or {}
580
+
581
+ return await self.call_and_deserialize(**kwargs)
582
+
583
+ async def RunRerank(
584
+ self,
585
+ request: models.RunRerankRequest,
586
+ opts: Dict = None,
587
+ ) -> models.RunRerankResponse:
588
+ """
589
+ 基于知识引擎精调模型技术的rerank模型,支持对多路召回的结果进行重排序,根据query与切片内容的相关性,按照顺序给出每一条结果和query的相关性分数。
590
+ """
591
+
592
+ kwargs = {}
593
+ kwargs["action"] = "RunRerank"
594
+ kwargs["params"] = request._serialize()
595
+ kwargs["resp_cls"] = models.RunRerankResponse
596
+ kwargs["headers"] = request.headers
597
+ kwargs["opts"] = opts or {}
598
+
599
+ return await self.call_and_deserialize(**kwargs)
600
+
601
+ async def UploadDoc(
602
+ self,
603
+ request: models.UploadDocRequest,
604
+ opts: Dict = None,
605
+ ) -> models.UploadDocResponse:
606
+ """
607
+ 用于上传文档内容。上传的文档将存储在知识库中,可以通过RetrieveKnowledge[知识库内容检索接口](https://cloud.tencent.com/document/product/1772/115349)进行检索。
608
+ 使用场景:适用于需要长期存储和检索的文档内容,如产品手册、用户指南等。
609
+ """
610
+
611
+ kwargs = {}
612
+ kwargs["action"] = "UploadDoc"
613
+ kwargs["params"] = request._serialize()
614
+ kwargs["resp_cls"] = models.UploadDocResponse
615
+ kwargs["headers"] = request.headers
616
+ kwargs["opts"] = opts or {}
617
+
618
+ return await self.call_and_deserialize(**kwargs)