tencentcloud-sdk-python-dataagent 3.1.115__tar.gz → 3.1.125__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.125}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/setup.py +1 -1
  3. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/tencentcloud/dataagent/v20250513/dataagent_client.py +41 -0
  5. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/tencentcloud/dataagent/v20250513/dataagent_client_async.py +36 -0
  6. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/tencentcloud/dataagent/v20250513/models.py +218 -0
  7. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/tencentcloud_sdk_python_dataagent.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_dataagent-3.1.125/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.125}/README.rst +0 -0
  11. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/tencentcloud/dataagent/__init__.py +0 -0
  13. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/tencentcloud/dataagent/v20250513/__init__.py +0 -0
  14. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/tencentcloud/dataagent/v20250513/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/tencentcloud_sdk_python_dataagent.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_dataagent-3.1.115 → tencentcloud_sdk_python_dataagent-3.1.125}/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.125}/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.125
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.125
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.125,<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.125'
@@ -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,
@@ -1467,6 +1467,224 @@ class ExampleQA(AbstractModel):
1467
1467
 
1468
1468
 
1469
1469
 
1470
+ class ExecuteAgentApiRequest(AbstractModel):
1471
+ r"""ExecuteAgentApi请求参数结构体
1472
+
1473
+ """
1474
+
1475
+ def __init__(self):
1476
+ r"""
1477
+ :param _RequestPath: <p>参数路径</p>
1478
+ :type RequestPath: str
1479
+ :param _RequestData: <p>参数值</p>
1480
+ :type RequestData: str
1481
+ :param _RequestType: <p>post还是get</p><p>枚举值:</p><ul><li>post: post请求</li><li>get: get请求</li></ul>
1482
+ :type RequestType: str
1483
+ """
1484
+ self._RequestPath = None
1485
+ self._RequestData = None
1486
+ self._RequestType = None
1487
+
1488
+ @property
1489
+ def RequestPath(self):
1490
+ r"""<p>参数路径</p>
1491
+ :rtype: str
1492
+ """
1493
+ return self._RequestPath
1494
+
1495
+ @RequestPath.setter
1496
+ def RequestPath(self, RequestPath):
1497
+ self._RequestPath = RequestPath
1498
+
1499
+ @property
1500
+ def RequestData(self):
1501
+ r"""<p>参数值</p>
1502
+ :rtype: str
1503
+ """
1504
+ return self._RequestData
1505
+
1506
+ @RequestData.setter
1507
+ def RequestData(self, RequestData):
1508
+ self._RequestData = RequestData
1509
+
1510
+ @property
1511
+ def RequestType(self):
1512
+ r"""<p>post还是get</p><p>枚举值:</p><ul><li>post: post请求</li><li>get: get请求</li></ul>
1513
+ :rtype: str
1514
+ """
1515
+ return self._RequestType
1516
+
1517
+ @RequestType.setter
1518
+ def RequestType(self, RequestType):
1519
+ self._RequestType = RequestType
1520
+
1521
+
1522
+ def _deserialize(self, params):
1523
+ self._RequestPath = params.get("RequestPath")
1524
+ self._RequestData = params.get("RequestData")
1525
+ self._RequestType = params.get("RequestType")
1526
+ memeber_set = set(params.keys())
1527
+ for name, value in vars(self).items():
1528
+ property_name = name[1:]
1529
+ if property_name in memeber_set:
1530
+ memeber_set.remove(property_name)
1531
+ if len(memeber_set) > 0:
1532
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1533
+
1534
+
1535
+
1536
+ class ExecuteAgentApiResponse(AbstractModel):
1537
+ r"""ExecuteAgentApi返回参数结构体
1538
+
1539
+ """
1540
+
1541
+ def __init__(self):
1542
+ r"""
1543
+ :param _RequestPath: <p>请求路径</p>
1544
+ :type RequestPath: str
1545
+ :param _AgentData: <p>返回的具体指</p>
1546
+ :type AgentData: str
1547
+ :param _ErrorMsg: <p>错误码信息</p>
1548
+ :type ErrorMsg: str
1549
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1550
+ :type RequestId: str
1551
+ """
1552
+ self._RequestPath = None
1553
+ self._AgentData = None
1554
+ self._ErrorMsg = None
1555
+ self._RequestId = None
1556
+
1557
+ @property
1558
+ def RequestPath(self):
1559
+ r"""<p>请求路径</p>
1560
+ :rtype: str
1561
+ """
1562
+ return self._RequestPath
1563
+
1564
+ @RequestPath.setter
1565
+ def RequestPath(self, RequestPath):
1566
+ self._RequestPath = RequestPath
1567
+
1568
+ @property
1569
+ def AgentData(self):
1570
+ r"""<p>返回的具体指</p>
1571
+ :rtype: str
1572
+ """
1573
+ return self._AgentData
1574
+
1575
+ @AgentData.setter
1576
+ def AgentData(self, AgentData):
1577
+ self._AgentData = AgentData
1578
+
1579
+ @property
1580
+ def ErrorMsg(self):
1581
+ r"""<p>错误码信息</p>
1582
+ :rtype: str
1583
+ """
1584
+ return self._ErrorMsg
1585
+
1586
+ @ErrorMsg.setter
1587
+ def ErrorMsg(self, ErrorMsg):
1588
+ self._ErrorMsg = ErrorMsg
1589
+
1590
+ @property
1591
+ def RequestId(self):
1592
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1593
+ :rtype: str
1594
+ """
1595
+ return self._RequestId
1596
+
1597
+ @RequestId.setter
1598
+ def RequestId(self, RequestId):
1599
+ self._RequestId = RequestId
1600
+
1601
+
1602
+ def _deserialize(self, params):
1603
+ self._RequestPath = params.get("RequestPath")
1604
+ self._AgentData = params.get("AgentData")
1605
+ self._ErrorMsg = params.get("ErrorMsg")
1606
+ self._RequestId = params.get("RequestId")
1607
+
1608
+
1609
+ class ExecuteAgentApiV1Request(AbstractModel):
1610
+ r"""ExecuteAgentApiV1请求参数结构体
1611
+
1612
+ """
1613
+
1614
+ def __init__(self):
1615
+ r"""
1616
+ :param _RequestPath: <p>参数路径</p>
1617
+ :type RequestPath: str
1618
+ :param _RequestType: <p>post还是get</p><p>枚举值:</p><ul><li>post: post请求</li><li>get: get请求</li></ul>
1619
+ :type RequestType: str
1620
+ """
1621
+ self._RequestPath = None
1622
+ self._RequestType = None
1623
+
1624
+ @property
1625
+ def RequestPath(self):
1626
+ r"""<p>参数路径</p>
1627
+ :rtype: str
1628
+ """
1629
+ return self._RequestPath
1630
+
1631
+ @RequestPath.setter
1632
+ def RequestPath(self, RequestPath):
1633
+ self._RequestPath = RequestPath
1634
+
1635
+ @property
1636
+ def RequestType(self):
1637
+ r"""<p>post还是get</p><p>枚举值:</p><ul><li>post: post请求</li><li>get: get请求</li></ul>
1638
+ :rtype: str
1639
+ """
1640
+ return self._RequestType
1641
+
1642
+ @RequestType.setter
1643
+ def RequestType(self, RequestType):
1644
+ self._RequestType = RequestType
1645
+
1646
+
1647
+ def _deserialize(self, params):
1648
+ self._RequestPath = params.get("RequestPath")
1649
+ self._RequestType = params.get("RequestType")
1650
+ memeber_set = set(params.keys())
1651
+ for name, value in vars(self).items():
1652
+ property_name = name[1:]
1653
+ if property_name in memeber_set:
1654
+ memeber_set.remove(property_name)
1655
+ if len(memeber_set) > 0:
1656
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1657
+
1658
+
1659
+
1660
+ class ExecuteAgentApiV1Response(AbstractModel):
1661
+ r"""ExecuteAgentApiV1返回参数结构体
1662
+
1663
+ """
1664
+
1665
+ def __init__(self):
1666
+ r"""
1667
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
1668
+ :type RequestId: str
1669
+ """
1670
+ self._RequestId = None
1671
+
1672
+ @property
1673
+ def RequestId(self):
1674
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
1675
+ :rtype: str
1676
+ """
1677
+ return self._RequestId
1678
+
1679
+ @RequestId.setter
1680
+ def RequestId(self, RequestId):
1681
+ self._RequestId = RequestId
1682
+
1683
+
1684
+ def _deserialize(self, params):
1685
+ self._RequestId = params.get("RequestId")
1686
+
1687
+
1470
1688
  class FileInfo(AbstractModel):
1471
1689
  r"""知识库文件信息
1472
1690
 
@@ -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.125
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.125
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.125
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.115