tencentcloud-sdk-python-adp 3.1.189__tar.gz → 3.1.190__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.
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/setup.py +1 -1
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/v20260520/adp_client.py +46 -0
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/v20260520/adp_client_async.py +36 -0
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/v20260520/models.py +359 -0
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud_sdk_python_adp.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_adp-3.1.190/tencentcloud_sdk_python_adp.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_adp-3.1.189/tencentcloud_sdk_python_adp.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/README.rst +0 -0
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/setup.cfg +0 -0
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/__init__.py +0 -0
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/v20260520/__init__.py +0 -0
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/v20260520/errorcodes.py +0 -0
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud_sdk_python_adp.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud_sdk_python_adp.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_adp-3.1.189 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud_sdk_python_adp.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-adp
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.190
|
|
4
4
|
Summary: Tencent Cloud Adp SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.190
|
|
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-adp',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.190,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Adp SDK for Python',
|
|
@@ -26,6 +26,29 @@ class AdpClient(AbstractClient):
|
|
|
26
26
|
_service = 'adp'
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
def CallMCPTool(self, request):
|
|
30
|
+
r"""用户在 MCP App iframe 内触发的工具调用
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for CallMCPTool.
|
|
33
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.CallMCPToolRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.CallMCPToolResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("CallMCPTool", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.CallMCPToolResponse()
|
|
43
|
+
model._deserialize(response["Response"])
|
|
44
|
+
return model
|
|
45
|
+
except Exception as e:
|
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
|
47
|
+
raise
|
|
48
|
+
else:
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
|
+
|
|
51
|
+
|
|
29
52
|
def CheckLabel(self, request):
|
|
30
53
|
r"""校验标签
|
|
31
54
|
|
|
@@ -2741,6 +2764,29 @@ class AdpClient(AbstractClient):
|
|
|
2741
2764
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2742
2765
|
|
|
2743
2766
|
|
|
2767
|
+
def ReadMCPResource(self, request):
|
|
2768
|
+
r"""读取 MCP UI 资源(HTML),供前端 iframe 加载 MCP App 界面
|
|
2769
|
+
|
|
2770
|
+
:param request: Request instance for ReadMCPResource.
|
|
2771
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.ReadMCPResourceRequest`
|
|
2772
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.ReadMCPResourceResponse`
|
|
2773
|
+
|
|
2774
|
+
"""
|
|
2775
|
+
try:
|
|
2776
|
+
params = request._serialize()
|
|
2777
|
+
headers = request.headers
|
|
2778
|
+
body = self.call("ReadMCPResource", params, headers=headers)
|
|
2779
|
+
response = json.loads(body)
|
|
2780
|
+
model = models.ReadMCPResourceResponse()
|
|
2781
|
+
model._deserialize(response["Response"])
|
|
2782
|
+
return model
|
|
2783
|
+
except Exception as e:
|
|
2784
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2785
|
+
raise
|
|
2786
|
+
else:
|
|
2787
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2788
|
+
|
|
2789
|
+
|
|
2744
2790
|
def ReleaseSkill(self, request):
|
|
2745
2791
|
r"""上架skill
|
|
2746
2792
|
|
|
@@ -25,6 +25,24 @@ class AdpClient(AbstractClient):
|
|
|
25
25
|
_endpoint = 'adp.tencentcloudapi.com'
|
|
26
26
|
_service = 'adp'
|
|
27
27
|
|
|
28
|
+
async def CallMCPTool(
|
|
29
|
+
self,
|
|
30
|
+
request: models.CallMCPToolRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.CallMCPToolResponse:
|
|
33
|
+
"""
|
|
34
|
+
用户在 MCP App iframe 内触发的工具调用
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "CallMCPTool"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.CallMCPToolResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
28
46
|
async def CheckLabel(
|
|
29
47
|
self,
|
|
30
48
|
request: models.CheckLabelRequest,
|
|
@@ -2150,6 +2168,24 @@ class AdpClient(AbstractClient):
|
|
|
2150
2168
|
|
|
2151
2169
|
return await self.call_and_deserialize(**kwargs)
|
|
2152
2170
|
|
|
2171
|
+
async def ReadMCPResource(
|
|
2172
|
+
self,
|
|
2173
|
+
request: models.ReadMCPResourceRequest,
|
|
2174
|
+
opts: Dict = None,
|
|
2175
|
+
) -> models.ReadMCPResourceResponse:
|
|
2176
|
+
"""
|
|
2177
|
+
读取 MCP UI 资源(HTML),供前端 iframe 加载 MCP App 界面
|
|
2178
|
+
"""
|
|
2179
|
+
|
|
2180
|
+
kwargs = {}
|
|
2181
|
+
kwargs["action"] = "ReadMCPResource"
|
|
2182
|
+
kwargs["params"] = request._serialize()
|
|
2183
|
+
kwargs["resp_cls"] = models.ReadMCPResourceResponse
|
|
2184
|
+
kwargs["headers"] = request.headers
|
|
2185
|
+
kwargs["opts"] = opts or {}
|
|
2186
|
+
|
|
2187
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2188
|
+
|
|
2153
2189
|
async def ReleaseSkill(
|
|
2154
2190
|
self,
|
|
2155
2191
|
request: models.ReleaseSkillRequest,
|
|
@@ -8030,6 +8030,130 @@ class BillingAttribute(AbstractModel):
|
|
|
8030
8030
|
|
|
8031
8031
|
|
|
8032
8032
|
|
|
8033
|
+
class CallMCPToolRequest(AbstractModel):
|
|
8034
|
+
r"""CallMCPTool请求参数结构体
|
|
8035
|
+
|
|
8036
|
+
"""
|
|
8037
|
+
|
|
8038
|
+
def __init__(self):
|
|
8039
|
+
r"""
|
|
8040
|
+
:param _PluginId: <p>能力边界:一次请求只能调该 plugin 上的工具</p>
|
|
8041
|
+
:type PluginId: str
|
|
8042
|
+
:param _ThreadId: <p>agent-exec 侧 thread</p>
|
|
8043
|
+
:type ThreadId: str
|
|
8044
|
+
:param _ToolName: <p>工具名,用于在 plugin 配置的 tool_list 中定位 tool_id</p>
|
|
8045
|
+
:type ToolName: str
|
|
8046
|
+
:param _Arguments: <p>JSON:工具入参原文,原样透传给 MCP Server</p>
|
|
8047
|
+
:type Arguments: str
|
|
8048
|
+
"""
|
|
8049
|
+
self._PluginId = None
|
|
8050
|
+
self._ThreadId = None
|
|
8051
|
+
self._ToolName = None
|
|
8052
|
+
self._Arguments = None
|
|
8053
|
+
|
|
8054
|
+
@property
|
|
8055
|
+
def PluginId(self):
|
|
8056
|
+
r"""<p>能力边界:一次请求只能调该 plugin 上的工具</p>
|
|
8057
|
+
:rtype: str
|
|
8058
|
+
"""
|
|
8059
|
+
return self._PluginId
|
|
8060
|
+
|
|
8061
|
+
@PluginId.setter
|
|
8062
|
+
def PluginId(self, PluginId):
|
|
8063
|
+
self._PluginId = PluginId
|
|
8064
|
+
|
|
8065
|
+
@property
|
|
8066
|
+
def ThreadId(self):
|
|
8067
|
+
r"""<p>agent-exec 侧 thread</p>
|
|
8068
|
+
:rtype: str
|
|
8069
|
+
"""
|
|
8070
|
+
return self._ThreadId
|
|
8071
|
+
|
|
8072
|
+
@ThreadId.setter
|
|
8073
|
+
def ThreadId(self, ThreadId):
|
|
8074
|
+
self._ThreadId = ThreadId
|
|
8075
|
+
|
|
8076
|
+
@property
|
|
8077
|
+
def ToolName(self):
|
|
8078
|
+
r"""<p>工具名,用于在 plugin 配置的 tool_list 中定位 tool_id</p>
|
|
8079
|
+
:rtype: str
|
|
8080
|
+
"""
|
|
8081
|
+
return self._ToolName
|
|
8082
|
+
|
|
8083
|
+
@ToolName.setter
|
|
8084
|
+
def ToolName(self, ToolName):
|
|
8085
|
+
self._ToolName = ToolName
|
|
8086
|
+
|
|
8087
|
+
@property
|
|
8088
|
+
def Arguments(self):
|
|
8089
|
+
r"""<p>JSON:工具入参原文,原样透传给 MCP Server</p>
|
|
8090
|
+
:rtype: str
|
|
8091
|
+
"""
|
|
8092
|
+
return self._Arguments
|
|
8093
|
+
|
|
8094
|
+
@Arguments.setter
|
|
8095
|
+
def Arguments(self, Arguments):
|
|
8096
|
+
self._Arguments = Arguments
|
|
8097
|
+
|
|
8098
|
+
|
|
8099
|
+
def _deserialize(self, params):
|
|
8100
|
+
self._PluginId = params.get("PluginId")
|
|
8101
|
+
self._ThreadId = params.get("ThreadId")
|
|
8102
|
+
self._ToolName = params.get("ToolName")
|
|
8103
|
+
self._Arguments = params.get("Arguments")
|
|
8104
|
+
memeber_set = set(params.keys())
|
|
8105
|
+
for name, value in vars(self).items():
|
|
8106
|
+
property_name = name[1:]
|
|
8107
|
+
if property_name in memeber_set:
|
|
8108
|
+
memeber_set.remove(property_name)
|
|
8109
|
+
if len(memeber_set) > 0:
|
|
8110
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8111
|
+
|
|
8112
|
+
|
|
8113
|
+
|
|
8114
|
+
class CallMCPToolResponse(AbstractModel):
|
|
8115
|
+
r"""CallMCPTool返回参数结构体
|
|
8116
|
+
|
|
8117
|
+
"""
|
|
8118
|
+
|
|
8119
|
+
def __init__(self):
|
|
8120
|
+
r"""
|
|
8121
|
+
:param _Result: <p>JSON:完整 CallToolResult 原文,含 structuredContent / isError / _meta</p>
|
|
8122
|
+
:type Result: str
|
|
8123
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8124
|
+
:type RequestId: str
|
|
8125
|
+
"""
|
|
8126
|
+
self._Result = None
|
|
8127
|
+
self._RequestId = None
|
|
8128
|
+
|
|
8129
|
+
@property
|
|
8130
|
+
def Result(self):
|
|
8131
|
+
r"""<p>JSON:完整 CallToolResult 原文,含 structuredContent / isError / _meta</p>
|
|
8132
|
+
:rtype: str
|
|
8133
|
+
"""
|
|
8134
|
+
return self._Result
|
|
8135
|
+
|
|
8136
|
+
@Result.setter
|
|
8137
|
+
def Result(self, Result):
|
|
8138
|
+
self._Result = Result
|
|
8139
|
+
|
|
8140
|
+
@property
|
|
8141
|
+
def RequestId(self):
|
|
8142
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8143
|
+
:rtype: str
|
|
8144
|
+
"""
|
|
8145
|
+
return self._RequestId
|
|
8146
|
+
|
|
8147
|
+
@RequestId.setter
|
|
8148
|
+
def RequestId(self, RequestId):
|
|
8149
|
+
self._RequestId = RequestId
|
|
8150
|
+
|
|
8151
|
+
|
|
8152
|
+
def _deserialize(self, params):
|
|
8153
|
+
self._Result = params.get("Result")
|
|
8154
|
+
self._RequestId = params.get("RequestId")
|
|
8155
|
+
|
|
8156
|
+
|
|
8033
8157
|
class CallSource(AbstractModel):
|
|
8034
8158
|
r"""调用来源
|
|
8035
8159
|
|
|
@@ -31271,6 +31395,112 @@ class MCPPluginConfig(AbstractModel):
|
|
|
31271
31395
|
|
|
31272
31396
|
|
|
31273
31397
|
|
|
31398
|
+
class MCPResourceContents(AbstractModel):
|
|
31399
|
+
r"""MCP ResourceContents,chat-manage 侧不解析内部字段,仅结构透传
|
|
31400
|
+
|
|
31401
|
+
"""
|
|
31402
|
+
|
|
31403
|
+
def __init__(self):
|
|
31404
|
+
r"""
|
|
31405
|
+
:param _Blob: <p>二进制内容,与 text 二选一</p>
|
|
31406
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31407
|
+
:type Blob: str
|
|
31408
|
+
:param _Meta: <p>JSON:单个资源的 _meta 原文</p>
|
|
31409
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31410
|
+
:type Meta: str
|
|
31411
|
+
:param _MimeType: <p>MIME 类型,MCP App 的 HTML 为 text/html;profile=mcp-app</p>
|
|
31412
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31413
|
+
:type MimeType: str
|
|
31414
|
+
:param _Text: <p>文本内容,与 blob 二选一</p>
|
|
31415
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31416
|
+
:type Text: str
|
|
31417
|
+
:param _Uri: <p>资源 URI</p>
|
|
31418
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31419
|
+
:type Uri: str
|
|
31420
|
+
"""
|
|
31421
|
+
self._Blob = None
|
|
31422
|
+
self._Meta = None
|
|
31423
|
+
self._MimeType = None
|
|
31424
|
+
self._Text = None
|
|
31425
|
+
self._Uri = None
|
|
31426
|
+
|
|
31427
|
+
@property
|
|
31428
|
+
def Blob(self):
|
|
31429
|
+
r"""<p>二进制内容,与 text 二选一</p>
|
|
31430
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31431
|
+
:rtype: str
|
|
31432
|
+
"""
|
|
31433
|
+
return self._Blob
|
|
31434
|
+
|
|
31435
|
+
@Blob.setter
|
|
31436
|
+
def Blob(self, Blob):
|
|
31437
|
+
self._Blob = Blob
|
|
31438
|
+
|
|
31439
|
+
@property
|
|
31440
|
+
def Meta(self):
|
|
31441
|
+
r"""<p>JSON:单个资源的 _meta 原文</p>
|
|
31442
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31443
|
+
:rtype: str
|
|
31444
|
+
"""
|
|
31445
|
+
return self._Meta
|
|
31446
|
+
|
|
31447
|
+
@Meta.setter
|
|
31448
|
+
def Meta(self, Meta):
|
|
31449
|
+
self._Meta = Meta
|
|
31450
|
+
|
|
31451
|
+
@property
|
|
31452
|
+
def MimeType(self):
|
|
31453
|
+
r"""<p>MIME 类型,MCP App 的 HTML 为 text/html;profile=mcp-app</p>
|
|
31454
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31455
|
+
:rtype: str
|
|
31456
|
+
"""
|
|
31457
|
+
return self._MimeType
|
|
31458
|
+
|
|
31459
|
+
@MimeType.setter
|
|
31460
|
+
def MimeType(self, MimeType):
|
|
31461
|
+
self._MimeType = MimeType
|
|
31462
|
+
|
|
31463
|
+
@property
|
|
31464
|
+
def Text(self):
|
|
31465
|
+
r"""<p>文本内容,与 blob 二选一</p>
|
|
31466
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31467
|
+
:rtype: str
|
|
31468
|
+
"""
|
|
31469
|
+
return self._Text
|
|
31470
|
+
|
|
31471
|
+
@Text.setter
|
|
31472
|
+
def Text(self, Text):
|
|
31473
|
+
self._Text = Text
|
|
31474
|
+
|
|
31475
|
+
@property
|
|
31476
|
+
def Uri(self):
|
|
31477
|
+
r"""<p>资源 URI</p>
|
|
31478
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31479
|
+
:rtype: str
|
|
31480
|
+
"""
|
|
31481
|
+
return self._Uri
|
|
31482
|
+
|
|
31483
|
+
@Uri.setter
|
|
31484
|
+
def Uri(self, Uri):
|
|
31485
|
+
self._Uri = Uri
|
|
31486
|
+
|
|
31487
|
+
|
|
31488
|
+
def _deserialize(self, params):
|
|
31489
|
+
self._Blob = params.get("Blob")
|
|
31490
|
+
self._Meta = params.get("Meta")
|
|
31491
|
+
self._MimeType = params.get("MimeType")
|
|
31492
|
+
self._Text = params.get("Text")
|
|
31493
|
+
self._Uri = params.get("Uri")
|
|
31494
|
+
memeber_set = set(params.keys())
|
|
31495
|
+
for name, value in vars(self).items():
|
|
31496
|
+
property_name = name[1:]
|
|
31497
|
+
if property_name in memeber_set:
|
|
31498
|
+
memeber_set.remove(property_name)
|
|
31499
|
+
if len(memeber_set) > 0:
|
|
31500
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
31501
|
+
|
|
31502
|
+
|
|
31503
|
+
|
|
31274
31504
|
class MCPToolConfig(AbstractModel):
|
|
31275
31505
|
r"""MCPToolConfig
|
|
31276
31506
|
|
|
@@ -39519,6 +39749,135 @@ class QASummary(AbstractModel):
|
|
|
39519
39749
|
|
|
39520
39750
|
|
|
39521
39751
|
|
|
39752
|
+
class ReadMCPResourceRequest(AbstractModel):
|
|
39753
|
+
r"""ReadMCPResource请求参数结构体
|
|
39754
|
+
|
|
39755
|
+
"""
|
|
39756
|
+
|
|
39757
|
+
def __init__(self):
|
|
39758
|
+
r"""
|
|
39759
|
+
:param _PluginId: <p>能力边界:一次请求只能读该 plugin 的资源</p>
|
|
39760
|
+
:type PluginId: str
|
|
39761
|
+
:param _ThreadId: <p>agent-exec 侧 thread</p>
|
|
39762
|
+
:type ThreadId: str
|
|
39763
|
+
:param _Uri: <p>资源 URI,来源 tool 的 _meta.ui.resourceUri</p>
|
|
39764
|
+
:type Uri: str
|
|
39765
|
+
"""
|
|
39766
|
+
self._PluginId = None
|
|
39767
|
+
self._ThreadId = None
|
|
39768
|
+
self._Uri = None
|
|
39769
|
+
|
|
39770
|
+
@property
|
|
39771
|
+
def PluginId(self):
|
|
39772
|
+
r"""<p>能力边界:一次请求只能读该 plugin 的资源</p>
|
|
39773
|
+
:rtype: str
|
|
39774
|
+
"""
|
|
39775
|
+
return self._PluginId
|
|
39776
|
+
|
|
39777
|
+
@PluginId.setter
|
|
39778
|
+
def PluginId(self, PluginId):
|
|
39779
|
+
self._PluginId = PluginId
|
|
39780
|
+
|
|
39781
|
+
@property
|
|
39782
|
+
def ThreadId(self):
|
|
39783
|
+
r"""<p>agent-exec 侧 thread</p>
|
|
39784
|
+
:rtype: str
|
|
39785
|
+
"""
|
|
39786
|
+
return self._ThreadId
|
|
39787
|
+
|
|
39788
|
+
@ThreadId.setter
|
|
39789
|
+
def ThreadId(self, ThreadId):
|
|
39790
|
+
self._ThreadId = ThreadId
|
|
39791
|
+
|
|
39792
|
+
@property
|
|
39793
|
+
def Uri(self):
|
|
39794
|
+
r"""<p>资源 URI,来源 tool 的 _meta.ui.resourceUri</p>
|
|
39795
|
+
:rtype: str
|
|
39796
|
+
"""
|
|
39797
|
+
return self._Uri
|
|
39798
|
+
|
|
39799
|
+
@Uri.setter
|
|
39800
|
+
def Uri(self, Uri):
|
|
39801
|
+
self._Uri = Uri
|
|
39802
|
+
|
|
39803
|
+
|
|
39804
|
+
def _deserialize(self, params):
|
|
39805
|
+
self._PluginId = params.get("PluginId")
|
|
39806
|
+
self._ThreadId = params.get("ThreadId")
|
|
39807
|
+
self._Uri = params.get("Uri")
|
|
39808
|
+
memeber_set = set(params.keys())
|
|
39809
|
+
for name, value in vars(self).items():
|
|
39810
|
+
property_name = name[1:]
|
|
39811
|
+
if property_name in memeber_set:
|
|
39812
|
+
memeber_set.remove(property_name)
|
|
39813
|
+
if len(memeber_set) > 0:
|
|
39814
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
39815
|
+
|
|
39816
|
+
|
|
39817
|
+
|
|
39818
|
+
class ReadMCPResourceResponse(AbstractModel):
|
|
39819
|
+
r"""ReadMCPResource返回参数结构体
|
|
39820
|
+
|
|
39821
|
+
"""
|
|
39822
|
+
|
|
39823
|
+
def __init__(self):
|
|
39824
|
+
r"""
|
|
39825
|
+
:param _Contents: <p>MCP resources/read 返回的资源内容</p>
|
|
39826
|
+
:type Contents: list of MCPResourceContents
|
|
39827
|
+
:param _ResourceMeta: <p>JSON:Resource 的 _meta 原文,MCP App 场景 Host 依据 ui.csp 强制 CSP 策略</p>
|
|
39828
|
+
:type ResourceMeta: str
|
|
39829
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39830
|
+
:type RequestId: str
|
|
39831
|
+
"""
|
|
39832
|
+
self._Contents = None
|
|
39833
|
+
self._ResourceMeta = None
|
|
39834
|
+
self._RequestId = None
|
|
39835
|
+
|
|
39836
|
+
@property
|
|
39837
|
+
def Contents(self):
|
|
39838
|
+
r"""<p>MCP resources/read 返回的资源内容</p>
|
|
39839
|
+
:rtype: list of MCPResourceContents
|
|
39840
|
+
"""
|
|
39841
|
+
return self._Contents
|
|
39842
|
+
|
|
39843
|
+
@Contents.setter
|
|
39844
|
+
def Contents(self, Contents):
|
|
39845
|
+
self._Contents = Contents
|
|
39846
|
+
|
|
39847
|
+
@property
|
|
39848
|
+
def ResourceMeta(self):
|
|
39849
|
+
r"""<p>JSON:Resource 的 _meta 原文,MCP App 场景 Host 依据 ui.csp 强制 CSP 策略</p>
|
|
39850
|
+
:rtype: str
|
|
39851
|
+
"""
|
|
39852
|
+
return self._ResourceMeta
|
|
39853
|
+
|
|
39854
|
+
@ResourceMeta.setter
|
|
39855
|
+
def ResourceMeta(self, ResourceMeta):
|
|
39856
|
+
self._ResourceMeta = ResourceMeta
|
|
39857
|
+
|
|
39858
|
+
@property
|
|
39859
|
+
def RequestId(self):
|
|
39860
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39861
|
+
:rtype: str
|
|
39862
|
+
"""
|
|
39863
|
+
return self._RequestId
|
|
39864
|
+
|
|
39865
|
+
@RequestId.setter
|
|
39866
|
+
def RequestId(self, RequestId):
|
|
39867
|
+
self._RequestId = RequestId
|
|
39868
|
+
|
|
39869
|
+
|
|
39870
|
+
def _deserialize(self, params):
|
|
39871
|
+
if params.get("Contents") is not None:
|
|
39872
|
+
self._Contents = []
|
|
39873
|
+
for item in params.get("Contents"):
|
|
39874
|
+
obj = MCPResourceContents()
|
|
39875
|
+
obj._deserialize(item)
|
|
39876
|
+
self._Contents.append(obj)
|
|
39877
|
+
self._ResourceMeta = params.get("ResourceMeta")
|
|
39878
|
+
self._RequestId = params.get("RequestId")
|
|
39879
|
+
|
|
39880
|
+
|
|
39522
39881
|
class ReleaseRecord(AbstractModel):
|
|
39523
39882
|
r"""[数据结构定义] 发布记录
|
|
39524
39883
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-adp
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.190
|
|
4
4
|
Summary: Tencent Cloud Adp SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.190
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.190
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.189
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|