tencentcloud-sdk-python-dataagent 3.1.115__tar.gz → 3.1.134__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/setup.py +1 -1
  3. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud/dataagent/v20250513/dataagent_client.py +41 -0
  5. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud/dataagent/v20250513/dataagent_client_async.py +36 -0
  6. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud/dataagent/v20250513/models.py +233 -0
  7. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud_sdk_python_dataagent.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_dataagent-3.1.134/tencentcloud_sdk_python_dataagent.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_dataagent-3.1.115/tencentcloud_sdk_python_dataagent.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/README.rst +0 -0
  11. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud/dataagent/__init__.py +0 -0
  13. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud/dataagent/v20250513/__init__.py +0 -0
  14. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud/dataagent/v20250513/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud_sdk_python_dataagent.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud_sdk_python_dataagent.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.134}/tencentcloud_sdk_python_dataagent.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dataagent
3
- Version: 3.1.115
3
+ Version: 3.1.134
4
4
  Summary: Tencent Cloud Dataagent SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.115
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.134
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-dataagent',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.115,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.134,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Dataagent SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.115'
17
+ __version__ = '3.1.134'
@@ -205,6 +205,47 @@ class DataagentClient(AbstractClient):
205
205
  raise TencentCloudSDKException(type(e).__name__, str(e))
206
206
 
207
207
 
208
+ def ExecuteAgentApi(self, request):
209
+ r"""执行datateam相关的命令行请求
210
+
211
+ :param request: Request instance for ExecuteAgentApi.
212
+ :type request: :class:`tencentcloud.dataagent.v20250513.models.ExecuteAgentApiRequest`
213
+ :rtype: :class:`tencentcloud.dataagent.v20250513.models.ExecuteAgentApiResponse`
214
+
215
+ """
216
+ try:
217
+ params = request._serialize()
218
+ headers = request.headers
219
+ body = self.call("ExecuteAgentApi", params, headers=headers)
220
+ response = json.loads(body)
221
+ model = models.ExecuteAgentApiResponse()
222
+ model._deserialize(response["Response"])
223
+ return model
224
+ except Exception as e:
225
+ if isinstance(e, TencentCloudSDKException):
226
+ raise
227
+ else:
228
+ raise TencentCloudSDKException(type(e).__name__, str(e))
229
+
230
+
231
+ def ExecuteAgentApiV1(self, request):
232
+ r"""执行datateam相关的命令行请求
233
+
234
+ :param request: Request instance for ExecuteAgentApiV1.
235
+ :type request: :class:`tencentcloud.dataagent.v20250513.models.ExecuteAgentApiV1Request`
236
+ :rtype: :class:`tencentcloud.dataagent.v20250513.models.ExecuteAgentApiV1Response`
237
+
238
+ """
239
+ try:
240
+ params = request._serialize()
241
+ return self._call_and_deserialize("ExecuteAgentApiV1", params, models.ExecuteAgentApiV1Response, headers=request.headers)
242
+ except Exception as e:
243
+ if isinstance(e, TencentCloudSDKException):
244
+ raise
245
+ else:
246
+ raise TencentCloudSDKException(type(e).__name__, str(e))
247
+
248
+
208
249
  def GetJobsByKnowledgeBaseId(self, request):
209
250
  r"""根据知识库id查询jobs 列表
210
251
 
@@ -169,6 +169,42 @@ class DataagentClient(AbstractClient):
169
169
 
170
170
  return await self.call_and_deserialize(**kwargs)
171
171
 
172
+ async def ExecuteAgentApi(
173
+ self,
174
+ request: models.ExecuteAgentApiRequest,
175
+ opts: Dict = None,
176
+ ) -> models.ExecuteAgentApiResponse:
177
+ """
178
+ 执行datateam相关的命令行请求
179
+ """
180
+
181
+ kwargs = {}
182
+ kwargs["action"] = "ExecuteAgentApi"
183
+ kwargs["params"] = request._serialize()
184
+ kwargs["resp_cls"] = models.ExecuteAgentApiResponse
185
+ kwargs["headers"] = request.headers
186
+ kwargs["opts"] = opts or {}
187
+
188
+ return await self.call_and_deserialize(**kwargs)
189
+
190
+ async def ExecuteAgentApiV1(
191
+ self,
192
+ request: models.ExecuteAgentApiV1Request,
193
+ opts: Dict = None,
194
+ ) -> models.ExecuteAgentApiV1Response:
195
+ """
196
+ 执行datateam相关的命令行请求
197
+ """
198
+
199
+ kwargs = {}
200
+ kwargs["action"] = "ExecuteAgentApiV1"
201
+ kwargs["params"] = request._serialize()
202
+ kwargs["resp_cls"] = models.ExecuteAgentApiV1Response
203
+ kwargs["headers"] = request.headers
204
+ kwargs["opts"] = opts or {}
205
+
206
+ return await self.call_and_deserialize(**kwargs)
207
+
172
208
  async def GetJobsByKnowledgeBaseId(
173
209
  self,
174
210
  request: models.GetJobsByKnowledgeBaseIdRequest,
@@ -535,6 +535,8 @@ class ChatAIRequest(AbstractModel):
535
535
  :type OldRecordId: str
536
536
  :param _KnowledgeBaseIds: <p>知识库id列表</p>
537
537
  :type KnowledgeBaseIds: list of str
538
+ :param _ArchVersion: <p>版本信息</p>
539
+ :type ArchVersion: str
538
540
  """
539
541
  self._SessionId = None
540
542
  self._InstanceId = None
@@ -546,6 +548,7 @@ class ChatAIRequest(AbstractModel):
546
548
  self._AgentType = None
547
549
  self._OldRecordId = None
548
550
  self._KnowledgeBaseIds = None
551
+ self._ArchVersion = None
549
552
 
550
553
  @property
551
554
  def SessionId(self):
@@ -657,6 +660,17 @@ class ChatAIRequest(AbstractModel):
657
660
  def KnowledgeBaseIds(self, KnowledgeBaseIds):
658
661
  self._KnowledgeBaseIds = KnowledgeBaseIds
659
662
 
663
+ @property
664
+ def ArchVersion(self):
665
+ r"""<p>版本信息</p>
666
+ :rtype: str
667
+ """
668
+ return self._ArchVersion
669
+
670
+ @ArchVersion.setter
671
+ def ArchVersion(self, ArchVersion):
672
+ self._ArchVersion = ArchVersion
673
+
660
674
 
661
675
  def _deserialize(self, params):
662
676
  self._SessionId = params.get("SessionId")
@@ -669,6 +683,7 @@ class ChatAIRequest(AbstractModel):
669
683
  self._AgentType = params.get("AgentType")
670
684
  self._OldRecordId = params.get("OldRecordId")
671
685
  self._KnowledgeBaseIds = params.get("KnowledgeBaseIds")
686
+ self._ArchVersion = params.get("ArchVersion")
672
687
  memeber_set = set(params.keys())
673
688
  for name, value in vars(self).items():
674
689
  property_name = name[1:]
@@ -1467,6 +1482,224 @@ class ExampleQA(AbstractModel):
1467
1482
 
1468
1483
 
1469
1484
 
1485
+ class ExecuteAgentApiRequest(AbstractModel):
1486
+ r"""ExecuteAgentApi请求参数结构体
1487
+
1488
+ """
1489
+
1490
+ def __init__(self):
1491
+ r"""
1492
+ :param _RequestPath: <p>参数路径</p>
1493
+ :type RequestPath: str
1494
+ :param _RequestData: <p>参数值</p>
1495
+ :type RequestData: str
1496
+ :param _RequestType: <p>post还是get</p><p>枚举值:</p><ul><li>post: post请求</li><li>get: get请求</li></ul>
1497
+ :type RequestType: str
1498
+ """
1499
+ self._RequestPath = None
1500
+ self._RequestData = None
1501
+ self._RequestType = None
1502
+
1503
+ @property
1504
+ def RequestPath(self):
1505
+ r"""<p>参数路径</p>
1506
+ :rtype: str
1507
+ """
1508
+ return self._RequestPath
1509
+
1510
+ @RequestPath.setter
1511
+ def RequestPath(self, RequestPath):
1512
+ self._RequestPath = RequestPath
1513
+
1514
+ @property
1515
+ def RequestData(self):
1516
+ r"""<p>参数值</p>
1517
+ :rtype: str
1518
+ """
1519
+ return self._RequestData
1520
+
1521
+ @RequestData.setter
1522
+ def RequestData(self, RequestData):
1523
+ self._RequestData = RequestData
1524
+
1525
+ @property
1526
+ def RequestType(self):
1527
+ r"""<p>post还是get</p><p>枚举值:</p><ul><li>post: post请求</li><li>get: get请求</li></ul>
1528
+ :rtype: str
1529
+ """
1530
+ return self._RequestType
1531
+
1532
+ @RequestType.setter
1533
+ def RequestType(self, RequestType):
1534
+ self._RequestType = RequestType
1535
+
1536
+
1537
+ def _deserialize(self, params):
1538
+ self._RequestPath = params.get("RequestPath")
1539
+ self._RequestData = params.get("RequestData")
1540
+ self._RequestType = params.get("RequestType")
1541
+ memeber_set = set(params.keys())
1542
+ for name, value in vars(self).items():
1543
+ property_name = name[1:]
1544
+ if property_name in memeber_set:
1545
+ memeber_set.remove(property_name)
1546
+ if len(memeber_set) > 0:
1547
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1548
+
1549
+
1550
+
1551
+ class ExecuteAgentApiResponse(AbstractModel):
1552
+ r"""ExecuteAgentApi返回参数结构体
1553
+
1554
+ """
1555
+
1556
+ def __init__(self):
1557
+ r"""
1558
+ :param _RequestPath: <p>请求路径</p>
1559
+ :type RequestPath: str
1560
+ :param _AgentData: <p>返回的具体指</p>
1561
+ :type AgentData: str
1562
+ :param _ErrorMsg: <p>错误码信息</p>
1563
+ :type ErrorMsg: str
1564
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1565
+ :type RequestId: str
1566
+ """
1567
+ self._RequestPath = None
1568
+ self._AgentData = None
1569
+ self._ErrorMsg = None
1570
+ self._RequestId = None
1571
+
1572
+ @property
1573
+ def RequestPath(self):
1574
+ r"""<p>请求路径</p>
1575
+ :rtype: str
1576
+ """
1577
+ return self._RequestPath
1578
+
1579
+ @RequestPath.setter
1580
+ def RequestPath(self, RequestPath):
1581
+ self._RequestPath = RequestPath
1582
+
1583
+ @property
1584
+ def AgentData(self):
1585
+ r"""<p>返回的具体指</p>
1586
+ :rtype: str
1587
+ """
1588
+ return self._AgentData
1589
+
1590
+ @AgentData.setter
1591
+ def AgentData(self, AgentData):
1592
+ self._AgentData = AgentData
1593
+
1594
+ @property
1595
+ def ErrorMsg(self):
1596
+ r"""<p>错误码信息</p>
1597
+ :rtype: str
1598
+ """
1599
+ return self._ErrorMsg
1600
+
1601
+ @ErrorMsg.setter
1602
+ def ErrorMsg(self, ErrorMsg):
1603
+ self._ErrorMsg = ErrorMsg
1604
+
1605
+ @property
1606
+ def RequestId(self):
1607
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1608
+ :rtype: str
1609
+ """
1610
+ return self._RequestId
1611
+
1612
+ @RequestId.setter
1613
+ def RequestId(self, RequestId):
1614
+ self._RequestId = RequestId
1615
+
1616
+
1617
+ def _deserialize(self, params):
1618
+ self._RequestPath = params.get("RequestPath")
1619
+ self._AgentData = params.get("AgentData")
1620
+ self._ErrorMsg = params.get("ErrorMsg")
1621
+ self._RequestId = params.get("RequestId")
1622
+
1623
+
1624
+ class ExecuteAgentApiV1Request(AbstractModel):
1625
+ r"""ExecuteAgentApiV1请求参数结构体
1626
+
1627
+ """
1628
+
1629
+ def __init__(self):
1630
+ r"""
1631
+ :param _RequestPath: <p>参数路径</p>
1632
+ :type RequestPath: str
1633
+ :param _RequestType: <p>post还是get</p><p>枚举值:</p><ul><li>post: post请求</li><li>get: get请求</li></ul>
1634
+ :type RequestType: str
1635
+ """
1636
+ self._RequestPath = None
1637
+ self._RequestType = None
1638
+
1639
+ @property
1640
+ def RequestPath(self):
1641
+ r"""<p>参数路径</p>
1642
+ :rtype: str
1643
+ """
1644
+ return self._RequestPath
1645
+
1646
+ @RequestPath.setter
1647
+ def RequestPath(self, RequestPath):
1648
+ self._RequestPath = RequestPath
1649
+
1650
+ @property
1651
+ def RequestType(self):
1652
+ r"""<p>post还是get</p><p>枚举值:</p><ul><li>post: post请求</li><li>get: get请求</li></ul>
1653
+ :rtype: str
1654
+ """
1655
+ return self._RequestType
1656
+
1657
+ @RequestType.setter
1658
+ def RequestType(self, RequestType):
1659
+ self._RequestType = RequestType
1660
+
1661
+
1662
+ def _deserialize(self, params):
1663
+ self._RequestPath = params.get("RequestPath")
1664
+ self._RequestType = params.get("RequestType")
1665
+ memeber_set = set(params.keys())
1666
+ for name, value in vars(self).items():
1667
+ property_name = name[1:]
1668
+ if property_name in memeber_set:
1669
+ memeber_set.remove(property_name)
1670
+ if len(memeber_set) > 0:
1671
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1672
+
1673
+
1674
+
1675
+ class ExecuteAgentApiV1Response(AbstractModel):
1676
+ r"""ExecuteAgentApiV1返回参数结构体
1677
+
1678
+ """
1679
+
1680
+ def __init__(self):
1681
+ r"""
1682
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
1683
+ :type RequestId: str
1684
+ """
1685
+ self._RequestId = None
1686
+
1687
+ @property
1688
+ def RequestId(self):
1689
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
1690
+ :rtype: str
1691
+ """
1692
+ return self._RequestId
1693
+
1694
+ @RequestId.setter
1695
+ def RequestId(self, RequestId):
1696
+ self._RequestId = RequestId
1697
+
1698
+
1699
+ def _deserialize(self, params):
1700
+ self._RequestId = params.get("RequestId")
1701
+
1702
+
1470
1703
  class FileInfo(AbstractModel):
1471
1704
  r"""知识库文件信息
1472
1705
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dataagent
3
- Version: 3.1.115
3
+ Version: 3.1.134
4
4
  Summary: Tencent Cloud Dataagent SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.115
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.134
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.134
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.115