tencentcloud-sdk-python-dataagent 3.0.1490__tar.gz → 3.1.4__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.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/setup.py +2 -1
  3. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/tencentcloud/__init__.py +1 -1
  4. tencentcloud_sdk_python_dataagent-3.1.4/tencentcloud/dataagent/v20250513/dataagent_client_async.py +224 -0
  5. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/tencentcloud/dataagent/v20250513/models.py +15 -0
  6. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/tencentcloud_sdk_python_dataagent.egg-info/PKG-INFO +2 -2
  7. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/tencentcloud_sdk_python_dataagent.egg-info/SOURCES.txt +1 -0
  8. tencentcloud_sdk_python_dataagent-3.1.4/tencentcloud_sdk_python_dataagent.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_dataagent-3.0.1490/tencentcloud_sdk_python_dataagent.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/README.rst +0 -0
  11. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/tencentcloud/dataagent/__init__.py +0 -0
  13. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/tencentcloud/dataagent/v20250513/__init__.py +0 -0
  14. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/tencentcloud/dataagent/v20250513/dataagent_client.py +0 -0
  15. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/tencentcloud/dataagent/v20250513/errorcodes.py +0 -0
  16. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/tencentcloud_sdk_python_dataagent.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_dataagent-3.0.1490 → tencentcloud_sdk_python_dataagent-3.1.4}/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.0.1490
3
+ Version: 3.1.4
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.0.1490
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.4
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,8 @@ 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.0.1490,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.4,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Dataagent SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1490'
17
+ __version__ = '3.1.4'
@@ -0,0 +1,224 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.dataagent.v20250513 import models
20
+ from typing import Dict
21
+
22
+
23
+ class DataagentClient(AbstractClient):
24
+ _apiVersion = '2025-05-13'
25
+ _endpoint = 'dataagent.tencentcloudapi.com'
26
+ _service = 'dataagent'
27
+
28
+ async def AddChunk(
29
+ self,
30
+ request: models.AddChunkRequest,
31
+ opts: Dict = None,
32
+ ) -> models.AddChunkResponse:
33
+ """
34
+ 文档切片新增
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "AddChunk"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.AddChunkResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def ChatAI(
47
+ self,
48
+ request: models.ChatAIRequest,
49
+ opts: Dict = None,
50
+ ) -> models.ChatAIResponse:
51
+ """
52
+ 提供DataAgent 产品服务API
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "ChatAI"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.ChatAIResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def CreateDataAgentSession(
65
+ self,
66
+ request: models.CreateDataAgentSessionRequest,
67
+ opts: Dict = None,
68
+ ) -> models.CreateDataAgentSessionResponse:
69
+ """
70
+ 生成DataAgent 会话ID
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "CreateDataAgentSession"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.CreateDataAgentSessionResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def DeleteChunk(
83
+ self,
84
+ request: models.DeleteChunkRequest,
85
+ opts: Dict = None,
86
+ ) -> models.DeleteChunkResponse:
87
+ """
88
+ 文档切片删除
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "DeleteChunk"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.DeleteChunkResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
100
+ async def DeleteDataAgentSession(
101
+ self,
102
+ request: models.DeleteDataAgentSessionRequest,
103
+ opts: Dict = None,
104
+ ) -> models.DeleteDataAgentSessionResponse:
105
+ """
106
+ 删除会话
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "DeleteDataAgentSession"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.DeleteDataAgentSessionResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
118
+ async def GetKnowledgeBaseList(
119
+ self,
120
+ request: models.GetKnowledgeBaseListRequest,
121
+ opts: Dict = None,
122
+ ) -> models.GetKnowledgeBaseListResponse:
123
+ """
124
+ 获取知识库列表
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "GetKnowledgeBaseList"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.GetKnowledgeBaseListResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
136
+ async def GetSessionDetails(
137
+ self,
138
+ request: models.GetSessionDetailsRequest,
139
+ opts: Dict = None,
140
+ ) -> models.GetSessionDetailsResponse:
141
+ """
142
+ 获取用户会话记录详情列表
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "GetSessionDetails"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.GetSessionDetailsResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
153
+
154
+ async def ModifyChunk(
155
+ self,
156
+ request: models.ModifyChunkRequest,
157
+ opts: Dict = None,
158
+ ) -> models.ModifyChunkResponse:
159
+ """
160
+ 编辑修改分片
161
+ """
162
+
163
+ kwargs = {}
164
+ kwargs["action"] = "ModifyChunk"
165
+ kwargs["params"] = request._serialize()
166
+ kwargs["resp_cls"] = models.ModifyChunkResponse
167
+ kwargs["headers"] = request.headers
168
+ kwargs["opts"] = opts or {}
169
+
170
+ return await self.call_and_deserialize(**kwargs)
171
+
172
+ async def ModifyKnowledgeBase(
173
+ self,
174
+ request: models.ModifyKnowledgeBaseRequest,
175
+ opts: Dict = None,
176
+ ) -> models.ModifyKnowledgeBaseResponse:
177
+ """
178
+ 操作知识库
179
+ """
180
+
181
+ kwargs = {}
182
+ kwargs["action"] = "ModifyKnowledgeBase"
183
+ kwargs["params"] = request._serialize()
184
+ kwargs["resp_cls"] = models.ModifyKnowledgeBaseResponse
185
+ kwargs["headers"] = request.headers
186
+ kwargs["opts"] = opts or {}
187
+
188
+ return await self.call_and_deserialize(**kwargs)
189
+
190
+ async def QueryChunkList(
191
+ self,
192
+ request: models.QueryChunkListRequest,
193
+ opts: Dict = None,
194
+ ) -> models.QueryChunkListResponse:
195
+ """
196
+ 文档切片查询
197
+ """
198
+
199
+ kwargs = {}
200
+ kwargs["action"] = "QueryChunkList"
201
+ kwargs["params"] = request._serialize()
202
+ kwargs["resp_cls"] = models.QueryChunkListResponse
203
+ kwargs["headers"] = request.headers
204
+ kwargs["opts"] = opts or {}
205
+
206
+ return await self.call_and_deserialize(**kwargs)
207
+
208
+ async def StopChatAI(
209
+ self,
210
+ request: models.StopChatAIRequest,
211
+ opts: Dict = None,
212
+ ) -> models.StopChatAIResponse:
213
+ """
214
+ 中断DataAgent的回答输出
215
+ """
216
+
217
+ kwargs = {}
218
+ kwargs["action"] = "StopChatAI"
219
+ kwargs["params"] = request._serialize()
220
+ kwargs["resp_cls"] = models.StopChatAIResponse
221
+ kwargs["headers"] = request.headers
222
+ kwargs["opts"] = opts or {}
223
+
224
+ return await self.call_and_deserialize(**kwargs)
@@ -384,10 +384,13 @@ class Chunk(AbstractModel):
384
384
  :type Content: str
385
385
  :param _Size: 切片的字数
386
386
  :type Size: int
387
+ :param _Summary: 切片概要
388
+ :type Summary: str
387
389
  """
388
390
  self._Id = None
389
391
  self._Content = None
390
392
  self._Size = None
393
+ self._Summary = None
391
394
 
392
395
  @property
393
396
  def Id(self):
@@ -422,11 +425,23 @@ class Chunk(AbstractModel):
422
425
  def Size(self, Size):
423
426
  self._Size = Size
424
427
 
428
+ @property
429
+ def Summary(self):
430
+ r"""切片概要
431
+ :rtype: str
432
+ """
433
+ return self._Summary
434
+
435
+ @Summary.setter
436
+ def Summary(self, Summary):
437
+ self._Summary = Summary
438
+
425
439
 
426
440
  def _deserialize(self, params):
427
441
  self._Id = params.get("Id")
428
442
  self._Content = params.get("Content")
429
443
  self._Size = params.get("Size")
444
+ self._Summary = params.get("Summary")
430
445
  memeber_set = set(params.keys())
431
446
  for name, value in vars(self).items():
432
447
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dataagent
3
- Version: 3.0.1490
3
+ Version: 3.1.4
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.0.1490
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.4
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -5,6 +5,7 @@ tencentcloud/__init__.py
5
5
  tencentcloud/dataagent/__init__.py
6
6
  tencentcloud/dataagent/v20250513/__init__.py
7
7
  tencentcloud/dataagent/v20250513/dataagent_client.py
8
+ tencentcloud/dataagent/v20250513/dataagent_client_async.py
8
9
  tencentcloud/dataagent/v20250513/errorcodes.py
9
10
  tencentcloud/dataagent/v20250513/models.py
10
11
  tencentcloud_sdk_python_dataagent.egg-info/PKG-INFO
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.4
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1490