tencentcloud-sdk-python-dataagent 3.1.60__py2.py3-none-any.whl → 3.1.88__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/dataagent/v20250513/models.py +145 -68
- {tencentcloud_sdk_python_dataagent-3.1.60.dist-info → tencentcloud_sdk_python_dataagent-3.1.88.dist-info}/METADATA +2 -2
- {tencentcloud_sdk_python_dataagent-3.1.60.dist-info → tencentcloud_sdk_python_dataagent-3.1.88.dist-info}/RECORD +6 -6
- {tencentcloud_sdk_python_dataagent-3.1.60.dist-info → tencentcloud_sdk_python_dataagent-3.1.88.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.60.dist-info → tencentcloud_sdk_python_dataagent-3.1.88.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -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:]
|
|
@@ -2034,21 +2049,22 @@ class KnowledgeBase(AbstractModel):
|
|
|
2034
2049
|
|
|
2035
2050
|
def __init__(self):
|
|
2036
2051
|
r"""
|
|
2037
|
-
:param _KnowledgeBaseId:
|
|
2052
|
+
:param _KnowledgeBaseId: <p>知识库id</p>
|
|
2038
2053
|
:type KnowledgeBaseId: str
|
|
2039
|
-
:param _KnowledgeBaseName:
|
|
2040
|
-
|
|
2054
|
+
:param _KnowledgeBaseName: <p>知识库名称</p>
|
|
2041
2055
|
:type KnowledgeBaseName: str
|
|
2042
|
-
:param _KnowledgeBaseDesc:
|
|
2056
|
+
:param _KnowledgeBaseDesc: <p>知识库描述</p>
|
|
2043
2057
|
:type KnowledgeBaseDesc: str
|
|
2044
|
-
:param _Creator:
|
|
2058
|
+
:param _Creator: <p>创建者subuin</p>
|
|
2045
2059
|
:type Creator: str
|
|
2046
|
-
:param _CreateTime:
|
|
2060
|
+
:param _CreateTime: <p>创建时间</p>
|
|
2047
2061
|
:type CreateTime: str
|
|
2048
|
-
:param _FileNum:
|
|
2062
|
+
:param _FileNum: <p>文件数量</p>
|
|
2049
2063
|
:type FileNum: int
|
|
2050
|
-
:param _DatasourceIds:
|
|
2064
|
+
:param _DatasourceIds: <p>知识库关联的数据库列表,目前是只绑定一个数据源,数组预留拓展</p>
|
|
2051
2065
|
:type DatasourceIds: list of str
|
|
2066
|
+
:param _Config: <p>知识库任务配置</p>
|
|
2067
|
+
:type Config: :class:`tencentcloud.dataagent.v20250513.models.KnowledgeTaskConfig`
|
|
2052
2068
|
"""
|
|
2053
2069
|
self._KnowledgeBaseId = None
|
|
2054
2070
|
self._KnowledgeBaseName = None
|
|
@@ -2057,10 +2073,11 @@ class KnowledgeBase(AbstractModel):
|
|
|
2057
2073
|
self._CreateTime = None
|
|
2058
2074
|
self._FileNum = None
|
|
2059
2075
|
self._DatasourceIds = None
|
|
2076
|
+
self._Config = None
|
|
2060
2077
|
|
|
2061
2078
|
@property
|
|
2062
2079
|
def KnowledgeBaseId(self):
|
|
2063
|
-
r"""
|
|
2080
|
+
r"""<p>知识库id</p>
|
|
2064
2081
|
:rtype: str
|
|
2065
2082
|
"""
|
|
2066
2083
|
return self._KnowledgeBaseId
|
|
@@ -2071,8 +2088,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2071
2088
|
|
|
2072
2089
|
@property
|
|
2073
2090
|
def KnowledgeBaseName(self):
|
|
2074
|
-
r"""
|
|
2075
|
-
|
|
2091
|
+
r"""<p>知识库名称</p>
|
|
2076
2092
|
:rtype: str
|
|
2077
2093
|
"""
|
|
2078
2094
|
return self._KnowledgeBaseName
|
|
@@ -2083,7 +2099,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2083
2099
|
|
|
2084
2100
|
@property
|
|
2085
2101
|
def KnowledgeBaseDesc(self):
|
|
2086
|
-
r"""
|
|
2102
|
+
r"""<p>知识库描述</p>
|
|
2087
2103
|
:rtype: str
|
|
2088
2104
|
"""
|
|
2089
2105
|
return self._KnowledgeBaseDesc
|
|
@@ -2094,7 +2110,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2094
2110
|
|
|
2095
2111
|
@property
|
|
2096
2112
|
def Creator(self):
|
|
2097
|
-
r"""
|
|
2113
|
+
r"""<p>创建者subuin</p>
|
|
2098
2114
|
:rtype: str
|
|
2099
2115
|
"""
|
|
2100
2116
|
return self._Creator
|
|
@@ -2105,7 +2121,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2105
2121
|
|
|
2106
2122
|
@property
|
|
2107
2123
|
def CreateTime(self):
|
|
2108
|
-
r"""
|
|
2124
|
+
r"""<p>创建时间</p>
|
|
2109
2125
|
:rtype: str
|
|
2110
2126
|
"""
|
|
2111
2127
|
return self._CreateTime
|
|
@@ -2116,7 +2132,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2116
2132
|
|
|
2117
2133
|
@property
|
|
2118
2134
|
def FileNum(self):
|
|
2119
|
-
r"""
|
|
2135
|
+
r"""<p>文件数量</p>
|
|
2120
2136
|
:rtype: int
|
|
2121
2137
|
"""
|
|
2122
2138
|
return self._FileNum
|
|
@@ -2127,7 +2143,7 @@ class KnowledgeBase(AbstractModel):
|
|
|
2127
2143
|
|
|
2128
2144
|
@property
|
|
2129
2145
|
def DatasourceIds(self):
|
|
2130
|
-
r"""
|
|
2146
|
+
r"""<p>知识库关联的数据库列表,目前是只绑定一个数据源,数组预留拓展</p>
|
|
2131
2147
|
:rtype: list of str
|
|
2132
2148
|
"""
|
|
2133
2149
|
return self._DatasourceIds
|
|
@@ -2136,6 +2152,17 @@ class KnowledgeBase(AbstractModel):
|
|
|
2136
2152
|
def DatasourceIds(self, DatasourceIds):
|
|
2137
2153
|
self._DatasourceIds = DatasourceIds
|
|
2138
2154
|
|
|
2155
|
+
@property
|
|
2156
|
+
def Config(self):
|
|
2157
|
+
r"""<p>知识库任务配置</p>
|
|
2158
|
+
:rtype: :class:`tencentcloud.dataagent.v20250513.models.KnowledgeTaskConfig`
|
|
2159
|
+
"""
|
|
2160
|
+
return self._Config
|
|
2161
|
+
|
|
2162
|
+
@Config.setter
|
|
2163
|
+
def Config(self, Config):
|
|
2164
|
+
self._Config = Config
|
|
2165
|
+
|
|
2139
2166
|
|
|
2140
2167
|
def _deserialize(self, params):
|
|
2141
2168
|
self._KnowledgeBaseId = params.get("KnowledgeBaseId")
|
|
@@ -2145,6 +2172,9 @@ class KnowledgeBase(AbstractModel):
|
|
|
2145
2172
|
self._CreateTime = params.get("CreateTime")
|
|
2146
2173
|
self._FileNum = params.get("FileNum")
|
|
2147
2174
|
self._DatasourceIds = params.get("DatasourceIds")
|
|
2175
|
+
if params.get("Config") is not None:
|
|
2176
|
+
self._Config = KnowledgeTaskConfig()
|
|
2177
|
+
self._Config._deserialize(params.get("Config"))
|
|
2148
2178
|
memeber_set = set(params.keys())
|
|
2149
2179
|
for name, value in vars(self).items():
|
|
2150
2180
|
property_name = name[1:]
|
|
@@ -2162,23 +2192,25 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2162
2192
|
|
|
2163
2193
|
def __init__(self):
|
|
2164
2194
|
r"""
|
|
2165
|
-
:param _ChunkType:
|
|
2195
|
+
:param _ChunkType: <p>切片类型 0:自定义切片,1:智能切片</p>
|
|
2166
2196
|
:type ChunkType: int
|
|
2167
|
-
:param _MaxChunkSize:
|
|
2197
|
+
:param _MaxChunkSize: <p>/智能切片:最小值 1000,默认 4800 自定义切片:正整数即可,默认值 1000</p>
|
|
2168
2198
|
:type MaxChunkSize: int
|
|
2169
|
-
:param _Delimiters:
|
|
2199
|
+
:param _Delimiters: <p>切片分隔符,自定义切片使用:默认值为:["\n\n", "\n", "。", "!", "?", ",", ""]</p>
|
|
2170
2200
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2171
2201
|
:type Delimiters: list of str
|
|
2172
|
-
:param _ChunkOverlap:
|
|
2202
|
+
:param _ChunkOverlap: <p>自定义切片使用:默认0 可重叠字符长度</p>
|
|
2173
2203
|
:type ChunkOverlap: int
|
|
2174
|
-
:param _Columns:
|
|
2204
|
+
:param _Columns: <p>表格类文档解析</p>
|
|
2175
2205
|
:type Columns: list of ColumnInfo
|
|
2176
|
-
:param _Indexes:
|
|
2206
|
+
:param _Indexes: <p>带检索的索引列表</p>
|
|
2177
2207
|
:type Indexes: list of int
|
|
2178
|
-
:param _GenDocSummary: 0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1
|
|
2208
|
+
:param _GenDocSummary: <p>0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1</p>
|
|
2179
2209
|
:type GenDocSummary: int
|
|
2180
|
-
:param _GenParaSummary: 0:不生成段落摘要,1:生成段落概要。默认0
|
|
2210
|
+
:param _GenParaSummary: <p>0:不生成段落摘要,1:生成段落概要。默认0</p>
|
|
2181
2211
|
:type GenParaSummary: int
|
|
2212
|
+
:param _EnableImageUnderstanding: <p>0:不开启图片理解,1:开启图片理解。默认1</p><p>取值范围:[1, 10000]</p><p>默认值:1</p>
|
|
2213
|
+
:type EnableImageUnderstanding: int
|
|
2182
2214
|
"""
|
|
2183
2215
|
self._ChunkType = None
|
|
2184
2216
|
self._MaxChunkSize = None
|
|
@@ -2188,10 +2220,11 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2188
2220
|
self._Indexes = None
|
|
2189
2221
|
self._GenDocSummary = None
|
|
2190
2222
|
self._GenParaSummary = None
|
|
2223
|
+
self._EnableImageUnderstanding = None
|
|
2191
2224
|
|
|
2192
2225
|
@property
|
|
2193
2226
|
def ChunkType(self):
|
|
2194
|
-
r"""
|
|
2227
|
+
r"""<p>切片类型 0:自定义切片,1:智能切片</p>
|
|
2195
2228
|
:rtype: int
|
|
2196
2229
|
"""
|
|
2197
2230
|
return self._ChunkType
|
|
@@ -2202,7 +2235,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2202
2235
|
|
|
2203
2236
|
@property
|
|
2204
2237
|
def MaxChunkSize(self):
|
|
2205
|
-
r"""
|
|
2238
|
+
r"""<p>/智能切片:最小值 1000,默认 4800 自定义切片:正整数即可,默认值 1000</p>
|
|
2206
2239
|
:rtype: int
|
|
2207
2240
|
"""
|
|
2208
2241
|
return self._MaxChunkSize
|
|
@@ -2213,7 +2246,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2213
2246
|
|
|
2214
2247
|
@property
|
|
2215
2248
|
def Delimiters(self):
|
|
2216
|
-
r"""
|
|
2249
|
+
r"""<p>切片分隔符,自定义切片使用:默认值为:["\n\n", "\n", "。", "!", "?", ",", ""]</p>
|
|
2217
2250
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2218
2251
|
:rtype: list of str
|
|
2219
2252
|
"""
|
|
@@ -2225,7 +2258,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2225
2258
|
|
|
2226
2259
|
@property
|
|
2227
2260
|
def ChunkOverlap(self):
|
|
2228
|
-
r"""
|
|
2261
|
+
r"""<p>自定义切片使用:默认0 可重叠字符长度</p>
|
|
2229
2262
|
:rtype: int
|
|
2230
2263
|
"""
|
|
2231
2264
|
return self._ChunkOverlap
|
|
@@ -2236,7 +2269,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2236
2269
|
|
|
2237
2270
|
@property
|
|
2238
2271
|
def Columns(self):
|
|
2239
|
-
r"""
|
|
2272
|
+
r"""<p>表格类文档解析</p>
|
|
2240
2273
|
:rtype: list of ColumnInfo
|
|
2241
2274
|
"""
|
|
2242
2275
|
return self._Columns
|
|
@@ -2247,7 +2280,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2247
2280
|
|
|
2248
2281
|
@property
|
|
2249
2282
|
def Indexes(self):
|
|
2250
|
-
r"""
|
|
2283
|
+
r"""<p>带检索的索引列表</p>
|
|
2251
2284
|
:rtype: list of int
|
|
2252
2285
|
"""
|
|
2253
2286
|
return self._Indexes
|
|
@@ -2258,7 +2291,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2258
2291
|
|
|
2259
2292
|
@property
|
|
2260
2293
|
def GenDocSummary(self):
|
|
2261
|
-
r"""0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1
|
|
2294
|
+
r"""<p>0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1</p>
|
|
2262
2295
|
:rtype: int
|
|
2263
2296
|
"""
|
|
2264
2297
|
return self._GenDocSummary
|
|
@@ -2269,7 +2302,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2269
2302
|
|
|
2270
2303
|
@property
|
|
2271
2304
|
def GenParaSummary(self):
|
|
2272
|
-
r"""0:不生成段落摘要,1:生成段落概要。默认0
|
|
2305
|
+
r"""<p>0:不生成段落摘要,1:生成段落概要。默认0</p>
|
|
2273
2306
|
:rtype: int
|
|
2274
2307
|
"""
|
|
2275
2308
|
return self._GenParaSummary
|
|
@@ -2278,6 +2311,17 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2278
2311
|
def GenParaSummary(self, GenParaSummary):
|
|
2279
2312
|
self._GenParaSummary = GenParaSummary
|
|
2280
2313
|
|
|
2314
|
+
@property
|
|
2315
|
+
def EnableImageUnderstanding(self):
|
|
2316
|
+
r"""<p>0:不开启图片理解,1:开启图片理解。默认1</p><p>取值范围:[1, 10000]</p><p>默认值:1</p>
|
|
2317
|
+
:rtype: int
|
|
2318
|
+
"""
|
|
2319
|
+
return self._EnableImageUnderstanding
|
|
2320
|
+
|
|
2321
|
+
@EnableImageUnderstanding.setter
|
|
2322
|
+
def EnableImageUnderstanding(self, EnableImageUnderstanding):
|
|
2323
|
+
self._EnableImageUnderstanding = EnableImageUnderstanding
|
|
2324
|
+
|
|
2281
2325
|
|
|
2282
2326
|
def _deserialize(self, params):
|
|
2283
2327
|
self._ChunkType = params.get("ChunkType")
|
|
@@ -2293,6 +2337,7 @@ class KnowledgeTaskConfig(AbstractModel):
|
|
|
2293
2337
|
self._Indexes = params.get("Indexes")
|
|
2294
2338
|
self._GenDocSummary = params.get("GenDocSummary")
|
|
2295
2339
|
self._GenParaSummary = params.get("GenParaSummary")
|
|
2340
|
+
self._EnableImageUnderstanding = params.get("EnableImageUnderstanding")
|
|
2296
2341
|
memeber_set = set(params.keys())
|
|
2297
2342
|
for name, value in vars(self).items():
|
|
2298
2343
|
property_name = name[1:]
|
|
@@ -2575,20 +2620,22 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2575
2620
|
|
|
2576
2621
|
def __init__(self):
|
|
2577
2622
|
r"""
|
|
2578
|
-
:param _InstanceId:
|
|
2623
|
+
:param _InstanceId: <p>实例id</p>
|
|
2579
2624
|
:type InstanceId: str
|
|
2580
|
-
:param _OperateType:
|
|
2625
|
+
:param _OperateType: <p>操作类型:Create,Update,Delete</p>
|
|
2581
2626
|
:type OperateType: str
|
|
2582
|
-
:param _KnowledgeBaseId:
|
|
2627
|
+
:param _KnowledgeBaseId: <p>知识库id,update和delete时必填</p>
|
|
2583
2628
|
:type KnowledgeBaseId: str
|
|
2584
|
-
:param _KnowledgeBaseName:
|
|
2629
|
+
:param _KnowledgeBaseName: <p>知识库名称,create和update时必填。只允许字母、数字、汉字、下划线</p>
|
|
2585
2630
|
:type KnowledgeBaseName: str
|
|
2586
|
-
:param _KnowledgeBaseDesc:
|
|
2631
|
+
:param _KnowledgeBaseDesc: <p>知识库描述,create和update时必填</p>
|
|
2587
2632
|
:type KnowledgeBaseDesc: str
|
|
2588
|
-
:param _UseScope: 1仅自己使用,2指定用户,0
|
|
2633
|
+
:param _UseScope: <p>1仅自己使用,2指定用户,0全员</p>
|
|
2589
2634
|
:type UseScope: int
|
|
2590
|
-
:param _AuthorityUins:
|
|
2635
|
+
:param _AuthorityUins: <p>可使用用户列表</p>
|
|
2591
2636
|
:type AuthorityUins: list of str
|
|
2637
|
+
:param _Config: <p>知识库任务配置</p>
|
|
2638
|
+
:type Config: :class:`tencentcloud.dataagent.v20250513.models.KnowledgeTaskConfig`
|
|
2592
2639
|
"""
|
|
2593
2640
|
self._InstanceId = None
|
|
2594
2641
|
self._OperateType = None
|
|
@@ -2597,10 +2644,11 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2597
2644
|
self._KnowledgeBaseDesc = None
|
|
2598
2645
|
self._UseScope = None
|
|
2599
2646
|
self._AuthorityUins = None
|
|
2647
|
+
self._Config = None
|
|
2600
2648
|
|
|
2601
2649
|
@property
|
|
2602
2650
|
def InstanceId(self):
|
|
2603
|
-
r"""
|
|
2651
|
+
r"""<p>实例id</p>
|
|
2604
2652
|
:rtype: str
|
|
2605
2653
|
"""
|
|
2606
2654
|
return self._InstanceId
|
|
@@ -2611,7 +2659,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2611
2659
|
|
|
2612
2660
|
@property
|
|
2613
2661
|
def OperateType(self):
|
|
2614
|
-
r"""
|
|
2662
|
+
r"""<p>操作类型:Create,Update,Delete</p>
|
|
2615
2663
|
:rtype: str
|
|
2616
2664
|
"""
|
|
2617
2665
|
return self._OperateType
|
|
@@ -2622,7 +2670,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2622
2670
|
|
|
2623
2671
|
@property
|
|
2624
2672
|
def KnowledgeBaseId(self):
|
|
2625
|
-
r"""
|
|
2673
|
+
r"""<p>知识库id,update和delete时必填</p>
|
|
2626
2674
|
:rtype: str
|
|
2627
2675
|
"""
|
|
2628
2676
|
return self._KnowledgeBaseId
|
|
@@ -2633,7 +2681,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2633
2681
|
|
|
2634
2682
|
@property
|
|
2635
2683
|
def KnowledgeBaseName(self):
|
|
2636
|
-
r"""
|
|
2684
|
+
r"""<p>知识库名称,create和update时必填。只允许字母、数字、汉字、下划线</p>
|
|
2637
2685
|
:rtype: str
|
|
2638
2686
|
"""
|
|
2639
2687
|
return self._KnowledgeBaseName
|
|
@@ -2644,7 +2692,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2644
2692
|
|
|
2645
2693
|
@property
|
|
2646
2694
|
def KnowledgeBaseDesc(self):
|
|
2647
|
-
r"""
|
|
2695
|
+
r"""<p>知识库描述,create和update时必填</p>
|
|
2648
2696
|
:rtype: str
|
|
2649
2697
|
"""
|
|
2650
2698
|
return self._KnowledgeBaseDesc
|
|
@@ -2655,7 +2703,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2655
2703
|
|
|
2656
2704
|
@property
|
|
2657
2705
|
def UseScope(self):
|
|
2658
|
-
r"""1仅自己使用,2指定用户,0
|
|
2706
|
+
r"""<p>1仅自己使用,2指定用户,0全员</p>
|
|
2659
2707
|
:rtype: int
|
|
2660
2708
|
"""
|
|
2661
2709
|
return self._UseScope
|
|
@@ -2666,7 +2714,7 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2666
2714
|
|
|
2667
2715
|
@property
|
|
2668
2716
|
def AuthorityUins(self):
|
|
2669
|
-
r"""
|
|
2717
|
+
r"""<p>可使用用户列表</p>
|
|
2670
2718
|
:rtype: list of str
|
|
2671
2719
|
"""
|
|
2672
2720
|
return self._AuthorityUins
|
|
@@ -2675,6 +2723,17 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2675
2723
|
def AuthorityUins(self, AuthorityUins):
|
|
2676
2724
|
self._AuthorityUins = AuthorityUins
|
|
2677
2725
|
|
|
2726
|
+
@property
|
|
2727
|
+
def Config(self):
|
|
2728
|
+
r"""<p>知识库任务配置</p>
|
|
2729
|
+
:rtype: :class:`tencentcloud.dataagent.v20250513.models.KnowledgeTaskConfig`
|
|
2730
|
+
"""
|
|
2731
|
+
return self._Config
|
|
2732
|
+
|
|
2733
|
+
@Config.setter
|
|
2734
|
+
def Config(self, Config):
|
|
2735
|
+
self._Config = Config
|
|
2736
|
+
|
|
2678
2737
|
|
|
2679
2738
|
def _deserialize(self, params):
|
|
2680
2739
|
self._InstanceId = params.get("InstanceId")
|
|
@@ -2684,6 +2743,9 @@ class ModifyKnowledgeBaseRequest(AbstractModel):
|
|
|
2684
2743
|
self._KnowledgeBaseDesc = params.get("KnowledgeBaseDesc")
|
|
2685
2744
|
self._UseScope = params.get("UseScope")
|
|
2686
2745
|
self._AuthorityUins = params.get("AuthorityUins")
|
|
2746
|
+
if params.get("Config") is not None:
|
|
2747
|
+
self._Config = KnowledgeTaskConfig()
|
|
2748
|
+
self._Config._deserialize(params.get("Config"))
|
|
2687
2749
|
memeber_set = set(params.keys())
|
|
2688
2750
|
for name, value in vars(self).items():
|
|
2689
2751
|
property_name = name[1:]
|
|
@@ -2701,7 +2763,7 @@ class ModifyKnowledgeBaseResponse(AbstractModel):
|
|
|
2701
2763
|
|
|
2702
2764
|
def __init__(self):
|
|
2703
2765
|
r"""
|
|
2704
|
-
:param _KnowledgeBaseId:
|
|
2766
|
+
:param _KnowledgeBaseId: <p>知识库id</p>
|
|
2705
2767
|
:type KnowledgeBaseId: str
|
|
2706
2768
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2707
2769
|
:type RequestId: str
|
|
@@ -2711,7 +2773,7 @@ class ModifyKnowledgeBaseResponse(AbstractModel):
|
|
|
2711
2773
|
|
|
2712
2774
|
@property
|
|
2713
2775
|
def KnowledgeBaseId(self):
|
|
2714
|
-
r"""
|
|
2776
|
+
r"""<p>知识库id</p>
|
|
2715
2777
|
:rtype: str
|
|
2716
2778
|
"""
|
|
2717
2779
|
return self._KnowledgeBaseId
|
|
@@ -3518,26 +3580,28 @@ class Scene(AbstractModel):
|
|
|
3518
3580
|
|
|
3519
3581
|
def __init__(self):
|
|
3520
3582
|
r"""
|
|
3521
|
-
:param _SceneId:
|
|
3583
|
+
:param _SceneId: <p>场景ID</p>
|
|
3522
3584
|
:type SceneId: str
|
|
3523
|
-
:param _SceneName:
|
|
3585
|
+
:param _SceneName: <p>场景名称</p>
|
|
3524
3586
|
:type SceneName: str
|
|
3525
|
-
:param _Skills:
|
|
3587
|
+
:param _Skills: <p>技能列表,包含:rag(知识检索)、data_analytics(数据分析)、data_prediction(数据预测)</p>
|
|
3526
3588
|
:type Skills: list of str
|
|
3527
|
-
:param _Prompt:
|
|
3589
|
+
:param _Prompt: <p>提示词文本</p>
|
|
3528
3590
|
:type Prompt: str
|
|
3529
|
-
:param _Description:
|
|
3591
|
+
:param _Description: <p>描述</p>
|
|
3530
3592
|
:type Description: str
|
|
3531
|
-
:param _SearchConfig:
|
|
3593
|
+
:param _SearchConfig: <p>检索配置</p>
|
|
3532
3594
|
:type SearchConfig: :class:`tencentcloud.dataagent.v20250513.models.SearchConfig`
|
|
3533
|
-
:param _ExampleQAList:
|
|
3595
|
+
:param _ExampleQAList: <p>示例问答列表</p>
|
|
3534
3596
|
:type ExampleQAList: list of ExampleQA
|
|
3535
|
-
:param _CreateTime:
|
|
3597
|
+
:param _CreateTime: <p>记录的创建时间</p>
|
|
3536
3598
|
:type CreateTime: str
|
|
3537
|
-
:param _UpdateTime:
|
|
3599
|
+
:param _UpdateTime: <p>记录的最后更新时间</p>
|
|
3538
3600
|
:type UpdateTime: str
|
|
3539
|
-
:param _CreatorUin:
|
|
3601
|
+
:param _CreatorUin: <p>创建者Uin</p>
|
|
3540
3602
|
:type CreatorUin: str
|
|
3603
|
+
:param _Knowledge: <p>知识</p>
|
|
3604
|
+
:type Knowledge: str
|
|
3541
3605
|
"""
|
|
3542
3606
|
self._SceneId = None
|
|
3543
3607
|
self._SceneName = None
|
|
@@ -3549,10 +3613,11 @@ class Scene(AbstractModel):
|
|
|
3549
3613
|
self._CreateTime = None
|
|
3550
3614
|
self._UpdateTime = None
|
|
3551
3615
|
self._CreatorUin = None
|
|
3616
|
+
self._Knowledge = None
|
|
3552
3617
|
|
|
3553
3618
|
@property
|
|
3554
3619
|
def SceneId(self):
|
|
3555
|
-
r"""
|
|
3620
|
+
r"""<p>场景ID</p>
|
|
3556
3621
|
:rtype: str
|
|
3557
3622
|
"""
|
|
3558
3623
|
return self._SceneId
|
|
@@ -3563,7 +3628,7 @@ class Scene(AbstractModel):
|
|
|
3563
3628
|
|
|
3564
3629
|
@property
|
|
3565
3630
|
def SceneName(self):
|
|
3566
|
-
r"""
|
|
3631
|
+
r"""<p>场景名称</p>
|
|
3567
3632
|
:rtype: str
|
|
3568
3633
|
"""
|
|
3569
3634
|
return self._SceneName
|
|
@@ -3574,7 +3639,7 @@ class Scene(AbstractModel):
|
|
|
3574
3639
|
|
|
3575
3640
|
@property
|
|
3576
3641
|
def Skills(self):
|
|
3577
|
-
r"""
|
|
3642
|
+
r"""<p>技能列表,包含:rag(知识检索)、data_analytics(数据分析)、data_prediction(数据预测)</p>
|
|
3578
3643
|
:rtype: list of str
|
|
3579
3644
|
"""
|
|
3580
3645
|
return self._Skills
|
|
@@ -3585,7 +3650,7 @@ class Scene(AbstractModel):
|
|
|
3585
3650
|
|
|
3586
3651
|
@property
|
|
3587
3652
|
def Prompt(self):
|
|
3588
|
-
r"""
|
|
3653
|
+
r"""<p>提示词文本</p>
|
|
3589
3654
|
:rtype: str
|
|
3590
3655
|
"""
|
|
3591
3656
|
return self._Prompt
|
|
@@ -3596,7 +3661,7 @@ class Scene(AbstractModel):
|
|
|
3596
3661
|
|
|
3597
3662
|
@property
|
|
3598
3663
|
def Description(self):
|
|
3599
|
-
r"""
|
|
3664
|
+
r"""<p>描述</p>
|
|
3600
3665
|
:rtype: str
|
|
3601
3666
|
"""
|
|
3602
3667
|
return self._Description
|
|
@@ -3607,7 +3672,7 @@ class Scene(AbstractModel):
|
|
|
3607
3672
|
|
|
3608
3673
|
@property
|
|
3609
3674
|
def SearchConfig(self):
|
|
3610
|
-
r"""
|
|
3675
|
+
r"""<p>检索配置</p>
|
|
3611
3676
|
:rtype: :class:`tencentcloud.dataagent.v20250513.models.SearchConfig`
|
|
3612
3677
|
"""
|
|
3613
3678
|
return self._SearchConfig
|
|
@@ -3618,7 +3683,7 @@ class Scene(AbstractModel):
|
|
|
3618
3683
|
|
|
3619
3684
|
@property
|
|
3620
3685
|
def ExampleQAList(self):
|
|
3621
|
-
r"""
|
|
3686
|
+
r"""<p>示例问答列表</p>
|
|
3622
3687
|
:rtype: list of ExampleQA
|
|
3623
3688
|
"""
|
|
3624
3689
|
return self._ExampleQAList
|
|
@@ -3629,7 +3694,7 @@ class Scene(AbstractModel):
|
|
|
3629
3694
|
|
|
3630
3695
|
@property
|
|
3631
3696
|
def CreateTime(self):
|
|
3632
|
-
r"""
|
|
3697
|
+
r"""<p>记录的创建时间</p>
|
|
3633
3698
|
:rtype: str
|
|
3634
3699
|
"""
|
|
3635
3700
|
return self._CreateTime
|
|
@@ -3640,7 +3705,7 @@ class Scene(AbstractModel):
|
|
|
3640
3705
|
|
|
3641
3706
|
@property
|
|
3642
3707
|
def UpdateTime(self):
|
|
3643
|
-
r"""
|
|
3708
|
+
r"""<p>记录的最后更新时间</p>
|
|
3644
3709
|
:rtype: str
|
|
3645
3710
|
"""
|
|
3646
3711
|
return self._UpdateTime
|
|
@@ -3651,7 +3716,7 @@ class Scene(AbstractModel):
|
|
|
3651
3716
|
|
|
3652
3717
|
@property
|
|
3653
3718
|
def CreatorUin(self):
|
|
3654
|
-
r"""
|
|
3719
|
+
r"""<p>创建者Uin</p>
|
|
3655
3720
|
:rtype: str
|
|
3656
3721
|
"""
|
|
3657
3722
|
return self._CreatorUin
|
|
@@ -3660,6 +3725,17 @@ class Scene(AbstractModel):
|
|
|
3660
3725
|
def CreatorUin(self, CreatorUin):
|
|
3661
3726
|
self._CreatorUin = CreatorUin
|
|
3662
3727
|
|
|
3728
|
+
@property
|
|
3729
|
+
def Knowledge(self):
|
|
3730
|
+
r"""<p>知识</p>
|
|
3731
|
+
:rtype: str
|
|
3732
|
+
"""
|
|
3733
|
+
return self._Knowledge
|
|
3734
|
+
|
|
3735
|
+
@Knowledge.setter
|
|
3736
|
+
def Knowledge(self, Knowledge):
|
|
3737
|
+
self._Knowledge = Knowledge
|
|
3738
|
+
|
|
3663
3739
|
|
|
3664
3740
|
def _deserialize(self, params):
|
|
3665
3741
|
self._SceneId = params.get("SceneId")
|
|
@@ -3679,6 +3755,7 @@ class Scene(AbstractModel):
|
|
|
3679
3755
|
self._CreateTime = params.get("CreateTime")
|
|
3680
3756
|
self._UpdateTime = params.get("UpdateTime")
|
|
3681
3757
|
self._CreatorUin = params.get("CreatorUin")
|
|
3758
|
+
self._Knowledge = params.get("Knowledge")
|
|
3682
3759
|
memeber_set = set(params.keys())
|
|
3683
3760
|
for name, value in vars(self).items():
|
|
3684
3761
|
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.88
|
|
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.88
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=
|
|
1
|
+
tencentcloud/__init__.py,sha256=XLVahedF5eVJXG5w99y0qQw9cTt48U5bwhQXZIqKhkM,629
|
|
2
2
|
tencentcloud/dataagent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
tencentcloud/dataagent/v20250513/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
tencentcloud/dataagent/v20250513/dataagent_client.py,sha256=821vZlwPMfL56btjCUeKXYYumAABkC4PtI82b8LXQhQ,19240
|
|
5
5
|
tencentcloud/dataagent/v20250513/dataagent_client_async.py,sha256=GQRBgTSmYkMnEOuEE3LOiRWr8xPb2SI3hiS1BBlDlTA,12807
|
|
6
6
|
tencentcloud/dataagent/v20250513/errorcodes.py,sha256=oDA3b6phBkyUFg0XUkL4tNQmIcBBhAxrvs5cLZ0sk1g,1538
|
|
7
|
-
tencentcloud/dataagent/v20250513/models.py,sha256=
|
|
8
|
-
tencentcloud_sdk_python_dataagent-3.1.
|
|
9
|
-
tencentcloud_sdk_python_dataagent-3.1.
|
|
10
|
-
tencentcloud_sdk_python_dataagent-3.1.
|
|
11
|
-
tencentcloud_sdk_python_dataagent-3.1.
|
|
7
|
+
tencentcloud/dataagent/v20250513/models.py,sha256=v2pcR0y8hSy6ZcoW0HVmql7xecrU9UuT3tC15PxkyeM,129550
|
|
8
|
+
tencentcloud_sdk_python_dataagent-3.1.88.dist-info/METADATA,sha256=cZhQ9ZfOKEMe-CzKX_DxxeNXiBy37qUoYyeoMwsQui0,1525
|
|
9
|
+
tencentcloud_sdk_python_dataagent-3.1.88.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_dataagent-3.1.88.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_dataagent-3.1.88.dist-info/RECORD,,
|
|
File without changes
|