tencentcloud-sdk-python-dataagent 3.1.60__tar.gz → 3.1.99__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_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/setup.py +1 -1
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud/dataagent/v20250513/dataagent_client.py +23 -0
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud/dataagent/v20250513/dataagent_client_async.py +18 -0
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud/dataagent/v20250513/models.py +179 -68
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud_sdk_python_dataagent.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_dataagent-3.1.99/tencentcloud_sdk_python_dataagent.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_dataagent-3.1.60/tencentcloud_sdk_python_dataagent.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/README.rst +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/setup.cfg +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud/dataagent/__init__.py +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud/dataagent/v20250513/__init__.py +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud/dataagent/v20250513/errorcodes.py +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud_sdk_python_dataagent.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud_sdk_python_dataagent.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/tencentcloud_sdk_python_dataagent.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-dataagent
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.99
|
|
4
4
|
Summary: Tencent Cloud Dataagent SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.99
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-dataagent',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.99,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Dataagent SDK for Python',
|
|
@@ -297,6 +297,29 @@ class DataagentClient(AbstractClient):
|
|
|
297
297
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
298
298
|
|
|
299
299
|
|
|
300
|
+
def GetUserInstanceList(self, request):
|
|
301
|
+
r"""获取实例信息列表
|
|
302
|
+
|
|
303
|
+
:param request: Request instance for GetUserInstanceList.
|
|
304
|
+
:type request: :class:`tencentcloud.dataagent.v20250513.models.GetUserInstanceListRequest`
|
|
305
|
+
:rtype: :class:`tencentcloud.dataagent.v20250513.models.GetUserInstanceListResponse`
|
|
306
|
+
|
|
307
|
+
"""
|
|
308
|
+
try:
|
|
309
|
+
params = request._serialize()
|
|
310
|
+
headers = request.headers
|
|
311
|
+
body = self.call("GetUserInstanceList", params, headers=headers)
|
|
312
|
+
response = json.loads(body)
|
|
313
|
+
model = models.GetUserInstanceListResponse()
|
|
314
|
+
model._deserialize(response["Response"])
|
|
315
|
+
return model
|
|
316
|
+
except Exception as e:
|
|
317
|
+
if isinstance(e, TencentCloudSDKException):
|
|
318
|
+
raise
|
|
319
|
+
else:
|
|
320
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
321
|
+
|
|
322
|
+
|
|
300
323
|
def ModifyChunk(self, request):
|
|
301
324
|
r"""编辑修改分片
|
|
302
325
|
|
|
@@ -241,6 +241,24 @@ class DataagentClient(AbstractClient):
|
|
|
241
241
|
|
|
242
242
|
return await self.call_and_deserialize(**kwargs)
|
|
243
243
|
|
|
244
|
+
async def GetUserInstanceList(
|
|
245
|
+
self,
|
|
246
|
+
request: models.GetUserInstanceListRequest,
|
|
247
|
+
opts: Dict = None,
|
|
248
|
+
) -> models.GetUserInstanceListResponse:
|
|
249
|
+
"""
|
|
250
|
+
获取实例信息列表
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
kwargs = {}
|
|
254
|
+
kwargs["action"] = "GetUserInstanceList"
|
|
255
|
+
kwargs["params"] = request._serialize()
|
|
256
|
+
kwargs["resp_cls"] = models.GetUserInstanceListResponse
|
|
257
|
+
kwargs["headers"] = request.headers
|
|
258
|
+
kwargs["opts"] = opts or {}
|
|
259
|
+
|
|
260
|
+
return await self.call_and_deserialize(**kwargs)
|
|
261
|
+
|
|
244
262
|
async def ModifyChunk(
|
|
245
263
|
self,
|
|
246
264
|
request: models.ModifyChunkRequest,
|
|
@@ -1290,6 +1290,8 @@ class FileInfo(AbstractModel):
|
|
|
1290
1290
|
:type DocumentSummary: str
|
|
1291
1291
|
:param _WebUrl: <p>网页地址</p>
|
|
1292
1292
|
:type WebUrl: str
|
|
1293
|
+
:param _Capabilities: <p>文件能力标识列表</p>
|
|
1294
|
+
:type Capabilities: list of str
|
|
1293
1295
|
"""
|
|
1294
1296
|
self._FileName = None
|
|
1295
1297
|
self._FileSize = None
|
|
@@ -1304,6 +1306,7 @@ class FileInfo(AbstractModel):
|
|
|
1304
1306
|
self._IsShowCase = None
|
|
1305
1307
|
self._DocumentSummary = None
|
|
1306
1308
|
self._WebUrl = None
|
|
1309
|
+
self._Capabilities = None
|
|
1307
1310
|
|
|
1308
1311
|
@property
|
|
1309
1312
|
def FileName(self):
|
|
@@ -1448,6 +1451,17 @@ class FileInfo(AbstractModel):
|
|
|
1448
1451
|
def WebUrl(self, WebUrl):
|
|
1449
1452
|
self._WebUrl = WebUrl
|
|
1450
1453
|
|
|
1454
|
+
@property
|
|
1455
|
+
def Capabilities(self):
|
|
1456
|
+
r"""<p>文件能力标识列表</p>
|
|
1457
|
+
:rtype: list of str
|
|
1458
|
+
"""
|
|
1459
|
+
return self._Capabilities
|
|
1460
|
+
|
|
1461
|
+
@Capabilities.setter
|
|
1462
|
+
def Capabilities(self, Capabilities):
|
|
1463
|
+
self._Capabilities = Capabilities
|
|
1464
|
+
|
|
1451
1465
|
|
|
1452
1466
|
def _deserialize(self, params):
|
|
1453
1467
|
self._FileName = params.get("FileName")
|
|
@@ -1465,6 +1479,7 @@ class FileInfo(AbstractModel):
|
|
|
1465
1479
|
self._IsShowCase = params.get("IsShowCase")
|
|
1466
1480
|
self._DocumentSummary = params.get("DocumentSummary")
|
|
1467
1481
|
self._WebUrl = params.get("WebUrl")
|
|
1482
|
+
self._Capabilities = params.get("Capabilities")
|
|
1468
1483
|
memeber_set = set(params.keys())
|
|
1469
1484
|
for name, value in vars(self).items():
|
|
1470
1485
|
property_name = name[1:]
|
|
@@ -2027,6 +2042,40 @@ class GetUploadJobDetailsResponse(AbstractModel):
|
|
|
2027
2042
|
self._RequestId = params.get("RequestId")
|
|
2028
2043
|
|
|
2029
2044
|
|
|
2045
|
+
class GetUserInstanceListRequest(AbstractModel):
|
|
2046
|
+
r"""GetUserInstanceList请求参数结构体
|
|
2047
|
+
|
|
2048
|
+
"""
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
class GetUserInstanceListResponse(AbstractModel):
|
|
2052
|
+
r"""GetUserInstanceList返回参数结构体
|
|
2053
|
+
|
|
2054
|
+
"""
|
|
2055
|
+
|
|
2056
|
+
def __init__(self):
|
|
2057
|
+
r"""
|
|
2058
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2059
|
+
:type RequestId: str
|
|
2060
|
+
"""
|
|
2061
|
+
self._RequestId = None
|
|
2062
|
+
|
|
2063
|
+
@property
|
|
2064
|
+
def RequestId(self):
|
|
2065
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2066
|
+
:rtype: str
|
|
2067
|
+
"""
|
|
2068
|
+
return self._RequestId
|
|
2069
|
+
|
|
2070
|
+
@RequestId.setter
|
|
2071
|
+
def RequestId(self, RequestId):
|
|
2072
|
+
self._RequestId = RequestId
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
def _deserialize(self, params):
|
|
2076
|
+
self._RequestId = params.get("RequestId")
|
|
2077
|
+
|
|
2078
|
+
|
|
2030
2079
|
class KnowledgeBase(AbstractModel):
|
|
2031
2080
|
r"""知识库信息
|
|
2032
2081
|
|
|
@@ -2034,21 +2083,22 @@ class KnowledgeBase(AbstractModel):
|
|
|
2034
2083
|
|
|
2035
2084
|
def __init__(self):
|
|
2036
2085
|
r"""
|
|
2037
|
-
:param _KnowledgeBaseId:
|
|
2086
|
+
:param _KnowledgeBaseId: <p>知识库id</p>
|
|
2038
2087
|
:type KnowledgeBaseId: str
|
|
2039
|
-
:param _KnowledgeBaseName:
|
|
2040
|
-
|
|
2088
|
+
:param _KnowledgeBaseName: <p>知识库名称</p>
|
|
2041
2089
|
:type KnowledgeBaseName: str
|
|
2042
|
-
:param _KnowledgeBaseDesc:
|
|
2090
|
+
:param _KnowledgeBaseDesc: <p>知识库描述</p>
|
|
2043
2091
|
:type KnowledgeBaseDesc: str
|
|
2044
|
-
:param _Creator:
|
|
2092
|
+
:param _Creator: <p>创建者subuin</p>
|
|
2045
2093
|
:type Creator: str
|
|
2046
|
-
:param _CreateTime:
|
|
2094
|
+
:param _CreateTime: <p>创建时间</p>
|
|
2047
2095
|
:type CreateTime: str
|
|
2048
|
-
:param _FileNum:
|
|
2096
|
+
:param _FileNum: <p>文件数量</p>
|
|
2049
2097
|
:type FileNum: int
|
|
2050
|
-
:param _DatasourceIds:
|
|
2098
|
+
:param _DatasourceIds: <p>知识库关联的数据库列表,目前是只绑定一个数据源,数组预留拓展</p>
|
|
2051
2099
|
:type DatasourceIds: list of str
|
|
2100
|
+
:param _Config: <p>知识库任务配置</p>
|
|
2101
|
+
:type Config: :class:`tencentcloud.dataagent.v20250513.models.KnowledgeTaskConfig`
|
|
2052
2102
|
"""
|
|
2053
2103
|
self._KnowledgeBaseId = None
|
|
2054
2104
|
self._KnowledgeBaseName = None
|
|
@@ -2057,10 +2107,11 @@ class KnowledgeBase(AbstractModel):
|
|
|
2057
2107
|
self._CreateTime = None
|
|
2058
2108
|
self._FileNum = None
|
|
2059
2109
|
self._DatasourceIds = None
|
|
2110
|
+
self._Config = None
|
|
2060
2111
|
|
|
2061
2112
|
@property
|
|
2062
2113
|
def KnowledgeBaseId(self):
|
|
2063
|
-
r"""
|
|
2114
|
+
r"""<p>知识库id</p>
|
|
2064
2115
|
:rtype: str
|
|
2065
2116
|
"""
|
|
2066
2117
|
return self._KnowledgeBaseId
|
|
@@ -2071,8 +2122,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2071
2122
|
|
|
2072
2123
|
@property
|
|
2073
2124
|
def KnowledgeBaseName(self):
|
|
2074
|
-
r"""
|
|
2075
|
-
|
|
2125
|
+
r"""<p>知识库名称</p>
|
|
2076
2126
|
:rtype: str
|
|
2077
2127
|
"""
|
|
2078
2128
|
return self._KnowledgeBaseName
|
|
@@ -2083,7 +2133,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2083
2133
|
|
|
2084
2134
|
@property
|
|
2085
2135
|
def KnowledgeBaseDesc(self):
|
|
2086
|
-
r"""
|
|
2136
|
+
r"""<p>知识库描述</p>
|
|
2087
2137
|
:rtype: str
|
|
2088
2138
|
"""
|
|
2089
2139
|
return self._KnowledgeBaseDesc
|
|
@@ -2094,7 +2144,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2094
2144
|
|
|
2095
2145
|
@property
|
|
2096
2146
|
def Creator(self):
|
|
2097
|
-
r"""
|
|
2147
|
+
r"""<p>创建者subuin</p>
|
|
2098
2148
|
:rtype: str
|
|
2099
2149
|
"""
|
|
2100
2150
|
return self._Creator
|
|
@@ -2105,7 +2155,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2105
2155
|
|
|
2106
2156
|
@property
|
|
2107
2157
|
def CreateTime(self):
|
|
2108
|
-
r"""
|
|
2158
|
+
r"""<p>创建时间</p>
|
|
2109
2159
|
:rtype: str
|
|
2110
2160
|
"""
|
|
2111
2161
|
return self._CreateTime
|
|
@@ -2116,7 +2166,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2116
2166
|
|
|
2117
2167
|
@property
|
|
2118
2168
|
def FileNum(self):
|
|
2119
|
-
r"""
|
|
2169
|
+
r"""<p>文件数量</p>
|
|
2120
2170
|
:rtype: int
|
|
2121
2171
|
"""
|
|
2122
2172
|
return self._FileNum
|
|
@@ -2127,7 +2177,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2127
2177
|
|
|
2128
2178
|
@property
|
|
2129
2179
|
def DatasourceIds(self):
|
|
2130
|
-
r"""
|
|
2180
|
+
r"""<p>知识库关联的数据库列表,目前是只绑定一个数据源,数组预留拓展</p>
|
|
2131
2181
|
:rtype: list of str
|
|
2132
2182
|
"""
|
|
2133
2183
|
return self._DatasourceIds
|
|
@@ -2136,6 +2186,17 @@ class KnowledgeBase(AbstractModel):
|
|
|
2136
2186
|
def DatasourceIds(self, DatasourceIds):
|
|
2137
2187
|
self._DatasourceIds = DatasourceIds
|
|
2138
2188
|
|
|
2189
|
+
@property
|
|
2190
|
+
def Config(self):
|
|
2191
|
+
r"""<p>知识库任务配置</p>
|
|
2192
|
+
:rtype: :class:`tencentcloud.dataagent.v20250513.models.KnowledgeTaskConfig`
|
|
2193
|
+
"""
|
|
2194
|
+
return self._Config
|
|
2195
|
+
|
|
2196
|
+
@Config.setter
|
|
2197
|
+
def Config(self, Config):
|
|
2198
|
+
self._Config = Config
|
|
2199
|
+
|
|
2139
2200
|
|
|
2140
2201
|
def _deserialize(self, params):
|
|
2141
2202
|
self._KnowledgeBaseId = params.get("KnowledgeBaseId")
|
|
@@ -2145,6 +2206,9 @@ class KnowledgeBase(AbstractModel):
|
|
|
2145
2206
|
self._CreateTime = params.get("CreateTime")
|
|
2146
2207
|
self._FileNum = params.get("FileNum")
|
|
2147
2208
|
self._DatasourceIds = params.get("DatasourceIds")
|
|
2209
|
+
if params.get("Config") is not None:
|
|
2210
|
+
self._Config = KnowledgeTaskConfig()
|
|
2211
|
+
self._Config._deserialize(params.get("Config"))
|
|
2148
2212
|
memeber_set = set(params.keys())
|
|
2149
2213
|
for name, value in vars(self).items():
|
|
2150
2214
|
property_name = name[1:]
|
|
@@ -2162,23 +2226,25 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2162
2226
|
|
|
2163
2227
|
def __init__(self):
|
|
2164
2228
|
r"""
|
|
2165
|
-
:param _ChunkType:
|
|
2229
|
+
:param _ChunkType: <p>切片类型 0:自定义切片,1:智能切片</p>
|
|
2166
2230
|
:type ChunkType: int
|
|
2167
|
-
:param _MaxChunkSize:
|
|
2231
|
+
:param _MaxChunkSize: <p>/智能切片:最小值 1000,默认 4800 自定义切片:正整数即可,默认值 1000</p>
|
|
2168
2232
|
:type MaxChunkSize: int
|
|
2169
|
-
:param _Delimiters:
|
|
2233
|
+
:param _Delimiters: <p>切片分隔符,自定义切片使用:默认值为:["\n\n", "\n", "。", "!", "?", ",", ""]</p>
|
|
2170
2234
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2171
2235
|
:type Delimiters: list of str
|
|
2172
|
-
:param _ChunkOverlap:
|
|
2236
|
+
:param _ChunkOverlap: <p>自定义切片使用:默认0 可重叠字符长度</p>
|
|
2173
2237
|
:type ChunkOverlap: int
|
|
2174
|
-
:param _Columns:
|
|
2238
|
+
:param _Columns: <p>表格类文档解析</p>
|
|
2175
2239
|
:type Columns: list of ColumnInfo
|
|
2176
|
-
:param _Indexes:
|
|
2240
|
+
:param _Indexes: <p>带检索的索引列表</p>
|
|
2177
2241
|
:type Indexes: list of int
|
|
2178
|
-
:param _GenDocSummary: 0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1
|
|
2242
|
+
:param _GenDocSummary: <p>0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1</p>
|
|
2179
2243
|
:type GenDocSummary: int
|
|
2180
|
-
:param _GenParaSummary: 0:不生成段落摘要,1:生成段落概要。默认0
|
|
2244
|
+
:param _GenParaSummary: <p>0:不生成段落摘要,1:生成段落概要。默认0</p>
|
|
2181
2245
|
:type GenParaSummary: int
|
|
2246
|
+
:param _EnableImageUnderstanding: <p>0:不开启图片理解,1:开启图片理解。默认1</p><p>取值范围:[1, 10000]</p><p>默认值:1</p>
|
|
2247
|
+
:type EnableImageUnderstanding: int
|
|
2182
2248
|
"""
|
|
2183
2249
|
self._ChunkType = None
|
|
2184
2250
|
self._MaxChunkSize = None
|
|
@@ -2188,10 +2254,11 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2188
2254
|
self._Indexes = None
|
|
2189
2255
|
self._GenDocSummary = None
|
|
2190
2256
|
self._GenParaSummary = None
|
|
2257
|
+
self._EnableImageUnderstanding = None
|
|
2191
2258
|
|
|
2192
2259
|
@property
|
|
2193
2260
|
def ChunkType(self):
|
|
2194
|
-
r"""
|
|
2261
|
+
r"""<p>切片类型 0:自定义切片,1:智能切片</p>
|
|
2195
2262
|
:rtype: int
|
|
2196
2263
|
"""
|
|
2197
2264
|
return self._ChunkType
|
|
@@ -2202,7 +2269,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2202
2269
|
|
|
2203
2270
|
@property
|
|
2204
2271
|
def MaxChunkSize(self):
|
|
2205
|
-
r"""
|
|
2272
|
+
r"""<p>/智能切片:最小值 1000,默认 4800 自定义切片:正整数即可,默认值 1000</p>
|
|
2206
2273
|
:rtype: int
|
|
2207
2274
|
"""
|
|
2208
2275
|
return self._MaxChunkSize
|
|
@@ -2213,7 +2280,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2213
2280
|
|
|
2214
2281
|
@property
|
|
2215
2282
|
def Delimiters(self):
|
|
2216
|
-
r"""
|
|
2283
|
+
r"""<p>切片分隔符,自定义切片使用:默认值为:["\n\n", "\n", "。", "!", "?", ",", ""]</p>
|
|
2217
2284
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2218
2285
|
:rtype: list of str
|
|
2219
2286
|
"""
|
|
@@ -2225,7 +2292,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2225
2292
|
|
|
2226
2293
|
@property
|
|
2227
2294
|
def ChunkOverlap(self):
|
|
2228
|
-
r"""
|
|
2295
|
+
r"""<p>自定义切片使用:默认0 可重叠字符长度</p>
|
|
2229
2296
|
:rtype: int
|
|
2230
2297
|
"""
|
|
2231
2298
|
return self._ChunkOverlap
|
|
@@ -2236,7 +2303,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2236
2303
|
|
|
2237
2304
|
@property
|
|
2238
2305
|
def Columns(self):
|
|
2239
|
-
r"""
|
|
2306
|
+
r"""<p>表格类文档解析</p>
|
|
2240
2307
|
:rtype: list of ColumnInfo
|
|
2241
2308
|
"""
|
|
2242
2309
|
return self._Columns
|
|
@@ -2247,7 +2314,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2247
2314
|
|
|
2248
2315
|
@property
|
|
2249
2316
|
def Indexes(self):
|
|
2250
|
-
r"""
|
|
2317
|
+
r"""<p>带检索的索引列表</p>
|
|
2251
2318
|
:rtype: list of int
|
|
2252
2319
|
"""
|
|
2253
2320
|
return self._Indexes
|
|
@@ -2258,7 +2325,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2258
2325
|
|
|
2259
2326
|
@property
|
|
2260
2327
|
def GenDocSummary(self):
|
|
2261
|
-
r"""0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1
|
|
2328
|
+
r"""<p>0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1</p>
|
|
2262
2329
|
:rtype: int
|
|
2263
2330
|
"""
|
|
2264
2331
|
return self._GenDocSummary
|
|
@@ -2269,7 +2336,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2269
2336
|
|
|
2270
2337
|
@property
|
|
2271
2338
|
def GenParaSummary(self):
|
|
2272
|
-
r"""0:不生成段落摘要,1:生成段落概要。默认0
|
|
2339
|
+
r"""<p>0:不生成段落摘要,1:生成段落概要。默认0</p>
|
|
2273
2340
|
:rtype: int
|
|
2274
2341
|
"""
|
|
2275
2342
|
return self._GenParaSummary
|
|
@@ -2278,6 +2345,17 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2278
2345
|
def GenParaSummary(self, GenParaSummary):
|
|
2279
2346
|
self._GenParaSummary = GenParaSummary
|
|
2280
2347
|
|
|
2348
|
+
@property
|
|
2349
|
+
def EnableImageUnderstanding(self):
|
|
2350
|
+
r"""<p>0:不开启图片理解,1:开启图片理解。默认1</p><p>取值范围:[1, 10000]</p><p>默认值:1</p>
|
|
2351
|
+
:rtype: int
|
|
2352
|
+
"""
|
|
2353
|
+
return self._EnableImageUnderstanding
|
|
2354
|
+
|
|
2355
|
+
@EnableImageUnderstanding.setter
|
|
2356
|
+
def EnableImageUnderstanding(self, EnableImageUnderstanding):
|
|
2357
|
+
self._EnableImageUnderstanding = EnableImageUnderstanding
|
|
2358
|
+
|
|
2281
2359
|
|
|
2282
2360
|
def _deserialize(self, params):
|
|
2283
2361
|
self._ChunkType = params.get("ChunkType")
|
|
@@ -2293,6 +2371,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2293
2371
|
self._Indexes = params.get("Indexes")
|
|
2294
2372
|
self._GenDocSummary = params.get("GenDocSummary")
|
|
2295
2373
|
self._GenParaSummary = params.get("GenParaSummary")
|
|
2374
|
+
self._EnableImageUnderstanding = params.get("EnableImageUnderstanding")
|
|
2296
2375
|
memeber_set = set(params.keys())
|
|
2297
2376
|
for name, value in vars(self).items():
|
|
2298
2377
|
property_name = name[1:]
|
|
@@ -2575,20 +2654,22 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2575
2654
|
|
|
2576
2655
|
def __init__(self):
|
|
2577
2656
|
r"""
|
|
2578
|
-
:param _InstanceId:
|
|
2657
|
+
:param _InstanceId: <p>实例id</p>
|
|
2579
2658
|
:type InstanceId: str
|
|
2580
|
-
:param _OperateType:
|
|
2659
|
+
:param _OperateType: <p>操作类型:Create,Update,Delete</p>
|
|
2581
2660
|
:type OperateType: str
|
|
2582
|
-
:param _KnowledgeBaseId:
|
|
2661
|
+
:param _KnowledgeBaseId: <p>知识库id,update和delete时必填</p>
|
|
2583
2662
|
:type KnowledgeBaseId: str
|
|
2584
|
-
:param _KnowledgeBaseName:
|
|
2663
|
+
:param _KnowledgeBaseName: <p>知识库名称,create和update时必填。只允许字母、数字、汉字、下划线</p>
|
|
2585
2664
|
:type KnowledgeBaseName: str
|
|
2586
|
-
:param _KnowledgeBaseDesc:
|
|
2665
|
+
:param _KnowledgeBaseDesc: <p>知识库描述,create和update时必填</p>
|
|
2587
2666
|
:type KnowledgeBaseDesc: str
|
|
2588
|
-
:param _UseScope: 1仅自己使用,2指定用户,0
|
|
2667
|
+
:param _UseScope: <p>1仅自己使用,2指定用户,0全员</p>
|
|
2589
2668
|
:type UseScope: int
|
|
2590
|
-
:param _AuthorityUins:
|
|
2669
|
+
:param _AuthorityUins: <p>可使用用户列表</p>
|
|
2591
2670
|
:type AuthorityUins: list of str
|
|
2671
|
+
:param _Config: <p>知识库任务配置</p>
|
|
2672
|
+
:type Config: :class:`tencentcloud.dataagent.v20250513.models.KnowledgeTaskConfig`
|
|
2592
2673
|
"""
|
|
2593
2674
|
self._InstanceId = None
|
|
2594
2675
|
self._OperateType = None
|
|
@@ -2597,10 +2678,11 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2597
2678
|
self._KnowledgeBaseDesc = None
|
|
2598
2679
|
self._UseScope = None
|
|
2599
2680
|
self._AuthorityUins = None
|
|
2681
|
+
self._Config = None
|
|
2600
2682
|
|
|
2601
2683
|
@property
|
|
2602
2684
|
def InstanceId(self):
|
|
2603
|
-
r"""
|
|
2685
|
+
r"""<p>实例id</p>
|
|
2604
2686
|
:rtype: str
|
|
2605
2687
|
"""
|
|
2606
2688
|
return self._InstanceId
|
|
@@ -2611,7 +2693,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2611
2693
|
|
|
2612
2694
|
@property
|
|
2613
2695
|
def OperateType(self):
|
|
2614
|
-
r"""
|
|
2696
|
+
r"""<p>操作类型:Create,Update,Delete</p>
|
|
2615
2697
|
:rtype: str
|
|
2616
2698
|
"""
|
|
2617
2699
|
return self._OperateType
|
|
@@ -2622,7 +2704,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2622
2704
|
|
|
2623
2705
|
@property
|
|
2624
2706
|
def KnowledgeBaseId(self):
|
|
2625
|
-
r"""
|
|
2707
|
+
r"""<p>知识库id,update和delete时必填</p>
|
|
2626
2708
|
:rtype: str
|
|
2627
2709
|
"""
|
|
2628
2710
|
return self._KnowledgeBaseId
|
|
@@ -2633,7 +2715,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2633
2715
|
|
|
2634
2716
|
@property
|
|
2635
2717
|
def KnowledgeBaseName(self):
|
|
2636
|
-
r"""
|
|
2718
|
+
r"""<p>知识库名称,create和update时必填。只允许字母、数字、汉字、下划线</p>
|
|
2637
2719
|
:rtype: str
|
|
2638
2720
|
"""
|
|
2639
2721
|
return self._KnowledgeBaseName
|
|
@@ -2644,7 +2726,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2644
2726
|
|
|
2645
2727
|
@property
|
|
2646
2728
|
def KnowledgeBaseDesc(self):
|
|
2647
|
-
r"""
|
|
2729
|
+
r"""<p>知识库描述,create和update时必填</p>
|
|
2648
2730
|
:rtype: str
|
|
2649
2731
|
"""
|
|
2650
2732
|
return self._KnowledgeBaseDesc
|
|
@@ -2655,7 +2737,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2655
2737
|
|
|
2656
2738
|
@property
|
|
2657
2739
|
def UseScope(self):
|
|
2658
|
-
r"""1仅自己使用,2指定用户,0
|
|
2740
|
+
r"""<p>1仅自己使用,2指定用户,0全员</p>
|
|
2659
2741
|
:rtype: int
|
|
2660
2742
|
"""
|
|
2661
2743
|
return self._UseScope
|
|
@@ -2666,7 +2748,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2666
2748
|
|
|
2667
2749
|
@property
|
|
2668
2750
|
def AuthorityUins(self):
|
|
2669
|
-
r"""
|
|
2751
|
+
r"""<p>可使用用户列表</p>
|
|
2670
2752
|
:rtype: list of str
|
|
2671
2753
|
"""
|
|
2672
2754
|
return self._AuthorityUins
|
|
@@ -2675,6 +2757,17 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2675
2757
|
def AuthorityUins(self, AuthorityUins):
|
|
2676
2758
|
self._AuthorityUins = AuthorityUins
|
|
2677
2759
|
|
|
2760
|
+
@property
|
|
2761
|
+
def Config(self):
|
|
2762
|
+
r"""<p>知识库任务配置</p>
|
|
2763
|
+
:rtype: :class:`tencentcloud.dataagent.v20250513.models.KnowledgeTaskConfig`
|
|
2764
|
+
"""
|
|
2765
|
+
return self._Config
|
|
2766
|
+
|
|
2767
|
+
@Config.setter
|
|
2768
|
+
def Config(self, Config):
|
|
2769
|
+
self._Config = Config
|
|
2770
|
+
|
|
2678
2771
|
|
|
2679
2772
|
def _deserialize(self, params):
|
|
2680
2773
|
self._InstanceId = params.get("InstanceId")
|
|
@@ -2684,6 +2777,9 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2684
2777
|
self._KnowledgeBaseDesc = params.get("KnowledgeBaseDesc")
|
|
2685
2778
|
self._UseScope = params.get("UseScope")
|
|
2686
2779
|
self._AuthorityUins = params.get("AuthorityUins")
|
|
2780
|
+
if params.get("Config") is not None:
|
|
2781
|
+
self._Config = KnowledgeTaskConfig()
|
|
2782
|
+
self._Config._deserialize(params.get("Config"))
|
|
2687
2783
|
memeber_set = set(params.keys())
|
|
2688
2784
|
for name, value in vars(self).items():
|
|
2689
2785
|
property_name = name[1:]
|
|
@@ -2701,7 +2797,7 @@ class ModifyKnowledgeBaseResponse(AbstractModel):
|
|
|
2701
2797
|
|
|
2702
2798
|
def __init__(self):
|
|
2703
2799
|
r"""
|
|
2704
|
-
:param _KnowledgeBaseId:
|
|
2800
|
+
:param _KnowledgeBaseId: <p>知识库id</p>
|
|
2705
2801
|
:type KnowledgeBaseId: str
|
|
2706
2802
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2707
2803
|
:type RequestId: str
|
|
@@ -2711,7 +2807,7 @@ class ModifyKnowledgeBaseResponse(AbstractModel):
|
|
|
2711
2807
|
|
|
2712
2808
|
@property
|
|
2713
2809
|
def KnowledgeBaseId(self):
|
|
2714
|
-
r"""
|
|
2810
|
+
r"""<p>知识库id</p>
|
|
2715
2811
|
:rtype: str
|
|
2716
2812
|
"""
|
|
2717
2813
|
return self._KnowledgeBaseId
|
|
@@ -3518,26 +3614,28 @@ class Scene(AbstractModel):
|
|
|
3518
3614
|
|
|
3519
3615
|
def __init__(self):
|
|
3520
3616
|
r"""
|
|
3521
|
-
:param _SceneId:
|
|
3617
|
+
:param _SceneId: <p>场景ID</p>
|
|
3522
3618
|
:type SceneId: str
|
|
3523
|
-
:param _SceneName:
|
|
3619
|
+
:param _SceneName: <p>场景名称</p>
|
|
3524
3620
|
:type SceneName: str
|
|
3525
|
-
:param _Skills:
|
|
3621
|
+
:param _Skills: <p>技能列表,包含:rag(知识检索)、data_analytics(数据分析)、data_prediction(数据预测)</p>
|
|
3526
3622
|
:type Skills: list of str
|
|
3527
|
-
:param _Prompt:
|
|
3623
|
+
:param _Prompt: <p>提示词文本</p>
|
|
3528
3624
|
:type Prompt: str
|
|
3529
|
-
:param _Description:
|
|
3625
|
+
:param _Description: <p>描述</p>
|
|
3530
3626
|
:type Description: str
|
|
3531
|
-
:param _SearchConfig:
|
|
3627
|
+
:param _SearchConfig: <p>检索配置</p>
|
|
3532
3628
|
:type SearchConfig: :class:`tencentcloud.dataagent.v20250513.models.SearchConfig`
|
|
3533
|
-
:param _ExampleQAList:
|
|
3629
|
+
:param _ExampleQAList: <p>示例问答列表</p>
|
|
3534
3630
|
:type ExampleQAList: list of ExampleQA
|
|
3535
|
-
:param _CreateTime:
|
|
3631
|
+
:param _CreateTime: <p>记录的创建时间</p>
|
|
3536
3632
|
:type CreateTime: str
|
|
3537
|
-
:param _UpdateTime:
|
|
3633
|
+
:param _UpdateTime: <p>记录的最后更新时间</p>
|
|
3538
3634
|
:type UpdateTime: str
|
|
3539
|
-
:param _CreatorUin:
|
|
3635
|
+
:param _CreatorUin: <p>创建者Uin</p>
|
|
3540
3636
|
:type CreatorUin: str
|
|
3637
|
+
:param _Knowledge: <p>知识</p>
|
|
3638
|
+
:type Knowledge: str
|
|
3541
3639
|
"""
|
|
3542
3640
|
self._SceneId = None
|
|
3543
3641
|
self._SceneName = None
|
|
@@ -3549,10 +3647,11 @@ class Scene(AbstractModel):
|
|
|
3549
3647
|
self._CreateTime = None
|
|
3550
3648
|
self._UpdateTime = None
|
|
3551
3649
|
self._CreatorUin = None
|
|
3650
|
+
self._Knowledge = None
|
|
3552
3651
|
|
|
3553
3652
|
@property
|
|
3554
3653
|
def SceneId(self):
|
|
3555
|
-
r"""
|
|
3654
|
+
r"""<p>场景ID</p>
|
|
3556
3655
|
:rtype: str
|
|
3557
3656
|
"""
|
|
3558
3657
|
return self._SceneId
|
|
@@ -3563,7 +3662,7 @@ class Scene(AbstractModel):
|
|
|
3563
3662
|
|
|
3564
3663
|
@property
|
|
3565
3664
|
def SceneName(self):
|
|
3566
|
-
r"""
|
|
3665
|
+
r"""<p>场景名称</p>
|
|
3567
3666
|
:rtype: str
|
|
3568
3667
|
"""
|
|
3569
3668
|
return self._SceneName
|
|
@@ -3574,7 +3673,7 @@ class Scene(AbstractModel):
|
|
|
3574
3673
|
|
|
3575
3674
|
@property
|
|
3576
3675
|
def Skills(self):
|
|
3577
|
-
r"""
|
|
3676
|
+
r"""<p>技能列表,包含:rag(知识检索)、data_analytics(数据分析)、data_prediction(数据预测)</p>
|
|
3578
3677
|
:rtype: list of str
|
|
3579
3678
|
"""
|
|
3580
3679
|
return self._Skills
|
|
@@ -3585,7 +3684,7 @@ class Scene(AbstractModel):
|
|
|
3585
3684
|
|
|
3586
3685
|
@property
|
|
3587
3686
|
def Prompt(self):
|
|
3588
|
-
r"""
|
|
3687
|
+
r"""<p>提示词文本</p>
|
|
3589
3688
|
:rtype: str
|
|
3590
3689
|
"""
|
|
3591
3690
|
return self._Prompt
|
|
@@ -3596,7 +3695,7 @@ class Scene(AbstractModel):
|
|
|
3596
3695
|
|
|
3597
3696
|
@property
|
|
3598
3697
|
def Description(self):
|
|
3599
|
-
r"""
|
|
3698
|
+
r"""<p>描述</p>
|
|
3600
3699
|
:rtype: str
|
|
3601
3700
|
"""
|
|
3602
3701
|
return self._Description
|
|
@@ -3607,7 +3706,7 @@ class Scene(AbstractModel):
|
|
|
3607
3706
|
|
|
3608
3707
|
@property
|
|
3609
3708
|
def SearchConfig(self):
|
|
3610
|
-
r"""
|
|
3709
|
+
r"""<p>检索配置</p>
|
|
3611
3710
|
:rtype: :class:`tencentcloud.dataagent.v20250513.models.SearchConfig`
|
|
3612
3711
|
"""
|
|
3613
3712
|
return self._SearchConfig
|
|
@@ -3618,7 +3717,7 @@ class Scene(AbstractModel):
|
|
|
3618
3717
|
|
|
3619
3718
|
@property
|
|
3620
3719
|
def ExampleQAList(self):
|
|
3621
|
-
r"""
|
|
3720
|
+
r"""<p>示例问答列表</p>
|
|
3622
3721
|
:rtype: list of ExampleQA
|
|
3623
3722
|
"""
|
|
3624
3723
|
return self._ExampleQAList
|
|
@@ -3629,7 +3728,7 @@ class Scene(AbstractModel):
|
|
|
3629
3728
|
|
|
3630
3729
|
@property
|
|
3631
3730
|
def CreateTime(self):
|
|
3632
|
-
r"""
|
|
3731
|
+
r"""<p>记录的创建时间</p>
|
|
3633
3732
|
:rtype: str
|
|
3634
3733
|
"""
|
|
3635
3734
|
return self._CreateTime
|
|
@@ -3640,7 +3739,7 @@ class Scene(AbstractModel):
|
|
|
3640
3739
|
|
|
3641
3740
|
@property
|
|
3642
3741
|
def UpdateTime(self):
|
|
3643
|
-
r"""
|
|
3742
|
+
r"""<p>记录的最后更新时间</p>
|
|
3644
3743
|
:rtype: str
|
|
3645
3744
|
"""
|
|
3646
3745
|
return self._UpdateTime
|
|
@@ -3651,7 +3750,7 @@ class Scene(AbstractModel):
|
|
|
3651
3750
|
|
|
3652
3751
|
@property
|
|
3653
3752
|
def CreatorUin(self):
|
|
3654
|
-
r"""
|
|
3753
|
+
r"""<p>创建者Uin</p>
|
|
3655
3754
|
:rtype: str
|
|
3656
3755
|
"""
|
|
3657
3756
|
return self._CreatorUin
|
|
@@ -3660,6 +3759,17 @@ class Scene(AbstractModel):
|
|
|
3660
3759
|
def CreatorUin(self, CreatorUin):
|
|
3661
3760
|
self._CreatorUin = CreatorUin
|
|
3662
3761
|
|
|
3762
|
+
@property
|
|
3763
|
+
def Knowledge(self):
|
|
3764
|
+
r"""<p>知识</p>
|
|
3765
|
+
:rtype: str
|
|
3766
|
+
"""
|
|
3767
|
+
return self._Knowledge
|
|
3768
|
+
|
|
3769
|
+
@Knowledge.setter
|
|
3770
|
+
def Knowledge(self, Knowledge):
|
|
3771
|
+
self._Knowledge = Knowledge
|
|
3772
|
+
|
|
3663
3773
|
|
|
3664
3774
|
def _deserialize(self, params):
|
|
3665
3775
|
self._SceneId = params.get("SceneId")
|
|
@@ -3679,6 +3789,7 @@ class Scene(AbstractModel):
|
|
|
3679
3789
|
self._CreateTime = params.get("CreateTime")
|
|
3680
3790
|
self._UpdateTime = params.get("UpdateTime")
|
|
3681
3791
|
self._CreatorUin = params.get("CreatorUin")
|
|
3792
|
+
self._Knowledge = params.get("Knowledge")
|
|
3682
3793
|
memeber_set = set(params.keys())
|
|
3683
3794
|
for name, value in vars(self).items():
|
|
3684
3795
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-dataagent
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.99
|
|
4
4
|
Summary: Tencent Cloud Dataagent SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.99
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
tencentcloud_sdk_python_dataagent-3.1.99/tencentcloud_sdk_python_dataagent.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.99
|
tencentcloud_sdk_python_dataagent-3.1.60/tencentcloud_sdk_python_dataagent.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.60
|
{tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_dataagent-3.1.60 → tencentcloud_sdk_python_dataagent-3.1.99}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|