tencentcloud-sdk-python-lkeap 3.0.1318__tar.gz → 3.0.1320__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/setup.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/tencentcloud/lkeap/v20240522/lkeap_client.py +2 -1
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/tencentcloud/lkeap/v20240522/models.py +110 -0
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/tencentcloud_sdk_python_lkeap.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-lkeap-3.0.1320/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-lkeap-3.0.1318/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/README.rst +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/setup.cfg +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/tencentcloud/lkeap/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/tencentcloud/lkeap/v20240522/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/tencentcloud/lkeap/v20240522/errorcodes.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/tencentcloud_sdk_python_lkeap.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/tencentcloud_sdk_python_lkeap.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/tencentcloud_sdk_python_lkeap.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-lkeap',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1320"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Lkeap SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -693,7 +693,8 @@ class LkeapClient(AbstractClient):
|
|
|
693
693
|
|
|
694
694
|
|
|
695
695
|
def UploadDocRealtime(self, request):
|
|
696
|
-
"""
|
|
696
|
+
"""用于上传实时文档内容。
|
|
697
|
+
实时文档在上传后可以立即通过SearchRealtime进行实时检索,适用于在会话中对文档进行问答的场景。
|
|
697
698
|
|
|
698
699
|
:param request: Request instance for UploadDocRealtime.
|
|
699
700
|
:type request: :class:`tencentcloud.lkeap.v20240522.models.UploadDocRealtimeRequest`
|
|
@@ -4747,6 +4747,116 @@ class UploadDocRealtimeRequest(AbstractModel):
|
|
|
4747
4747
|
|
|
4748
4748
|
"""
|
|
4749
4749
|
|
|
4750
|
+
def __init__(self):
|
|
4751
|
+
r"""
|
|
4752
|
+
:param _KnowledgeBaseId: 知识库ID
|
|
4753
|
+
:type KnowledgeBaseId: str
|
|
4754
|
+
:param _FileName: 文件名,可选。
|
|
4755
|
+
**需带文件类型后缀**,当文件名无法从传入的`FileUrl`获取时需要通过该字段来明确。
|
|
4756
|
+
:type FileName: str
|
|
4757
|
+
:param _FileType: 文件类型。
|
|
4758
|
+
**支持的文件类型:**
|
|
4759
|
+
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`
|
|
4760
|
+
|
|
4761
|
+
**支持的文件大小:**
|
|
4762
|
+
- `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
|
4763
|
+
- `TXT`、`MD` 最大10M
|
|
4764
|
+
- 其他 最大20M
|
|
4765
|
+
:type FileType: str
|
|
4766
|
+
:param _FileUrl: 文件的 URL 地址。
|
|
4767
|
+
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
|
4768
|
+
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
|
4769
|
+
:type FileUrl: str
|
|
4770
|
+
:param _ExpireTime: 过期时间的秒数,最长24小时,默认24小时
|
|
4771
|
+
:type ExpireTime: int
|
|
4772
|
+
"""
|
|
4773
|
+
self._KnowledgeBaseId = None
|
|
4774
|
+
self._FileName = None
|
|
4775
|
+
self._FileType = None
|
|
4776
|
+
self._FileUrl = None
|
|
4777
|
+
self._ExpireTime = None
|
|
4778
|
+
|
|
4779
|
+
@property
|
|
4780
|
+
def KnowledgeBaseId(self):
|
|
4781
|
+
"""知识库ID
|
|
4782
|
+
:rtype: str
|
|
4783
|
+
"""
|
|
4784
|
+
return self._KnowledgeBaseId
|
|
4785
|
+
|
|
4786
|
+
@KnowledgeBaseId.setter
|
|
4787
|
+
def KnowledgeBaseId(self, KnowledgeBaseId):
|
|
4788
|
+
self._KnowledgeBaseId = KnowledgeBaseId
|
|
4789
|
+
|
|
4790
|
+
@property
|
|
4791
|
+
def FileName(self):
|
|
4792
|
+
"""文件名,可选。
|
|
4793
|
+
**需带文件类型后缀**,当文件名无法从传入的`FileUrl`获取时需要通过该字段来明确。
|
|
4794
|
+
:rtype: str
|
|
4795
|
+
"""
|
|
4796
|
+
return self._FileName
|
|
4797
|
+
|
|
4798
|
+
@FileName.setter
|
|
4799
|
+
def FileName(self, FileName):
|
|
4800
|
+
self._FileName = FileName
|
|
4801
|
+
|
|
4802
|
+
@property
|
|
4803
|
+
def FileType(self):
|
|
4804
|
+
"""文件类型。
|
|
4805
|
+
**支持的文件类型:**
|
|
4806
|
+
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`
|
|
4807
|
+
|
|
4808
|
+
**支持的文件大小:**
|
|
4809
|
+
- `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
|
4810
|
+
- `TXT`、`MD` 最大10M
|
|
4811
|
+
- 其他 最大20M
|
|
4812
|
+
:rtype: str
|
|
4813
|
+
"""
|
|
4814
|
+
return self._FileType
|
|
4815
|
+
|
|
4816
|
+
@FileType.setter
|
|
4817
|
+
def FileType(self, FileType):
|
|
4818
|
+
self._FileType = FileType
|
|
4819
|
+
|
|
4820
|
+
@property
|
|
4821
|
+
def FileUrl(self):
|
|
4822
|
+
"""文件的 URL 地址。
|
|
4823
|
+
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
|
4824
|
+
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
|
4825
|
+
:rtype: str
|
|
4826
|
+
"""
|
|
4827
|
+
return self._FileUrl
|
|
4828
|
+
|
|
4829
|
+
@FileUrl.setter
|
|
4830
|
+
def FileUrl(self, FileUrl):
|
|
4831
|
+
self._FileUrl = FileUrl
|
|
4832
|
+
|
|
4833
|
+
@property
|
|
4834
|
+
def ExpireTime(self):
|
|
4835
|
+
"""过期时间的秒数,最长24小时,默认24小时
|
|
4836
|
+
:rtype: int
|
|
4837
|
+
"""
|
|
4838
|
+
return self._ExpireTime
|
|
4839
|
+
|
|
4840
|
+
@ExpireTime.setter
|
|
4841
|
+
def ExpireTime(self, ExpireTime):
|
|
4842
|
+
self._ExpireTime = ExpireTime
|
|
4843
|
+
|
|
4844
|
+
|
|
4845
|
+
def _deserialize(self, params):
|
|
4846
|
+
self._KnowledgeBaseId = params.get("KnowledgeBaseId")
|
|
4847
|
+
self._FileName = params.get("FileName")
|
|
4848
|
+
self._FileType = params.get("FileType")
|
|
4849
|
+
self._FileUrl = params.get("FileUrl")
|
|
4850
|
+
self._ExpireTime = params.get("ExpireTime")
|
|
4851
|
+
memeber_set = set(params.keys())
|
|
4852
|
+
for name, value in vars(self).items():
|
|
4853
|
+
property_name = name[1:]
|
|
4854
|
+
if property_name in memeber_set:
|
|
4855
|
+
memeber_set.remove(property_name)
|
|
4856
|
+
if len(memeber_set) > 0:
|
|
4857
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4858
|
+
|
|
4859
|
+
|
|
4750
4860
|
|
|
4751
4861
|
class UploadDocRealtimeResponse(AbstractModel):
|
|
4752
4862
|
"""UploadDocRealtime返回参数结构体
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1320
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1318
|
{tencentcloud-sdk-python-lkeap-3.0.1318 → tencentcloud-sdk-python-lkeap-3.0.1320}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|