tencentcloud-sdk-python 3.0.1444__py2.py3-none-any.whl → 3.0.1445__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cls/v20201016/models.py +393 -62
- tencentcloud/emr/v20190103/errorcodes.py +3 -0
- tencentcloud/ess/v20201111/models.py +105 -0
- tencentcloud/essbasic/v20210526/models.py +60 -0
- tencentcloud/lke/v20231130/lke_client.py +1 -1
- tencentcloud/lke/v20231130/models.py +1998 -50
- tencentcloud/ocr/v20181119/models.py +15 -0
- tencentcloud/partners/v20180321/models.py +4 -4
- tencentcloud/sqlserver/v20180328/models.py +6 -6
- tencentcloud/trabbit/v20230418/models.py +15 -0
- tencentcloud/tsf/v20180326/errorcodes.py +6 -0
- tencentcloud/tsf/v20180326/models.py +230 -74
- tencentcloud/tsf/v20180326/tsf_client.py +1 -1
- tencentcloud/vod/v20180717/models.py +507 -0
- tencentcloud/vod/v20180717/vod_client.py +101 -0
- {tencentcloud_sdk_python-3.0.1444.dist-info → tencentcloud_sdk_python-3.0.1445.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1444.dist-info → tencentcloud_sdk_python-3.0.1445.dist-info}/RECORD +21 -21
- {tencentcloud_sdk_python-3.0.1444.dist-info → tencentcloud_sdk_python-3.0.1445.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1444.dist-info → tencentcloud_sdk_python-3.0.1445.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1444.dist-info → tencentcloud_sdk_python-3.0.1445.dist-info}/top_level.txt +0 -0
|
@@ -159,6 +159,8 @@ class Agent(AbstractModel):
|
|
|
159
159
|
:type IsStartingAgent: bool
|
|
160
160
|
:param _AgentType: Agent类型; 0: 未指定类型; 1: 知识库检索Agent
|
|
161
161
|
:type AgentType: int
|
|
162
|
+
:param _AgentMode: 0 自由转交,1 计划与执行
|
|
163
|
+
:type AgentMode: int
|
|
162
164
|
"""
|
|
163
165
|
self._AgentId = None
|
|
164
166
|
self._WorkflowId = None
|
|
@@ -172,6 +174,7 @@ class Agent(AbstractModel):
|
|
|
172
174
|
self._Plugins = None
|
|
173
175
|
self._IsStartingAgent = None
|
|
174
176
|
self._AgentType = None
|
|
177
|
+
self._AgentMode = None
|
|
175
178
|
|
|
176
179
|
@property
|
|
177
180
|
def AgentId(self):
|
|
@@ -305,6 +308,17 @@ class Agent(AbstractModel):
|
|
|
305
308
|
def AgentType(self, AgentType):
|
|
306
309
|
self._AgentType = AgentType
|
|
307
310
|
|
|
311
|
+
@property
|
|
312
|
+
def AgentMode(self):
|
|
313
|
+
"""0 自由转交,1 计划与执行
|
|
314
|
+
:rtype: int
|
|
315
|
+
"""
|
|
316
|
+
return self._AgentMode
|
|
317
|
+
|
|
318
|
+
@AgentMode.setter
|
|
319
|
+
def AgentMode(self, AgentMode):
|
|
320
|
+
self._AgentMode = AgentMode
|
|
321
|
+
|
|
308
322
|
|
|
309
323
|
def _deserialize(self, params):
|
|
310
324
|
self._AgentId = params.get("AgentId")
|
|
@@ -331,6 +345,7 @@ class Agent(AbstractModel):
|
|
|
331
345
|
self._Plugins.append(obj)
|
|
332
346
|
self._IsStartingAgent = params.get("IsStartingAgent")
|
|
333
347
|
self._AgentType = params.get("AgentType")
|
|
348
|
+
self._AgentMode = params.get("AgentMode")
|
|
334
349
|
memeber_set = set(params.keys())
|
|
335
350
|
for name, value in vars(self).items():
|
|
336
351
|
property_name = name[1:]
|
|
@@ -354,9 +369,12 @@ class AgentDebugInfo(AbstractModel):
|
|
|
354
369
|
:param _Output: 工具、大模型的输出信息,json
|
|
355
370
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
356
371
|
:type Output: str
|
|
372
|
+
:param _ModelName: 模型名
|
|
373
|
+
:type ModelName: str
|
|
357
374
|
"""
|
|
358
375
|
self._Input = None
|
|
359
376
|
self._Output = None
|
|
377
|
+
self._ModelName = None
|
|
360
378
|
|
|
361
379
|
@property
|
|
362
380
|
def Input(self):
|
|
@@ -382,10 +400,22 @@ class AgentDebugInfo(AbstractModel):
|
|
|
382
400
|
def Output(self, Output):
|
|
383
401
|
self._Output = Output
|
|
384
402
|
|
|
403
|
+
@property
|
|
404
|
+
def ModelName(self):
|
|
405
|
+
"""模型名
|
|
406
|
+
:rtype: str
|
|
407
|
+
"""
|
|
408
|
+
return self._ModelName
|
|
409
|
+
|
|
410
|
+
@ModelName.setter
|
|
411
|
+
def ModelName(self, ModelName):
|
|
412
|
+
self._ModelName = ModelName
|
|
413
|
+
|
|
385
414
|
|
|
386
415
|
def _deserialize(self, params):
|
|
387
416
|
self._Input = params.get("Input")
|
|
388
417
|
self._Output = params.get("Output")
|
|
418
|
+
self._ModelName = params.get("ModelName")
|
|
389
419
|
memeber_set = set(params.keys())
|
|
390
420
|
for name, value in vars(self).items():
|
|
391
421
|
property_name = name[1:]
|
|
@@ -942,11 +972,14 @@ class AgentMCPServerInfo(AbstractModel):
|
|
|
942
972
|
:type Timeout: int
|
|
943
973
|
:param _SseReadTimeout: sse服务超时时间,单位秒
|
|
944
974
|
:type SseReadTimeout: int
|
|
975
|
+
:param _Query: mcp server query信息
|
|
976
|
+
:type Query: list of AgentPluginQuery
|
|
945
977
|
"""
|
|
946
978
|
self._McpServerUrl = None
|
|
947
979
|
self._Headers = None
|
|
948
980
|
self._Timeout = None
|
|
949
981
|
self._SseReadTimeout = None
|
|
982
|
+
self._Query = None
|
|
950
983
|
|
|
951
984
|
@property
|
|
952
985
|
def McpServerUrl(self):
|
|
@@ -992,6 +1025,17 @@ class AgentMCPServerInfo(AbstractModel):
|
|
|
992
1025
|
def SseReadTimeout(self, SseReadTimeout):
|
|
993
1026
|
self._SseReadTimeout = SseReadTimeout
|
|
994
1027
|
|
|
1028
|
+
@property
|
|
1029
|
+
def Query(self):
|
|
1030
|
+
"""mcp server query信息
|
|
1031
|
+
:rtype: list of AgentPluginQuery
|
|
1032
|
+
"""
|
|
1033
|
+
return self._Query
|
|
1034
|
+
|
|
1035
|
+
@Query.setter
|
|
1036
|
+
def Query(self, Query):
|
|
1037
|
+
self._Query = Query
|
|
1038
|
+
|
|
995
1039
|
|
|
996
1040
|
def _deserialize(self, params):
|
|
997
1041
|
self._McpServerUrl = params.get("McpServerUrl")
|
|
@@ -1003,6 +1047,12 @@ class AgentMCPServerInfo(AbstractModel):
|
|
|
1003
1047
|
self._Headers.append(obj)
|
|
1004
1048
|
self._Timeout = params.get("Timeout")
|
|
1005
1049
|
self._SseReadTimeout = params.get("SseReadTimeout")
|
|
1050
|
+
if params.get("Query") is not None:
|
|
1051
|
+
self._Query = []
|
|
1052
|
+
for item in params.get("Query"):
|
|
1053
|
+
obj = AgentPluginQuery()
|
|
1054
|
+
obj._deserialize(item)
|
|
1055
|
+
self._Query.append(obj)
|
|
1006
1056
|
memeber_set = set(params.keys())
|
|
1007
1057
|
for name, value in vars(self).items():
|
|
1008
1058
|
property_name = name[1:]
|
|
@@ -1038,6 +1088,8 @@ class AgentModelInfo(AbstractModel):
|
|
|
1038
1088
|
:type InstructionsWordsLimit: int
|
|
1039
1089
|
:param _MaxReasoningRound: 单次会话最大推理轮数
|
|
1040
1090
|
:type MaxReasoningRound: int
|
|
1091
|
+
:param _ModelParams: 模型参数
|
|
1092
|
+
:type ModelParams: :class:`tencentcloud.lke.v20231130.models.ModelParams`
|
|
1041
1093
|
"""
|
|
1042
1094
|
self._ModelName = None
|
|
1043
1095
|
self._ModelAliasName = None
|
|
@@ -1048,6 +1100,7 @@ class AgentModelInfo(AbstractModel):
|
|
|
1048
1100
|
self._ModelContextWordsLimit = None
|
|
1049
1101
|
self._InstructionsWordsLimit = None
|
|
1050
1102
|
self._MaxReasoningRound = None
|
|
1103
|
+
self._ModelParams = None
|
|
1051
1104
|
|
|
1052
1105
|
@property
|
|
1053
1106
|
def ModelName(self):
|
|
@@ -1148,6 +1201,17 @@ class AgentModelInfo(AbstractModel):
|
|
|
1148
1201
|
def MaxReasoningRound(self, MaxReasoningRound):
|
|
1149
1202
|
self._MaxReasoningRound = MaxReasoningRound
|
|
1150
1203
|
|
|
1204
|
+
@property
|
|
1205
|
+
def ModelParams(self):
|
|
1206
|
+
"""模型参数
|
|
1207
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.ModelParams`
|
|
1208
|
+
"""
|
|
1209
|
+
return self._ModelParams
|
|
1210
|
+
|
|
1211
|
+
@ModelParams.setter
|
|
1212
|
+
def ModelParams(self, ModelParams):
|
|
1213
|
+
self._ModelParams = ModelParams
|
|
1214
|
+
|
|
1151
1215
|
|
|
1152
1216
|
def _deserialize(self, params):
|
|
1153
1217
|
self._ModelName = params.get("ModelName")
|
|
@@ -1159,6 +1223,9 @@ class AgentModelInfo(AbstractModel):
|
|
|
1159
1223
|
self._ModelContextWordsLimit = params.get("ModelContextWordsLimit")
|
|
1160
1224
|
self._InstructionsWordsLimit = params.get("InstructionsWordsLimit")
|
|
1161
1225
|
self._MaxReasoningRound = params.get("MaxReasoningRound")
|
|
1226
|
+
if params.get("ModelParams") is not None:
|
|
1227
|
+
self._ModelParams = ModelParams()
|
|
1228
|
+
self._ModelParams._deserialize(params.get("ModelParams"))
|
|
1162
1229
|
memeber_set = set(params.keys())
|
|
1163
1230
|
for name, value in vars(self).items():
|
|
1164
1231
|
property_name = name[1:]
|
|
@@ -1284,12 +1351,21 @@ class AgentPluginInfo(AbstractModel):
|
|
|
1284
1351
|
:type PluginInfoType: int
|
|
1285
1352
|
:param _KnowledgeQa: 知识库问答插件配置
|
|
1286
1353
|
:type KnowledgeQa: :class:`tencentcloud.lke.v20231130.models.AgentKnowledgeQAPlugin`
|
|
1354
|
+
:param _EnableRoleAuth: 是否使用一键授权
|
|
1355
|
+
:type EnableRoleAuth: bool
|
|
1356
|
+
:param _Query: 应用配置的插件query信息
|
|
1357
|
+
:type Query: list of AgentPluginQuery
|
|
1358
|
+
:param _McpType: MCP类型
|
|
1359
|
+
:type McpType: int
|
|
1287
1360
|
"""
|
|
1288
1361
|
self._PluginId = None
|
|
1289
1362
|
self._Headers = None
|
|
1290
1363
|
self._Model = None
|
|
1291
1364
|
self._PluginInfoType = None
|
|
1292
1365
|
self._KnowledgeQa = None
|
|
1366
|
+
self._EnableRoleAuth = None
|
|
1367
|
+
self._Query = None
|
|
1368
|
+
self._McpType = None
|
|
1293
1369
|
|
|
1294
1370
|
@property
|
|
1295
1371
|
def PluginId(self):
|
|
@@ -1346,6 +1422,39 @@ class AgentPluginInfo(AbstractModel):
|
|
|
1346
1422
|
def KnowledgeQa(self, KnowledgeQa):
|
|
1347
1423
|
self._KnowledgeQa = KnowledgeQa
|
|
1348
1424
|
|
|
1425
|
+
@property
|
|
1426
|
+
def EnableRoleAuth(self):
|
|
1427
|
+
"""是否使用一键授权
|
|
1428
|
+
:rtype: bool
|
|
1429
|
+
"""
|
|
1430
|
+
return self._EnableRoleAuth
|
|
1431
|
+
|
|
1432
|
+
@EnableRoleAuth.setter
|
|
1433
|
+
def EnableRoleAuth(self, EnableRoleAuth):
|
|
1434
|
+
self._EnableRoleAuth = EnableRoleAuth
|
|
1435
|
+
|
|
1436
|
+
@property
|
|
1437
|
+
def Query(self):
|
|
1438
|
+
"""应用配置的插件query信息
|
|
1439
|
+
:rtype: list of AgentPluginQuery
|
|
1440
|
+
"""
|
|
1441
|
+
return self._Query
|
|
1442
|
+
|
|
1443
|
+
@Query.setter
|
|
1444
|
+
def Query(self, Query):
|
|
1445
|
+
self._Query = Query
|
|
1446
|
+
|
|
1447
|
+
@property
|
|
1448
|
+
def McpType(self):
|
|
1449
|
+
"""MCP类型
|
|
1450
|
+
:rtype: int
|
|
1451
|
+
"""
|
|
1452
|
+
return self._McpType
|
|
1453
|
+
|
|
1454
|
+
@McpType.setter
|
|
1455
|
+
def McpType(self, McpType):
|
|
1456
|
+
self._McpType = McpType
|
|
1457
|
+
|
|
1349
1458
|
|
|
1350
1459
|
def _deserialize(self, params):
|
|
1351
1460
|
self._PluginId = params.get("PluginId")
|
|
@@ -1362,6 +1471,112 @@ class AgentPluginInfo(AbstractModel):
|
|
|
1362
1471
|
if params.get("KnowledgeQa") is not None:
|
|
1363
1472
|
self._KnowledgeQa = AgentKnowledgeQAPlugin()
|
|
1364
1473
|
self._KnowledgeQa._deserialize(params.get("KnowledgeQa"))
|
|
1474
|
+
self._EnableRoleAuth = params.get("EnableRoleAuth")
|
|
1475
|
+
if params.get("Query") is not None:
|
|
1476
|
+
self._Query = []
|
|
1477
|
+
for item in params.get("Query"):
|
|
1478
|
+
obj = AgentPluginQuery()
|
|
1479
|
+
obj._deserialize(item)
|
|
1480
|
+
self._Query.append(obj)
|
|
1481
|
+
self._McpType = params.get("McpType")
|
|
1482
|
+
memeber_set = set(params.keys())
|
|
1483
|
+
for name, value in vars(self).items():
|
|
1484
|
+
property_name = name[1:]
|
|
1485
|
+
if property_name in memeber_set:
|
|
1486
|
+
memeber_set.remove(property_name)
|
|
1487
|
+
if len(memeber_set) > 0:
|
|
1488
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
class AgentPluginQuery(AbstractModel):
|
|
1493
|
+
"""应用配置MCP插件query信息
|
|
1494
|
+
|
|
1495
|
+
"""
|
|
1496
|
+
|
|
1497
|
+
def __init__(self):
|
|
1498
|
+
r"""
|
|
1499
|
+
:param _ParamName: 参数名称
|
|
1500
|
+
:type ParamName: str
|
|
1501
|
+
:param _ParamValue: 参数值
|
|
1502
|
+
:type ParamValue: str
|
|
1503
|
+
:param _GlobalHidden: query参数配置是否隐藏不可见,true-隐藏不可见,false-可见
|
|
1504
|
+
:type GlobalHidden: bool
|
|
1505
|
+
:param _IsRequired: 参数是否可以为空
|
|
1506
|
+
:type IsRequired: bool
|
|
1507
|
+
:param _Input: 输入的值
|
|
1508
|
+
:type Input: :class:`tencentcloud.lke.v20231130.models.AgentInput`
|
|
1509
|
+
"""
|
|
1510
|
+
self._ParamName = None
|
|
1511
|
+
self._ParamValue = None
|
|
1512
|
+
self._GlobalHidden = None
|
|
1513
|
+
self._IsRequired = None
|
|
1514
|
+
self._Input = None
|
|
1515
|
+
|
|
1516
|
+
@property
|
|
1517
|
+
def ParamName(self):
|
|
1518
|
+
"""参数名称
|
|
1519
|
+
:rtype: str
|
|
1520
|
+
"""
|
|
1521
|
+
return self._ParamName
|
|
1522
|
+
|
|
1523
|
+
@ParamName.setter
|
|
1524
|
+
def ParamName(self, ParamName):
|
|
1525
|
+
self._ParamName = ParamName
|
|
1526
|
+
|
|
1527
|
+
@property
|
|
1528
|
+
def ParamValue(self):
|
|
1529
|
+
"""参数值
|
|
1530
|
+
:rtype: str
|
|
1531
|
+
"""
|
|
1532
|
+
return self._ParamValue
|
|
1533
|
+
|
|
1534
|
+
@ParamValue.setter
|
|
1535
|
+
def ParamValue(self, ParamValue):
|
|
1536
|
+
self._ParamValue = ParamValue
|
|
1537
|
+
|
|
1538
|
+
@property
|
|
1539
|
+
def GlobalHidden(self):
|
|
1540
|
+
"""query参数配置是否隐藏不可见,true-隐藏不可见,false-可见
|
|
1541
|
+
:rtype: bool
|
|
1542
|
+
"""
|
|
1543
|
+
return self._GlobalHidden
|
|
1544
|
+
|
|
1545
|
+
@GlobalHidden.setter
|
|
1546
|
+
def GlobalHidden(self, GlobalHidden):
|
|
1547
|
+
self._GlobalHidden = GlobalHidden
|
|
1548
|
+
|
|
1549
|
+
@property
|
|
1550
|
+
def IsRequired(self):
|
|
1551
|
+
"""参数是否可以为空
|
|
1552
|
+
:rtype: bool
|
|
1553
|
+
"""
|
|
1554
|
+
return self._IsRequired
|
|
1555
|
+
|
|
1556
|
+
@IsRequired.setter
|
|
1557
|
+
def IsRequired(self, IsRequired):
|
|
1558
|
+
self._IsRequired = IsRequired
|
|
1559
|
+
|
|
1560
|
+
@property
|
|
1561
|
+
def Input(self):
|
|
1562
|
+
"""输入的值
|
|
1563
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentInput`
|
|
1564
|
+
"""
|
|
1565
|
+
return self._Input
|
|
1566
|
+
|
|
1567
|
+
@Input.setter
|
|
1568
|
+
def Input(self, Input):
|
|
1569
|
+
self._Input = Input
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
def _deserialize(self, params):
|
|
1573
|
+
self._ParamName = params.get("ParamName")
|
|
1574
|
+
self._ParamValue = params.get("ParamValue")
|
|
1575
|
+
self._GlobalHidden = params.get("GlobalHidden")
|
|
1576
|
+
self._IsRequired = params.get("IsRequired")
|
|
1577
|
+
if params.get("Input") is not None:
|
|
1578
|
+
self._Input = AgentInput()
|
|
1579
|
+
self._Input._deserialize(params.get("Input"))
|
|
1365
1580
|
memeber_set = set(params.keys())
|
|
1366
1581
|
for name, value in vars(self).items():
|
|
1367
1582
|
property_name = name[1:]
|
|
@@ -1646,7 +1861,7 @@ class AgentProcedureDebugging(AbstractModel):
|
|
|
1646
1861
|
:param _DisplayContent: 展示的具体文本内容
|
|
1647
1862
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1648
1863
|
:type DisplayContent: str
|
|
1649
|
-
:param _DisplayType:
|
|
1864
|
+
:param _DisplayType: 1:搜索引擎参考来源;2:知识库参考来源
|
|
1650
1865
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1651
1866
|
:type DisplayType: int
|
|
1652
1867
|
:param _QuoteInfos: 搜索引擎展示的索引
|
|
@@ -1700,7 +1915,7 @@ class AgentProcedureDebugging(AbstractModel):
|
|
|
1700
1915
|
|
|
1701
1916
|
@property
|
|
1702
1917
|
def DisplayType(self):
|
|
1703
|
-
"""
|
|
1918
|
+
"""1:搜索引擎参考来源;2:知识库参考来源
|
|
1704
1919
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1705
1920
|
:rtype: int
|
|
1706
1921
|
"""
|
|
@@ -1837,6 +2052,12 @@ class AgentReference(AbstractModel):
|
|
|
1837
2052
|
:param _Title: 标题
|
|
1838
2053
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1839
2054
|
:type Title: str
|
|
2055
|
+
:param _KnowledgeName: 知识库名称
|
|
2056
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2057
|
+
:type KnowledgeName: str
|
|
2058
|
+
:param _KnowledgeBizId: 知识库标识
|
|
2059
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2060
|
+
:type KnowledgeBizId: str
|
|
1840
2061
|
"""
|
|
1841
2062
|
self._DocId = None
|
|
1842
2063
|
self._Id = None
|
|
@@ -1848,6 +2069,8 @@ class AgentReference(AbstractModel):
|
|
|
1848
2069
|
self._QaBizId = None
|
|
1849
2070
|
self._Index = None
|
|
1850
2071
|
self._Title = None
|
|
2072
|
+
self._KnowledgeName = None
|
|
2073
|
+
self._KnowledgeBizId = None
|
|
1851
2074
|
|
|
1852
2075
|
@property
|
|
1853
2076
|
def DocId(self):
|
|
@@ -1969,6 +2192,30 @@ class AgentReference(AbstractModel):
|
|
|
1969
2192
|
def Title(self, Title):
|
|
1970
2193
|
self._Title = Title
|
|
1971
2194
|
|
|
2195
|
+
@property
|
|
2196
|
+
def KnowledgeName(self):
|
|
2197
|
+
"""知识库名称
|
|
2198
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2199
|
+
:rtype: str
|
|
2200
|
+
"""
|
|
2201
|
+
return self._KnowledgeName
|
|
2202
|
+
|
|
2203
|
+
@KnowledgeName.setter
|
|
2204
|
+
def KnowledgeName(self, KnowledgeName):
|
|
2205
|
+
self._KnowledgeName = KnowledgeName
|
|
2206
|
+
|
|
2207
|
+
@property
|
|
2208
|
+
def KnowledgeBizId(self):
|
|
2209
|
+
"""知识库标识
|
|
2210
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2211
|
+
:rtype: str
|
|
2212
|
+
"""
|
|
2213
|
+
return self._KnowledgeBizId
|
|
2214
|
+
|
|
2215
|
+
@KnowledgeBizId.setter
|
|
2216
|
+
def KnowledgeBizId(self, KnowledgeBizId):
|
|
2217
|
+
self._KnowledgeBizId = KnowledgeBizId
|
|
2218
|
+
|
|
1972
2219
|
|
|
1973
2220
|
def _deserialize(self, params):
|
|
1974
2221
|
self._DocId = params.get("DocId")
|
|
@@ -1981,6 +2228,8 @@ class AgentReference(AbstractModel):
|
|
|
1981
2228
|
self._QaBizId = params.get("QaBizId")
|
|
1982
2229
|
self._Index = params.get("Index")
|
|
1983
2230
|
self._Title = params.get("Title")
|
|
2231
|
+
self._KnowledgeName = params.get("KnowledgeName")
|
|
2232
|
+
self._KnowledgeBizId = params.get("KnowledgeBizId")
|
|
1984
2233
|
memeber_set = set(params.keys())
|
|
1985
2234
|
for name, value in vars(self).items():
|
|
1986
2235
|
property_name = name[1:]
|
|
@@ -2215,6 +2464,10 @@ class AgentToolInfo(AbstractModel):
|
|
|
2215
2464
|
:param _CallingMethod: NON_STREAMING: 非流式 STREAMIN: 流式
|
|
2216
2465
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2217
2466
|
:type CallingMethod: str
|
|
2467
|
+
:param _Query: query信息
|
|
2468
|
+
:type Query: list of AgentPluginQuery
|
|
2469
|
+
:param _FinanceStatus: 工具计费状态 0-不计费 1-可用 2-不可用(欠费、无资源等)
|
|
2470
|
+
:type FinanceStatus: int
|
|
2218
2471
|
"""
|
|
2219
2472
|
self._PluginId = None
|
|
2220
2473
|
self._PluginName = None
|
|
@@ -2231,6 +2484,8 @@ class AgentToolInfo(AbstractModel):
|
|
|
2231
2484
|
self._Status = None
|
|
2232
2485
|
self._Headers = None
|
|
2233
2486
|
self._CallingMethod = None
|
|
2487
|
+
self._Query = None
|
|
2488
|
+
self._FinanceStatus = None
|
|
2234
2489
|
|
|
2235
2490
|
@property
|
|
2236
2491
|
def PluginId(self):
|
|
@@ -2400,6 +2655,28 @@ class AgentToolInfo(AbstractModel):
|
|
|
2400
2655
|
def CallingMethod(self, CallingMethod):
|
|
2401
2656
|
self._CallingMethod = CallingMethod
|
|
2402
2657
|
|
|
2658
|
+
@property
|
|
2659
|
+
def Query(self):
|
|
2660
|
+
"""query信息
|
|
2661
|
+
:rtype: list of AgentPluginQuery
|
|
2662
|
+
"""
|
|
2663
|
+
return self._Query
|
|
2664
|
+
|
|
2665
|
+
@Query.setter
|
|
2666
|
+
def Query(self, Query):
|
|
2667
|
+
self._Query = Query
|
|
2668
|
+
|
|
2669
|
+
@property
|
|
2670
|
+
def FinanceStatus(self):
|
|
2671
|
+
"""工具计费状态 0-不计费 1-可用 2-不可用(欠费、无资源等)
|
|
2672
|
+
:rtype: int
|
|
2673
|
+
"""
|
|
2674
|
+
return self._FinanceStatus
|
|
2675
|
+
|
|
2676
|
+
@FinanceStatus.setter
|
|
2677
|
+
def FinanceStatus(self, FinanceStatus):
|
|
2678
|
+
self._FinanceStatus = FinanceStatus
|
|
2679
|
+
|
|
2403
2680
|
|
|
2404
2681
|
def _deserialize(self, params):
|
|
2405
2682
|
self._PluginId = params.get("PluginId")
|
|
@@ -2434,6 +2711,13 @@ class AgentToolInfo(AbstractModel):
|
|
|
2434
2711
|
obj._deserialize(item)
|
|
2435
2712
|
self._Headers.append(obj)
|
|
2436
2713
|
self._CallingMethod = params.get("CallingMethod")
|
|
2714
|
+
if params.get("Query") is not None:
|
|
2715
|
+
self._Query = []
|
|
2716
|
+
for item in params.get("Query"):
|
|
2717
|
+
obj = AgentPluginQuery()
|
|
2718
|
+
obj._deserialize(item)
|
|
2719
|
+
self._Query.append(obj)
|
|
2720
|
+
self._FinanceStatus = params.get("FinanceStatus")
|
|
2437
2721
|
memeber_set = set(params.keys())
|
|
2438
2722
|
for name, value in vars(self).items():
|
|
2439
2723
|
property_name = name[1:]
|
|
@@ -3013,6 +3297,8 @@ class AppInfo(AbstractModel):
|
|
|
3013
3297
|
:param _ThoughtModelAliasName: 思考模型别名
|
|
3014
3298
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3015
3299
|
:type ThoughtModelAliasName: str
|
|
3300
|
+
:param _PermissionIds: 权限位信息
|
|
3301
|
+
:type PermissionIds: list of str
|
|
3016
3302
|
"""
|
|
3017
3303
|
self._AppType = None
|
|
3018
3304
|
self._AppTypeDesc = None
|
|
@@ -3028,6 +3314,7 @@ class AppInfo(AbstractModel):
|
|
|
3028
3314
|
self._ModelAliasName = None
|
|
3029
3315
|
self._Pattern = None
|
|
3030
3316
|
self._ThoughtModelAliasName = None
|
|
3317
|
+
self._PermissionIds = None
|
|
3031
3318
|
|
|
3032
3319
|
@property
|
|
3033
3320
|
def AppType(self):
|
|
@@ -3197,6 +3484,17 @@ class AppInfo(AbstractModel):
|
|
|
3197
3484
|
def ThoughtModelAliasName(self, ThoughtModelAliasName):
|
|
3198
3485
|
self._ThoughtModelAliasName = ThoughtModelAliasName
|
|
3199
3486
|
|
|
3487
|
+
@property
|
|
3488
|
+
def PermissionIds(self):
|
|
3489
|
+
"""权限位信息
|
|
3490
|
+
:rtype: list of str
|
|
3491
|
+
"""
|
|
3492
|
+
return self._PermissionIds
|
|
3493
|
+
|
|
3494
|
+
@PermissionIds.setter
|
|
3495
|
+
def PermissionIds(self, PermissionIds):
|
|
3496
|
+
self._PermissionIds = PermissionIds
|
|
3497
|
+
|
|
3200
3498
|
|
|
3201
3499
|
def _deserialize(self, params):
|
|
3202
3500
|
self._AppType = params.get("AppType")
|
|
@@ -3213,6 +3511,7 @@ class AppInfo(AbstractModel):
|
|
|
3213
3511
|
self._ModelAliasName = params.get("ModelAliasName")
|
|
3214
3512
|
self._Pattern = params.get("Pattern")
|
|
3215
3513
|
self._ThoughtModelAliasName = params.get("ThoughtModelAliasName")
|
|
3514
|
+
self._PermissionIds = params.get("PermissionIds")
|
|
3216
3515
|
memeber_set = set(params.keys())
|
|
3217
3516
|
for name, value in vars(self).items():
|
|
3218
3517
|
property_name = name[1:]
|
|
@@ -3263,6 +3562,9 @@ class AppModel(AbstractModel):
|
|
|
3263
3562
|
:param _ResourceStatus: 模型资源状态 1:资源可用;2:资源已用尽
|
|
3264
3563
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3265
3564
|
:type ResourceStatus: int
|
|
3565
|
+
:param _ModelParams: 模型参数
|
|
3566
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3567
|
+
:type ModelParams: :class:`tencentcloud.lke.v20231130.models.ModelParams`
|
|
3266
3568
|
"""
|
|
3267
3569
|
self._Name = None
|
|
3268
3570
|
self._Desc = None
|
|
@@ -3275,6 +3577,7 @@ class AppModel(AbstractModel):
|
|
|
3275
3577
|
self._Temperature = None
|
|
3276
3578
|
self._TopP = None
|
|
3277
3579
|
self._ResourceStatus = None
|
|
3580
|
+
self._ModelParams = None
|
|
3278
3581
|
|
|
3279
3582
|
@property
|
|
3280
3583
|
def Name(self):
|
|
@@ -3408,6 +3711,18 @@ class AppModel(AbstractModel):
|
|
|
3408
3711
|
def ResourceStatus(self, ResourceStatus):
|
|
3409
3712
|
self._ResourceStatus = ResourceStatus
|
|
3410
3713
|
|
|
3714
|
+
@property
|
|
3715
|
+
def ModelParams(self):
|
|
3716
|
+
"""模型参数
|
|
3717
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3718
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.ModelParams`
|
|
3719
|
+
"""
|
|
3720
|
+
return self._ModelParams
|
|
3721
|
+
|
|
3722
|
+
@ModelParams.setter
|
|
3723
|
+
def ModelParams(self, ModelParams):
|
|
3724
|
+
self._ModelParams = ModelParams
|
|
3725
|
+
|
|
3411
3726
|
|
|
3412
3727
|
def _deserialize(self, params):
|
|
3413
3728
|
self._Name = params.get("Name")
|
|
@@ -3421,6 +3736,9 @@ class AppModel(AbstractModel):
|
|
|
3421
3736
|
self._Temperature = params.get("Temperature")
|
|
3422
3737
|
self._TopP = params.get("TopP")
|
|
3423
3738
|
self._ResourceStatus = params.get("ResourceStatus")
|
|
3739
|
+
if params.get("ModelParams") is not None:
|
|
3740
|
+
self._ModelParams = ModelParams()
|
|
3741
|
+
self._ModelParams._deserialize(params.get("ModelParams"))
|
|
3424
3742
|
memeber_set = set(params.keys())
|
|
3425
3743
|
for name, value in vars(self).items():
|
|
3426
3744
|
property_name = name[1:]
|
|
@@ -5208,10 +5526,13 @@ class CreateAppRequest(AbstractModel):
|
|
|
5208
5526
|
:type BaseConfig: :class:`tencentcloud.lke.v20231130.models.BaseConfig`
|
|
5209
5527
|
:param _Pattern: 应用模式 standard:标准模式, agent: agent模式,single_workflow:单工作流模式
|
|
5210
5528
|
:type Pattern: str
|
|
5529
|
+
:param _AgentType: 智能体类型 dialogue 对话式智能体,wechat 公众号智能体
|
|
5530
|
+
:type AgentType: str
|
|
5211
5531
|
"""
|
|
5212
5532
|
self._AppType = None
|
|
5213
5533
|
self._BaseConfig = None
|
|
5214
5534
|
self._Pattern = None
|
|
5535
|
+
self._AgentType = None
|
|
5215
5536
|
|
|
5216
5537
|
@property
|
|
5217
5538
|
def AppType(self):
|
|
@@ -5246,6 +5567,17 @@ class CreateAppRequest(AbstractModel):
|
|
|
5246
5567
|
def Pattern(self, Pattern):
|
|
5247
5568
|
self._Pattern = Pattern
|
|
5248
5569
|
|
|
5570
|
+
@property
|
|
5571
|
+
def AgentType(self):
|
|
5572
|
+
"""智能体类型 dialogue 对话式智能体,wechat 公众号智能体
|
|
5573
|
+
:rtype: str
|
|
5574
|
+
"""
|
|
5575
|
+
return self._AgentType
|
|
5576
|
+
|
|
5577
|
+
@AgentType.setter
|
|
5578
|
+
def AgentType(self, AgentType):
|
|
5579
|
+
self._AgentType = AgentType
|
|
5580
|
+
|
|
5249
5581
|
|
|
5250
5582
|
def _deserialize(self, params):
|
|
5251
5583
|
self._AppType = params.get("AppType")
|
|
@@ -5253,6 +5585,7 @@ class CreateAppRequest(AbstractModel):
|
|
|
5253
5585
|
self._BaseConfig = BaseConfig()
|
|
5254
5586
|
self._BaseConfig._deserialize(params.get("BaseConfig"))
|
|
5255
5587
|
self._Pattern = params.get("Pattern")
|
|
5588
|
+
self._AgentType = params.get("AgentType")
|
|
5256
5589
|
memeber_set = set(params.keys())
|
|
5257
5590
|
for name, value in vars(self).items():
|
|
5258
5591
|
property_name = name[1:]
|
|
@@ -6312,10 +6645,13 @@ class CreateSharedKnowledgeRequest(AbstractModel):
|
|
|
6312
6645
|
:type KnowledgeDescription: str
|
|
6313
6646
|
:param _EmbeddingModel: Embedding模型,字符数量上限128
|
|
6314
6647
|
:type EmbeddingModel: str
|
|
6648
|
+
:param _KnowledgeType: 共享知识库类型,0普通,1公众号
|
|
6649
|
+
:type KnowledgeType: int
|
|
6315
6650
|
"""
|
|
6316
6651
|
self._KnowledgeName = None
|
|
6317
6652
|
self._KnowledgeDescription = None
|
|
6318
6653
|
self._EmbeddingModel = None
|
|
6654
|
+
self._KnowledgeType = None
|
|
6319
6655
|
|
|
6320
6656
|
@property
|
|
6321
6657
|
def KnowledgeName(self):
|
|
@@ -6341,6 +6677,8 @@ class CreateSharedKnowledgeRequest(AbstractModel):
|
|
|
6341
6677
|
|
|
6342
6678
|
@property
|
|
6343
6679
|
def EmbeddingModel(self):
|
|
6680
|
+
warnings.warn("parameter `EmbeddingModel` is deprecated", DeprecationWarning)
|
|
6681
|
+
|
|
6344
6682
|
"""Embedding模型,字符数量上限128
|
|
6345
6683
|
:rtype: str
|
|
6346
6684
|
"""
|
|
@@ -6348,13 +6686,27 @@ class CreateSharedKnowledgeRequest(AbstractModel):
|
|
|
6348
6686
|
|
|
6349
6687
|
@EmbeddingModel.setter
|
|
6350
6688
|
def EmbeddingModel(self, EmbeddingModel):
|
|
6689
|
+
warnings.warn("parameter `EmbeddingModel` is deprecated", DeprecationWarning)
|
|
6690
|
+
|
|
6351
6691
|
self._EmbeddingModel = EmbeddingModel
|
|
6352
6692
|
|
|
6693
|
+
@property
|
|
6694
|
+
def KnowledgeType(self):
|
|
6695
|
+
"""共享知识库类型,0普通,1公众号
|
|
6696
|
+
:rtype: int
|
|
6697
|
+
"""
|
|
6698
|
+
return self._KnowledgeType
|
|
6699
|
+
|
|
6700
|
+
@KnowledgeType.setter
|
|
6701
|
+
def KnowledgeType(self, KnowledgeType):
|
|
6702
|
+
self._KnowledgeType = KnowledgeType
|
|
6703
|
+
|
|
6353
6704
|
|
|
6354
6705
|
def _deserialize(self, params):
|
|
6355
6706
|
self._KnowledgeName = params.get("KnowledgeName")
|
|
6356
6707
|
self._KnowledgeDescription = params.get("KnowledgeDescription")
|
|
6357
6708
|
self._EmbeddingModel = params.get("EmbeddingModel")
|
|
6709
|
+
self._KnowledgeType = params.get("KnowledgeType")
|
|
6358
6710
|
memeber_set = set(params.keys())
|
|
6359
6711
|
for name, value in vars(self).items():
|
|
6360
6712
|
property_name = name[1:]
|
|
@@ -6427,6 +6779,8 @@ class CreateVarRequest(AbstractModel):
|
|
|
6427
6779
|
:type VarDefaultValue: str
|
|
6428
6780
|
:param _VarDefaultFileName: 自定义变量文件默认名称
|
|
6429
6781
|
:type VarDefaultFileName: str
|
|
6782
|
+
:param _VarModuleType: 参数类型
|
|
6783
|
+
:type VarModuleType: int
|
|
6430
6784
|
"""
|
|
6431
6785
|
self._AppBizId = None
|
|
6432
6786
|
self._VarName = None
|
|
@@ -6434,6 +6788,7 @@ class CreateVarRequest(AbstractModel):
|
|
|
6434
6788
|
self._VarType = None
|
|
6435
6789
|
self._VarDefaultValue = None
|
|
6436
6790
|
self._VarDefaultFileName = None
|
|
6791
|
+
self._VarModuleType = None
|
|
6437
6792
|
|
|
6438
6793
|
@property
|
|
6439
6794
|
def AppBizId(self):
|
|
@@ -6501,6 +6856,17 @@ class CreateVarRequest(AbstractModel):
|
|
|
6501
6856
|
def VarDefaultFileName(self, VarDefaultFileName):
|
|
6502
6857
|
self._VarDefaultFileName = VarDefaultFileName
|
|
6503
6858
|
|
|
6859
|
+
@property
|
|
6860
|
+
def VarModuleType(self):
|
|
6861
|
+
"""参数类型
|
|
6862
|
+
:rtype: int
|
|
6863
|
+
"""
|
|
6864
|
+
return self._VarModuleType
|
|
6865
|
+
|
|
6866
|
+
@VarModuleType.setter
|
|
6867
|
+
def VarModuleType(self, VarModuleType):
|
|
6868
|
+
self._VarModuleType = VarModuleType
|
|
6869
|
+
|
|
6504
6870
|
|
|
6505
6871
|
def _deserialize(self, params):
|
|
6506
6872
|
self._AppBizId = params.get("AppBizId")
|
|
@@ -6509,6 +6875,7 @@ class CreateVarRequest(AbstractModel):
|
|
|
6509
6875
|
self._VarType = params.get("VarType")
|
|
6510
6876
|
self._VarDefaultValue = params.get("VarDefaultValue")
|
|
6511
6877
|
self._VarDefaultFileName = params.get("VarDefaultFileName")
|
|
6878
|
+
self._VarModuleType = params.get("VarModuleType")
|
|
6512
6879
|
memeber_set = set(params.keys())
|
|
6513
6880
|
for name, value in vars(self).items():
|
|
6514
6881
|
property_name = name[1:]
|
|
@@ -7684,9 +8051,12 @@ class DeleteVarRequest(AbstractModel):
|
|
|
7684
8051
|
:type AppBizId: str
|
|
7685
8052
|
:param _VarId: 变量ID
|
|
7686
8053
|
:type VarId: str
|
|
8054
|
+
:param _VarModuleType: 参数类型
|
|
8055
|
+
:type VarModuleType: int
|
|
7687
8056
|
"""
|
|
7688
8057
|
self._AppBizId = None
|
|
7689
8058
|
self._VarId = None
|
|
8059
|
+
self._VarModuleType = None
|
|
7690
8060
|
|
|
7691
8061
|
@property
|
|
7692
8062
|
def AppBizId(self):
|
|
@@ -7710,10 +8080,22 @@ class DeleteVarRequest(AbstractModel):
|
|
|
7710
8080
|
def VarId(self, VarId):
|
|
7711
8081
|
self._VarId = VarId
|
|
7712
8082
|
|
|
8083
|
+
@property
|
|
8084
|
+
def VarModuleType(self):
|
|
8085
|
+
"""参数类型
|
|
8086
|
+
:rtype: int
|
|
8087
|
+
"""
|
|
8088
|
+
return self._VarModuleType
|
|
8089
|
+
|
|
8090
|
+
@VarModuleType.setter
|
|
8091
|
+
def VarModuleType(self, VarModuleType):
|
|
8092
|
+
self._VarModuleType = VarModuleType
|
|
8093
|
+
|
|
7713
8094
|
|
|
7714
8095
|
def _deserialize(self, params):
|
|
7715
8096
|
self._AppBizId = params.get("AppBizId")
|
|
7716
8097
|
self._VarId = params.get("VarId")
|
|
8098
|
+
self._VarModuleType = params.get("VarModuleType")
|
|
7717
8099
|
memeber_set = set(params.keys())
|
|
7718
8100
|
for name, value in vars(self).items():
|
|
7719
8101
|
property_name = name[1:]
|
|
@@ -8450,6 +8832,8 @@ class DescribeCallStatsGraphRequest(AbstractModel):
|
|
|
8450
8832
|
:type SubScenes: list of str
|
|
8451
8833
|
:param _AppType: 应用类型(knowledge_qa应用管理, shared_knowlege 共享知识库)
|
|
8452
8834
|
:type AppType: str
|
|
8835
|
+
:param _SpaceId: 空间id
|
|
8836
|
+
:type SpaceId: str
|
|
8453
8837
|
"""
|
|
8454
8838
|
self._UinAccount = None
|
|
8455
8839
|
self._LoginUin = None
|
|
@@ -8461,6 +8845,7 @@ class DescribeCallStatsGraphRequest(AbstractModel):
|
|
|
8461
8845
|
self._AppBizIds = None
|
|
8462
8846
|
self._SubScenes = None
|
|
8463
8847
|
self._AppType = None
|
|
8848
|
+
self._SpaceId = None
|
|
8464
8849
|
|
|
8465
8850
|
@property
|
|
8466
8851
|
def UinAccount(self):
|
|
@@ -8572,6 +8957,17 @@ class DescribeCallStatsGraphRequest(AbstractModel):
|
|
|
8572
8957
|
def AppType(self, AppType):
|
|
8573
8958
|
self._AppType = AppType
|
|
8574
8959
|
|
|
8960
|
+
@property
|
|
8961
|
+
def SpaceId(self):
|
|
8962
|
+
"""空间id
|
|
8963
|
+
:rtype: str
|
|
8964
|
+
"""
|
|
8965
|
+
return self._SpaceId
|
|
8966
|
+
|
|
8967
|
+
@SpaceId.setter
|
|
8968
|
+
def SpaceId(self, SpaceId):
|
|
8969
|
+
self._SpaceId = SpaceId
|
|
8970
|
+
|
|
8575
8971
|
|
|
8576
8972
|
def _deserialize(self, params):
|
|
8577
8973
|
self._UinAccount = params.get("UinAccount")
|
|
@@ -8584,6 +8980,7 @@ class DescribeCallStatsGraphRequest(AbstractModel):
|
|
|
8584
8980
|
self._AppBizIds = params.get("AppBizIds")
|
|
8585
8981
|
self._SubScenes = params.get("SubScenes")
|
|
8586
8982
|
self._AppType = params.get("AppType")
|
|
8983
|
+
self._SpaceId = params.get("SpaceId")
|
|
8587
8984
|
memeber_set = set(params.keys())
|
|
8588
8985
|
for name, value in vars(self).items():
|
|
8589
8986
|
property_name = name[1:]
|
|
@@ -8667,6 +9064,8 @@ class DescribeConcurrencyUsageGraphRequest(AbstractModel):
|
|
|
8667
9064
|
:type SubBizType: str
|
|
8668
9065
|
:param _AppBizIds: 应用id列表
|
|
8669
9066
|
:type AppBizIds: list of str
|
|
9067
|
+
:param _SpaceId: 空间id
|
|
9068
|
+
:type SpaceId: str
|
|
8670
9069
|
"""
|
|
8671
9070
|
self._ModelName = None
|
|
8672
9071
|
self._StartTime = None
|
|
@@ -8676,6 +9075,7 @@ class DescribeConcurrencyUsageGraphRequest(AbstractModel):
|
|
|
8676
9075
|
self._LoginSubAccountUin = None
|
|
8677
9076
|
self._SubBizType = None
|
|
8678
9077
|
self._AppBizIds = None
|
|
9078
|
+
self._SpaceId = None
|
|
8679
9079
|
|
|
8680
9080
|
@property
|
|
8681
9081
|
def ModelName(self):
|
|
@@ -8765,8 +9165,19 @@ class DescribeConcurrencyUsageGraphRequest(AbstractModel):
|
|
|
8765
9165
|
def AppBizIds(self, AppBizIds):
|
|
8766
9166
|
self._AppBizIds = AppBizIds
|
|
8767
9167
|
|
|
8768
|
-
|
|
8769
|
-
def
|
|
9168
|
+
@property
|
|
9169
|
+
def SpaceId(self):
|
|
9170
|
+
"""空间id
|
|
9171
|
+
:rtype: str
|
|
9172
|
+
"""
|
|
9173
|
+
return self._SpaceId
|
|
9174
|
+
|
|
9175
|
+
@SpaceId.setter
|
|
9176
|
+
def SpaceId(self, SpaceId):
|
|
9177
|
+
self._SpaceId = SpaceId
|
|
9178
|
+
|
|
9179
|
+
|
|
9180
|
+
def _deserialize(self, params):
|
|
8770
9181
|
self._ModelName = params.get("ModelName")
|
|
8771
9182
|
self._StartTime = params.get("StartTime")
|
|
8772
9183
|
self._EndTime = params.get("EndTime")
|
|
@@ -8775,6 +9186,7 @@ class DescribeConcurrencyUsageGraphRequest(AbstractModel):
|
|
|
8775
9186
|
self._LoginSubAccountUin = params.get("LoginSubAccountUin")
|
|
8776
9187
|
self._SubBizType = params.get("SubBizType")
|
|
8777
9188
|
self._AppBizIds = params.get("AppBizIds")
|
|
9189
|
+
self._SpaceId = params.get("SpaceId")
|
|
8778
9190
|
memeber_set = set(params.keys())
|
|
8779
9191
|
for name, value in vars(self).items():
|
|
8780
9192
|
property_name = name[1:]
|
|
@@ -8873,11 +9285,14 @@ class DescribeConcurrencyUsageRequest(AbstractModel):
|
|
|
8873
9285
|
:type EndTime: str
|
|
8874
9286
|
:param _AppBizIds: 应用id列表
|
|
8875
9287
|
:type AppBizIds: list of str
|
|
9288
|
+
:param _SpaceId: 空间id
|
|
9289
|
+
:type SpaceId: str
|
|
8876
9290
|
"""
|
|
8877
9291
|
self._ModelName = None
|
|
8878
9292
|
self._StartTime = None
|
|
8879
9293
|
self._EndTime = None
|
|
8880
9294
|
self._AppBizIds = None
|
|
9295
|
+
self._SpaceId = None
|
|
8881
9296
|
|
|
8882
9297
|
@property
|
|
8883
9298
|
def ModelName(self):
|
|
@@ -8923,12 +9338,24 @@ class DescribeConcurrencyUsageRequest(AbstractModel):
|
|
|
8923
9338
|
def AppBizIds(self, AppBizIds):
|
|
8924
9339
|
self._AppBizIds = AppBizIds
|
|
8925
9340
|
|
|
9341
|
+
@property
|
|
9342
|
+
def SpaceId(self):
|
|
9343
|
+
"""空间id
|
|
9344
|
+
:rtype: str
|
|
9345
|
+
"""
|
|
9346
|
+
return self._SpaceId
|
|
9347
|
+
|
|
9348
|
+
@SpaceId.setter
|
|
9349
|
+
def SpaceId(self, SpaceId):
|
|
9350
|
+
self._SpaceId = SpaceId
|
|
9351
|
+
|
|
8926
9352
|
|
|
8927
9353
|
def _deserialize(self, params):
|
|
8928
9354
|
self._ModelName = params.get("ModelName")
|
|
8929
9355
|
self._StartTime = params.get("StartTime")
|
|
8930
9356
|
self._EndTime = params.get("EndTime")
|
|
8931
9357
|
self._AppBizIds = params.get("AppBizIds")
|
|
9358
|
+
self._SpaceId = params.get("SpaceId")
|
|
8932
9359
|
memeber_set = set(params.keys())
|
|
8933
9360
|
for name, value in vars(self).items():
|
|
8934
9361
|
property_name = name[1:]
|
|
@@ -9123,6 +9550,12 @@ class DescribeDocResponse(AbstractModel):
|
|
|
9123
9550
|
:param _IsDownload: 是否支持下载
|
|
9124
9551
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
9125
9552
|
:type IsDownload: bool
|
|
9553
|
+
:param _SplitRule: 自定义切分规则
|
|
9554
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
9555
|
+
:type SplitRule: str
|
|
9556
|
+
:param _UpdatePeriodInfo: 文档更新频率
|
|
9557
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
9558
|
+
:type UpdatePeriodInfo: :class:`tencentcloud.lke.v20231130.models.UpdatePeriodInfo`
|
|
9126
9559
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9127
9560
|
:type RequestId: str
|
|
9128
9561
|
"""
|
|
@@ -9152,6 +9585,8 @@ class DescribeDocResponse(AbstractModel):
|
|
|
9152
9585
|
self._CateBizId = None
|
|
9153
9586
|
self._IsDisabled = None
|
|
9154
9587
|
self._IsDownload = None
|
|
9588
|
+
self._SplitRule = None
|
|
9589
|
+
self._UpdatePeriodInfo = None
|
|
9155
9590
|
self._RequestId = None
|
|
9156
9591
|
|
|
9157
9592
|
@property
|
|
@@ -9441,6 +9876,30 @@ class DescribeDocResponse(AbstractModel):
|
|
|
9441
9876
|
def IsDownload(self, IsDownload):
|
|
9442
9877
|
self._IsDownload = IsDownload
|
|
9443
9878
|
|
|
9879
|
+
@property
|
|
9880
|
+
def SplitRule(self):
|
|
9881
|
+
"""自定义切分规则
|
|
9882
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
9883
|
+
:rtype: str
|
|
9884
|
+
"""
|
|
9885
|
+
return self._SplitRule
|
|
9886
|
+
|
|
9887
|
+
@SplitRule.setter
|
|
9888
|
+
def SplitRule(self, SplitRule):
|
|
9889
|
+
self._SplitRule = SplitRule
|
|
9890
|
+
|
|
9891
|
+
@property
|
|
9892
|
+
def UpdatePeriodInfo(self):
|
|
9893
|
+
"""文档更新频率
|
|
9894
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
9895
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.UpdatePeriodInfo`
|
|
9896
|
+
"""
|
|
9897
|
+
return self._UpdatePeriodInfo
|
|
9898
|
+
|
|
9899
|
+
@UpdatePeriodInfo.setter
|
|
9900
|
+
def UpdatePeriodInfo(self, UpdatePeriodInfo):
|
|
9901
|
+
self._UpdatePeriodInfo = UpdatePeriodInfo
|
|
9902
|
+
|
|
9444
9903
|
@property
|
|
9445
9904
|
def RequestId(self):
|
|
9446
9905
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -9485,6 +9944,10 @@ class DescribeDocResponse(AbstractModel):
|
|
|
9485
9944
|
self._CateBizId = params.get("CateBizId")
|
|
9486
9945
|
self._IsDisabled = params.get("IsDisabled")
|
|
9487
9946
|
self._IsDownload = params.get("IsDownload")
|
|
9947
|
+
self._SplitRule = params.get("SplitRule")
|
|
9948
|
+
if params.get("UpdatePeriodInfo") is not None:
|
|
9949
|
+
self._UpdatePeriodInfo = UpdatePeriodInfo()
|
|
9950
|
+
self._UpdatePeriodInfo._deserialize(params.get("UpdatePeriodInfo"))
|
|
9488
9951
|
self._RequestId = params.get("RequestId")
|
|
9489
9952
|
|
|
9490
9953
|
|
|
@@ -9497,8 +9960,11 @@ class DescribeKnowledgeUsagePieGraphRequest(AbstractModel):
|
|
|
9497
9960
|
r"""
|
|
9498
9961
|
:param _AppBizIds: 应用ID数组
|
|
9499
9962
|
:type AppBizIds: list of str
|
|
9963
|
+
:param _SpaceId: 空间列表
|
|
9964
|
+
:type SpaceId: str
|
|
9500
9965
|
"""
|
|
9501
9966
|
self._AppBizIds = None
|
|
9967
|
+
self._SpaceId = None
|
|
9502
9968
|
|
|
9503
9969
|
@property
|
|
9504
9970
|
def AppBizIds(self):
|
|
@@ -9511,9 +9977,21 @@ class DescribeKnowledgeUsagePieGraphRequest(AbstractModel):
|
|
|
9511
9977
|
def AppBizIds(self, AppBizIds):
|
|
9512
9978
|
self._AppBizIds = AppBizIds
|
|
9513
9979
|
|
|
9980
|
+
@property
|
|
9981
|
+
def SpaceId(self):
|
|
9982
|
+
"""空间列表
|
|
9983
|
+
:rtype: str
|
|
9984
|
+
"""
|
|
9985
|
+
return self._SpaceId
|
|
9986
|
+
|
|
9987
|
+
@SpaceId.setter
|
|
9988
|
+
def SpaceId(self, SpaceId):
|
|
9989
|
+
self._SpaceId = SpaceId
|
|
9990
|
+
|
|
9514
9991
|
|
|
9515
9992
|
def _deserialize(self, params):
|
|
9516
9993
|
self._AppBizIds = params.get("AppBizIds")
|
|
9994
|
+
self._SpaceId = params.get("SpaceId")
|
|
9517
9995
|
memeber_set = set(params.keys())
|
|
9518
9996
|
for name, value in vars(self).items():
|
|
9519
9997
|
property_name = name[1:]
|
|
@@ -10819,6 +11297,8 @@ class DescribeSearchStatsGraphRequest(AbstractModel):
|
|
|
10819
11297
|
:type EndTime: str
|
|
10820
11298
|
:param _AppBizIds: 应用id列表
|
|
10821
11299
|
:type AppBizIds: list of str
|
|
11300
|
+
:param _SpaceId: 空间id
|
|
11301
|
+
:type SpaceId: str
|
|
10822
11302
|
"""
|
|
10823
11303
|
self._LoginUin = None
|
|
10824
11304
|
self._LoginSubAccountUin = None
|
|
@@ -10828,6 +11308,7 @@ class DescribeSearchStatsGraphRequest(AbstractModel):
|
|
|
10828
11308
|
self._StartTime = None
|
|
10829
11309
|
self._EndTime = None
|
|
10830
11310
|
self._AppBizIds = None
|
|
11311
|
+
self._SpaceId = None
|
|
10831
11312
|
|
|
10832
11313
|
@property
|
|
10833
11314
|
def LoginUin(self):
|
|
@@ -10917,6 +11398,17 @@ class DescribeSearchStatsGraphRequest(AbstractModel):
|
|
|
10917
11398
|
def AppBizIds(self, AppBizIds):
|
|
10918
11399
|
self._AppBizIds = AppBizIds
|
|
10919
11400
|
|
|
11401
|
+
@property
|
|
11402
|
+
def SpaceId(self):
|
|
11403
|
+
"""空间id
|
|
11404
|
+
:rtype: str
|
|
11405
|
+
"""
|
|
11406
|
+
return self._SpaceId
|
|
11407
|
+
|
|
11408
|
+
@SpaceId.setter
|
|
11409
|
+
def SpaceId(self, SpaceId):
|
|
11410
|
+
self._SpaceId = SpaceId
|
|
11411
|
+
|
|
10920
11412
|
|
|
10921
11413
|
def _deserialize(self, params):
|
|
10922
11414
|
self._LoginUin = params.get("LoginUin")
|
|
@@ -10927,6 +11419,7 @@ class DescribeSearchStatsGraphRequest(AbstractModel):
|
|
|
10927
11419
|
self._StartTime = params.get("StartTime")
|
|
10928
11420
|
self._EndTime = params.get("EndTime")
|
|
10929
11421
|
self._AppBizIds = params.get("AppBizIds")
|
|
11422
|
+
self._SpaceId = params.get("SpaceId")
|
|
10930
11423
|
memeber_set = set(params.keys())
|
|
10931
11424
|
for name, value in vars(self).items():
|
|
10932
11425
|
property_name = name[1:]
|
|
@@ -11131,7 +11624,7 @@ class DescribeSharedKnowledgeResponse(AbstractModel):
|
|
|
11131
11624
|
|
|
11132
11625
|
def __init__(self):
|
|
11133
11626
|
r"""
|
|
11134
|
-
:param _Info:
|
|
11627
|
+
:param _Info: 知识库详情列表
|
|
11135
11628
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11136
11629
|
:type Info: :class:`tencentcloud.lke.v20231130.models.KnowledgeDetailInfo`
|
|
11137
11630
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -11142,7 +11635,7 @@ class DescribeSharedKnowledgeResponse(AbstractModel):
|
|
|
11142
11635
|
|
|
11143
11636
|
@property
|
|
11144
11637
|
def Info(self):
|
|
11145
|
-
"""
|
|
11638
|
+
"""知识库详情列表
|
|
11146
11639
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11147
11640
|
:rtype: :class:`tencentcloud.lke.v20231130.models.KnowledgeDetailInfo`
|
|
11148
11641
|
"""
|
|
@@ -11455,6 +11948,8 @@ class DescribeTokenUsageGraphRequest(AbstractModel):
|
|
|
11455
11948
|
:type AppBizIds: list of str
|
|
11456
11949
|
:param _AppType: 应用类型(knowledge_qa应用管理, shared_knowlege 共享知识库)
|
|
11457
11950
|
:type AppType: str
|
|
11951
|
+
:param _SubScenes: 筛选子场景
|
|
11952
|
+
:type SubScenes: list of str
|
|
11458
11953
|
"""
|
|
11459
11954
|
self._UinAccount = None
|
|
11460
11955
|
self._SubBizType = None
|
|
@@ -11463,6 +11958,7 @@ class DescribeTokenUsageGraphRequest(AbstractModel):
|
|
|
11463
11958
|
self._EndTime = None
|
|
11464
11959
|
self._AppBizIds = None
|
|
11465
11960
|
self._AppType = None
|
|
11961
|
+
self._SubScenes = None
|
|
11466
11962
|
|
|
11467
11963
|
@property
|
|
11468
11964
|
def UinAccount(self):
|
|
@@ -11541,6 +12037,17 @@ class DescribeTokenUsageGraphRequest(AbstractModel):
|
|
|
11541
12037
|
def AppType(self, AppType):
|
|
11542
12038
|
self._AppType = AppType
|
|
11543
12039
|
|
|
12040
|
+
@property
|
|
12041
|
+
def SubScenes(self):
|
|
12042
|
+
"""筛选子场景
|
|
12043
|
+
:rtype: list of str
|
|
12044
|
+
"""
|
|
12045
|
+
return self._SubScenes
|
|
12046
|
+
|
|
12047
|
+
@SubScenes.setter
|
|
12048
|
+
def SubScenes(self, SubScenes):
|
|
12049
|
+
self._SubScenes = SubScenes
|
|
12050
|
+
|
|
11544
12051
|
|
|
11545
12052
|
def _deserialize(self, params):
|
|
11546
12053
|
self._UinAccount = params.get("UinAccount")
|
|
@@ -11550,6 +12057,7 @@ class DescribeTokenUsageGraphRequest(AbstractModel):
|
|
|
11550
12057
|
self._EndTime = params.get("EndTime")
|
|
11551
12058
|
self._AppBizIds = params.get("AppBizIds")
|
|
11552
12059
|
self._AppType = params.get("AppType")
|
|
12060
|
+
self._SubScenes = params.get("SubScenes")
|
|
11553
12061
|
memeber_set = set(params.keys())
|
|
11554
12062
|
for name, value in vars(self).items():
|
|
11555
12063
|
property_name = name[1:]
|
|
@@ -11675,6 +12183,8 @@ class DescribeTokenUsageRequest(AbstractModel):
|
|
|
11675
12183
|
:type SubScenes: list of str
|
|
11676
12184
|
:param _AppType: 应用类型(knowledge_qa应用管理, shared_knowlege 共享知识库)
|
|
11677
12185
|
:type AppType: str
|
|
12186
|
+
:param _SpaceId: 空间id
|
|
12187
|
+
:type SpaceId: str
|
|
11678
12188
|
"""
|
|
11679
12189
|
self._UinAccount = None
|
|
11680
12190
|
self._LoginUin = None
|
|
@@ -11686,6 +12196,7 @@ class DescribeTokenUsageRequest(AbstractModel):
|
|
|
11686
12196
|
self._AppBizIds = None
|
|
11687
12197
|
self._SubScenes = None
|
|
11688
12198
|
self._AppType = None
|
|
12199
|
+
self._SpaceId = None
|
|
11689
12200
|
|
|
11690
12201
|
@property
|
|
11691
12202
|
def UinAccount(self):
|
|
@@ -11797,6 +12308,17 @@ class DescribeTokenUsageRequest(AbstractModel):
|
|
|
11797
12308
|
def AppType(self, AppType):
|
|
11798
12309
|
self._AppType = AppType
|
|
11799
12310
|
|
|
12311
|
+
@property
|
|
12312
|
+
def SpaceId(self):
|
|
12313
|
+
"""空间id
|
|
12314
|
+
:rtype: str
|
|
12315
|
+
"""
|
|
12316
|
+
return self._SpaceId
|
|
12317
|
+
|
|
12318
|
+
@SpaceId.setter
|
|
12319
|
+
def SpaceId(self, SpaceId):
|
|
12320
|
+
self._SpaceId = SpaceId
|
|
12321
|
+
|
|
11800
12322
|
|
|
11801
12323
|
def _deserialize(self, params):
|
|
11802
12324
|
self._UinAccount = params.get("UinAccount")
|
|
@@ -11809,6 +12331,7 @@ class DescribeTokenUsageRequest(AbstractModel):
|
|
|
11809
12331
|
self._AppBizIds = params.get("AppBizIds")
|
|
11810
12332
|
self._SubScenes = params.get("SubScenes")
|
|
11811
12333
|
self._AppType = params.get("AppType")
|
|
12334
|
+
self._SpaceId = params.get("SpaceId")
|
|
11812
12335
|
memeber_set = set(params.keys())
|
|
11813
12336
|
for name, value in vars(self).items():
|
|
11814
12337
|
property_name = name[1:]
|
|
@@ -14710,6 +15233,8 @@ class GetVarListRequest(AbstractModel):
|
|
|
14710
15233
|
:type VarType: str
|
|
14711
15234
|
:param _NeedInternalVar: 是否需要内部变量(默认false)
|
|
14712
15235
|
:type NeedInternalVar: bool
|
|
15236
|
+
:param _VarModuleType: 变量类型
|
|
15237
|
+
:type VarModuleType: int
|
|
14713
15238
|
"""
|
|
14714
15239
|
self._AppBizId = None
|
|
14715
15240
|
self._VarIds = None
|
|
@@ -14718,6 +15243,7 @@ class GetVarListRequest(AbstractModel):
|
|
|
14718
15243
|
self._Limit = None
|
|
14719
15244
|
self._VarType = None
|
|
14720
15245
|
self._NeedInternalVar = None
|
|
15246
|
+
self._VarModuleType = None
|
|
14721
15247
|
|
|
14722
15248
|
@property
|
|
14723
15249
|
def AppBizId(self):
|
|
@@ -14796,6 +15322,17 @@ class GetVarListRequest(AbstractModel):
|
|
|
14796
15322
|
def NeedInternalVar(self, NeedInternalVar):
|
|
14797
15323
|
self._NeedInternalVar = NeedInternalVar
|
|
14798
15324
|
|
|
15325
|
+
@property
|
|
15326
|
+
def VarModuleType(self):
|
|
15327
|
+
"""变量类型
|
|
15328
|
+
:rtype: int
|
|
15329
|
+
"""
|
|
15330
|
+
return self._VarModuleType
|
|
15331
|
+
|
|
15332
|
+
@VarModuleType.setter
|
|
15333
|
+
def VarModuleType(self, VarModuleType):
|
|
15334
|
+
self._VarModuleType = VarModuleType
|
|
15335
|
+
|
|
14799
15336
|
|
|
14800
15337
|
def _deserialize(self, params):
|
|
14801
15338
|
self._AppBizId = params.get("AppBizId")
|
|
@@ -14805,6 +15342,7 @@ class GetVarListRequest(AbstractModel):
|
|
|
14805
15342
|
self._Limit = params.get("Limit")
|
|
14806
15343
|
self._VarType = params.get("VarType")
|
|
14807
15344
|
self._NeedInternalVar = params.get("NeedInternalVar")
|
|
15345
|
+
self._VarModuleType = params.get("VarModuleType")
|
|
14808
15346
|
memeber_set = set(params.keys())
|
|
14809
15347
|
for name, value in vars(self).items():
|
|
14810
15348
|
property_name = name[1:]
|
|
@@ -15871,6 +16409,61 @@ class IsTransferIntentResponse(AbstractModel):
|
|
|
15871
16409
|
self._RequestId = params.get("RequestId")
|
|
15872
16410
|
|
|
15873
16411
|
|
|
16412
|
+
class KnowledgeAdvancedConfig(AbstractModel):
|
|
16413
|
+
"""知识库高级设置
|
|
16414
|
+
|
|
16415
|
+
"""
|
|
16416
|
+
|
|
16417
|
+
def __init__(self):
|
|
16418
|
+
r"""
|
|
16419
|
+
:param _RerankModel: 重排序模型
|
|
16420
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16421
|
+
:type RerankModel: str
|
|
16422
|
+
:param _RerankRecallNum: 召回数量
|
|
16423
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16424
|
+
:type RerankRecallNum: int
|
|
16425
|
+
"""
|
|
16426
|
+
self._RerankModel = None
|
|
16427
|
+
self._RerankRecallNum = None
|
|
16428
|
+
|
|
16429
|
+
@property
|
|
16430
|
+
def RerankModel(self):
|
|
16431
|
+
"""重排序模型
|
|
16432
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16433
|
+
:rtype: str
|
|
16434
|
+
"""
|
|
16435
|
+
return self._RerankModel
|
|
16436
|
+
|
|
16437
|
+
@RerankModel.setter
|
|
16438
|
+
def RerankModel(self, RerankModel):
|
|
16439
|
+
self._RerankModel = RerankModel
|
|
16440
|
+
|
|
16441
|
+
@property
|
|
16442
|
+
def RerankRecallNum(self):
|
|
16443
|
+
"""召回数量
|
|
16444
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16445
|
+
:rtype: int
|
|
16446
|
+
"""
|
|
16447
|
+
return self._RerankRecallNum
|
|
16448
|
+
|
|
16449
|
+
@RerankRecallNum.setter
|
|
16450
|
+
def RerankRecallNum(self, RerankRecallNum):
|
|
16451
|
+
self._RerankRecallNum = RerankRecallNum
|
|
16452
|
+
|
|
16453
|
+
|
|
16454
|
+
def _deserialize(self, params):
|
|
16455
|
+
self._RerankModel = params.get("RerankModel")
|
|
16456
|
+
self._RerankRecallNum = params.get("RerankRecallNum")
|
|
16457
|
+
memeber_set = set(params.keys())
|
|
16458
|
+
for name, value in vars(self).items():
|
|
16459
|
+
property_name = name[1:]
|
|
16460
|
+
if property_name in memeber_set:
|
|
16461
|
+
memeber_set.remove(property_name)
|
|
16462
|
+
if len(memeber_set) > 0:
|
|
16463
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16464
|
+
|
|
16465
|
+
|
|
16466
|
+
|
|
15874
16467
|
class KnowledgeBaseInfo(AbstractModel):
|
|
15875
16468
|
"""共享知识库基础信息
|
|
15876
16469
|
|
|
@@ -15894,6 +16487,16 @@ class KnowledgeBaseInfo(AbstractModel):
|
|
|
15894
16487
|
:param _UpdateTime: 更新时间
|
|
15895
16488
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15896
16489
|
:type UpdateTime: str
|
|
16490
|
+
:param _KnowledgeType: 共享知识库类型,0普通,1公众号
|
|
16491
|
+
:type KnowledgeType: int
|
|
16492
|
+
:param _OwnerStaffId: 拥有者id
|
|
16493
|
+
:type OwnerStaffId: str
|
|
16494
|
+
:param _DocTotal: 知识库文档数量,当前仅支持公众号知识库
|
|
16495
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16496
|
+
:type DocTotal: int
|
|
16497
|
+
:param _ProcessingFlags: 知识库处理中状态标记,1:向量embedding变更中
|
|
16498
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16499
|
+
:type ProcessingFlags: list of int
|
|
15897
16500
|
"""
|
|
15898
16501
|
self._KnowledgeBizId = None
|
|
15899
16502
|
self._KnowledgeName = None
|
|
@@ -15901,6 +16504,10 @@ class KnowledgeBaseInfo(AbstractModel):
|
|
|
15901
16504
|
self._EmbeddingModel = None
|
|
15902
16505
|
self._QaExtractModel = None
|
|
15903
16506
|
self._UpdateTime = None
|
|
16507
|
+
self._KnowledgeType = None
|
|
16508
|
+
self._OwnerStaffId = None
|
|
16509
|
+
self._DocTotal = None
|
|
16510
|
+
self._ProcessingFlags = None
|
|
15904
16511
|
|
|
15905
16512
|
@property
|
|
15906
16513
|
def KnowledgeBizId(self):
|
|
@@ -15972,6 +16579,52 @@ class KnowledgeBaseInfo(AbstractModel):
|
|
|
15972
16579
|
def UpdateTime(self, UpdateTime):
|
|
15973
16580
|
self._UpdateTime = UpdateTime
|
|
15974
16581
|
|
|
16582
|
+
@property
|
|
16583
|
+
def KnowledgeType(self):
|
|
16584
|
+
"""共享知识库类型,0普通,1公众号
|
|
16585
|
+
:rtype: int
|
|
16586
|
+
"""
|
|
16587
|
+
return self._KnowledgeType
|
|
16588
|
+
|
|
16589
|
+
@KnowledgeType.setter
|
|
16590
|
+
def KnowledgeType(self, KnowledgeType):
|
|
16591
|
+
self._KnowledgeType = KnowledgeType
|
|
16592
|
+
|
|
16593
|
+
@property
|
|
16594
|
+
def OwnerStaffId(self):
|
|
16595
|
+
"""拥有者id
|
|
16596
|
+
:rtype: str
|
|
16597
|
+
"""
|
|
16598
|
+
return self._OwnerStaffId
|
|
16599
|
+
|
|
16600
|
+
@OwnerStaffId.setter
|
|
16601
|
+
def OwnerStaffId(self, OwnerStaffId):
|
|
16602
|
+
self._OwnerStaffId = OwnerStaffId
|
|
16603
|
+
|
|
16604
|
+
@property
|
|
16605
|
+
def DocTotal(self):
|
|
16606
|
+
"""知识库文档数量,当前仅支持公众号知识库
|
|
16607
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16608
|
+
:rtype: int
|
|
16609
|
+
"""
|
|
16610
|
+
return self._DocTotal
|
|
16611
|
+
|
|
16612
|
+
@DocTotal.setter
|
|
16613
|
+
def DocTotal(self, DocTotal):
|
|
16614
|
+
self._DocTotal = DocTotal
|
|
16615
|
+
|
|
16616
|
+
@property
|
|
16617
|
+
def ProcessingFlags(self):
|
|
16618
|
+
"""知识库处理中状态标记,1:向量embedding变更中
|
|
16619
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16620
|
+
:rtype: list of int
|
|
16621
|
+
"""
|
|
16622
|
+
return self._ProcessingFlags
|
|
16623
|
+
|
|
16624
|
+
@ProcessingFlags.setter
|
|
16625
|
+
def ProcessingFlags(self, ProcessingFlags):
|
|
16626
|
+
self._ProcessingFlags = ProcessingFlags
|
|
16627
|
+
|
|
15975
16628
|
|
|
15976
16629
|
def _deserialize(self, params):
|
|
15977
16630
|
self._KnowledgeBizId = params.get("KnowledgeBizId")
|
|
@@ -15980,6 +16633,10 @@ class KnowledgeBaseInfo(AbstractModel):
|
|
|
15980
16633
|
self._EmbeddingModel = params.get("EmbeddingModel")
|
|
15981
16634
|
self._QaExtractModel = params.get("QaExtractModel")
|
|
15982
16635
|
self._UpdateTime = params.get("UpdateTime")
|
|
16636
|
+
self._KnowledgeType = params.get("KnowledgeType")
|
|
16637
|
+
self._OwnerStaffId = params.get("OwnerStaffId")
|
|
16638
|
+
self._DocTotal = params.get("DocTotal")
|
|
16639
|
+
self._ProcessingFlags = params.get("ProcessingFlags")
|
|
15983
16640
|
memeber_set = set(params.keys())
|
|
15984
16641
|
for name, value in vars(self).items():
|
|
15985
16642
|
property_name = name[1:]
|
|
@@ -16214,10 +16871,13 @@ class KnowledgeDetailInfo(AbstractModel):
|
|
|
16214
16871
|
:param _User: 用户信息
|
|
16215
16872
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
16216
16873
|
:type User: :class:`tencentcloud.lke.v20231130.models.UserBaseInfo`
|
|
16874
|
+
:param _PermissionIds: 权限位信息
|
|
16875
|
+
:type PermissionIds: list of str
|
|
16217
16876
|
"""
|
|
16218
16877
|
self._Knowledge = None
|
|
16219
16878
|
self._AppList = None
|
|
16220
16879
|
self._User = None
|
|
16880
|
+
self._PermissionIds = None
|
|
16221
16881
|
|
|
16222
16882
|
@property
|
|
16223
16883
|
def Knowledge(self):
|
|
@@ -16255,6 +16915,17 @@ class KnowledgeDetailInfo(AbstractModel):
|
|
|
16255
16915
|
def User(self, User):
|
|
16256
16916
|
self._User = User
|
|
16257
16917
|
|
|
16918
|
+
@property
|
|
16919
|
+
def PermissionIds(self):
|
|
16920
|
+
"""权限位信息
|
|
16921
|
+
:rtype: list of str
|
|
16922
|
+
"""
|
|
16923
|
+
return self._PermissionIds
|
|
16924
|
+
|
|
16925
|
+
@PermissionIds.setter
|
|
16926
|
+
def PermissionIds(self, PermissionIds):
|
|
16927
|
+
self._PermissionIds = PermissionIds
|
|
16928
|
+
|
|
16258
16929
|
|
|
16259
16930
|
def _deserialize(self, params):
|
|
16260
16931
|
if params.get("Knowledge") is not None:
|
|
@@ -16269,6 +16940,136 @@ class KnowledgeDetailInfo(AbstractModel):
|
|
|
16269
16940
|
if params.get("User") is not None:
|
|
16270
16941
|
self._User = UserBaseInfo()
|
|
16271
16942
|
self._User._deserialize(params.get("User"))
|
|
16943
|
+
self._PermissionIds = params.get("PermissionIds")
|
|
16944
|
+
memeber_set = set(params.keys())
|
|
16945
|
+
for name, value in vars(self).items():
|
|
16946
|
+
property_name = name[1:]
|
|
16947
|
+
if property_name in memeber_set:
|
|
16948
|
+
memeber_set.remove(property_name)
|
|
16949
|
+
if len(memeber_set) > 0:
|
|
16950
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16951
|
+
|
|
16952
|
+
|
|
16953
|
+
|
|
16954
|
+
class KnowledgeModelConfig(AbstractModel):
|
|
16955
|
+
"""知识库模型设置
|
|
16956
|
+
|
|
16957
|
+
"""
|
|
16958
|
+
|
|
16959
|
+
def __init__(self):
|
|
16960
|
+
r"""
|
|
16961
|
+
:param _EmbeddingModel: 向量模型,该字段只有共享知识库有,应用知识库没有
|
|
16962
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16963
|
+
:type EmbeddingModel: str
|
|
16964
|
+
:param _QaExtractModel: 问答对生成模型
|
|
16965
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16966
|
+
:type QaExtractModel: str
|
|
16967
|
+
:param _SchemaModel: schema生成模型
|
|
16968
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16969
|
+
:type SchemaModel: str
|
|
16970
|
+
"""
|
|
16971
|
+
self._EmbeddingModel = None
|
|
16972
|
+
self._QaExtractModel = None
|
|
16973
|
+
self._SchemaModel = None
|
|
16974
|
+
|
|
16975
|
+
@property
|
|
16976
|
+
def EmbeddingModel(self):
|
|
16977
|
+
"""向量模型,该字段只有共享知识库有,应用知识库没有
|
|
16978
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16979
|
+
:rtype: str
|
|
16980
|
+
"""
|
|
16981
|
+
return self._EmbeddingModel
|
|
16982
|
+
|
|
16983
|
+
@EmbeddingModel.setter
|
|
16984
|
+
def EmbeddingModel(self, EmbeddingModel):
|
|
16985
|
+
self._EmbeddingModel = EmbeddingModel
|
|
16986
|
+
|
|
16987
|
+
@property
|
|
16988
|
+
def QaExtractModel(self):
|
|
16989
|
+
"""问答对生成模型
|
|
16990
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16991
|
+
:rtype: str
|
|
16992
|
+
"""
|
|
16993
|
+
return self._QaExtractModel
|
|
16994
|
+
|
|
16995
|
+
@QaExtractModel.setter
|
|
16996
|
+
def QaExtractModel(self, QaExtractModel):
|
|
16997
|
+
self._QaExtractModel = QaExtractModel
|
|
16998
|
+
|
|
16999
|
+
@property
|
|
17000
|
+
def SchemaModel(self):
|
|
17001
|
+
"""schema生成模型
|
|
17002
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17003
|
+
:rtype: str
|
|
17004
|
+
"""
|
|
17005
|
+
return self._SchemaModel
|
|
17006
|
+
|
|
17007
|
+
@SchemaModel.setter
|
|
17008
|
+
def SchemaModel(self, SchemaModel):
|
|
17009
|
+
self._SchemaModel = SchemaModel
|
|
17010
|
+
|
|
17011
|
+
|
|
17012
|
+
def _deserialize(self, params):
|
|
17013
|
+
self._EmbeddingModel = params.get("EmbeddingModel")
|
|
17014
|
+
self._QaExtractModel = params.get("QaExtractModel")
|
|
17015
|
+
self._SchemaModel = params.get("SchemaModel")
|
|
17016
|
+
memeber_set = set(params.keys())
|
|
17017
|
+
for name, value in vars(self).items():
|
|
17018
|
+
property_name = name[1:]
|
|
17019
|
+
if property_name in memeber_set:
|
|
17020
|
+
memeber_set.remove(property_name)
|
|
17021
|
+
if len(memeber_set) > 0:
|
|
17022
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
17023
|
+
|
|
17024
|
+
|
|
17025
|
+
|
|
17026
|
+
class KnowledgeQaAgent(AbstractModel):
|
|
17027
|
+
"""应用配置关联的agent信息
|
|
17028
|
+
|
|
17029
|
+
"""
|
|
17030
|
+
|
|
17031
|
+
def __init__(self):
|
|
17032
|
+
r"""
|
|
17033
|
+
:param _AgentCollaboration: 协同方式,1:自由转交,2:工作流编排,3:Plan-and-Execute
|
|
17034
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17035
|
+
:type AgentCollaboration: int
|
|
17036
|
+
:param _Workflow: 应用配置agent关联的工作流
|
|
17037
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17038
|
+
:type Workflow: :class:`tencentcloud.lke.v20231130.models.KnowledgeQaWorkflowInfo`
|
|
17039
|
+
"""
|
|
17040
|
+
self._AgentCollaboration = None
|
|
17041
|
+
self._Workflow = None
|
|
17042
|
+
|
|
17043
|
+
@property
|
|
17044
|
+
def AgentCollaboration(self):
|
|
17045
|
+
"""协同方式,1:自由转交,2:工作流编排,3:Plan-and-Execute
|
|
17046
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17047
|
+
:rtype: int
|
|
17048
|
+
"""
|
|
17049
|
+
return self._AgentCollaboration
|
|
17050
|
+
|
|
17051
|
+
@AgentCollaboration.setter
|
|
17052
|
+
def AgentCollaboration(self, AgentCollaboration):
|
|
17053
|
+
self._AgentCollaboration = AgentCollaboration
|
|
17054
|
+
|
|
17055
|
+
@property
|
|
17056
|
+
def Workflow(self):
|
|
17057
|
+
"""应用配置agent关联的工作流
|
|
17058
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17059
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.KnowledgeQaWorkflowInfo`
|
|
17060
|
+
"""
|
|
17061
|
+
return self._Workflow
|
|
17062
|
+
|
|
17063
|
+
@Workflow.setter
|
|
17064
|
+
def Workflow(self, Workflow):
|
|
17065
|
+
self._Workflow = Workflow
|
|
17066
|
+
|
|
17067
|
+
|
|
17068
|
+
def _deserialize(self, params):
|
|
17069
|
+
self._AgentCollaboration = params.get("AgentCollaboration")
|
|
17070
|
+
if params.get("Workflow") is not None:
|
|
17071
|
+
self._Workflow = KnowledgeQaWorkflowInfo()
|
|
17072
|
+
self._Workflow._deserialize(params.get("Workflow"))
|
|
16272
17073
|
memeber_set = set(params.keys())
|
|
16273
17074
|
for name, value in vars(self).items():
|
|
16274
17075
|
property_name = name[1:]
|
|
@@ -16344,6 +17145,7 @@ class KnowledgeQaConfig(AbstractModel):
|
|
|
16344
17145
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
16345
17146
|
:type AiCall: :class:`tencentcloud.lke.v20231130.models.AICallConfig`
|
|
16346
17147
|
:param _ShareKnowledgeBases: 共享知识库关联配置
|
|
17148
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16347
17149
|
:type ShareKnowledgeBases: list of ShareKnowledgeBase
|
|
16348
17150
|
:param _BackgroundImage: 背景图相关信息
|
|
16349
17151
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -16351,6 +17153,19 @@ class KnowledgeQaConfig(AbstractModel):
|
|
|
16351
17153
|
:param _OpeningQuestions: 开场问题
|
|
16352
17154
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
16353
17155
|
:type OpeningQuestions: list of str
|
|
17156
|
+
:param _LongMemoryOpen: 长期记忆开关
|
|
17157
|
+
:type LongMemoryOpen: bool
|
|
17158
|
+
:param _LongMemoryDay: 长期记忆时效
|
|
17159
|
+
:type LongMemoryDay: int
|
|
17160
|
+
:param _Agent: agent配置信息
|
|
17161
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17162
|
+
:type Agent: :class:`tencentcloud.lke.v20231130.models.KnowledgeQaAgent`
|
|
17163
|
+
:param _KnowledgeModelConfig: 知识库模型
|
|
17164
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17165
|
+
:type KnowledgeModelConfig: :class:`tencentcloud.lke.v20231130.models.KnowledgeModelConfig`
|
|
17166
|
+
:param _KnowledgeAdvancedConfig: 知识库高级设置
|
|
17167
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17168
|
+
:type KnowledgeAdvancedConfig: :class:`tencentcloud.lke.v20231130.models.KnowledgeAdvancedConfig`
|
|
16354
17169
|
"""
|
|
16355
17170
|
self._Greeting = None
|
|
16356
17171
|
self._RoleDescription = None
|
|
@@ -16370,6 +17185,11 @@ class KnowledgeQaConfig(AbstractModel):
|
|
|
16370
17185
|
self._ShareKnowledgeBases = None
|
|
16371
17186
|
self._BackgroundImage = None
|
|
16372
17187
|
self._OpeningQuestions = None
|
|
17188
|
+
self._LongMemoryOpen = None
|
|
17189
|
+
self._LongMemoryDay = None
|
|
17190
|
+
self._Agent = None
|
|
17191
|
+
self._KnowledgeModelConfig = None
|
|
17192
|
+
self._KnowledgeAdvancedConfig = None
|
|
16373
17193
|
|
|
16374
17194
|
@property
|
|
16375
17195
|
def Greeting(self):
|
|
@@ -16566,6 +17386,7 @@ class KnowledgeQaConfig(AbstractModel):
|
|
|
16566
17386
|
@property
|
|
16567
17387
|
def ShareKnowledgeBases(self):
|
|
16568
17388
|
"""共享知识库关联配置
|
|
17389
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16569
17390
|
:rtype: list of ShareKnowledgeBase
|
|
16570
17391
|
"""
|
|
16571
17392
|
return self._ShareKnowledgeBases
|
|
@@ -16598,27 +17419,85 @@ class KnowledgeQaConfig(AbstractModel):
|
|
|
16598
17419
|
def OpeningQuestions(self, OpeningQuestions):
|
|
16599
17420
|
self._OpeningQuestions = OpeningQuestions
|
|
16600
17421
|
|
|
17422
|
+
@property
|
|
17423
|
+
def LongMemoryOpen(self):
|
|
17424
|
+
"""长期记忆开关
|
|
17425
|
+
:rtype: bool
|
|
17426
|
+
"""
|
|
17427
|
+
return self._LongMemoryOpen
|
|
16601
17428
|
|
|
16602
|
-
|
|
16603
|
-
|
|
16604
|
-
self.
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16613
|
-
|
|
16614
|
-
|
|
16615
|
-
|
|
16616
|
-
|
|
16617
|
-
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
|
|
17429
|
+
@LongMemoryOpen.setter
|
|
17430
|
+
def LongMemoryOpen(self, LongMemoryOpen):
|
|
17431
|
+
self._LongMemoryOpen = LongMemoryOpen
|
|
17432
|
+
|
|
17433
|
+
@property
|
|
17434
|
+
def LongMemoryDay(self):
|
|
17435
|
+
"""长期记忆时效
|
|
17436
|
+
:rtype: int
|
|
17437
|
+
"""
|
|
17438
|
+
return self._LongMemoryDay
|
|
17439
|
+
|
|
17440
|
+
@LongMemoryDay.setter
|
|
17441
|
+
def LongMemoryDay(self, LongMemoryDay):
|
|
17442
|
+
self._LongMemoryDay = LongMemoryDay
|
|
17443
|
+
|
|
17444
|
+
@property
|
|
17445
|
+
def Agent(self):
|
|
17446
|
+
"""agent配置信息
|
|
17447
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17448
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.KnowledgeQaAgent`
|
|
17449
|
+
"""
|
|
17450
|
+
return self._Agent
|
|
17451
|
+
|
|
17452
|
+
@Agent.setter
|
|
17453
|
+
def Agent(self, Agent):
|
|
17454
|
+
self._Agent = Agent
|
|
17455
|
+
|
|
17456
|
+
@property
|
|
17457
|
+
def KnowledgeModelConfig(self):
|
|
17458
|
+
"""知识库模型
|
|
17459
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17460
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.KnowledgeModelConfig`
|
|
17461
|
+
"""
|
|
17462
|
+
return self._KnowledgeModelConfig
|
|
17463
|
+
|
|
17464
|
+
@KnowledgeModelConfig.setter
|
|
17465
|
+
def KnowledgeModelConfig(self, KnowledgeModelConfig):
|
|
17466
|
+
self._KnowledgeModelConfig = KnowledgeModelConfig
|
|
17467
|
+
|
|
17468
|
+
@property
|
|
17469
|
+
def KnowledgeAdvancedConfig(self):
|
|
17470
|
+
"""知识库高级设置
|
|
17471
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17472
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.KnowledgeAdvancedConfig`
|
|
17473
|
+
"""
|
|
17474
|
+
return self._KnowledgeAdvancedConfig
|
|
17475
|
+
|
|
17476
|
+
@KnowledgeAdvancedConfig.setter
|
|
17477
|
+
def KnowledgeAdvancedConfig(self, KnowledgeAdvancedConfig):
|
|
17478
|
+
self._KnowledgeAdvancedConfig = KnowledgeAdvancedConfig
|
|
17479
|
+
|
|
17480
|
+
|
|
17481
|
+
def _deserialize(self, params):
|
|
17482
|
+
self._Greeting = params.get("Greeting")
|
|
17483
|
+
self._RoleDescription = params.get("RoleDescription")
|
|
17484
|
+
if params.get("Model") is not None:
|
|
17485
|
+
self._Model = AppModel()
|
|
17486
|
+
self._Model._deserialize(params.get("Model"))
|
|
17487
|
+
if params.get("Search") is not None:
|
|
17488
|
+
self._Search = []
|
|
17489
|
+
for item in params.get("Search"):
|
|
17490
|
+
obj = KnowledgeQaSearch()
|
|
17491
|
+
obj._deserialize(item)
|
|
17492
|
+
self._Search.append(obj)
|
|
17493
|
+
if params.get("Output") is not None:
|
|
17494
|
+
self._Output = KnowledgeQaOutput()
|
|
17495
|
+
self._Output._deserialize(params.get("Output"))
|
|
17496
|
+
if params.get("Workflow") is not None:
|
|
17497
|
+
self._Workflow = KnowledgeWorkflow()
|
|
17498
|
+
self._Workflow._deserialize(params.get("Workflow"))
|
|
17499
|
+
if params.get("SearchRange") is not None:
|
|
17500
|
+
self._SearchRange = SearchRange()
|
|
16622
17501
|
self._SearchRange._deserialize(params.get("SearchRange"))
|
|
16623
17502
|
self._Pattern = params.get("Pattern")
|
|
16624
17503
|
if params.get("SearchStrategy") is not None:
|
|
@@ -16656,6 +17535,17 @@ class KnowledgeQaConfig(AbstractModel):
|
|
|
16656
17535
|
self._BackgroundImage = BackgroundImageConfig()
|
|
16657
17536
|
self._BackgroundImage._deserialize(params.get("BackgroundImage"))
|
|
16658
17537
|
self._OpeningQuestions = params.get("OpeningQuestions")
|
|
17538
|
+
self._LongMemoryOpen = params.get("LongMemoryOpen")
|
|
17539
|
+
self._LongMemoryDay = params.get("LongMemoryDay")
|
|
17540
|
+
if params.get("Agent") is not None:
|
|
17541
|
+
self._Agent = KnowledgeQaAgent()
|
|
17542
|
+
self._Agent._deserialize(params.get("Agent"))
|
|
17543
|
+
if params.get("KnowledgeModelConfig") is not None:
|
|
17544
|
+
self._KnowledgeModelConfig = KnowledgeModelConfig()
|
|
17545
|
+
self._KnowledgeModelConfig._deserialize(params.get("KnowledgeModelConfig"))
|
|
17546
|
+
if params.get("KnowledgeAdvancedConfig") is not None:
|
|
17547
|
+
self._KnowledgeAdvancedConfig = KnowledgeAdvancedConfig()
|
|
17548
|
+
self._KnowledgeAdvancedConfig._deserialize(params.get("KnowledgeAdvancedConfig"))
|
|
16659
17549
|
memeber_set = set(params.keys())
|
|
16660
17550
|
for name, value in vars(self).items():
|
|
16661
17551
|
property_name = name[1:]
|
|
@@ -17239,6 +18129,102 @@ class KnowledgeQaSingleWorkflow(AbstractModel):
|
|
|
17239
18129
|
|
|
17240
18130
|
|
|
17241
18131
|
|
|
18132
|
+
class KnowledgeQaWorkflowInfo(AbstractModel):
|
|
18133
|
+
"""应用配置关联的工作流信息
|
|
18134
|
+
|
|
18135
|
+
"""
|
|
18136
|
+
|
|
18137
|
+
def __init__(self):
|
|
18138
|
+
r"""
|
|
18139
|
+
:param _WorkflowId: 工作流ID
|
|
18140
|
+
:type WorkflowId: str
|
|
18141
|
+
:param _WorkflowName: 工作流名称
|
|
18142
|
+
:type WorkflowName: str
|
|
18143
|
+
:param _WorkflowDesc: 工作流描述
|
|
18144
|
+
:type WorkflowDesc: str
|
|
18145
|
+
:param _Status: 工作流状态,发布状态(UNPUBLISHED: 待发布 PUBLISHING: 发布中 PUBLISHED: 已发布 FAIL:发布失败)
|
|
18146
|
+
:type Status: str
|
|
18147
|
+
:param _IsEnable: 工作流是否启用
|
|
18148
|
+
:type IsEnable: bool
|
|
18149
|
+
"""
|
|
18150
|
+
self._WorkflowId = None
|
|
18151
|
+
self._WorkflowName = None
|
|
18152
|
+
self._WorkflowDesc = None
|
|
18153
|
+
self._Status = None
|
|
18154
|
+
self._IsEnable = None
|
|
18155
|
+
|
|
18156
|
+
@property
|
|
18157
|
+
def WorkflowId(self):
|
|
18158
|
+
"""工作流ID
|
|
18159
|
+
:rtype: str
|
|
18160
|
+
"""
|
|
18161
|
+
return self._WorkflowId
|
|
18162
|
+
|
|
18163
|
+
@WorkflowId.setter
|
|
18164
|
+
def WorkflowId(self, WorkflowId):
|
|
18165
|
+
self._WorkflowId = WorkflowId
|
|
18166
|
+
|
|
18167
|
+
@property
|
|
18168
|
+
def WorkflowName(self):
|
|
18169
|
+
"""工作流名称
|
|
18170
|
+
:rtype: str
|
|
18171
|
+
"""
|
|
18172
|
+
return self._WorkflowName
|
|
18173
|
+
|
|
18174
|
+
@WorkflowName.setter
|
|
18175
|
+
def WorkflowName(self, WorkflowName):
|
|
18176
|
+
self._WorkflowName = WorkflowName
|
|
18177
|
+
|
|
18178
|
+
@property
|
|
18179
|
+
def WorkflowDesc(self):
|
|
18180
|
+
"""工作流描述
|
|
18181
|
+
:rtype: str
|
|
18182
|
+
"""
|
|
18183
|
+
return self._WorkflowDesc
|
|
18184
|
+
|
|
18185
|
+
@WorkflowDesc.setter
|
|
18186
|
+
def WorkflowDesc(self, WorkflowDesc):
|
|
18187
|
+
self._WorkflowDesc = WorkflowDesc
|
|
18188
|
+
|
|
18189
|
+
@property
|
|
18190
|
+
def Status(self):
|
|
18191
|
+
"""工作流状态,发布状态(UNPUBLISHED: 待发布 PUBLISHING: 发布中 PUBLISHED: 已发布 FAIL:发布失败)
|
|
18192
|
+
:rtype: str
|
|
18193
|
+
"""
|
|
18194
|
+
return self._Status
|
|
18195
|
+
|
|
18196
|
+
@Status.setter
|
|
18197
|
+
def Status(self, Status):
|
|
18198
|
+
self._Status = Status
|
|
18199
|
+
|
|
18200
|
+
@property
|
|
18201
|
+
def IsEnable(self):
|
|
18202
|
+
"""工作流是否启用
|
|
18203
|
+
:rtype: bool
|
|
18204
|
+
"""
|
|
18205
|
+
return self._IsEnable
|
|
18206
|
+
|
|
18207
|
+
@IsEnable.setter
|
|
18208
|
+
def IsEnable(self, IsEnable):
|
|
18209
|
+
self._IsEnable = IsEnable
|
|
18210
|
+
|
|
18211
|
+
|
|
18212
|
+
def _deserialize(self, params):
|
|
18213
|
+
self._WorkflowId = params.get("WorkflowId")
|
|
18214
|
+
self._WorkflowName = params.get("WorkflowName")
|
|
18215
|
+
self._WorkflowDesc = params.get("WorkflowDesc")
|
|
18216
|
+
self._Status = params.get("Status")
|
|
18217
|
+
self._IsEnable = params.get("IsEnable")
|
|
18218
|
+
memeber_set = set(params.keys())
|
|
18219
|
+
for name, value in vars(self).items():
|
|
18220
|
+
property_name = name[1:]
|
|
18221
|
+
if property_name in memeber_set:
|
|
18222
|
+
memeber_set.remove(property_name)
|
|
18223
|
+
if len(memeber_set) > 0:
|
|
18224
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18225
|
+
|
|
18226
|
+
|
|
18227
|
+
|
|
17242
18228
|
class KnowledgeSummary(AbstractModel):
|
|
17243
18229
|
"""检索知识
|
|
17244
18230
|
|
|
@@ -17312,11 +18298,14 @@ class KnowledgeUpdateInfo(AbstractModel):
|
|
|
17312
18298
|
:param _QaExtractModel: 问答提取模型
|
|
17313
18299
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
17314
18300
|
:type QaExtractModel: str
|
|
18301
|
+
:param _OwnerStaffId: 拥有者id
|
|
18302
|
+
:type OwnerStaffId: str
|
|
17315
18303
|
"""
|
|
17316
18304
|
self._KnowledgeName = None
|
|
17317
18305
|
self._KnowledgeDescription = None
|
|
17318
18306
|
self._EmbeddingModel = None
|
|
17319
18307
|
self._QaExtractModel = None
|
|
18308
|
+
self._OwnerStaffId = None
|
|
17320
18309
|
|
|
17321
18310
|
@property
|
|
17322
18311
|
def KnowledgeName(self):
|
|
@@ -17343,6 +18332,8 @@ class KnowledgeUpdateInfo(AbstractModel):
|
|
|
17343
18332
|
|
|
17344
18333
|
@property
|
|
17345
18334
|
def EmbeddingModel(self):
|
|
18335
|
+
warnings.warn("parameter `EmbeddingModel` is deprecated", DeprecationWarning)
|
|
18336
|
+
|
|
17346
18337
|
"""Embedding模型
|
|
17347
18338
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
17348
18339
|
:rtype: str
|
|
@@ -17351,10 +18342,14 @@ class KnowledgeUpdateInfo(AbstractModel):
|
|
|
17351
18342
|
|
|
17352
18343
|
@EmbeddingModel.setter
|
|
17353
18344
|
def EmbeddingModel(self, EmbeddingModel):
|
|
18345
|
+
warnings.warn("parameter `EmbeddingModel` is deprecated", DeprecationWarning)
|
|
18346
|
+
|
|
17354
18347
|
self._EmbeddingModel = EmbeddingModel
|
|
17355
18348
|
|
|
17356
18349
|
@property
|
|
17357
18350
|
def QaExtractModel(self):
|
|
18351
|
+
warnings.warn("parameter `QaExtractModel` is deprecated", DeprecationWarning)
|
|
18352
|
+
|
|
17358
18353
|
"""问答提取模型
|
|
17359
18354
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
17360
18355
|
:rtype: str
|
|
@@ -17363,14 +18358,28 @@ class KnowledgeUpdateInfo(AbstractModel):
|
|
|
17363
18358
|
|
|
17364
18359
|
@QaExtractModel.setter
|
|
17365
18360
|
def QaExtractModel(self, QaExtractModel):
|
|
18361
|
+
warnings.warn("parameter `QaExtractModel` is deprecated", DeprecationWarning)
|
|
18362
|
+
|
|
17366
18363
|
self._QaExtractModel = QaExtractModel
|
|
17367
18364
|
|
|
18365
|
+
@property
|
|
18366
|
+
def OwnerStaffId(self):
|
|
18367
|
+
"""拥有者id
|
|
18368
|
+
:rtype: str
|
|
18369
|
+
"""
|
|
18370
|
+
return self._OwnerStaffId
|
|
18371
|
+
|
|
18372
|
+
@OwnerStaffId.setter
|
|
18373
|
+
def OwnerStaffId(self, OwnerStaffId):
|
|
18374
|
+
self._OwnerStaffId = OwnerStaffId
|
|
18375
|
+
|
|
17368
18376
|
|
|
17369
18377
|
def _deserialize(self, params):
|
|
17370
18378
|
self._KnowledgeName = params.get("KnowledgeName")
|
|
17371
18379
|
self._KnowledgeDescription = params.get("KnowledgeDescription")
|
|
17372
18380
|
self._EmbeddingModel = params.get("EmbeddingModel")
|
|
17373
18381
|
self._QaExtractModel = params.get("QaExtractModel")
|
|
18382
|
+
self._OwnerStaffId = params.get("OwnerStaffId")
|
|
17374
18383
|
memeber_set = set(params.keys())
|
|
17375
18384
|
for name, value in vars(self).items():
|
|
17376
18385
|
property_name = name[1:]
|
|
@@ -17504,10 +18513,13 @@ class ListAppKnowledgeDetailRequest(AbstractModel):
|
|
|
17504
18513
|
:type PageSize: int
|
|
17505
18514
|
:param _AppBizIds: 应用ID列表
|
|
17506
18515
|
:type AppBizIds: list of str
|
|
18516
|
+
:param _SpaceId: 空间列表
|
|
18517
|
+
:type SpaceId: str
|
|
17507
18518
|
"""
|
|
17508
18519
|
self._PageNumber = None
|
|
17509
18520
|
self._PageSize = None
|
|
17510
18521
|
self._AppBizIds = None
|
|
18522
|
+
self._SpaceId = None
|
|
17511
18523
|
|
|
17512
18524
|
@property
|
|
17513
18525
|
def PageNumber(self):
|
|
@@ -17542,11 +18554,23 @@ class ListAppKnowledgeDetailRequest(AbstractModel):
|
|
|
17542
18554
|
def AppBizIds(self, AppBizIds):
|
|
17543
18555
|
self._AppBizIds = AppBizIds
|
|
17544
18556
|
|
|
18557
|
+
@property
|
|
18558
|
+
def SpaceId(self):
|
|
18559
|
+
"""空间列表
|
|
18560
|
+
:rtype: str
|
|
18561
|
+
"""
|
|
18562
|
+
return self._SpaceId
|
|
18563
|
+
|
|
18564
|
+
@SpaceId.setter
|
|
18565
|
+
def SpaceId(self, SpaceId):
|
|
18566
|
+
self._SpaceId = SpaceId
|
|
18567
|
+
|
|
17545
18568
|
|
|
17546
18569
|
def _deserialize(self, params):
|
|
17547
18570
|
self._PageNumber = params.get("PageNumber")
|
|
17548
18571
|
self._PageSize = params.get("PageSize")
|
|
17549
18572
|
self._AppBizIds = params.get("AppBizIds")
|
|
18573
|
+
self._SpaceId = params.get("SpaceId")
|
|
17550
18574
|
memeber_set = set(params.keys())
|
|
17551
18575
|
for name, value in vars(self).items():
|
|
17552
18576
|
property_name = name[1:]
|
|
@@ -17637,12 +18661,18 @@ class ListAppRequest(AbstractModel):
|
|
|
17637
18661
|
:type Keyword: str
|
|
17638
18662
|
:param _LoginSubAccountUin: 登录用户子账号(集成商模式必填)
|
|
17639
18663
|
:type LoginSubAccountUin: str
|
|
18664
|
+
:param _AgentType: 智能体类型 dialogue:对话智能体,wechat:公众号智能体
|
|
18665
|
+
:type AgentType: str
|
|
18666
|
+
:param _AppStatus: 应用状态 1:未上线 2:运行中
|
|
18667
|
+
:type AppStatus: str
|
|
17640
18668
|
"""
|
|
17641
18669
|
self._AppType = None
|
|
17642
18670
|
self._PageSize = None
|
|
17643
18671
|
self._PageNumber = None
|
|
17644
18672
|
self._Keyword = None
|
|
17645
18673
|
self._LoginSubAccountUin = None
|
|
18674
|
+
self._AgentType = None
|
|
18675
|
+
self._AppStatus = None
|
|
17646
18676
|
|
|
17647
18677
|
@property
|
|
17648
18678
|
def AppType(self):
|
|
@@ -17699,6 +18729,28 @@ class ListAppRequest(AbstractModel):
|
|
|
17699
18729
|
def LoginSubAccountUin(self, LoginSubAccountUin):
|
|
17700
18730
|
self._LoginSubAccountUin = LoginSubAccountUin
|
|
17701
18731
|
|
|
18732
|
+
@property
|
|
18733
|
+
def AgentType(self):
|
|
18734
|
+
"""智能体类型 dialogue:对话智能体,wechat:公众号智能体
|
|
18735
|
+
:rtype: str
|
|
18736
|
+
"""
|
|
18737
|
+
return self._AgentType
|
|
18738
|
+
|
|
18739
|
+
@AgentType.setter
|
|
18740
|
+
def AgentType(self, AgentType):
|
|
18741
|
+
self._AgentType = AgentType
|
|
18742
|
+
|
|
18743
|
+
@property
|
|
18744
|
+
def AppStatus(self):
|
|
18745
|
+
"""应用状态 1:未上线 2:运行中
|
|
18746
|
+
:rtype: str
|
|
18747
|
+
"""
|
|
18748
|
+
return self._AppStatus
|
|
18749
|
+
|
|
18750
|
+
@AppStatus.setter
|
|
18751
|
+
def AppStatus(self, AppStatus):
|
|
18752
|
+
self._AppStatus = AppStatus
|
|
18753
|
+
|
|
17702
18754
|
|
|
17703
18755
|
def _deserialize(self, params):
|
|
17704
18756
|
self._AppType = params.get("AppType")
|
|
@@ -17706,6 +18758,8 @@ class ListAppRequest(AbstractModel):
|
|
|
17706
18758
|
self._PageNumber = params.get("PageNumber")
|
|
17707
18759
|
self._Keyword = params.get("Keyword")
|
|
17708
18760
|
self._LoginSubAccountUin = params.get("LoginSubAccountUin")
|
|
18761
|
+
self._AgentType = params.get("AgentType")
|
|
18762
|
+
self._AppStatus = params.get("AppStatus")
|
|
17709
18763
|
memeber_set = set(params.keys())
|
|
17710
18764
|
for name, value in vars(self).items():
|
|
17711
18765
|
property_name = name[1:]
|
|
@@ -17725,7 +18779,7 @@ class ListAppResponse(AbstractModel):
|
|
|
17725
18779
|
r"""
|
|
17726
18780
|
:param _Total: 数量
|
|
17727
18781
|
:type Total: str
|
|
17728
|
-
:param _List:
|
|
18782
|
+
:param _List: 应用列表
|
|
17729
18783
|
:type List: list of AppInfo
|
|
17730
18784
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
17731
18785
|
:type RequestId: str
|
|
@@ -17747,7 +18801,7 @@ class ListAppResponse(AbstractModel):
|
|
|
17747
18801
|
|
|
17748
18802
|
@property
|
|
17749
18803
|
def List(self):
|
|
17750
|
-
"""
|
|
18804
|
+
"""应用列表
|
|
17751
18805
|
:rtype: list of AppInfo
|
|
17752
18806
|
"""
|
|
17753
18807
|
return self._List
|
|
@@ -18934,7 +19988,7 @@ class ListModelRequest(AbstractModel):
|
|
|
18934
19988
|
:type AppType: str
|
|
18935
19989
|
:param _Pattern: 应用模式 standard:标准模式, agent: agent模式,single_workflow:单工作流模式
|
|
18936
19990
|
:type Pattern: str
|
|
18937
|
-
:param _ModelCategory: 模型类别 generate:生成模型,thought
|
|
19991
|
+
:param _ModelCategory: 模型类别 generate:生成模型,thought:思考模型,embedding模型,rerank:rerank模型
|
|
18938
19992
|
:type ModelCategory: str
|
|
18939
19993
|
:param _LoginUin: 登录用户主账号(集成商模式必填)
|
|
18940
19994
|
:type LoginUin: str
|
|
@@ -18971,7 +20025,7 @@ class ListModelRequest(AbstractModel):
|
|
|
18971
20025
|
|
|
18972
20026
|
@property
|
|
18973
20027
|
def ModelCategory(self):
|
|
18974
|
-
"""模型类别 generate:生成模型,thought
|
|
20028
|
+
"""模型类别 generate:生成模型,thought:思考模型,embedding模型,rerank:rerank模型
|
|
18975
20029
|
:rtype: str
|
|
18976
20030
|
"""
|
|
18977
20031
|
return self._ModelCategory
|
|
@@ -21284,10 +22338,9 @@ class ListSelectDocRequest(AbstractModel):
|
|
|
21284
22338
|
r"""
|
|
21285
22339
|
:param _BotBizId: 应用ID
|
|
21286
22340
|
:type BotBizId: str
|
|
21287
|
-
:param _FileName:
|
|
21288
|
-
|
|
22341
|
+
:param _FileName: 文档名称。可通过文档名称检索支持生成问答的文档,不支持xlsx、xls、csv格式
|
|
21289
22342
|
:type FileName: str
|
|
21290
|
-
:param _Status:
|
|
22343
|
+
:param _Status: 文档状态筛选。文档状态对应码为7 审核中、8 审核失败、10 待发布、11 发布中、12 已发布、13 学习中、14 学习失败 20 已过期。其中仅状态为10 待发布、12 已发布的文档支持生成问答
|
|
21291
22344
|
:type Status: list of int
|
|
21292
22345
|
"""
|
|
21293
22346
|
self._BotBizId = None
|
|
@@ -21307,8 +22360,7 @@ class ListSelectDocRequest(AbstractModel):
|
|
|
21307
22360
|
|
|
21308
22361
|
@property
|
|
21309
22362
|
def FileName(self):
|
|
21310
|
-
"""
|
|
21311
|
-
|
|
22363
|
+
"""文档名称。可通过文档名称检索支持生成问答的文档,不支持xlsx、xls、csv格式
|
|
21312
22364
|
:rtype: str
|
|
21313
22365
|
"""
|
|
21314
22366
|
return self._FileName
|
|
@@ -21319,7 +22371,7 @@ class ListSelectDocRequest(AbstractModel):
|
|
|
21319
22371
|
|
|
21320
22372
|
@property
|
|
21321
22373
|
def Status(self):
|
|
21322
|
-
"""
|
|
22374
|
+
"""文档状态筛选。文档状态对应码为7 审核中、8 审核失败、10 待发布、11 发布中、12 已发布、13 学习中、14 学习失败 20 已过期。其中仅状态为10 待发布、12 已发布的文档支持生成问答
|
|
21323
22375
|
:rtype: list of int
|
|
21324
22376
|
"""
|
|
21325
22377
|
return self._Status
|
|
@@ -21404,10 +22456,13 @@ class ListSharedKnowledgeRequest(AbstractModel):
|
|
|
21404
22456
|
:type PageSize: int
|
|
21405
22457
|
:param _Keyword: 搜索关键字
|
|
21406
22458
|
:type Keyword: str
|
|
22459
|
+
:param _KnowledgeTypes: 共享知识库类型,0普通,1公众号
|
|
22460
|
+
:type KnowledgeTypes: list of int
|
|
21407
22461
|
"""
|
|
21408
22462
|
self._PageNumber = None
|
|
21409
22463
|
self._PageSize = None
|
|
21410
22464
|
self._Keyword = None
|
|
22465
|
+
self._KnowledgeTypes = None
|
|
21411
22466
|
|
|
21412
22467
|
@property
|
|
21413
22468
|
def PageNumber(self):
|
|
@@ -21442,11 +22497,23 @@ class ListSharedKnowledgeRequest(AbstractModel):
|
|
|
21442
22497
|
def Keyword(self, Keyword):
|
|
21443
22498
|
self._Keyword = Keyword
|
|
21444
22499
|
|
|
22500
|
+
@property
|
|
22501
|
+
def KnowledgeTypes(self):
|
|
22502
|
+
"""共享知识库类型,0普通,1公众号
|
|
22503
|
+
:rtype: list of int
|
|
22504
|
+
"""
|
|
22505
|
+
return self._KnowledgeTypes
|
|
22506
|
+
|
|
22507
|
+
@KnowledgeTypes.setter
|
|
22508
|
+
def KnowledgeTypes(self, KnowledgeTypes):
|
|
22509
|
+
self._KnowledgeTypes = KnowledgeTypes
|
|
22510
|
+
|
|
21445
22511
|
|
|
21446
22512
|
def _deserialize(self, params):
|
|
21447
22513
|
self._PageNumber = params.get("PageNumber")
|
|
21448
22514
|
self._PageSize = params.get("PageSize")
|
|
21449
22515
|
self._Keyword = params.get("Keyword")
|
|
22516
|
+
self._KnowledgeTypes = params.get("KnowledgeTypes")
|
|
21450
22517
|
memeber_set = set(params.keys())
|
|
21451
22518
|
for name, value in vars(self).items():
|
|
21452
22519
|
property_name = name[1:]
|
|
@@ -21742,6 +22809,8 @@ class ListUsageCallDetailRequest(AbstractModel):
|
|
|
21742
22809
|
:type AppType: str
|
|
21743
22810
|
:param _BillingTag: 账单明细对应的自定义tag
|
|
21744
22811
|
:type BillingTag: str
|
|
22812
|
+
:param _SpaceId: 空间id
|
|
22813
|
+
:type SpaceId: str
|
|
21745
22814
|
"""
|
|
21746
22815
|
self._ModelName = None
|
|
21747
22816
|
self._StartTime = None
|
|
@@ -21754,6 +22823,7 @@ class ListUsageCallDetailRequest(AbstractModel):
|
|
|
21754
22823
|
self._SubScenes = None
|
|
21755
22824
|
self._AppType = None
|
|
21756
22825
|
self._BillingTag = None
|
|
22826
|
+
self._SpaceId = None
|
|
21757
22827
|
|
|
21758
22828
|
@property
|
|
21759
22829
|
def ModelName(self):
|
|
@@ -21876,6 +22946,17 @@ class ListUsageCallDetailRequest(AbstractModel):
|
|
|
21876
22946
|
def BillingTag(self, BillingTag):
|
|
21877
22947
|
self._BillingTag = BillingTag
|
|
21878
22948
|
|
|
22949
|
+
@property
|
|
22950
|
+
def SpaceId(self):
|
|
22951
|
+
"""空间id
|
|
22952
|
+
:rtype: str
|
|
22953
|
+
"""
|
|
22954
|
+
return self._SpaceId
|
|
22955
|
+
|
|
22956
|
+
@SpaceId.setter
|
|
22957
|
+
def SpaceId(self, SpaceId):
|
|
22958
|
+
self._SpaceId = SpaceId
|
|
22959
|
+
|
|
21879
22960
|
|
|
21880
22961
|
def _deserialize(self, params):
|
|
21881
22962
|
self._ModelName = params.get("ModelName")
|
|
@@ -21889,6 +22970,7 @@ class ListUsageCallDetailRequest(AbstractModel):
|
|
|
21889
22970
|
self._SubScenes = params.get("SubScenes")
|
|
21890
22971
|
self._AppType = params.get("AppType")
|
|
21891
22972
|
self._BillingTag = params.get("BillingTag")
|
|
22973
|
+
self._SpaceId = params.get("SpaceId")
|
|
21892
22974
|
memeber_set = set(params.keys())
|
|
21893
22975
|
for name, value in vars(self).items():
|
|
21894
22976
|
property_name = name[1:]
|
|
@@ -22191,6 +23273,18 @@ class ModelInfo(AbstractModel):
|
|
|
22191
23273
|
:type SupportAiCallStatus: int
|
|
22192
23274
|
:param _Concurrency: 专属并发数
|
|
22193
23275
|
:type Concurrency: int
|
|
23276
|
+
:param _ModelTags: 模型标签
|
|
23277
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23278
|
+
:type ModelTags: list of str
|
|
23279
|
+
:param _ModelParams: 模型超参定义
|
|
23280
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23281
|
+
:type ModelParams: list of ModelParameter
|
|
23282
|
+
:param _ProviderName: 提供商名称
|
|
23283
|
+
:type ProviderName: str
|
|
23284
|
+
:param _ProviderAliasName: 提供商别名
|
|
23285
|
+
:type ProviderAliasName: str
|
|
23286
|
+
:param _ProviderType: 提供商类型 Self:提供商,Custom:自定义模型提供商,Third:第三方模型提供商
|
|
23287
|
+
:type ProviderType: str
|
|
22194
23288
|
"""
|
|
22195
23289
|
self._ModelName = None
|
|
22196
23290
|
self._ModelDesc = None
|
|
@@ -22211,6 +23305,11 @@ class ModelInfo(AbstractModel):
|
|
|
22211
23305
|
self._IsExclusive = None
|
|
22212
23306
|
self._SupportAiCallStatus = None
|
|
22213
23307
|
self._Concurrency = None
|
|
23308
|
+
self._ModelTags = None
|
|
23309
|
+
self._ModelParams = None
|
|
23310
|
+
self._ProviderName = None
|
|
23311
|
+
self._ProviderAliasName = None
|
|
23312
|
+
self._ProviderType = None
|
|
22214
23313
|
|
|
22215
23314
|
@property
|
|
22216
23315
|
def ModelName(self):
|
|
@@ -22431,6 +23530,63 @@ class ModelInfo(AbstractModel):
|
|
|
22431
23530
|
def Concurrency(self, Concurrency):
|
|
22432
23531
|
self._Concurrency = Concurrency
|
|
22433
23532
|
|
|
23533
|
+
@property
|
|
23534
|
+
def ModelTags(self):
|
|
23535
|
+
"""模型标签
|
|
23536
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23537
|
+
:rtype: list of str
|
|
23538
|
+
"""
|
|
23539
|
+
return self._ModelTags
|
|
23540
|
+
|
|
23541
|
+
@ModelTags.setter
|
|
23542
|
+
def ModelTags(self, ModelTags):
|
|
23543
|
+
self._ModelTags = ModelTags
|
|
23544
|
+
|
|
23545
|
+
@property
|
|
23546
|
+
def ModelParams(self):
|
|
23547
|
+
"""模型超参定义
|
|
23548
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23549
|
+
:rtype: list of ModelParameter
|
|
23550
|
+
"""
|
|
23551
|
+
return self._ModelParams
|
|
23552
|
+
|
|
23553
|
+
@ModelParams.setter
|
|
23554
|
+
def ModelParams(self, ModelParams):
|
|
23555
|
+
self._ModelParams = ModelParams
|
|
23556
|
+
|
|
23557
|
+
@property
|
|
23558
|
+
def ProviderName(self):
|
|
23559
|
+
"""提供商名称
|
|
23560
|
+
:rtype: str
|
|
23561
|
+
"""
|
|
23562
|
+
return self._ProviderName
|
|
23563
|
+
|
|
23564
|
+
@ProviderName.setter
|
|
23565
|
+
def ProviderName(self, ProviderName):
|
|
23566
|
+
self._ProviderName = ProviderName
|
|
23567
|
+
|
|
23568
|
+
@property
|
|
23569
|
+
def ProviderAliasName(self):
|
|
23570
|
+
"""提供商别名
|
|
23571
|
+
:rtype: str
|
|
23572
|
+
"""
|
|
23573
|
+
return self._ProviderAliasName
|
|
23574
|
+
|
|
23575
|
+
@ProviderAliasName.setter
|
|
23576
|
+
def ProviderAliasName(self, ProviderAliasName):
|
|
23577
|
+
self._ProviderAliasName = ProviderAliasName
|
|
23578
|
+
|
|
23579
|
+
@property
|
|
23580
|
+
def ProviderType(self):
|
|
23581
|
+
"""提供商类型 Self:提供商,Custom:自定义模型提供商,Third:第三方模型提供商
|
|
23582
|
+
:rtype: str
|
|
23583
|
+
"""
|
|
23584
|
+
return self._ProviderType
|
|
23585
|
+
|
|
23586
|
+
@ProviderType.setter
|
|
23587
|
+
def ProviderType(self, ProviderType):
|
|
23588
|
+
self._ProviderType = ProviderType
|
|
23589
|
+
|
|
22434
23590
|
|
|
22435
23591
|
def _deserialize(self, params):
|
|
22436
23592
|
self._ModelName = params.get("ModelName")
|
|
@@ -22458,6 +23614,16 @@ class ModelInfo(AbstractModel):
|
|
|
22458
23614
|
self._IsExclusive = params.get("IsExclusive")
|
|
22459
23615
|
self._SupportAiCallStatus = params.get("SupportAiCallStatus")
|
|
22460
23616
|
self._Concurrency = params.get("Concurrency")
|
|
23617
|
+
self._ModelTags = params.get("ModelTags")
|
|
23618
|
+
if params.get("ModelParams") is not None:
|
|
23619
|
+
self._ModelParams = []
|
|
23620
|
+
for item in params.get("ModelParams"):
|
|
23621
|
+
obj = ModelParameter()
|
|
23622
|
+
obj._deserialize(item)
|
|
23623
|
+
self._ModelParams.append(obj)
|
|
23624
|
+
self._ProviderName = params.get("ProviderName")
|
|
23625
|
+
self._ProviderAliasName = params.get("ProviderAliasName")
|
|
23626
|
+
self._ProviderType = params.get("ProviderType")
|
|
22461
23627
|
memeber_set = set(params.keys())
|
|
22462
23628
|
for name, value in vars(self).items():
|
|
22463
23629
|
property_name = name[1:]
|
|
@@ -22484,10 +23650,14 @@ class ModelParameter(AbstractModel):
|
|
|
22484
23650
|
:param _Max: 最大值
|
|
22485
23651
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
22486
23652
|
:type Max: float
|
|
23653
|
+
:param _Name: 超参名称
|
|
23654
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23655
|
+
:type Name: str
|
|
22487
23656
|
"""
|
|
22488
23657
|
self._Default = None
|
|
22489
23658
|
self._Min = None
|
|
22490
23659
|
self._Max = None
|
|
23660
|
+
self._Name = None
|
|
22491
23661
|
|
|
22492
23662
|
@property
|
|
22493
23663
|
def Default(self):
|
|
@@ -22525,11 +23695,180 @@ class ModelParameter(AbstractModel):
|
|
|
22525
23695
|
def Max(self, Max):
|
|
22526
23696
|
self._Max = Max
|
|
22527
23697
|
|
|
23698
|
+
@property
|
|
23699
|
+
def Name(self):
|
|
23700
|
+
"""超参名称
|
|
23701
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23702
|
+
:rtype: str
|
|
23703
|
+
"""
|
|
23704
|
+
return self._Name
|
|
23705
|
+
|
|
23706
|
+
@Name.setter
|
|
23707
|
+
def Name(self, Name):
|
|
23708
|
+
self._Name = Name
|
|
23709
|
+
|
|
22528
23710
|
|
|
22529
23711
|
def _deserialize(self, params):
|
|
22530
23712
|
self._Default = params.get("Default")
|
|
22531
23713
|
self._Min = params.get("Min")
|
|
22532
23714
|
self._Max = params.get("Max")
|
|
23715
|
+
self._Name = params.get("Name")
|
|
23716
|
+
memeber_set = set(params.keys())
|
|
23717
|
+
for name, value in vars(self).items():
|
|
23718
|
+
property_name = name[1:]
|
|
23719
|
+
if property_name in memeber_set:
|
|
23720
|
+
memeber_set.remove(property_name)
|
|
23721
|
+
if len(memeber_set) > 0:
|
|
23722
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23723
|
+
|
|
23724
|
+
|
|
23725
|
+
|
|
23726
|
+
class ModelParams(AbstractModel):
|
|
23727
|
+
"""模型参数
|
|
23728
|
+
|
|
23729
|
+
"""
|
|
23730
|
+
|
|
23731
|
+
def __init__(self):
|
|
23732
|
+
r"""
|
|
23733
|
+
:param _Temperature: 温度
|
|
23734
|
+
:type Temperature: float
|
|
23735
|
+
:param _TopP: Top_P
|
|
23736
|
+
:type TopP: float
|
|
23737
|
+
:param _Seed: 随机种子
|
|
23738
|
+
:type Seed: int
|
|
23739
|
+
:param _PresencePenalty: 存在惩罚
|
|
23740
|
+
:type PresencePenalty: float
|
|
23741
|
+
:param _FrequencyPenalty: 频率惩罚
|
|
23742
|
+
:type FrequencyPenalty: float
|
|
23743
|
+
:param _RepetitionPenalty: 重复惩罚
|
|
23744
|
+
:type RepetitionPenalty: float
|
|
23745
|
+
:param _MaxTokens: 最大输出长度
|
|
23746
|
+
:type MaxTokens: int
|
|
23747
|
+
:param _StopSequences: 停止序列
|
|
23748
|
+
:type StopSequences: list of str
|
|
23749
|
+
:param _ReplyFormat: 输出格式
|
|
23750
|
+
:type ReplyFormat: str
|
|
23751
|
+
"""
|
|
23752
|
+
self._Temperature = None
|
|
23753
|
+
self._TopP = None
|
|
23754
|
+
self._Seed = None
|
|
23755
|
+
self._PresencePenalty = None
|
|
23756
|
+
self._FrequencyPenalty = None
|
|
23757
|
+
self._RepetitionPenalty = None
|
|
23758
|
+
self._MaxTokens = None
|
|
23759
|
+
self._StopSequences = None
|
|
23760
|
+
self._ReplyFormat = None
|
|
23761
|
+
|
|
23762
|
+
@property
|
|
23763
|
+
def Temperature(self):
|
|
23764
|
+
"""温度
|
|
23765
|
+
:rtype: float
|
|
23766
|
+
"""
|
|
23767
|
+
return self._Temperature
|
|
23768
|
+
|
|
23769
|
+
@Temperature.setter
|
|
23770
|
+
def Temperature(self, Temperature):
|
|
23771
|
+
self._Temperature = Temperature
|
|
23772
|
+
|
|
23773
|
+
@property
|
|
23774
|
+
def TopP(self):
|
|
23775
|
+
"""Top_P
|
|
23776
|
+
:rtype: float
|
|
23777
|
+
"""
|
|
23778
|
+
return self._TopP
|
|
23779
|
+
|
|
23780
|
+
@TopP.setter
|
|
23781
|
+
def TopP(self, TopP):
|
|
23782
|
+
self._TopP = TopP
|
|
23783
|
+
|
|
23784
|
+
@property
|
|
23785
|
+
def Seed(self):
|
|
23786
|
+
"""随机种子
|
|
23787
|
+
:rtype: int
|
|
23788
|
+
"""
|
|
23789
|
+
return self._Seed
|
|
23790
|
+
|
|
23791
|
+
@Seed.setter
|
|
23792
|
+
def Seed(self, Seed):
|
|
23793
|
+
self._Seed = Seed
|
|
23794
|
+
|
|
23795
|
+
@property
|
|
23796
|
+
def PresencePenalty(self):
|
|
23797
|
+
"""存在惩罚
|
|
23798
|
+
:rtype: float
|
|
23799
|
+
"""
|
|
23800
|
+
return self._PresencePenalty
|
|
23801
|
+
|
|
23802
|
+
@PresencePenalty.setter
|
|
23803
|
+
def PresencePenalty(self, PresencePenalty):
|
|
23804
|
+
self._PresencePenalty = PresencePenalty
|
|
23805
|
+
|
|
23806
|
+
@property
|
|
23807
|
+
def FrequencyPenalty(self):
|
|
23808
|
+
"""频率惩罚
|
|
23809
|
+
:rtype: float
|
|
23810
|
+
"""
|
|
23811
|
+
return self._FrequencyPenalty
|
|
23812
|
+
|
|
23813
|
+
@FrequencyPenalty.setter
|
|
23814
|
+
def FrequencyPenalty(self, FrequencyPenalty):
|
|
23815
|
+
self._FrequencyPenalty = FrequencyPenalty
|
|
23816
|
+
|
|
23817
|
+
@property
|
|
23818
|
+
def RepetitionPenalty(self):
|
|
23819
|
+
"""重复惩罚
|
|
23820
|
+
:rtype: float
|
|
23821
|
+
"""
|
|
23822
|
+
return self._RepetitionPenalty
|
|
23823
|
+
|
|
23824
|
+
@RepetitionPenalty.setter
|
|
23825
|
+
def RepetitionPenalty(self, RepetitionPenalty):
|
|
23826
|
+
self._RepetitionPenalty = RepetitionPenalty
|
|
23827
|
+
|
|
23828
|
+
@property
|
|
23829
|
+
def MaxTokens(self):
|
|
23830
|
+
"""最大输出长度
|
|
23831
|
+
:rtype: int
|
|
23832
|
+
"""
|
|
23833
|
+
return self._MaxTokens
|
|
23834
|
+
|
|
23835
|
+
@MaxTokens.setter
|
|
23836
|
+
def MaxTokens(self, MaxTokens):
|
|
23837
|
+
self._MaxTokens = MaxTokens
|
|
23838
|
+
|
|
23839
|
+
@property
|
|
23840
|
+
def StopSequences(self):
|
|
23841
|
+
"""停止序列
|
|
23842
|
+
:rtype: list of str
|
|
23843
|
+
"""
|
|
23844
|
+
return self._StopSequences
|
|
23845
|
+
|
|
23846
|
+
@StopSequences.setter
|
|
23847
|
+
def StopSequences(self, StopSequences):
|
|
23848
|
+
self._StopSequences = StopSequences
|
|
23849
|
+
|
|
23850
|
+
@property
|
|
23851
|
+
def ReplyFormat(self):
|
|
23852
|
+
"""输出格式
|
|
23853
|
+
:rtype: str
|
|
23854
|
+
"""
|
|
23855
|
+
return self._ReplyFormat
|
|
23856
|
+
|
|
23857
|
+
@ReplyFormat.setter
|
|
23858
|
+
def ReplyFormat(self, ReplyFormat):
|
|
23859
|
+
self._ReplyFormat = ReplyFormat
|
|
23860
|
+
|
|
23861
|
+
|
|
23862
|
+
def _deserialize(self, params):
|
|
23863
|
+
self._Temperature = params.get("Temperature")
|
|
23864
|
+
self._TopP = params.get("TopP")
|
|
23865
|
+
self._Seed = params.get("Seed")
|
|
23866
|
+
self._PresencePenalty = params.get("PresencePenalty")
|
|
23867
|
+
self._FrequencyPenalty = params.get("FrequencyPenalty")
|
|
23868
|
+
self._RepetitionPenalty = params.get("RepetitionPenalty")
|
|
23869
|
+
self._MaxTokens = params.get("MaxTokens")
|
|
23870
|
+
self._StopSequences = params.get("StopSequences")
|
|
23871
|
+
self._ReplyFormat = params.get("ReplyFormat")
|
|
22533
23872
|
memeber_set = set(params.keys())
|
|
22534
23873
|
for name, value in vars(self).items():
|
|
22535
23874
|
property_name = name[1:]
|
|
@@ -23249,6 +24588,12 @@ class ModifyDocRequest(AbstractModel):
|
|
|
23249
24588
|
:type CateBizId: str
|
|
23250
24589
|
:param _IsDownload: 是否可下载,IsRefer为true并且ReferUrlType为0时,该值才有意义
|
|
23251
24590
|
:type IsDownload: bool
|
|
24591
|
+
:param _ModifyTypes: 需要修改的内容类型 0 无效 1 更新文档cos信息 2 更新文档引用信息 3 更新文档刷新频率 4 腾讯文档刷新
|
|
24592
|
+
:type ModifyTypes: list of int non-negative
|
|
24593
|
+
:param _UpdatePeriodInfo: 文档更新频率
|
|
24594
|
+
:type UpdatePeriodInfo: :class:`tencentcloud.lke.v20231130.models.UpdatePeriodInfo`
|
|
24595
|
+
:param _SplitRule: 自定义切分规则
|
|
24596
|
+
:type SplitRule: str
|
|
23252
24597
|
"""
|
|
23253
24598
|
self._BotBizId = None
|
|
23254
24599
|
self._DocBizId = None
|
|
@@ -23263,6 +24608,9 @@ class ModifyDocRequest(AbstractModel):
|
|
|
23263
24608
|
self._ExpireEnd = None
|
|
23264
24609
|
self._CateBizId = None
|
|
23265
24610
|
self._IsDownload = None
|
|
24611
|
+
self._ModifyTypes = None
|
|
24612
|
+
self._UpdatePeriodInfo = None
|
|
24613
|
+
self._SplitRule = None
|
|
23266
24614
|
|
|
23267
24615
|
@property
|
|
23268
24616
|
def BotBizId(self):
|
|
@@ -23408,6 +24756,39 @@ class ModifyDocRequest(AbstractModel):
|
|
|
23408
24756
|
def IsDownload(self, IsDownload):
|
|
23409
24757
|
self._IsDownload = IsDownload
|
|
23410
24758
|
|
|
24759
|
+
@property
|
|
24760
|
+
def ModifyTypes(self):
|
|
24761
|
+
"""需要修改的内容类型 0 无效 1 更新文档cos信息 2 更新文档引用信息 3 更新文档刷新频率 4 腾讯文档刷新
|
|
24762
|
+
:rtype: list of int non-negative
|
|
24763
|
+
"""
|
|
24764
|
+
return self._ModifyTypes
|
|
24765
|
+
|
|
24766
|
+
@ModifyTypes.setter
|
|
24767
|
+
def ModifyTypes(self, ModifyTypes):
|
|
24768
|
+
self._ModifyTypes = ModifyTypes
|
|
24769
|
+
|
|
24770
|
+
@property
|
|
24771
|
+
def UpdatePeriodInfo(self):
|
|
24772
|
+
"""文档更新频率
|
|
24773
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.UpdatePeriodInfo`
|
|
24774
|
+
"""
|
|
24775
|
+
return self._UpdatePeriodInfo
|
|
24776
|
+
|
|
24777
|
+
@UpdatePeriodInfo.setter
|
|
24778
|
+
def UpdatePeriodInfo(self, UpdatePeriodInfo):
|
|
24779
|
+
self._UpdatePeriodInfo = UpdatePeriodInfo
|
|
24780
|
+
|
|
24781
|
+
@property
|
|
24782
|
+
def SplitRule(self):
|
|
24783
|
+
"""自定义切分规则
|
|
24784
|
+
:rtype: str
|
|
24785
|
+
"""
|
|
24786
|
+
return self._SplitRule
|
|
24787
|
+
|
|
24788
|
+
@SplitRule.setter
|
|
24789
|
+
def SplitRule(self, SplitRule):
|
|
24790
|
+
self._SplitRule = SplitRule
|
|
24791
|
+
|
|
23411
24792
|
|
|
23412
24793
|
def _deserialize(self, params):
|
|
23413
24794
|
self._BotBizId = params.get("BotBizId")
|
|
@@ -23428,6 +24809,11 @@ class ModifyDocRequest(AbstractModel):
|
|
|
23428
24809
|
self._ExpireEnd = params.get("ExpireEnd")
|
|
23429
24810
|
self._CateBizId = params.get("CateBizId")
|
|
23430
24811
|
self._IsDownload = params.get("IsDownload")
|
|
24812
|
+
self._ModifyTypes = params.get("ModifyTypes")
|
|
24813
|
+
if params.get("UpdatePeriodInfo") is not None:
|
|
24814
|
+
self._UpdatePeriodInfo = UpdatePeriodInfo()
|
|
24815
|
+
self._UpdatePeriodInfo._deserialize(params.get("UpdatePeriodInfo"))
|
|
24816
|
+
self._SplitRule = params.get("SplitRule")
|
|
23431
24817
|
memeber_set = set(params.keys())
|
|
23432
24818
|
for name, value in vars(self).items():
|
|
23433
24819
|
property_name = name[1:]
|
|
@@ -24650,6 +26036,8 @@ class MsgRecordReference(AbstractModel):
|
|
|
24650
26036
|
:type DocBizId: str
|
|
24651
26037
|
:param _QaBizId: 问答业务id
|
|
24652
26038
|
:type QaBizId: str
|
|
26039
|
+
:param _Index: 文档索引id
|
|
26040
|
+
:type Index: int
|
|
24653
26041
|
"""
|
|
24654
26042
|
self._Id = None
|
|
24655
26043
|
self._Url = None
|
|
@@ -24660,6 +26048,7 @@ class MsgRecordReference(AbstractModel):
|
|
|
24660
26048
|
self._KnowledgeBizId = None
|
|
24661
26049
|
self._DocBizId = None
|
|
24662
26050
|
self._QaBizId = None
|
|
26051
|
+
self._Index = None
|
|
24663
26052
|
|
|
24664
26053
|
@property
|
|
24665
26054
|
def Id(self):
|
|
@@ -24760,6 +26149,17 @@ class MsgRecordReference(AbstractModel):
|
|
|
24760
26149
|
def QaBizId(self, QaBizId):
|
|
24761
26150
|
self._QaBizId = QaBizId
|
|
24762
26151
|
|
|
26152
|
+
@property
|
|
26153
|
+
def Index(self):
|
|
26154
|
+
"""文档索引id
|
|
26155
|
+
:rtype: int
|
|
26156
|
+
"""
|
|
26157
|
+
return self._Index
|
|
26158
|
+
|
|
26159
|
+
@Index.setter
|
|
26160
|
+
def Index(self, Index):
|
|
26161
|
+
self._Index = Index
|
|
26162
|
+
|
|
24763
26163
|
|
|
24764
26164
|
def _deserialize(self, params):
|
|
24765
26165
|
self._Id = params.get("Id")
|
|
@@ -24771,6 +26171,7 @@ class MsgRecordReference(AbstractModel):
|
|
|
24771
26171
|
self._KnowledgeBizId = params.get("KnowledgeBizId")
|
|
24772
26172
|
self._DocBizId = params.get("DocBizId")
|
|
24773
26173
|
self._QaBizId = params.get("QaBizId")
|
|
26174
|
+
self._Index = params.get("Index")
|
|
24774
26175
|
memeber_set = set(params.keys())
|
|
24775
26176
|
for name, value in vars(self).items():
|
|
24776
26177
|
property_name = name[1:]
|
|
@@ -25431,23 +26832,74 @@ class Option(AbstractModel):
|
|
|
25431
26832
|
self._CharSize = CharSize
|
|
25432
26833
|
|
|
25433
26834
|
@property
|
|
25434
|
-
def FileType(self):
|
|
25435
|
-
"""文件类型
|
|
25436
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
25437
|
-
:rtype: str
|
|
26835
|
+
def FileType(self):
|
|
26836
|
+
"""文件类型
|
|
26837
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
26838
|
+
:rtype: str
|
|
26839
|
+
"""
|
|
26840
|
+
return self._FileType
|
|
26841
|
+
|
|
26842
|
+
@FileType.setter
|
|
26843
|
+
def FileType(self, FileType):
|
|
26844
|
+
self._FileType = FileType
|
|
26845
|
+
|
|
26846
|
+
|
|
26847
|
+
def _deserialize(self, params):
|
|
26848
|
+
self._Text = params.get("Text")
|
|
26849
|
+
self._Value = params.get("Value")
|
|
26850
|
+
self._CharSize = params.get("CharSize")
|
|
26851
|
+
self._FileType = params.get("FileType")
|
|
26852
|
+
memeber_set = set(params.keys())
|
|
26853
|
+
for name, value in vars(self).items():
|
|
26854
|
+
property_name = name[1:]
|
|
26855
|
+
if property_name in memeber_set:
|
|
26856
|
+
memeber_set.remove(property_name)
|
|
26857
|
+
if len(memeber_set) > 0:
|
|
26858
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
26859
|
+
|
|
26860
|
+
|
|
26861
|
+
|
|
26862
|
+
class OptionCardIndex(AbstractModel):
|
|
26863
|
+
"""选项卡索引
|
|
26864
|
+
|
|
26865
|
+
"""
|
|
26866
|
+
|
|
26867
|
+
def __init__(self):
|
|
26868
|
+
r"""
|
|
26869
|
+
:param _RecordId: 唯一标识
|
|
26870
|
+
:type RecordId: str
|
|
26871
|
+
:param _Index: 选项卡索引
|
|
26872
|
+
:type Index: int
|
|
26873
|
+
"""
|
|
26874
|
+
self._RecordId = None
|
|
26875
|
+
self._Index = None
|
|
26876
|
+
|
|
26877
|
+
@property
|
|
26878
|
+
def RecordId(self):
|
|
26879
|
+
"""唯一标识
|
|
26880
|
+
:rtype: str
|
|
26881
|
+
"""
|
|
26882
|
+
return self._RecordId
|
|
26883
|
+
|
|
26884
|
+
@RecordId.setter
|
|
26885
|
+
def RecordId(self, RecordId):
|
|
26886
|
+
self._RecordId = RecordId
|
|
26887
|
+
|
|
26888
|
+
@property
|
|
26889
|
+
def Index(self):
|
|
26890
|
+
"""选项卡索引
|
|
26891
|
+
:rtype: int
|
|
25438
26892
|
"""
|
|
25439
|
-
return self.
|
|
26893
|
+
return self._Index
|
|
25440
26894
|
|
|
25441
|
-
@
|
|
25442
|
-
def
|
|
25443
|
-
self.
|
|
26895
|
+
@Index.setter
|
|
26896
|
+
def Index(self, Index):
|
|
26897
|
+
self._Index = Index
|
|
25444
26898
|
|
|
25445
26899
|
|
|
25446
26900
|
def _deserialize(self, params):
|
|
25447
|
-
self.
|
|
25448
|
-
self.
|
|
25449
|
-
self._CharSize = params.get("CharSize")
|
|
25450
|
-
self._FileType = params.get("FileType")
|
|
26901
|
+
self._RecordId = params.get("RecordId")
|
|
26902
|
+
self._Index = params.get("Index")
|
|
25451
26903
|
memeber_set = set(params.keys())
|
|
25452
26904
|
for name, value in vars(self).items():
|
|
25453
26905
|
property_name = name[1:]
|
|
@@ -25654,6 +27106,10 @@ class Procedure(AbstractModel):
|
|
|
25654
27106
|
:param _ResourceStatus: 计费资源状态,1:可用,2:不可用
|
|
25655
27107
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
25656
27108
|
:type ResourceStatus: int
|
|
27109
|
+
:param _InputCount: 输入消耗 token 数
|
|
27110
|
+
:type InputCount: int
|
|
27111
|
+
:param _OutputCount: 输出消耗 token 数
|
|
27112
|
+
:type OutputCount: int
|
|
25657
27113
|
"""
|
|
25658
27114
|
self._Name = None
|
|
25659
27115
|
self._Title = None
|
|
@@ -25661,6 +27117,8 @@ class Procedure(AbstractModel):
|
|
|
25661
27117
|
self._Count = None
|
|
25662
27118
|
self._Debugging = None
|
|
25663
27119
|
self._ResourceStatus = None
|
|
27120
|
+
self._InputCount = None
|
|
27121
|
+
self._OutputCount = None
|
|
25664
27122
|
|
|
25665
27123
|
@property
|
|
25666
27124
|
def Name(self):
|
|
@@ -25734,6 +27192,28 @@ class Procedure(AbstractModel):
|
|
|
25734
27192
|
def ResourceStatus(self, ResourceStatus):
|
|
25735
27193
|
self._ResourceStatus = ResourceStatus
|
|
25736
27194
|
|
|
27195
|
+
@property
|
|
27196
|
+
def InputCount(self):
|
|
27197
|
+
"""输入消耗 token 数
|
|
27198
|
+
:rtype: int
|
|
27199
|
+
"""
|
|
27200
|
+
return self._InputCount
|
|
27201
|
+
|
|
27202
|
+
@InputCount.setter
|
|
27203
|
+
def InputCount(self, InputCount):
|
|
27204
|
+
self._InputCount = InputCount
|
|
27205
|
+
|
|
27206
|
+
@property
|
|
27207
|
+
def OutputCount(self):
|
|
27208
|
+
"""输出消耗 token 数
|
|
27209
|
+
:rtype: int
|
|
27210
|
+
"""
|
|
27211
|
+
return self._OutputCount
|
|
27212
|
+
|
|
27213
|
+
@OutputCount.setter
|
|
27214
|
+
def OutputCount(self, OutputCount):
|
|
27215
|
+
self._OutputCount = OutputCount
|
|
27216
|
+
|
|
25737
27217
|
|
|
25738
27218
|
def _deserialize(self, params):
|
|
25739
27219
|
self._Name = params.get("Name")
|
|
@@ -25744,6 +27224,8 @@ class Procedure(AbstractModel):
|
|
|
25744
27224
|
self._Debugging = ProcedureDebugging()
|
|
25745
27225
|
self._Debugging._deserialize(params.get("Debugging"))
|
|
25746
27226
|
self._ResourceStatus = params.get("ResourceStatus")
|
|
27227
|
+
self._InputCount = params.get("InputCount")
|
|
27228
|
+
self._OutputCount = params.get("OutputCount")
|
|
25747
27229
|
memeber_set = set(params.keys())
|
|
25748
27230
|
for name, value in vars(self).items():
|
|
25749
27231
|
property_name = name[1:]
|
|
@@ -25783,6 +27265,7 @@ class ProcedureDebugging(AbstractModel):
|
|
|
25783
27265
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
25784
27266
|
:type Agent: :class:`tencentcloud.lke.v20231130.models.AgentDebugInfo`
|
|
25785
27267
|
:param _CustomVariables: 自定义参数
|
|
27268
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25786
27269
|
:type CustomVariables: list of str
|
|
25787
27270
|
"""
|
|
25788
27271
|
self._Content = None
|
|
@@ -25881,6 +27364,7 @@ class ProcedureDebugging(AbstractModel):
|
|
|
25881
27364
|
@property
|
|
25882
27365
|
def CustomVariables(self):
|
|
25883
27366
|
"""自定义参数
|
|
27367
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25884
27368
|
:rtype: list of str
|
|
25885
27369
|
"""
|
|
25886
27370
|
return self._CustomVariables
|
|
@@ -28194,6 +29678,94 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
|
28194
29678
|
:type IsDownload: bool
|
|
28195
29679
|
:param _DuplicateFileHandles: 重复文档处理方式,按顺序匹配第一个满足条件的方式处理
|
|
28196
29680
|
:type DuplicateFileHandles: list of DuplicateFileHandle
|
|
29681
|
+
:param _SplitRule: 自定义切分规则
|
|
29682
|
+
|
|
29683
|
+
请求参数为一个 **JSON Object**,具体格式可参见接口示例值。包含以下主要字段:
|
|
29684
|
+
|
|
29685
|
+
| 字段名 | 类型 | 说明 |
|
|
29686
|
+
|--------------------|--------|----------------------------------------|
|
|
29687
|
+
| `xlsx_splitter` | Object | **Excel(xlsx)文件切分策略配置**,仅当处理 Excel 文件时有效 |
|
|
29688
|
+
| `common_splitter` | Object | **通用文件(如 txt、pdf 等)切分策略配置**,按页或按标签切分 |
|
|
29689
|
+
| `table_style` | String | 表格内容的输出格式,如 HTML 或 Markdown |
|
|
29690
|
+
|
|
29691
|
+
---
|
|
29692
|
+
|
|
29693
|
+
## `xlsx_splitter`(Excel 切分策略)
|
|
29694
|
+
|
|
29695
|
+
用于配置 **表格文件的切分方式**。
|
|
29696
|
+
**类型:Object**
|
|
29697
|
+
|
|
29698
|
+
```json
|
|
29699
|
+
"xlsx_splitter": {
|
|
29700
|
+
"header_interval": [1, 2],
|
|
29701
|
+
"content_start": 10,
|
|
29702
|
+
"split_row": 2
|
|
29703
|
+
}
|
|
29704
|
+
```
|
|
29705
|
+
|
|
29706
|
+
### 字段说明:
|
|
29707
|
+
|
|
29708
|
+
| 字段名 | 类型 | 说明 |
|
|
29709
|
+
|-------------------|--------|----------------------------------------------------------------------|
|
|
29710
|
+
| `header_interval` | Array\<Number\> | 表头所在的行区间,格式为 `[起始行, 结束行]`,**行号从 1 开始计数**。例如 `[1, 2]` 表示第 1~2 行为表头。 |
|
|
29711
|
+
| `content_start` | Number | **表格内容的起始行号(从 1 开始)**。 |
|
|
29712
|
+
| `split_row` | Number | **切分行数**。 |
|
|
29713
|
+
|
|
29714
|
+
---
|
|
29715
|
+
## `common_splitter`(通用文件切分策略)
|
|
29716
|
+
|
|
29717
|
+
用于配置 **非 Excel 文件(如 TXT、PDF、DOCX 等)的切分方式**,支持两种策略:**按页切分(page)** 或 **按标识符切分(tag)**。
|
|
29718
|
+
|
|
29719
|
+
**类型:Object**
|
|
29720
|
+
|
|
29721
|
+
```json
|
|
29722
|
+
"common_splitter": {
|
|
29723
|
+
"splitter": "page",
|
|
29724
|
+
"page_splitter": {
|
|
29725
|
+
"chunk_length": 1000,
|
|
29726
|
+
"chunk_overlap_length": 100
|
|
29727
|
+
}
|
|
29728
|
+
}
|
|
29729
|
+
```
|
|
29730
|
+
|
|
29731
|
+
### 字段说明:
|
|
29732
|
+
|
|
29733
|
+
| 字段名 | 类型 | 说明 |
|
|
29734
|
+
|-------------------|--------|---------------------------------------------------|
|
|
29735
|
+
| `splitter` | String | 切分策略类型,可选值为:`"page"`(按页切分) 或 `"tag"`(按标识符切分)。 |
|
|
29736
|
+
| `page_splitter` | Object | **按页切分的配置**。 |
|
|
29737
|
+
| `page_splitter.chunk_length` | 1000 | **切片最大长度**。 |
|
|
29738
|
+
| `page_splitter.chunk_overlap_length` | 100 | **切片重叠长度**。 |
|
|
29739
|
+
| `tag_splitter` | Object | **自定义切分配置**。 |
|
|
29740
|
+
| `tag_splitter.tag` | Array\<String\> | **切分标识符**。 |
|
|
29741
|
+
| `tag_splitter.chunk_length`| Number | **切片最大长度**。 |
|
|
29742
|
+
| `tag_splitter.chunk_overlap_length` | Number | **切块重叠长度**。 |
|
|
29743
|
+
|
|
29744
|
+
🔹 **补充说明:**
|
|
29745
|
+
|
|
29746
|
+
- `splitter` 字段的值可以是:
|
|
29747
|
+
- `"page"`:只使用按页切分逻辑,此时只需要关心 `page_splitter` 相关字段。
|
|
29748
|
+
- `"tag"`:只使用按标识符(如分号、换行等)切分逻辑,此时关注 `tag_splitter`。
|
|
29749
|
+
---
|
|
29750
|
+
|
|
29751
|
+
## `table_style`(表格输出样式)
|
|
29752
|
+
|
|
29753
|
+
用于指定 **表格类内容(比如从 Excel 或 CSV 中提取的表格)最终以何种格式返回**,方便前端展示或后续处理。
|
|
29754
|
+
|
|
29755
|
+
**类型:String**
|
|
29756
|
+
|
|
29757
|
+
```json
|
|
29758
|
+
"table_style": "md"
|
|
29759
|
+
```
|
|
29760
|
+
|
|
29761
|
+
### 字段说明:
|
|
29762
|
+
|
|
29763
|
+
| 字段名 | 类型 | 说明 |
|
|
29764
|
+
|--------------|--------|----------------------------------------------------------------------|
|
|
29765
|
+
| `table_style` | String | 指定表格内容的输出格式。可用值:<br>• `"html"`:以 HTML 表格形式返回,适合网页展示。<br>• `"md"`:以 Markdown 表格语法返回,适合文档或 Markdown 渲染环境。|
|
|
29766
|
+
:type SplitRule: str
|
|
29767
|
+
:param _UpdatePeriodInfo: 文档更新频率
|
|
29768
|
+
:type UpdatePeriodInfo: :class:`tencentcloud.lke.v20231130.models.UpdatePeriodInfo`
|
|
28197
29769
|
"""
|
|
28198
29770
|
self._BotBizId = None
|
|
28199
29771
|
self._FileName = None
|
|
@@ -28214,6 +29786,8 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
|
28214
29786
|
self._CateBizId = None
|
|
28215
29787
|
self._IsDownload = None
|
|
28216
29788
|
self._DuplicateFileHandles = None
|
|
29789
|
+
self._SplitRule = None
|
|
29790
|
+
self._UpdatePeriodInfo = None
|
|
28217
29791
|
|
|
28218
29792
|
@property
|
|
28219
29793
|
def BotBizId(self):
|
|
@@ -28434,6 +30008,112 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
|
28434
30008
|
def DuplicateFileHandles(self, DuplicateFileHandles):
|
|
28435
30009
|
self._DuplicateFileHandles = DuplicateFileHandles
|
|
28436
30010
|
|
|
30011
|
+
@property
|
|
30012
|
+
def SplitRule(self):
|
|
30013
|
+
"""自定义切分规则
|
|
30014
|
+
|
|
30015
|
+
请求参数为一个 **JSON Object**,具体格式可参见接口示例值。包含以下主要字段:
|
|
30016
|
+
|
|
30017
|
+
| 字段名 | 类型 | 说明 |
|
|
30018
|
+
|--------------------|--------|----------------------------------------|
|
|
30019
|
+
| `xlsx_splitter` | Object | **Excel(xlsx)文件切分策略配置**,仅当处理 Excel 文件时有效 |
|
|
30020
|
+
| `common_splitter` | Object | **通用文件(如 txt、pdf 等)切分策略配置**,按页或按标签切分 |
|
|
30021
|
+
| `table_style` | String | 表格内容的输出格式,如 HTML 或 Markdown |
|
|
30022
|
+
|
|
30023
|
+
---
|
|
30024
|
+
|
|
30025
|
+
## `xlsx_splitter`(Excel 切分策略)
|
|
30026
|
+
|
|
30027
|
+
用于配置 **表格文件的切分方式**。
|
|
30028
|
+
**类型:Object**
|
|
30029
|
+
|
|
30030
|
+
```json
|
|
30031
|
+
"xlsx_splitter": {
|
|
30032
|
+
"header_interval": [1, 2],
|
|
30033
|
+
"content_start": 10,
|
|
30034
|
+
"split_row": 2
|
|
30035
|
+
}
|
|
30036
|
+
```
|
|
30037
|
+
|
|
30038
|
+
### 字段说明:
|
|
30039
|
+
|
|
30040
|
+
| 字段名 | 类型 | 说明 |
|
|
30041
|
+
|-------------------|--------|----------------------------------------------------------------------|
|
|
30042
|
+
| `header_interval` | Array\<Number\> | 表头所在的行区间,格式为 `[起始行, 结束行]`,**行号从 1 开始计数**。例如 `[1, 2]` 表示第 1~2 行为表头。 |
|
|
30043
|
+
| `content_start` | Number | **表格内容的起始行号(从 1 开始)**。 |
|
|
30044
|
+
| `split_row` | Number | **切分行数**。 |
|
|
30045
|
+
|
|
30046
|
+
---
|
|
30047
|
+
## `common_splitter`(通用文件切分策略)
|
|
30048
|
+
|
|
30049
|
+
用于配置 **非 Excel 文件(如 TXT、PDF、DOCX 等)的切分方式**,支持两种策略:**按页切分(page)** 或 **按标识符切分(tag)**。
|
|
30050
|
+
|
|
30051
|
+
**类型:Object**
|
|
30052
|
+
|
|
30053
|
+
```json
|
|
30054
|
+
"common_splitter": {
|
|
30055
|
+
"splitter": "page",
|
|
30056
|
+
"page_splitter": {
|
|
30057
|
+
"chunk_length": 1000,
|
|
30058
|
+
"chunk_overlap_length": 100
|
|
30059
|
+
}
|
|
30060
|
+
}
|
|
30061
|
+
```
|
|
30062
|
+
|
|
30063
|
+
### 字段说明:
|
|
30064
|
+
|
|
30065
|
+
| 字段名 | 类型 | 说明 |
|
|
30066
|
+
|-------------------|--------|---------------------------------------------------|
|
|
30067
|
+
| `splitter` | String | 切分策略类型,可选值为:`"page"`(按页切分) 或 `"tag"`(按标识符切分)。 |
|
|
30068
|
+
| `page_splitter` | Object | **按页切分的配置**。 |
|
|
30069
|
+
| `page_splitter.chunk_length` | 1000 | **切片最大长度**。 |
|
|
30070
|
+
| `page_splitter.chunk_overlap_length` | 100 | **切片重叠长度**。 |
|
|
30071
|
+
| `tag_splitter` | Object | **自定义切分配置**。 |
|
|
30072
|
+
| `tag_splitter.tag` | Array\<String\> | **切分标识符**。 |
|
|
30073
|
+
| `tag_splitter.chunk_length`| Number | **切片最大长度**。 |
|
|
30074
|
+
| `tag_splitter.chunk_overlap_length` | Number | **切块重叠长度**。 |
|
|
30075
|
+
|
|
30076
|
+
🔹 **补充说明:**
|
|
30077
|
+
|
|
30078
|
+
- `splitter` 字段的值可以是:
|
|
30079
|
+
- `"page"`:只使用按页切分逻辑,此时只需要关心 `page_splitter` 相关字段。
|
|
30080
|
+
- `"tag"`:只使用按标识符(如分号、换行等)切分逻辑,此时关注 `tag_splitter`。
|
|
30081
|
+
---
|
|
30082
|
+
|
|
30083
|
+
## `table_style`(表格输出样式)
|
|
30084
|
+
|
|
30085
|
+
用于指定 **表格类内容(比如从 Excel 或 CSV 中提取的表格)最终以何种格式返回**,方便前端展示或后续处理。
|
|
30086
|
+
|
|
30087
|
+
**类型:String**
|
|
30088
|
+
|
|
30089
|
+
```json
|
|
30090
|
+
"table_style": "md"
|
|
30091
|
+
```
|
|
30092
|
+
|
|
30093
|
+
### 字段说明:
|
|
30094
|
+
|
|
30095
|
+
| 字段名 | 类型 | 说明 |
|
|
30096
|
+
|--------------|--------|----------------------------------------------------------------------|
|
|
30097
|
+
| `table_style` | String | 指定表格内容的输出格式。可用值:<br>• `"html"`:以 HTML 表格形式返回,适合网页展示。<br>• `"md"`:以 Markdown 表格语法返回,适合文档或 Markdown 渲染环境。|
|
|
30098
|
+
:rtype: str
|
|
30099
|
+
"""
|
|
30100
|
+
return self._SplitRule
|
|
30101
|
+
|
|
30102
|
+
@SplitRule.setter
|
|
30103
|
+
def SplitRule(self, SplitRule):
|
|
30104
|
+
self._SplitRule = SplitRule
|
|
30105
|
+
|
|
30106
|
+
@property
|
|
30107
|
+
def UpdatePeriodInfo(self):
|
|
30108
|
+
"""文档更新频率
|
|
30109
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.UpdatePeriodInfo`
|
|
30110
|
+
"""
|
|
30111
|
+
return self._UpdatePeriodInfo
|
|
30112
|
+
|
|
30113
|
+
@UpdatePeriodInfo.setter
|
|
30114
|
+
def UpdatePeriodInfo(self, UpdatePeriodInfo):
|
|
30115
|
+
self._UpdatePeriodInfo = UpdatePeriodInfo
|
|
30116
|
+
|
|
28437
30117
|
|
|
28438
30118
|
def _deserialize(self, params):
|
|
28439
30119
|
self._BotBizId = params.get("BotBizId")
|
|
@@ -28465,6 +30145,10 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
|
28465
30145
|
obj = DuplicateFileHandle()
|
|
28466
30146
|
obj._deserialize(item)
|
|
28467
30147
|
self._DuplicateFileHandles.append(obj)
|
|
30148
|
+
self._SplitRule = params.get("SplitRule")
|
|
30149
|
+
if params.get("UpdatePeriodInfo") is not None:
|
|
30150
|
+
self._UpdatePeriodInfo = UpdatePeriodInfo()
|
|
30151
|
+
self._UpdatePeriodInfo._deserialize(params.get("UpdatePeriodInfo"))
|
|
28468
30152
|
memeber_set = set(params.keys())
|
|
28469
30153
|
for name, value in vars(self).items():
|
|
28470
30154
|
property_name = name[1:]
|
|
@@ -28648,12 +30332,24 @@ class SearchStrategy(AbstractModel):
|
|
|
28648
30332
|
:param _StrategyType: 检索策略类型 0:混合检索,1:语义检索
|
|
28649
30333
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
28650
30334
|
:type StrategyType: int
|
|
28651
|
-
:param _TableEnhancement: Excel
|
|
30335
|
+
:param _TableEnhancement: Excel检索增强开关, false关闭,true打开
|
|
28652
30336
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
28653
30337
|
:type TableEnhancement: bool
|
|
30338
|
+
:param _EmbeddingModel: 向量模型
|
|
30339
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30340
|
+
:type EmbeddingModel: str
|
|
30341
|
+
:param _RerankModelSwitch: 结果重排序开关, on打开,off关闭
|
|
30342
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30343
|
+
:type RerankModelSwitch: str
|
|
30344
|
+
:param _RerankModel: 结果重排序模型
|
|
30345
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30346
|
+
:type RerankModel: str
|
|
28654
30347
|
"""
|
|
28655
30348
|
self._StrategyType = None
|
|
28656
30349
|
self._TableEnhancement = None
|
|
30350
|
+
self._EmbeddingModel = None
|
|
30351
|
+
self._RerankModelSwitch = None
|
|
30352
|
+
self._RerankModel = None
|
|
28657
30353
|
|
|
28658
30354
|
@property
|
|
28659
30355
|
def StrategyType(self):
|
|
@@ -28669,7 +30365,7 @@ class SearchStrategy(AbstractModel):
|
|
|
28669
30365
|
|
|
28670
30366
|
@property
|
|
28671
30367
|
def TableEnhancement(self):
|
|
28672
|
-
"""Excel
|
|
30368
|
+
"""Excel检索增强开关, false关闭,true打开
|
|
28673
30369
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
28674
30370
|
:rtype: bool
|
|
28675
30371
|
"""
|
|
@@ -28679,10 +30375,49 @@ class SearchStrategy(AbstractModel):
|
|
|
28679
30375
|
def TableEnhancement(self, TableEnhancement):
|
|
28680
30376
|
self._TableEnhancement = TableEnhancement
|
|
28681
30377
|
|
|
30378
|
+
@property
|
|
30379
|
+
def EmbeddingModel(self):
|
|
30380
|
+
"""向量模型
|
|
30381
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30382
|
+
:rtype: str
|
|
30383
|
+
"""
|
|
30384
|
+
return self._EmbeddingModel
|
|
30385
|
+
|
|
30386
|
+
@EmbeddingModel.setter
|
|
30387
|
+
def EmbeddingModel(self, EmbeddingModel):
|
|
30388
|
+
self._EmbeddingModel = EmbeddingModel
|
|
30389
|
+
|
|
30390
|
+
@property
|
|
30391
|
+
def RerankModelSwitch(self):
|
|
30392
|
+
"""结果重排序开关, on打开,off关闭
|
|
30393
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30394
|
+
:rtype: str
|
|
30395
|
+
"""
|
|
30396
|
+
return self._RerankModelSwitch
|
|
30397
|
+
|
|
30398
|
+
@RerankModelSwitch.setter
|
|
30399
|
+
def RerankModelSwitch(self, RerankModelSwitch):
|
|
30400
|
+
self._RerankModelSwitch = RerankModelSwitch
|
|
30401
|
+
|
|
30402
|
+
@property
|
|
30403
|
+
def RerankModel(self):
|
|
30404
|
+
"""结果重排序模型
|
|
30405
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30406
|
+
:rtype: str
|
|
30407
|
+
"""
|
|
30408
|
+
return self._RerankModel
|
|
30409
|
+
|
|
30410
|
+
@RerankModel.setter
|
|
30411
|
+
def RerankModel(self, RerankModel):
|
|
30412
|
+
self._RerankModel = RerankModel
|
|
30413
|
+
|
|
28682
30414
|
|
|
28683
30415
|
def _deserialize(self, params):
|
|
28684
30416
|
self._StrategyType = params.get("StrategyType")
|
|
28685
30417
|
self._TableEnhancement = params.get("TableEnhancement")
|
|
30418
|
+
self._EmbeddingModel = params.get("EmbeddingModel")
|
|
30419
|
+
self._RerankModelSwitch = params.get("RerankModelSwitch")
|
|
30420
|
+
self._RerankModel = params.get("RerankModel")
|
|
28686
30421
|
memeber_set = set(params.keys())
|
|
28687
30422
|
for name, value in vars(self).items():
|
|
28688
30423
|
property_name = name[1:]
|
|
@@ -28701,16 +30436,39 @@ class ShareKnowledgeBase(AbstractModel):
|
|
|
28701
30436
|
def __init__(self):
|
|
28702
30437
|
r"""
|
|
28703
30438
|
:param _KnowledgeBizId: 共享知识库ID
|
|
30439
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
28704
30440
|
:type KnowledgeBizId: str
|
|
28705
30441
|
:param _SearchRange: 检索范围
|
|
30442
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
28706
30443
|
:type SearchRange: :class:`tencentcloud.lke.v20231130.models.SearchRange`
|
|
30444
|
+
:param _KnowledgeModelConfig: 知识库模型设置
|
|
30445
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30446
|
+
:type KnowledgeModelConfig: :class:`tencentcloud.lke.v20231130.models.KnowledgeModelConfig`
|
|
30447
|
+
:param _SearchStrategy: 检索策略配置
|
|
30448
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30449
|
+
:type SearchStrategy: :class:`tencentcloud.lke.v20231130.models.SearchStrategy`
|
|
30450
|
+
:param _Search: 检索配置
|
|
30451
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30452
|
+
:type Search: list of KnowledgeQaSearch
|
|
30453
|
+
:param _ReplyFlexibility: // 问答-回复灵活度 1:已采纳答案直接回复 2:已采纳润色后回复
|
|
30454
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30455
|
+
:type ReplyFlexibility: int
|
|
30456
|
+
:param _KnowledgeName: 共享知识库名称
|
|
30457
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30458
|
+
:type KnowledgeName: str
|
|
28707
30459
|
"""
|
|
28708
30460
|
self._KnowledgeBizId = None
|
|
28709
30461
|
self._SearchRange = None
|
|
30462
|
+
self._KnowledgeModelConfig = None
|
|
30463
|
+
self._SearchStrategy = None
|
|
30464
|
+
self._Search = None
|
|
30465
|
+
self._ReplyFlexibility = None
|
|
30466
|
+
self._KnowledgeName = None
|
|
28710
30467
|
|
|
28711
30468
|
@property
|
|
28712
30469
|
def KnowledgeBizId(self):
|
|
28713
30470
|
"""共享知识库ID
|
|
30471
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
28714
30472
|
:rtype: str
|
|
28715
30473
|
"""
|
|
28716
30474
|
return self._KnowledgeBizId
|
|
@@ -28722,6 +30480,7 @@ class ShareKnowledgeBase(AbstractModel):
|
|
|
28722
30480
|
@property
|
|
28723
30481
|
def SearchRange(self):
|
|
28724
30482
|
"""检索范围
|
|
30483
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
28725
30484
|
:rtype: :class:`tencentcloud.lke.v20231130.models.SearchRange`
|
|
28726
30485
|
"""
|
|
28727
30486
|
return self._SearchRange
|
|
@@ -28730,12 +30489,86 @@ class ShareKnowledgeBase(AbstractModel):
|
|
|
28730
30489
|
def SearchRange(self, SearchRange):
|
|
28731
30490
|
self._SearchRange = SearchRange
|
|
28732
30491
|
|
|
30492
|
+
@property
|
|
30493
|
+
def KnowledgeModelConfig(self):
|
|
30494
|
+
"""知识库模型设置
|
|
30495
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30496
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.KnowledgeModelConfig`
|
|
30497
|
+
"""
|
|
30498
|
+
return self._KnowledgeModelConfig
|
|
30499
|
+
|
|
30500
|
+
@KnowledgeModelConfig.setter
|
|
30501
|
+
def KnowledgeModelConfig(self, KnowledgeModelConfig):
|
|
30502
|
+
self._KnowledgeModelConfig = KnowledgeModelConfig
|
|
30503
|
+
|
|
30504
|
+
@property
|
|
30505
|
+
def SearchStrategy(self):
|
|
30506
|
+
"""检索策略配置
|
|
30507
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30508
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.SearchStrategy`
|
|
30509
|
+
"""
|
|
30510
|
+
return self._SearchStrategy
|
|
30511
|
+
|
|
30512
|
+
@SearchStrategy.setter
|
|
30513
|
+
def SearchStrategy(self, SearchStrategy):
|
|
30514
|
+
self._SearchStrategy = SearchStrategy
|
|
30515
|
+
|
|
30516
|
+
@property
|
|
30517
|
+
def Search(self):
|
|
30518
|
+
"""检索配置
|
|
30519
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30520
|
+
:rtype: list of KnowledgeQaSearch
|
|
30521
|
+
"""
|
|
30522
|
+
return self._Search
|
|
30523
|
+
|
|
30524
|
+
@Search.setter
|
|
30525
|
+
def Search(self, Search):
|
|
30526
|
+
self._Search = Search
|
|
30527
|
+
|
|
30528
|
+
@property
|
|
30529
|
+
def ReplyFlexibility(self):
|
|
30530
|
+
"""// 问答-回复灵活度 1:已采纳答案直接回复 2:已采纳润色后回复
|
|
30531
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30532
|
+
:rtype: int
|
|
30533
|
+
"""
|
|
30534
|
+
return self._ReplyFlexibility
|
|
30535
|
+
|
|
30536
|
+
@ReplyFlexibility.setter
|
|
30537
|
+
def ReplyFlexibility(self, ReplyFlexibility):
|
|
30538
|
+
self._ReplyFlexibility = ReplyFlexibility
|
|
30539
|
+
|
|
30540
|
+
@property
|
|
30541
|
+
def KnowledgeName(self):
|
|
30542
|
+
"""共享知识库名称
|
|
30543
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30544
|
+
:rtype: str
|
|
30545
|
+
"""
|
|
30546
|
+
return self._KnowledgeName
|
|
30547
|
+
|
|
30548
|
+
@KnowledgeName.setter
|
|
30549
|
+
def KnowledgeName(self, KnowledgeName):
|
|
30550
|
+
self._KnowledgeName = KnowledgeName
|
|
30551
|
+
|
|
28733
30552
|
|
|
28734
30553
|
def _deserialize(self, params):
|
|
28735
30554
|
self._KnowledgeBizId = params.get("KnowledgeBizId")
|
|
28736
30555
|
if params.get("SearchRange") is not None:
|
|
28737
30556
|
self._SearchRange = SearchRange()
|
|
28738
30557
|
self._SearchRange._deserialize(params.get("SearchRange"))
|
|
30558
|
+
if params.get("KnowledgeModelConfig") is not None:
|
|
30559
|
+
self._KnowledgeModelConfig = KnowledgeModelConfig()
|
|
30560
|
+
self._KnowledgeModelConfig._deserialize(params.get("KnowledgeModelConfig"))
|
|
30561
|
+
if params.get("SearchStrategy") is not None:
|
|
30562
|
+
self._SearchStrategy = SearchStrategy()
|
|
30563
|
+
self._SearchStrategy._deserialize(params.get("SearchStrategy"))
|
|
30564
|
+
if params.get("Search") is not None:
|
|
30565
|
+
self._Search = []
|
|
30566
|
+
for item in params.get("Search"):
|
|
30567
|
+
obj = KnowledgeQaSearch()
|
|
30568
|
+
obj._deserialize(item)
|
|
30569
|
+
self._Search.append(obj)
|
|
30570
|
+
self._ReplyFlexibility = params.get("ReplyFlexibility")
|
|
30571
|
+
self._KnowledgeName = params.get("KnowledgeName")
|
|
28739
30572
|
memeber_set = set(params.keys())
|
|
28740
30573
|
for name, value in vars(self).items():
|
|
28741
30574
|
property_name = name[1:]
|
|
@@ -29440,6 +31273,8 @@ class TaskFLowVar(AbstractModel):
|
|
|
29440
31273
|
:type VarDefaultValue: str
|
|
29441
31274
|
:param _VarDefaultFileName: 自定义变量文件默认名称
|
|
29442
31275
|
:type VarDefaultFileName: str
|
|
31276
|
+
:param _VarModuleType: 变量类型
|
|
31277
|
+
:type VarModuleType: int
|
|
29443
31278
|
"""
|
|
29444
31279
|
self._VarId = None
|
|
29445
31280
|
self._VarName = None
|
|
@@ -29447,6 +31282,7 @@ class TaskFLowVar(AbstractModel):
|
|
|
29447
31282
|
self._VarType = None
|
|
29448
31283
|
self._VarDefaultValue = None
|
|
29449
31284
|
self._VarDefaultFileName = None
|
|
31285
|
+
self._VarModuleType = None
|
|
29450
31286
|
|
|
29451
31287
|
@property
|
|
29452
31288
|
def VarId(self):
|
|
@@ -29517,6 +31353,17 @@ class TaskFLowVar(AbstractModel):
|
|
|
29517
31353
|
def VarDefaultFileName(self, VarDefaultFileName):
|
|
29518
31354
|
self._VarDefaultFileName = VarDefaultFileName
|
|
29519
31355
|
|
|
31356
|
+
@property
|
|
31357
|
+
def VarModuleType(self):
|
|
31358
|
+
"""变量类型
|
|
31359
|
+
:rtype: int
|
|
31360
|
+
"""
|
|
31361
|
+
return self._VarModuleType
|
|
31362
|
+
|
|
31363
|
+
@VarModuleType.setter
|
|
31364
|
+
def VarModuleType(self, VarModuleType):
|
|
31365
|
+
self._VarModuleType = VarModuleType
|
|
31366
|
+
|
|
29520
31367
|
|
|
29521
31368
|
def _deserialize(self, params):
|
|
29522
31369
|
self._VarId = params.get("VarId")
|
|
@@ -29525,6 +31372,7 @@ class TaskFLowVar(AbstractModel):
|
|
|
29525
31372
|
self._VarType = params.get("VarType")
|
|
29526
31373
|
self._VarDefaultValue = params.get("VarDefaultValue")
|
|
29527
31374
|
self._VarDefaultFileName = params.get("VarDefaultFileName")
|
|
31375
|
+
self._VarModuleType = params.get("VarModuleType")
|
|
29528
31376
|
memeber_set = set(params.keys())
|
|
29529
31377
|
for name, value in vars(self).items():
|
|
29530
31378
|
property_name = name[1:]
|
|
@@ -30122,6 +31970,44 @@ class UnsatisfiedReply(AbstractModel):
|
|
|
30122
31970
|
|
|
30123
31971
|
|
|
30124
31972
|
|
|
31973
|
+
class UpdatePeriodInfo(AbstractModel):
|
|
31974
|
+
"""更新时间策略
|
|
31975
|
+
|
|
31976
|
+
"""
|
|
31977
|
+
|
|
31978
|
+
def __init__(self):
|
|
31979
|
+
r"""
|
|
31980
|
+
:param _UpdatePeriodH: 文档更新频率类型:0不更新 -H 小时粒度,当前仅支持24(1天),72(3天),168(7天) 仅source=2 腾讯文档类型有效
|
|
31981
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31982
|
+
:type UpdatePeriodH: int
|
|
31983
|
+
"""
|
|
31984
|
+
self._UpdatePeriodH = None
|
|
31985
|
+
|
|
31986
|
+
@property
|
|
31987
|
+
def UpdatePeriodH(self):
|
|
31988
|
+
"""文档更新频率类型:0不更新 -H 小时粒度,当前仅支持24(1天),72(3天),168(7天) 仅source=2 腾讯文档类型有效
|
|
31989
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31990
|
+
:rtype: int
|
|
31991
|
+
"""
|
|
31992
|
+
return self._UpdatePeriodH
|
|
31993
|
+
|
|
31994
|
+
@UpdatePeriodH.setter
|
|
31995
|
+
def UpdatePeriodH(self, UpdatePeriodH):
|
|
31996
|
+
self._UpdatePeriodH = UpdatePeriodH
|
|
31997
|
+
|
|
31998
|
+
|
|
31999
|
+
def _deserialize(self, params):
|
|
32000
|
+
self._UpdatePeriodH = params.get("UpdatePeriodH")
|
|
32001
|
+
memeber_set = set(params.keys())
|
|
32002
|
+
for name, value in vars(self).items():
|
|
32003
|
+
property_name = name[1:]
|
|
32004
|
+
if property_name in memeber_set:
|
|
32005
|
+
memeber_set.remove(property_name)
|
|
32006
|
+
if len(memeber_set) > 0:
|
|
32007
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
32008
|
+
|
|
32009
|
+
|
|
32010
|
+
|
|
30125
32011
|
class UpdateSharedKnowledgeRequest(AbstractModel):
|
|
30126
32012
|
"""UpdateSharedKnowledge请求参数结构体
|
|
30127
32013
|
|
|
@@ -30239,6 +32125,8 @@ class UpdateVarRequest(AbstractModel):
|
|
|
30239
32125
|
:type VarDefaultValue: str
|
|
30240
32126
|
:param _VarDefaultFileName: 自定义变量文件默认名称
|
|
30241
32127
|
:type VarDefaultFileName: str
|
|
32128
|
+
:param _VarModuleType: 变量类型
|
|
32129
|
+
:type VarModuleType: int
|
|
30242
32130
|
"""
|
|
30243
32131
|
self._AppBizId = None
|
|
30244
32132
|
self._VarId = None
|
|
@@ -30247,6 +32135,7 @@ class UpdateVarRequest(AbstractModel):
|
|
|
30247
32135
|
self._VarType = None
|
|
30248
32136
|
self._VarDefaultValue = None
|
|
30249
32137
|
self._VarDefaultFileName = None
|
|
32138
|
+
self._VarModuleType = None
|
|
30250
32139
|
|
|
30251
32140
|
@property
|
|
30252
32141
|
def AppBizId(self):
|
|
@@ -30325,6 +32214,17 @@ class UpdateVarRequest(AbstractModel):
|
|
|
30325
32214
|
def VarDefaultFileName(self, VarDefaultFileName):
|
|
30326
32215
|
self._VarDefaultFileName = VarDefaultFileName
|
|
30327
32216
|
|
|
32217
|
+
@property
|
|
32218
|
+
def VarModuleType(self):
|
|
32219
|
+
"""变量类型
|
|
32220
|
+
:rtype: int
|
|
32221
|
+
"""
|
|
32222
|
+
return self._VarModuleType
|
|
32223
|
+
|
|
32224
|
+
@VarModuleType.setter
|
|
32225
|
+
def VarModuleType(self, VarModuleType):
|
|
32226
|
+
self._VarModuleType = VarModuleType
|
|
32227
|
+
|
|
30328
32228
|
|
|
30329
32229
|
def _deserialize(self, params):
|
|
30330
32230
|
self._AppBizId = params.get("AppBizId")
|
|
@@ -30334,6 +32234,7 @@ class UpdateVarRequest(AbstractModel):
|
|
|
30334
32234
|
self._VarType = params.get("VarType")
|
|
30335
32235
|
self._VarDefaultValue = params.get("VarDefaultValue")
|
|
30336
32236
|
self._VarDefaultFileName = params.get("VarDefaultFileName")
|
|
32237
|
+
self._VarModuleType = params.get("VarModuleType")
|
|
30337
32238
|
memeber_set = set(params.keys())
|
|
30338
32239
|
for name, value in vars(self).items():
|
|
30339
32240
|
property_name = name[1:]
|
|
@@ -31010,6 +32911,10 @@ class WorkFlowSummary(AbstractModel):
|
|
|
31010
32911
|
:param _WorkflowReleaseTime: 工作流发布时间,unix时间戳
|
|
31011
32912
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
31012
32913
|
:type WorkflowReleaseTime: str
|
|
32914
|
+
:param _PendingMessages: 中间消息
|
|
32915
|
+
:type PendingMessages: list of str
|
|
32916
|
+
:param _OptionCardIndex: 选项卡索引
|
|
32917
|
+
:type OptionCardIndex: :class:`tencentcloud.lke.v20231130.models.OptionCardIndex`
|
|
31013
32918
|
"""
|
|
31014
32919
|
self._WorkflowId = None
|
|
31015
32920
|
self._WorkflowName = None
|
|
@@ -31018,6 +32923,8 @@ class WorkFlowSummary(AbstractModel):
|
|
|
31018
32923
|
self._OptionCards = None
|
|
31019
32924
|
self._Outputs = None
|
|
31020
32925
|
self._WorkflowReleaseTime = None
|
|
32926
|
+
self._PendingMessages = None
|
|
32927
|
+
self._OptionCardIndex = None
|
|
31021
32928
|
|
|
31022
32929
|
@property
|
|
31023
32930
|
def WorkflowId(self):
|
|
@@ -31103,6 +33010,28 @@ class WorkFlowSummary(AbstractModel):
|
|
|
31103
33010
|
def WorkflowReleaseTime(self, WorkflowReleaseTime):
|
|
31104
33011
|
self._WorkflowReleaseTime = WorkflowReleaseTime
|
|
31105
33012
|
|
|
33013
|
+
@property
|
|
33014
|
+
def PendingMessages(self):
|
|
33015
|
+
"""中间消息
|
|
33016
|
+
:rtype: list of str
|
|
33017
|
+
"""
|
|
33018
|
+
return self._PendingMessages
|
|
33019
|
+
|
|
33020
|
+
@PendingMessages.setter
|
|
33021
|
+
def PendingMessages(self, PendingMessages):
|
|
33022
|
+
self._PendingMessages = PendingMessages
|
|
33023
|
+
|
|
33024
|
+
@property
|
|
33025
|
+
def OptionCardIndex(self):
|
|
33026
|
+
"""选项卡索引
|
|
33027
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.OptionCardIndex`
|
|
33028
|
+
"""
|
|
33029
|
+
return self._OptionCardIndex
|
|
33030
|
+
|
|
33031
|
+
@OptionCardIndex.setter
|
|
33032
|
+
def OptionCardIndex(self, OptionCardIndex):
|
|
33033
|
+
self._OptionCardIndex = OptionCardIndex
|
|
33034
|
+
|
|
31106
33035
|
|
|
31107
33036
|
def _deserialize(self, params):
|
|
31108
33037
|
self._WorkflowId = params.get("WorkflowId")
|
|
@@ -31117,6 +33046,10 @@ class WorkFlowSummary(AbstractModel):
|
|
|
31117
33046
|
self._OptionCards = params.get("OptionCards")
|
|
31118
33047
|
self._Outputs = params.get("Outputs")
|
|
31119
33048
|
self._WorkflowReleaseTime = params.get("WorkflowReleaseTime")
|
|
33049
|
+
self._PendingMessages = params.get("PendingMessages")
|
|
33050
|
+
if params.get("OptionCardIndex") is not None:
|
|
33051
|
+
self._OptionCardIndex = OptionCardIndex()
|
|
33052
|
+
self._OptionCardIndex._deserialize(params.get("OptionCardIndex"))
|
|
31120
33053
|
memeber_set = set(params.keys())
|
|
31121
33054
|
for name, value in vars(self).items():
|
|
31122
33055
|
property_name = name[1:]
|
|
@@ -31549,6 +33482,8 @@ class WorkflowRunDetail(AbstractModel):
|
|
|
31549
33482
|
:type WorkflowId: str
|
|
31550
33483
|
:param _Name: 名称
|
|
31551
33484
|
:type Name: str
|
|
33485
|
+
:param _Output: 工作流输出
|
|
33486
|
+
:type Output: str
|
|
31552
33487
|
:param _State: 运行状态。0: 排队中;1: 运行中;2: 运行成功;3: 运行失败; 4: 已取消
|
|
31553
33488
|
:type State: int
|
|
31554
33489
|
:param _FailMessage: 错误信息
|
|
@@ -31575,6 +33510,7 @@ class WorkflowRunDetail(AbstractModel):
|
|
|
31575
33510
|
self._WorkflowRunId = None
|
|
31576
33511
|
self._WorkflowId = None
|
|
31577
33512
|
self._Name = None
|
|
33513
|
+
self._Output = None
|
|
31578
33514
|
self._State = None
|
|
31579
33515
|
self._FailMessage = None
|
|
31580
33516
|
self._TotalTokens = None
|
|
@@ -31641,6 +33577,17 @@ class WorkflowRunDetail(AbstractModel):
|
|
|
31641
33577
|
def Name(self, Name):
|
|
31642
33578
|
self._Name = Name
|
|
31643
33579
|
|
|
33580
|
+
@property
|
|
33581
|
+
def Output(self):
|
|
33582
|
+
"""工作流输出
|
|
33583
|
+
:rtype: str
|
|
33584
|
+
"""
|
|
33585
|
+
return self._Output
|
|
33586
|
+
|
|
33587
|
+
@Output.setter
|
|
33588
|
+
def Output(self, Output):
|
|
33589
|
+
self._Output = Output
|
|
33590
|
+
|
|
31644
33591
|
@property
|
|
31645
33592
|
def State(self):
|
|
31646
33593
|
"""运行状态。0: 排队中;1: 运行中;2: 运行成功;3: 运行失败; 4: 已取消
|
|
@@ -31758,6 +33705,7 @@ class WorkflowRunDetail(AbstractModel):
|
|
|
31758
33705
|
self._WorkflowRunId = params.get("WorkflowRunId")
|
|
31759
33706
|
self._WorkflowId = params.get("WorkflowId")
|
|
31760
33707
|
self._Name = params.get("Name")
|
|
33708
|
+
self._Output = params.get("Output")
|
|
31761
33709
|
self._State = params.get("State")
|
|
31762
33710
|
self._FailMessage = params.get("FailMessage")
|
|
31763
33711
|
self._TotalTokens = params.get("TotalTokens")
|