tencentcloud-sdk-python-adp 3.1.178__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.178 → tencentcloud_sdk_python_adp-3.1.190}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/setup.py +1 -1
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/v20260520/adp_client.py +254 -0
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/v20260520/adp_client_async.py +199 -0
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/v20260520/errorcodes.py +3 -0
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/v20260520/models.py +4527 -199
- {tencentcloud_sdk_python_adp-3.1.178 → 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.178/tencentcloud_sdk_python_adp.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/README.rst +0 -0
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/setup.cfg +0 -0
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/__init__.py +0 -0
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud/adp/v20260520/__init__.py +0 -0
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud_sdk_python_adp.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_adp-3.1.178 → tencentcloud_sdk_python_adp-3.1.190}/tencentcloud_sdk_python_adp.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_adp-3.1.178 → 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
|
|
|
@@ -532,6 +555,30 @@ class AdpClient(AbstractClient):
|
|
|
532
555
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
533
556
|
|
|
534
557
|
|
|
558
|
+
def CreateWorkflowRun(self, request):
|
|
559
|
+
r"""本接口用来创建工作流的异步运行实例,创建成功后工作流会在后台异步运行,接口返回工作流运行实例ID(WorkflowRunId)等信息。后面可通过调用DescribeWorkflowRun接口查工作流运行的详情。
|
|
560
|
+
注意:工作流的异步运行是基于应用的,需要先把对应的应用配置成“单工作流模式”,才能创建成功。
|
|
561
|
+
|
|
562
|
+
:param request: Request instance for CreateWorkflowRun.
|
|
563
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.CreateWorkflowRunRequest`
|
|
564
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.CreateWorkflowRunResponse`
|
|
565
|
+
|
|
566
|
+
"""
|
|
567
|
+
try:
|
|
568
|
+
params = request._serialize()
|
|
569
|
+
headers = request.headers
|
|
570
|
+
body = self.call("CreateWorkflowRun", params, headers=headers)
|
|
571
|
+
response = json.loads(body)
|
|
572
|
+
model = models.CreateWorkflowRunResponse()
|
|
573
|
+
model._deserialize(response["Response"])
|
|
574
|
+
return model
|
|
575
|
+
except Exception as e:
|
|
576
|
+
if isinstance(e, TencentCloudSDKException):
|
|
577
|
+
raise
|
|
578
|
+
else:
|
|
579
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
580
|
+
|
|
581
|
+
|
|
535
582
|
def CreateWorkspaceCredential(self, request):
|
|
536
583
|
r"""创建工作空间凭证
|
|
537
584
|
|
|
@@ -1705,6 +1752,52 @@ class AdpClient(AbstractClient):
|
|
|
1705
1752
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1706
1753
|
|
|
1707
1754
|
|
|
1755
|
+
def DescribeNodeBatchRun(self, request):
|
|
1756
|
+
r"""DescribeNodeBatchRun
|
|
1757
|
+
|
|
1758
|
+
:param request: Request instance for DescribeNodeBatchRun.
|
|
1759
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.DescribeNodeBatchRunRequest`
|
|
1760
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.DescribeNodeBatchRunResponse`
|
|
1761
|
+
|
|
1762
|
+
"""
|
|
1763
|
+
try:
|
|
1764
|
+
params = request._serialize()
|
|
1765
|
+
headers = request.headers
|
|
1766
|
+
body = self.call("DescribeNodeBatchRun", params, headers=headers)
|
|
1767
|
+
response = json.loads(body)
|
|
1768
|
+
model = models.DescribeNodeBatchRunResponse()
|
|
1769
|
+
model._deserialize(response["Response"])
|
|
1770
|
+
return model
|
|
1771
|
+
except Exception as e:
|
|
1772
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1773
|
+
raise
|
|
1774
|
+
else:
|
|
1775
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1776
|
+
|
|
1777
|
+
|
|
1778
|
+
def DescribeNodeRunDetail(self, request):
|
|
1779
|
+
r"""查看工作流节点运行详情
|
|
1780
|
+
|
|
1781
|
+
:param request: Request instance for DescribeNodeRunDetail.
|
|
1782
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.DescribeNodeRunDetailRequest`
|
|
1783
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.DescribeNodeRunDetailResponse`
|
|
1784
|
+
|
|
1785
|
+
"""
|
|
1786
|
+
try:
|
|
1787
|
+
params = request._serialize()
|
|
1788
|
+
headers = request.headers
|
|
1789
|
+
body = self.call("DescribeNodeRunDetail", params, headers=headers)
|
|
1790
|
+
response = json.loads(body)
|
|
1791
|
+
model = models.DescribeNodeRunDetailResponse()
|
|
1792
|
+
model._deserialize(response["Response"])
|
|
1793
|
+
return model
|
|
1794
|
+
except Exception as e:
|
|
1795
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1796
|
+
raise
|
|
1797
|
+
else:
|
|
1798
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1799
|
+
|
|
1800
|
+
|
|
1708
1801
|
def DescribePlugin(self, request):
|
|
1709
1802
|
r"""获取插件详情
|
|
1710
1803
|
|
|
@@ -2096,6 +2189,52 @@ class AdpClient(AbstractClient):
|
|
|
2096
2189
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2097
2190
|
|
|
2098
2191
|
|
|
2192
|
+
def DescribeWorkflowRun(self, request):
|
|
2193
|
+
r"""查询工作流运行详情
|
|
2194
|
+
|
|
2195
|
+
:param request: Request instance for DescribeWorkflowRun.
|
|
2196
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.DescribeWorkflowRunRequest`
|
|
2197
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.DescribeWorkflowRunResponse`
|
|
2198
|
+
|
|
2199
|
+
"""
|
|
2200
|
+
try:
|
|
2201
|
+
params = request._serialize()
|
|
2202
|
+
headers = request.headers
|
|
2203
|
+
body = self.call("DescribeWorkflowRun", params, headers=headers)
|
|
2204
|
+
response = json.loads(body)
|
|
2205
|
+
model = models.DescribeWorkflowRunResponse()
|
|
2206
|
+
model._deserialize(response["Response"])
|
|
2207
|
+
return model
|
|
2208
|
+
except Exception as e:
|
|
2209
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2210
|
+
raise
|
|
2211
|
+
else:
|
|
2212
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
def DescribeWorkflowRunSummaryList(self, request):
|
|
2216
|
+
r"""查询工作流运行实例列表
|
|
2217
|
+
|
|
2218
|
+
:param request: Request instance for DescribeWorkflowRunSummaryList.
|
|
2219
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.DescribeWorkflowRunSummaryListRequest`
|
|
2220
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.DescribeWorkflowRunSummaryListResponse`
|
|
2221
|
+
|
|
2222
|
+
"""
|
|
2223
|
+
try:
|
|
2224
|
+
params = request._serialize()
|
|
2225
|
+
headers = request.headers
|
|
2226
|
+
body = self.call("DescribeWorkflowRunSummaryList", params, headers=headers)
|
|
2227
|
+
response = json.loads(body)
|
|
2228
|
+
model = models.DescribeWorkflowRunSummaryListResponse()
|
|
2229
|
+
model._deserialize(response["Response"])
|
|
2230
|
+
return model
|
|
2231
|
+
except Exception as e:
|
|
2232
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2233
|
+
raise
|
|
2234
|
+
else:
|
|
2235
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2236
|
+
|
|
2237
|
+
|
|
2099
2238
|
def ExportQA(self, request):
|
|
2100
2239
|
r"""异步导出 QA
|
|
2101
2240
|
|
|
@@ -2625,6 +2764,29 @@ class AdpClient(AbstractClient):
|
|
|
2625
2764
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2626
2765
|
|
|
2627
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
|
+
|
|
2628
2790
|
def ReleaseSkill(self, request):
|
|
2629
2791
|
r"""上架skill
|
|
2630
2792
|
|
|
@@ -2695,6 +2857,29 @@ class AdpClient(AbstractClient):
|
|
|
2695
2857
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2696
2858
|
|
|
2697
2859
|
|
|
2860
|
+
def ResumeWorkflowRun(self, request):
|
|
2861
|
+
r"""继续运行等待输入的工作流异步运行实例
|
|
2862
|
+
|
|
2863
|
+
:param request: Request instance for ResumeWorkflowRun.
|
|
2864
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.ResumeWorkflowRunRequest`
|
|
2865
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.ResumeWorkflowRunResponse`
|
|
2866
|
+
|
|
2867
|
+
"""
|
|
2868
|
+
try:
|
|
2869
|
+
params = request._serialize()
|
|
2870
|
+
headers = request.headers
|
|
2871
|
+
body = self.call("ResumeWorkflowRun", params, headers=headers)
|
|
2872
|
+
response = json.loads(body)
|
|
2873
|
+
model = models.ResumeWorkflowRunResponse()
|
|
2874
|
+
model._deserialize(response["Response"])
|
|
2875
|
+
return model
|
|
2876
|
+
except Exception as e:
|
|
2877
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2878
|
+
raise
|
|
2879
|
+
else:
|
|
2880
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2881
|
+
|
|
2882
|
+
|
|
2698
2883
|
def RetryRelease(self, request):
|
|
2699
2884
|
r"""重试发布(发布暂停之后再次重新发布)
|
|
2700
2885
|
|
|
@@ -2764,6 +2949,52 @@ class AdpClient(AbstractClient):
|
|
|
2764
2949
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2765
2950
|
|
|
2766
2951
|
|
|
2952
|
+
def SaveWorkflowDebugContext(self, request):
|
|
2953
|
+
r"""SaveWorkflowDebugContext
|
|
2954
|
+
|
|
2955
|
+
:param request: Request instance for SaveWorkflowDebugContext.
|
|
2956
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.SaveWorkflowDebugContextRequest`
|
|
2957
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.SaveWorkflowDebugContextResponse`
|
|
2958
|
+
|
|
2959
|
+
"""
|
|
2960
|
+
try:
|
|
2961
|
+
params = request._serialize()
|
|
2962
|
+
headers = request.headers
|
|
2963
|
+
body = self.call("SaveWorkflowDebugContext", params, headers=headers)
|
|
2964
|
+
response = json.loads(body)
|
|
2965
|
+
model = models.SaveWorkflowDebugContextResponse()
|
|
2966
|
+
model._deserialize(response["Response"])
|
|
2967
|
+
return model
|
|
2968
|
+
except Exception as e:
|
|
2969
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2970
|
+
raise
|
|
2971
|
+
else:
|
|
2972
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2973
|
+
|
|
2974
|
+
|
|
2975
|
+
def SaveWorkflowToolNodeOutput(self, request):
|
|
2976
|
+
r"""SaveWorkflowToolNodeOutput
|
|
2977
|
+
|
|
2978
|
+
:param request: Request instance for SaveWorkflowToolNodeOutput.
|
|
2979
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.SaveWorkflowToolNodeOutputRequest`
|
|
2980
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.SaveWorkflowToolNodeOutputResponse`
|
|
2981
|
+
|
|
2982
|
+
"""
|
|
2983
|
+
try:
|
|
2984
|
+
params = request._serialize()
|
|
2985
|
+
headers = request.headers
|
|
2986
|
+
body = self.call("SaveWorkflowToolNodeOutput", params, headers=headers)
|
|
2987
|
+
response = json.loads(body)
|
|
2988
|
+
model = models.SaveWorkflowToolNodeOutputResponse()
|
|
2989
|
+
model._deserialize(response["Response"])
|
|
2990
|
+
return model
|
|
2991
|
+
except Exception as e:
|
|
2992
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2993
|
+
raise
|
|
2994
|
+
else:
|
|
2995
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2996
|
+
|
|
2997
|
+
|
|
2767
2998
|
def SearchKnowledge(self, request):
|
|
2768
2999
|
r"""知识检索
|
|
2769
3000
|
|
|
@@ -2787,6 +3018,29 @@ class AdpClient(AbstractClient):
|
|
|
2787
3018
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2788
3019
|
|
|
2789
3020
|
|
|
3021
|
+
def StopWorkflowRunList(self, request):
|
|
3022
|
+
r"""批量停止正在进行的工作流运行实例。
|
|
3023
|
+
|
|
3024
|
+
:param request: Request instance for StopWorkflowRunList.
|
|
3025
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.StopWorkflowRunListRequest`
|
|
3026
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.StopWorkflowRunListResponse`
|
|
3027
|
+
|
|
3028
|
+
"""
|
|
3029
|
+
try:
|
|
3030
|
+
params = request._serialize()
|
|
3031
|
+
headers = request.headers
|
|
3032
|
+
body = self.call("StopWorkflowRunList", params, headers=headers)
|
|
3033
|
+
response = json.loads(body)
|
|
3034
|
+
model = models.StopWorkflowRunListResponse()
|
|
3035
|
+
model._deserialize(response["Response"])
|
|
3036
|
+
return model
|
|
3037
|
+
except Exception as e:
|
|
3038
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3039
|
+
raise
|
|
3040
|
+
else:
|
|
3041
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3042
|
+
|
|
3043
|
+
|
|
2790
3044
|
def UnfavoritePlugin(self, request):
|
|
2791
3045
|
r"""取消收藏插件
|
|
2792
3046
|
|
|
@@ -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,
|
|
@@ -421,6 +439,25 @@ class AdpClient(AbstractClient):
|
|
|
421
439
|
|
|
422
440
|
return await self.call_and_deserialize(**kwargs)
|
|
423
441
|
|
|
442
|
+
async def CreateWorkflowRun(
|
|
443
|
+
self,
|
|
444
|
+
request: models.CreateWorkflowRunRequest,
|
|
445
|
+
opts: Dict = None,
|
|
446
|
+
) -> models.CreateWorkflowRunResponse:
|
|
447
|
+
"""
|
|
448
|
+
本接口用来创建工作流的异步运行实例,创建成功后工作流会在后台异步运行,接口返回工作流运行实例ID(WorkflowRunId)等信息。后面可通过调用DescribeWorkflowRun接口查工作流运行的详情。
|
|
449
|
+
注意:工作流的异步运行是基于应用的,需要先把对应的应用配置成“单工作流模式”,才能创建成功。
|
|
450
|
+
"""
|
|
451
|
+
|
|
452
|
+
kwargs = {}
|
|
453
|
+
kwargs["action"] = "CreateWorkflowRun"
|
|
454
|
+
kwargs["params"] = request._serialize()
|
|
455
|
+
kwargs["resp_cls"] = models.CreateWorkflowRunResponse
|
|
456
|
+
kwargs["headers"] = request.headers
|
|
457
|
+
kwargs["opts"] = opts or {}
|
|
458
|
+
|
|
459
|
+
return await self.call_and_deserialize(**kwargs)
|
|
460
|
+
|
|
424
461
|
async def CreateWorkspaceCredential(
|
|
425
462
|
self,
|
|
426
463
|
request: models.CreateWorkspaceCredentialRequest,
|
|
@@ -1339,6 +1376,42 @@ class AdpClient(AbstractClient):
|
|
|
1339
1376
|
|
|
1340
1377
|
return await self.call_and_deserialize(**kwargs)
|
|
1341
1378
|
|
|
1379
|
+
async def DescribeNodeBatchRun(
|
|
1380
|
+
self,
|
|
1381
|
+
request: models.DescribeNodeBatchRunRequest,
|
|
1382
|
+
opts: Dict = None,
|
|
1383
|
+
) -> models.DescribeNodeBatchRunResponse:
|
|
1384
|
+
"""
|
|
1385
|
+
DescribeNodeBatchRun
|
|
1386
|
+
"""
|
|
1387
|
+
|
|
1388
|
+
kwargs = {}
|
|
1389
|
+
kwargs["action"] = "DescribeNodeBatchRun"
|
|
1390
|
+
kwargs["params"] = request._serialize()
|
|
1391
|
+
kwargs["resp_cls"] = models.DescribeNodeBatchRunResponse
|
|
1392
|
+
kwargs["headers"] = request.headers
|
|
1393
|
+
kwargs["opts"] = opts or {}
|
|
1394
|
+
|
|
1395
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1396
|
+
|
|
1397
|
+
async def DescribeNodeRunDetail(
|
|
1398
|
+
self,
|
|
1399
|
+
request: models.DescribeNodeRunDetailRequest,
|
|
1400
|
+
opts: Dict = None,
|
|
1401
|
+
) -> models.DescribeNodeRunDetailResponse:
|
|
1402
|
+
"""
|
|
1403
|
+
查看工作流节点运行详情
|
|
1404
|
+
"""
|
|
1405
|
+
|
|
1406
|
+
kwargs = {}
|
|
1407
|
+
kwargs["action"] = "DescribeNodeRunDetail"
|
|
1408
|
+
kwargs["params"] = request._serialize()
|
|
1409
|
+
kwargs["resp_cls"] = models.DescribeNodeRunDetailResponse
|
|
1410
|
+
kwargs["headers"] = request.headers
|
|
1411
|
+
kwargs["opts"] = opts or {}
|
|
1412
|
+
|
|
1413
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1414
|
+
|
|
1342
1415
|
async def DescribePlugin(
|
|
1343
1416
|
self,
|
|
1344
1417
|
request: models.DescribePluginRequest,
|
|
@@ -1645,6 +1718,42 @@ class AdpClient(AbstractClient):
|
|
|
1645
1718
|
|
|
1646
1719
|
return await self.call_and_deserialize(**kwargs)
|
|
1647
1720
|
|
|
1721
|
+
async def DescribeWorkflowRun(
|
|
1722
|
+
self,
|
|
1723
|
+
request: models.DescribeWorkflowRunRequest,
|
|
1724
|
+
opts: Dict = None,
|
|
1725
|
+
) -> models.DescribeWorkflowRunResponse:
|
|
1726
|
+
"""
|
|
1727
|
+
查询工作流运行详情
|
|
1728
|
+
"""
|
|
1729
|
+
|
|
1730
|
+
kwargs = {}
|
|
1731
|
+
kwargs["action"] = "DescribeWorkflowRun"
|
|
1732
|
+
kwargs["params"] = request._serialize()
|
|
1733
|
+
kwargs["resp_cls"] = models.DescribeWorkflowRunResponse
|
|
1734
|
+
kwargs["headers"] = request.headers
|
|
1735
|
+
kwargs["opts"] = opts or {}
|
|
1736
|
+
|
|
1737
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1738
|
+
|
|
1739
|
+
async def DescribeWorkflowRunSummaryList(
|
|
1740
|
+
self,
|
|
1741
|
+
request: models.DescribeWorkflowRunSummaryListRequest,
|
|
1742
|
+
opts: Dict = None,
|
|
1743
|
+
) -> models.DescribeWorkflowRunSummaryListResponse:
|
|
1744
|
+
"""
|
|
1745
|
+
查询工作流运行实例列表
|
|
1746
|
+
"""
|
|
1747
|
+
|
|
1748
|
+
kwargs = {}
|
|
1749
|
+
kwargs["action"] = "DescribeWorkflowRunSummaryList"
|
|
1750
|
+
kwargs["params"] = request._serialize()
|
|
1751
|
+
kwargs["resp_cls"] = models.DescribeWorkflowRunSummaryListResponse
|
|
1752
|
+
kwargs["headers"] = request.headers
|
|
1753
|
+
kwargs["opts"] = opts or {}
|
|
1754
|
+
|
|
1755
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1756
|
+
|
|
1648
1757
|
async def ExportQA(
|
|
1649
1758
|
self,
|
|
1650
1759
|
request: models.ExportQARequest,
|
|
@@ -2059,6 +2168,24 @@ class AdpClient(AbstractClient):
|
|
|
2059
2168
|
|
|
2060
2169
|
return await self.call_and_deserialize(**kwargs)
|
|
2061
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
|
+
|
|
2062
2189
|
async def ReleaseSkill(
|
|
2063
2190
|
self,
|
|
2064
2191
|
request: models.ReleaseSkillRequest,
|
|
@@ -2114,6 +2241,24 @@ class AdpClient(AbstractClient):
|
|
|
2114
2241
|
|
|
2115
2242
|
return await self.call_and_deserialize(**kwargs)
|
|
2116
2243
|
|
|
2244
|
+
async def ResumeWorkflowRun(
|
|
2245
|
+
self,
|
|
2246
|
+
request: models.ResumeWorkflowRunRequest,
|
|
2247
|
+
opts: Dict = None,
|
|
2248
|
+
) -> models.ResumeWorkflowRunResponse:
|
|
2249
|
+
"""
|
|
2250
|
+
继续运行等待输入的工作流异步运行实例
|
|
2251
|
+
"""
|
|
2252
|
+
|
|
2253
|
+
kwargs = {}
|
|
2254
|
+
kwargs["action"] = "ResumeWorkflowRun"
|
|
2255
|
+
kwargs["params"] = request._serialize()
|
|
2256
|
+
kwargs["resp_cls"] = models.ResumeWorkflowRunResponse
|
|
2257
|
+
kwargs["headers"] = request.headers
|
|
2258
|
+
kwargs["opts"] = opts or {}
|
|
2259
|
+
|
|
2260
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2261
|
+
|
|
2117
2262
|
async def RetryRelease(
|
|
2118
2263
|
self,
|
|
2119
2264
|
request: models.RetryReleaseRequest,
|
|
@@ -2168,6 +2313,42 @@ class AdpClient(AbstractClient):
|
|
|
2168
2313
|
|
|
2169
2314
|
return await self.call_and_deserialize(**kwargs)
|
|
2170
2315
|
|
|
2316
|
+
async def SaveWorkflowDebugContext(
|
|
2317
|
+
self,
|
|
2318
|
+
request: models.SaveWorkflowDebugContextRequest,
|
|
2319
|
+
opts: Dict = None,
|
|
2320
|
+
) -> models.SaveWorkflowDebugContextResponse:
|
|
2321
|
+
"""
|
|
2322
|
+
SaveWorkflowDebugContext
|
|
2323
|
+
"""
|
|
2324
|
+
|
|
2325
|
+
kwargs = {}
|
|
2326
|
+
kwargs["action"] = "SaveWorkflowDebugContext"
|
|
2327
|
+
kwargs["params"] = request._serialize()
|
|
2328
|
+
kwargs["resp_cls"] = models.SaveWorkflowDebugContextResponse
|
|
2329
|
+
kwargs["headers"] = request.headers
|
|
2330
|
+
kwargs["opts"] = opts or {}
|
|
2331
|
+
|
|
2332
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2333
|
+
|
|
2334
|
+
async def SaveWorkflowToolNodeOutput(
|
|
2335
|
+
self,
|
|
2336
|
+
request: models.SaveWorkflowToolNodeOutputRequest,
|
|
2337
|
+
opts: Dict = None,
|
|
2338
|
+
) -> models.SaveWorkflowToolNodeOutputResponse:
|
|
2339
|
+
"""
|
|
2340
|
+
SaveWorkflowToolNodeOutput
|
|
2341
|
+
"""
|
|
2342
|
+
|
|
2343
|
+
kwargs = {}
|
|
2344
|
+
kwargs["action"] = "SaveWorkflowToolNodeOutput"
|
|
2345
|
+
kwargs["params"] = request._serialize()
|
|
2346
|
+
kwargs["resp_cls"] = models.SaveWorkflowToolNodeOutputResponse
|
|
2347
|
+
kwargs["headers"] = request.headers
|
|
2348
|
+
kwargs["opts"] = opts or {}
|
|
2349
|
+
|
|
2350
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2351
|
+
|
|
2171
2352
|
async def SearchKnowledge(
|
|
2172
2353
|
self,
|
|
2173
2354
|
request: models.SearchKnowledgeRequest,
|
|
@@ -2186,6 +2367,24 @@ class AdpClient(AbstractClient):
|
|
|
2186
2367
|
|
|
2187
2368
|
return await self.call_and_deserialize(**kwargs)
|
|
2188
2369
|
|
|
2370
|
+
async def StopWorkflowRunList(
|
|
2371
|
+
self,
|
|
2372
|
+
request: models.StopWorkflowRunListRequest,
|
|
2373
|
+
opts: Dict = None,
|
|
2374
|
+
) -> models.StopWorkflowRunListResponse:
|
|
2375
|
+
"""
|
|
2376
|
+
批量停止正在进行的工作流运行实例。
|
|
2377
|
+
"""
|
|
2378
|
+
|
|
2379
|
+
kwargs = {}
|
|
2380
|
+
kwargs["action"] = "StopWorkflowRunList"
|
|
2381
|
+
kwargs["params"] = request._serialize()
|
|
2382
|
+
kwargs["resp_cls"] = models.StopWorkflowRunListResponse
|
|
2383
|
+
kwargs["headers"] = request.headers
|
|
2384
|
+
kwargs["opts"] = opts or {}
|
|
2385
|
+
|
|
2386
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2387
|
+
|
|
2189
2388
|
async def UnfavoritePlugin(
|
|
2190
2389
|
self,
|
|
2191
2390
|
request: models.UnfavoritePluginRequest,
|