tencentcloud-sdk-lke 3.0.1079 → 3.0.1080

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef1803a3c9178f66cf9e42ae2694b85bd5f67fe4
4
- data.tar.gz: 2a3796f6ad2a9d050bbbacafa7d03aa1ecee3d56
3
+ metadata.gz: 0d4a966d600c5f38cff1f9544078f2cc1128c32c
4
+ data.tar.gz: 114302d5fccdf9041731b6f60e3e9e2025599842
5
5
  SHA512:
6
- metadata.gz: 8ee2d463d71718634b4931bbc048bdd15e74e6b599ea92a0f5515c47908784ec4ebcf10da284a2b8d835c629fafc67d193d7859b43097ecca2f6a6fdaeaedf91
7
- data.tar.gz: 1d9169c11495f1191ce68fd2b4db3a190b19fccbc1c996f73851d81eefb4771e9bf18feb9eba1adcb88ce7342d59eda782b3ad23f58c79e2f5167fb32d05ef2d
6
+ metadata.gz: a22a44ebd9663cda143300cb767519f8c0b04d2d6e9ab59c98529d4565d1f7add926a1f028896f8bdf38210e1714e24bd9dfd5765cb62fb39290fbb82d096664
7
+ data.tar.gz: 6b6daf98f45f56323041e7f70e601ffd040da6904fdb1275022170228c282823627703ebb00865c4936a7bd85b60ea68ee91a275819ade77378b489d1c0fa9a6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1079
1
+ 3.0.1080
@@ -343,6 +343,31 @@ module TencentCloud
343
343
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
344
344
  end
345
345
 
346
+ # 本接口用来创建工作流的异步运行实例,创建成功后工作流会在后台异步运行,接口返回工作流运行实例ID(WorkflowRunId)等信息。后面可通过调用DescribeWorkflowRun接口查工作流运行的详情。
347
+ # 注意:工作流的异步运行是基于应用的,需要先把对应的应用配置成“单工作流模式”,并且打开“异步调用”的开关,才能创建成功。
348
+
349
+ # @param request: Request instance for CreateWorkflowRun.
350
+ # @type request: :class:`Tencentcloud::lke::V20231130::CreateWorkflowRunRequest`
351
+ # @rtype: :class:`Tencentcloud::lke::V20231130::CreateWorkflowRunResponse`
352
+ def CreateWorkflowRun(request)
353
+ body = send_request('CreateWorkflowRun', request.serialize)
354
+ response = JSON.parse(body)
355
+ if response['Response'].key?('Error') == false
356
+ model = CreateWorkflowRunResponse.new
357
+ model.deserialize(response['Response'])
358
+ model
359
+ else
360
+ code = response['Response']['Error']['Code']
361
+ message = response['Response']['Error']['Message']
362
+ reqid = response['Response']['RequestId']
363
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
364
+ end
365
+ rescue TencentCloud::Common::TencentCloudSDKException => e
366
+ raise e
367
+ rescue StandardError => e
368
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
369
+ end
370
+
346
371
  # 删除应用
347
372
 
348
373
  # @param request: Request instance for DeleteApp.
@@ -751,6 +776,30 @@ module TencentCloud
751
776
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
752
777
  end
753
778
 
779
+ # 通过DescribeWorkflowRun接口获取了工作流异步运行的整体内容,其中包含了基本的节点信息,再通用本接口可查看节点的运行详情(包括输入、输出、日志等)。
780
+
781
+ # @param request: Request instance for DescribeNodeRun.
782
+ # @type request: :class:`Tencentcloud::lke::V20231130::DescribeNodeRunRequest`
783
+ # @rtype: :class:`Tencentcloud::lke::V20231130::DescribeNodeRunResponse`
784
+ def DescribeNodeRun(request)
785
+ body = send_request('DescribeNodeRun', request.serialize)
786
+ response = JSON.parse(body)
787
+ if response['Response'].key?('Error') == false
788
+ model = DescribeNodeRunResponse.new
789
+ model.deserialize(response['Response'])
790
+ model
791
+ else
792
+ code = response['Response']['Error']['Code']
793
+ message = response['Response']['Error']['Message']
794
+ reqid = response['Response']['RequestId']
795
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
796
+ end
797
+ rescue TencentCloud::Common::TencentCloudSDKException => e
798
+ raise e
799
+ rescue StandardError => e
800
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
801
+ end
802
+
754
803
  # 问答详情
755
804
 
756
805
  # @param request: Request instance for DescribeQA.
@@ -1039,6 +1088,30 @@ module TencentCloud
1039
1088
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1040
1089
  end
1041
1090
 
1091
+ # 创建了工作流的异步运行实例后,通过本接口可以查询整体的运行详情。
1092
+
1093
+ # @param request: Request instance for DescribeWorkflowRun.
1094
+ # @type request: :class:`Tencentcloud::lke::V20231130::DescribeWorkflowRunRequest`
1095
+ # @rtype: :class:`Tencentcloud::lke::V20231130::DescribeWorkflowRunResponse`
1096
+ def DescribeWorkflowRun(request)
1097
+ body = send_request('DescribeWorkflowRun', request.serialize)
1098
+ response = JSON.parse(body)
1099
+ if response['Response'].key?('Error') == false
1100
+ model = DescribeWorkflowRunResponse.new
1101
+ model.deserialize(response['Response'])
1102
+ model
1103
+ else
1104
+ code = response['Response']['Error']['Code']
1105
+ message = response['Response']['Error']['Message']
1106
+ reqid = response['Response']['RequestId']
1107
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1108
+ end
1109
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1110
+ raise e
1111
+ rescue StandardError => e
1112
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1113
+ end
1114
+
1042
1115
  # 导出属性标签
1043
1116
 
1044
1117
  # @param request: Request instance for ExportAttributeLabel.
@@ -1978,6 +2051,30 @@ module TencentCloud
1978
2051
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1979
2052
  end
1980
2053
 
2054
+ # 此接口可查询已创建的所有工作流异步运行实例。
2055
+
2056
+ # @param request: Request instance for ListWorkflowRuns.
2057
+ # @type request: :class:`Tencentcloud::lke::V20231130::ListWorkflowRunsRequest`
2058
+ # @rtype: :class:`Tencentcloud::lke::V20231130::ListWorkflowRunsResponse`
2059
+ def ListWorkflowRuns(request)
2060
+ body = send_request('ListWorkflowRuns', request.serialize)
2061
+ response = JSON.parse(body)
2062
+ if response['Response'].key?('Error') == false
2063
+ model = ListWorkflowRunsResponse.new
2064
+ model.deserialize(response['Response'])
2065
+ model
2066
+ else
2067
+ code = response['Response']['Error']['Code']
2068
+ message = response['Response']['Error']['Message']
2069
+ reqid = response['Response']['RequestId']
2070
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2071
+ end
2072
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2073
+ raise e
2074
+ rescue StandardError => e
2075
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2076
+ end
2077
+
1981
2078
  # 修改应用请求结构体
1982
2079
 
1983
2080
  # @param request: Request instance for ModifyApp.
@@ -2466,6 +2563,30 @@ module TencentCloud
2466
2563
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2467
2564
  end
2468
2565
 
2566
+ # 此接口用来停止正在进行的工作流异步运行实例。
2567
+
2568
+ # @param request: Request instance for StopWorkflowRun.
2569
+ # @type request: :class:`Tencentcloud::lke::V20231130::StopWorkflowRunRequest`
2570
+ # @rtype: :class:`Tencentcloud::lke::V20231130::StopWorkflowRunResponse`
2571
+ def StopWorkflowRun(request)
2572
+ body = send_request('StopWorkflowRun', request.serialize)
2573
+ response = JSON.parse(body)
2574
+ if response['Response'].key?('Error') == false
2575
+ model = StopWorkflowRunResponse.new
2576
+ model.deserialize(response['Response'])
2577
+ model
2578
+ else
2579
+ code = response['Response']['Error']['Code']
2580
+ message = response['Response']['Error']['Message']
2581
+ reqid = response['Response']['RequestId']
2582
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2583
+ end
2584
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2585
+ raise e
2586
+ rescue StandardError => e
2587
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2588
+ end
2589
+
2469
2590
  # 更新共享知识库。
2470
2591
 
2471
2592
  # @param request: Request instance for UpdateSharedKnowledge.
@@ -1804,6 +1804,88 @@ module TencentCloud
1804
1804
  end
1805
1805
  end
1806
1806
 
1807
+ # CreateWorkflowRun请求参数结构体
1808
+ class CreateWorkflowRunRequest < TencentCloud::Common::AbstractModel
1809
+ # @param RunEnv: 运行环境。0: 测试环境; 1: 正式环境
1810
+ # @type RunEnv: Integer
1811
+ # @param AppBizId: 应用ID
1812
+ # @type AppBizId: String
1813
+ # @param Query: 用户输入的内容
1814
+ # @type Query: String
1815
+ # @param CustomVariables: API参数配置
1816
+ # @type CustomVariables: Array
1817
+
1818
+ attr_accessor :RunEnv, :AppBizId, :Query, :CustomVariables
1819
+
1820
+ def initialize(runenv=nil, appbizid=nil, query=nil, customvariables=nil)
1821
+ @RunEnv = runenv
1822
+ @AppBizId = appbizid
1823
+ @Query = query
1824
+ @CustomVariables = customvariables
1825
+ end
1826
+
1827
+ def deserialize(params)
1828
+ @RunEnv = params['RunEnv']
1829
+ @AppBizId = params['AppBizId']
1830
+ @Query = params['Query']
1831
+ unless params['CustomVariables'].nil?
1832
+ @CustomVariables = []
1833
+ params['CustomVariables'].each do |i|
1834
+ customvariable_tmp = CustomVariable.new
1835
+ customvariable_tmp.deserialize(i)
1836
+ @CustomVariables << customvariable_tmp
1837
+ end
1838
+ end
1839
+ end
1840
+ end
1841
+
1842
+ # CreateWorkflowRun返回参数结构体
1843
+ class CreateWorkflowRunResponse < TencentCloud::Common::AbstractModel
1844
+ # @param AppBizId: 应用ID
1845
+ # @type AppBizId: String
1846
+ # @param WorkflowRunId: 工作流运行实例的ID
1847
+ # @type WorkflowRunId: String
1848
+ # @param RunEnv: 运行环境。0: 测试环境; 1: 正式环境
1849
+ # @type RunEnv: Integer
1850
+ # @param Query: 用户输入的内容
1851
+ # @type Query: String
1852
+ # @param CustomVariables: API参数配置
1853
+ # @type CustomVariables: Array
1854
+ # @param CreateTime: 创建时间(毫秒时间戳)
1855
+ # @type CreateTime: String
1856
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1857
+ # @type RequestId: String
1858
+
1859
+ attr_accessor :AppBizId, :WorkflowRunId, :RunEnv, :Query, :CustomVariables, :CreateTime, :RequestId
1860
+
1861
+ def initialize(appbizid=nil, workflowrunid=nil, runenv=nil, query=nil, customvariables=nil, createtime=nil, requestid=nil)
1862
+ @AppBizId = appbizid
1863
+ @WorkflowRunId = workflowrunid
1864
+ @RunEnv = runenv
1865
+ @Query = query
1866
+ @CustomVariables = customvariables
1867
+ @CreateTime = createtime
1868
+ @RequestId = requestid
1869
+ end
1870
+
1871
+ def deserialize(params)
1872
+ @AppBizId = params['AppBizId']
1873
+ @WorkflowRunId = params['WorkflowRunId']
1874
+ @RunEnv = params['RunEnv']
1875
+ @Query = params['Query']
1876
+ unless params['CustomVariables'].nil?
1877
+ @CustomVariables = []
1878
+ params['CustomVariables'].each do |i|
1879
+ customvariable_tmp = CustomVariable.new
1880
+ customvariable_tmp.deserialize(i)
1881
+ @CustomVariables << customvariable_tmp
1882
+ end
1883
+ end
1884
+ @CreateTime = params['CreateTime']
1885
+ @RequestId = params['RequestId']
1886
+ end
1887
+ end
1888
+
1807
1889
  # 临时密钥结构
1808
1890
  class Credentials < TencentCloud::Common::AbstractModel
1809
1891
  # @param Token: token
@@ -1836,6 +1918,26 @@ module TencentCloud
1836
1918
  end
1837
1919
  end
1838
1920
 
1921
+ # 工作流的API参数
1922
+ class CustomVariable < TencentCloud::Common::AbstractModel
1923
+ # @param Name: 参数名称
1924
+ # @type Name: String
1925
+ # @param Value: 参数的值
1926
+ # @type Value: String
1927
+
1928
+ attr_accessor :Name, :Value
1929
+
1930
+ def initialize(name=nil, value=nil)
1931
+ @Name = name
1932
+ @Value = value
1933
+ end
1934
+
1935
+ def deserialize(params)
1936
+ @Name = params['Name']
1937
+ @Value = params['Value']
1938
+ end
1939
+ end
1940
+
1839
1941
  # DeleteApp请求参数结构体
1840
1942
  class DeleteAppRequest < TencentCloud::Common::AbstractModel
1841
1943
  # @param AppBizId: 应用ID
@@ -2811,6 +2913,45 @@ module TencentCloud
2811
2913
  end
2812
2914
  end
2813
2915
 
2916
+ # DescribeNodeRun请求参数结构体
2917
+ class DescribeNodeRunRequest < TencentCloud::Common::AbstractModel
2918
+ # @param NodeRunId: 节点运行实例ID
2919
+ # @type NodeRunId: String
2920
+
2921
+ attr_accessor :NodeRunId
2922
+
2923
+ def initialize(noderunid=nil)
2924
+ @NodeRunId = noderunid
2925
+ end
2926
+
2927
+ def deserialize(params)
2928
+ @NodeRunId = params['NodeRunId']
2929
+ end
2930
+ end
2931
+
2932
+ # DescribeNodeRun返回参数结构体
2933
+ class DescribeNodeRunResponse < TencentCloud::Common::AbstractModel
2934
+ # @param NodeRun: 节点运行实例详情
2935
+ # @type NodeRun: :class:`Tencentcloud::Lke.v20231130.models.NodeRunDetail`
2936
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2937
+ # @type RequestId: String
2938
+
2939
+ attr_accessor :NodeRun, :RequestId
2940
+
2941
+ def initialize(noderun=nil, requestid=nil)
2942
+ @NodeRun = noderun
2943
+ @RequestId = requestid
2944
+ end
2945
+
2946
+ def deserialize(params)
2947
+ unless params['NodeRun'].nil?
2948
+ @NodeRun = NodeRunDetail.new
2949
+ @NodeRun.deserialize(params['NodeRun'])
2950
+ end
2951
+ @RequestId = params['RequestId']
2952
+ end
2953
+ end
2954
+
2814
2955
  # DescribeQA请求参数结构体
2815
2956
  class DescribeQARequest < TencentCloud::Common::AbstractModel
2816
2957
  # @param QaBizId: QA业务ID
@@ -3675,6 +3816,56 @@ module TencentCloud
3675
3816
  end
3676
3817
  end
3677
3818
 
3819
+ # DescribeWorkflowRun请求参数结构体
3820
+ class DescribeWorkflowRunRequest < TencentCloud::Common::AbstractModel
3821
+ # @param WorkflowRunId: 工作流运行实例ID
3822
+ # @type WorkflowRunId: String
3823
+
3824
+ attr_accessor :WorkflowRunId
3825
+
3826
+ def initialize(workflowrunid=nil)
3827
+ @WorkflowRunId = workflowrunid
3828
+ end
3829
+
3830
+ def deserialize(params)
3831
+ @WorkflowRunId = params['WorkflowRunId']
3832
+ end
3833
+ end
3834
+
3835
+ # DescribeWorkflowRun返回参数结构体
3836
+ class DescribeWorkflowRunResponse < TencentCloud::Common::AbstractModel
3837
+ # @param WorkflowRun: 总数
3838
+ # @type WorkflowRun: :class:`Tencentcloud::Lke.v20231130.models.WorkflowRunDetail`
3839
+ # @param NodeRuns: 节点列表
3840
+ # @type NodeRuns: Array
3841
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3842
+ # @type RequestId: String
3843
+
3844
+ attr_accessor :WorkflowRun, :NodeRuns, :RequestId
3845
+
3846
+ def initialize(workflowrun=nil, noderuns=nil, requestid=nil)
3847
+ @WorkflowRun = workflowrun
3848
+ @NodeRuns = noderuns
3849
+ @RequestId = requestid
3850
+ end
3851
+
3852
+ def deserialize(params)
3853
+ unless params['WorkflowRun'].nil?
3854
+ @WorkflowRun = WorkflowRunDetail.new
3855
+ @WorkflowRun.deserialize(params['WorkflowRun'])
3856
+ end
3857
+ unless params['NodeRuns'].nil?
3858
+ @NodeRuns = []
3859
+ params['NodeRuns'].each do |i|
3860
+ noderunbase_tmp = NodeRunBase.new
3861
+ noderunbase_tmp.deserialize(i)
3862
+ @NodeRuns << noderunbase_tmp
3863
+ end
3864
+ end
3865
+ @RequestId = params['RequestId']
3866
+ end
3867
+ end
3868
+
3678
3869
  # 数智人配置
3679
3870
  class DigitalHumanConfig < TencentCloud::Common::AbstractModel
3680
3871
  # @param AssetKey: 数智人资产key
@@ -7518,6 +7709,73 @@ module TencentCloud
7518
7709
  end
7519
7710
  end
7520
7711
 
7712
+ # ListWorkflowRuns请求参数结构体
7713
+ class ListWorkflowRunsRequest < TencentCloud::Common::AbstractModel
7714
+ # @param RunEnv: 运行环境。0: 测试环境; 1: 正式环境
7715
+ # @type RunEnv: Integer
7716
+ # @param AppBizId: 应用ID
7717
+ # @type AppBizId: String
7718
+ # @param Page: 页码
7719
+ # @type Page: Integer
7720
+ # @param PageSize: 每页数量
7721
+ # @type PageSize: Integer
7722
+ # @param LoginUin: 登录用户主账号(集成商模式必填)
7723
+ # @type LoginUin: String
7724
+ # @param LoginSubAccountUin: 登录用户子账号(集成商模式必填)
7725
+ # @type LoginSubAccountUin: String
7726
+
7727
+ attr_accessor :RunEnv, :AppBizId, :Page, :PageSize, :LoginUin, :LoginSubAccountUin
7728
+
7729
+ def initialize(runenv=nil, appbizid=nil, page=nil, pagesize=nil, loginuin=nil, loginsubaccountuin=nil)
7730
+ @RunEnv = runenv
7731
+ @AppBizId = appbizid
7732
+ @Page = page
7733
+ @PageSize = pagesize
7734
+ @LoginUin = loginuin
7735
+ @LoginSubAccountUin = loginsubaccountuin
7736
+ end
7737
+
7738
+ def deserialize(params)
7739
+ @RunEnv = params['RunEnv']
7740
+ @AppBizId = params['AppBizId']
7741
+ @Page = params['Page']
7742
+ @PageSize = params['PageSize']
7743
+ @LoginUin = params['LoginUin']
7744
+ @LoginSubAccountUin = params['LoginSubAccountUin']
7745
+ end
7746
+ end
7747
+
7748
+ # ListWorkflowRuns返回参数结构体
7749
+ class ListWorkflowRunsResponse < TencentCloud::Common::AbstractModel
7750
+ # @param Total: 总数
7751
+ # @type Total: Integer
7752
+ # @param WorkflowRuns: 工作流运行列表
7753
+ # @type WorkflowRuns: Array
7754
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7755
+ # @type RequestId: String
7756
+
7757
+ attr_accessor :Total, :WorkflowRuns, :RequestId
7758
+
7759
+ def initialize(total=nil, workflowruns=nil, requestid=nil)
7760
+ @Total = total
7761
+ @WorkflowRuns = workflowruns
7762
+ @RequestId = requestid
7763
+ end
7764
+
7765
+ def deserialize(params)
7766
+ @Total = params['Total']
7767
+ unless params['WorkflowRuns'].nil?
7768
+ @WorkflowRuns = []
7769
+ params['WorkflowRuns'].each do |i|
7770
+ workflowrunbase_tmp = WorkflowRunBase.new
7771
+ workflowrunbase_tmp.deserialize(i)
7772
+ @WorkflowRuns << workflowrunbase_tmp
7773
+ end
7774
+ end
7775
+ @RequestId = params['RequestId']
7776
+ end
7777
+ end
7778
+
7521
7779
  # 一条message代表一条对话记录
7522
7780
  # role表示角色 user或者assistant
7523
7781
  # content表示对话内容
@@ -8457,6 +8715,199 @@ module TencentCloud
8457
8715
  end
8458
8716
  end
8459
8717
 
8718
+ # 节点运行的基本信息
8719
+ class NodeRunBase < TencentCloud::Common::AbstractModel
8720
+ # @param NodeRunId: 节点运行的ID
8721
+ # @type NodeRunId: String
8722
+ # @param NodeId: 节点ID
8723
+ # @type NodeId: String
8724
+ # @param WorkflowRunId: 工作流运行实例的ID
8725
+ # @type WorkflowRunId: String
8726
+ # @param NodeName: 节点名称
8727
+ # @type NodeName: String
8728
+ # @param NodeType: 节点类型。
8729
+ # 1: 开始节点
8730
+ # 2:参数提取节点
8731
+ # 3:大模型节点
8732
+ # 4:知识问答节点
8733
+ # 5:知识检索节点
8734
+ # 6:标签提取节点
8735
+ # 7:代码执行节点
8736
+ # 8:工具节点
8737
+ # 9:逻辑判断节点
8738
+ # 10:回复节点
8739
+ # 11:选项卡节点
8740
+ # 12:循环节点
8741
+ # 13:意图识别节点
8742
+ # 14:工作流节点
8743
+ # 15:插件节点
8744
+ # 16:结束节点
8745
+ # 17: 变量聚合节点数据
8746
+ # 18: 批处理节点
8747
+ # 19: 消息队列节点
8748
+ # @type NodeType: Integer
8749
+ # @param State: 运行状态。0: 初始状态;1: 运行中;2: 运行成功; 3: 运行失败; 4: 已取消
8750
+ # @type State: Integer
8751
+ # @param FailCode: 错误码
8752
+ # @type FailCode: String
8753
+ # @param FailMessage: 错误信息
8754
+ # @type FailMessage: String
8755
+ # @param CostMilliseconds: 消耗时间(毫秒)
8756
+ # @type CostMilliseconds: Integer
8757
+ # @param TotalTokens: 消耗的token总数
8758
+ # @type TotalTokens: Integer
8759
+
8760
+ attr_accessor :NodeRunId, :NodeId, :WorkflowRunId, :NodeName, :NodeType, :State, :FailCode, :FailMessage, :CostMilliseconds, :TotalTokens
8761
+
8762
+ def initialize(noderunid=nil, nodeid=nil, workflowrunid=nil, nodename=nil, nodetype=nil, state=nil, failcode=nil, failmessage=nil, costmilliseconds=nil, totaltokens=nil)
8763
+ @NodeRunId = noderunid
8764
+ @NodeId = nodeid
8765
+ @WorkflowRunId = workflowrunid
8766
+ @NodeName = nodename
8767
+ @NodeType = nodetype
8768
+ @State = state
8769
+ @FailCode = failcode
8770
+ @FailMessage = failmessage
8771
+ @CostMilliseconds = costmilliseconds
8772
+ @TotalTokens = totaltokens
8773
+ end
8774
+
8775
+ def deserialize(params)
8776
+ @NodeRunId = params['NodeRunId']
8777
+ @NodeId = params['NodeId']
8778
+ @WorkflowRunId = params['WorkflowRunId']
8779
+ @NodeName = params['NodeName']
8780
+ @NodeType = params['NodeType']
8781
+ @State = params['State']
8782
+ @FailCode = params['FailCode']
8783
+ @FailMessage = params['FailMessage']
8784
+ @CostMilliseconds = params['CostMilliseconds']
8785
+ @TotalTokens = params['TotalTokens']
8786
+ end
8787
+ end
8788
+
8789
+ # 工作流节点运行详情
8790
+ class NodeRunDetail < TencentCloud::Common::AbstractModel
8791
+ # @param NodeRunId: 节点运行的ID
8792
+ # @type NodeRunId: String
8793
+ # @param NodeId: 节点ID
8794
+ # @type NodeId: String
8795
+ # @param WorkflowRunId: 工作流运行实例的ID
8796
+ # @type WorkflowRunId: String
8797
+ # @param NodeName: 节点名称
8798
+ # @type NodeName: String
8799
+ # @param NodeType: 节点类型。
8800
+ # 1: 开始节点
8801
+ # 2:参数提取节点
8802
+ # 3:大模型节点
8803
+ # 4:知识问答节点
8804
+ # 5:知识检索节点
8805
+ # 6:标签提取节点
8806
+ # 7:代码执行节点
8807
+ # 8:工具节点
8808
+ # 9:逻辑判断节点
8809
+ # 10:回复节点
8810
+ # 11:选项卡节点
8811
+ # 12:循环节点
8812
+ # 13:意图识别节点
8813
+ # 14:工作流节点
8814
+ # 15:插件节点
8815
+ # 16:结束节点
8816
+ # 17: 变量聚合节点数据
8817
+ # 18: 批处理节点
8818
+ # 19: 消息队列节点
8819
+ # @type NodeType: Integer
8820
+ # @param State: 运行状态。0: 初始状态;1: 运行中;2: 运行成功; 3: 运行失败; 4: 已取消
8821
+ # @type State: Integer
8822
+ # @param FailCode: 错误码
8823
+ # @type FailCode: String
8824
+ # @param FailMessage: 错误信息
8825
+ # @type FailMessage: String
8826
+ # @param CostMilliseconds: 消耗时间(毫秒)
8827
+ # @type CostMilliseconds: Integer
8828
+ # @param TotalTokens: 消耗的token总数
8829
+ # @type TotalTokens: Integer
8830
+ # @param Input: 输入变量信息
8831
+ # @type Input: String
8832
+ # @param InputRef: 节点的输入的完整内容的链接。(当Input内容超过限制的时候此字段才有值)
8833
+ # @type InputRef: String
8834
+ # @param Output: 输出变量信息
8835
+ # @type Output: String
8836
+ # @param OutputRef: 节点的输出的完整内容的链接。(当Output内容超过限制的时候此字段才有值)
8837
+ # @type OutputRef: String
8838
+ # @param TaskOutput: 原始输出信息。部分节点才有值,如工具节点、代码节点
8839
+ # @type TaskOutput: String
8840
+ # @param TaskOutputRef: 任务的原始输出的完整内容的链接。(当TaskOutput内容超过限制的时候此字段才有值)
8841
+ # @type TaskOutputRef: String
8842
+ # @param Log: 节点的日志
8843
+ # @type Log: String
8844
+ # @param LogRef: 节点的日志的完整内容的链接志(当Log内容超过限制的时候才有值)
8845
+ # @type LogRef: String
8846
+ # @param StartTime: 开始时间戳(毫秒)
8847
+ # @type StartTime: String
8848
+ # @param EndTime: 结束时间戳(毫秒)
8849
+ # @type EndTime: String
8850
+ # @param StatisticInfos: LLM统计信息。
8851
+ # @type StatisticInfos: Array
8852
+
8853
+ attr_accessor :NodeRunId, :NodeId, :WorkflowRunId, :NodeName, :NodeType, :State, :FailCode, :FailMessage, :CostMilliseconds, :TotalTokens, :Input, :InputRef, :Output, :OutputRef, :TaskOutput, :TaskOutputRef, :Log, :LogRef, :StartTime, :EndTime, :StatisticInfos
8854
+
8855
+ def initialize(noderunid=nil, nodeid=nil, workflowrunid=nil, nodename=nil, nodetype=nil, state=nil, failcode=nil, failmessage=nil, costmilliseconds=nil, totaltokens=nil, input=nil, inputref=nil, output=nil, outputref=nil, taskoutput=nil, taskoutputref=nil, log=nil, logref=nil, starttime=nil, endtime=nil, statisticinfos=nil)
8856
+ @NodeRunId = noderunid
8857
+ @NodeId = nodeid
8858
+ @WorkflowRunId = workflowrunid
8859
+ @NodeName = nodename
8860
+ @NodeType = nodetype
8861
+ @State = state
8862
+ @FailCode = failcode
8863
+ @FailMessage = failmessage
8864
+ @CostMilliseconds = costmilliseconds
8865
+ @TotalTokens = totaltokens
8866
+ @Input = input
8867
+ @InputRef = inputref
8868
+ @Output = output
8869
+ @OutputRef = outputref
8870
+ @TaskOutput = taskoutput
8871
+ @TaskOutputRef = taskoutputref
8872
+ @Log = log
8873
+ @LogRef = logref
8874
+ @StartTime = starttime
8875
+ @EndTime = endtime
8876
+ @StatisticInfos = statisticinfos
8877
+ end
8878
+
8879
+ def deserialize(params)
8880
+ @NodeRunId = params['NodeRunId']
8881
+ @NodeId = params['NodeId']
8882
+ @WorkflowRunId = params['WorkflowRunId']
8883
+ @NodeName = params['NodeName']
8884
+ @NodeType = params['NodeType']
8885
+ @State = params['State']
8886
+ @FailCode = params['FailCode']
8887
+ @FailMessage = params['FailMessage']
8888
+ @CostMilliseconds = params['CostMilliseconds']
8889
+ @TotalTokens = params['TotalTokens']
8890
+ @Input = params['Input']
8891
+ @InputRef = params['InputRef']
8892
+ @Output = params['Output']
8893
+ @OutputRef = params['OutputRef']
8894
+ @TaskOutput = params['TaskOutput']
8895
+ @TaskOutputRef = params['TaskOutputRef']
8896
+ @Log = params['Log']
8897
+ @LogRef = params['LogRef']
8898
+ @StartTime = params['StartTime']
8899
+ @EndTime = params['EndTime']
8900
+ unless params['StatisticInfos'].nil?
8901
+ @StatisticInfos = []
8902
+ params['StatisticInfos'].each do |i|
8903
+ statisticinfo_tmp = StatisticInfo.new
8904
+ statisticinfo_tmp.deserialize(i)
8905
+ @StatisticInfos << statisticinfo_tmp
8906
+ end
8907
+ end
8908
+ end
8909
+ end
8910
+
8460
8911
  # 下拉框选项
8461
8912
  class Option < TencentCloud::Common::AbstractModel
8462
8913
  # @param Text: 文本
@@ -10131,6 +10582,38 @@ module TencentCloud
10131
10582
  end
10132
10583
  end
10133
10584
 
10585
+ # StopWorkflowRun请求参数结构体
10586
+ class StopWorkflowRunRequest < TencentCloud::Common::AbstractModel
10587
+ # @param WorkflowRunId: 工作流运行实例ID
10588
+ # @type WorkflowRunId: String
10589
+
10590
+ attr_accessor :WorkflowRunId
10591
+
10592
+ def initialize(workflowrunid=nil)
10593
+ @WorkflowRunId = workflowrunid
10594
+ end
10595
+
10596
+ def deserialize(params)
10597
+ @WorkflowRunId = params['WorkflowRunId']
10598
+ end
10599
+ end
10600
+
10601
+ # StopWorkflowRun返回参数结构体
10602
+ class StopWorkflowRunResponse < TencentCloud::Common::AbstractModel
10603
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10604
+ # @type RequestId: String
10605
+
10606
+ attr_accessor :RequestId
10607
+
10608
+ def initialize(requestid=nil)
10609
+ @RequestId = requestid
10610
+ end
10611
+
10612
+ def deserialize(params)
10613
+ @RequestId = params['RequestId']
10614
+ end
10615
+ end
10616
+
10134
10617
  # 字符串KV信息
10135
10618
  class StrValue < TencentCloud::Common::AbstractModel
10136
10619
  # @param Name: 名称
@@ -10911,6 +11394,141 @@ module TencentCloud
10911
11394
  end
10912
11395
  end
10913
11396
 
11397
+ # 工作流运行实例的基本信息
11398
+ class WorkflowRunBase < TencentCloud::Common::AbstractModel
11399
+ # @param RunEnv: 运行环境。0: 测试环境; 1: 正式环境
11400
+ # @type RunEnv: Integer
11401
+ # @param AppBizId: 应用ID
11402
+ # @type AppBizId: String
11403
+ # @param WorkflowRunId: 工作流运行实例的ID
11404
+ # @type WorkflowRunId: String
11405
+ # @param WorkflowId: 所属工作流ID
11406
+ # @type WorkflowId: String
11407
+ # @param Name: 名称
11408
+ # @type Name: String
11409
+ # @param State: 运行状态。0: 排队中;1: 运行中;2: 运行成功;3: 运行失败; 4: 已取消
11410
+ # @type State: Integer
11411
+ # @param FailMessage: 错误信息
11412
+ # @type FailMessage: String
11413
+ # @param TotalTokens: 消耗的token总数
11414
+ # @type TotalTokens: Integer
11415
+ # @param CreateTime: 创建时间(毫秒时间戳)
11416
+ # @type CreateTime: String
11417
+ # @param StartTime: 开始时间(毫秒时间戳)
11418
+ # @type StartTime: String
11419
+ # @param EndTime: 结束时间(毫秒时间戳)
11420
+ # @type EndTime: String
11421
+
11422
+ attr_accessor :RunEnv, :AppBizId, :WorkflowRunId, :WorkflowId, :Name, :State, :FailMessage, :TotalTokens, :CreateTime, :StartTime, :EndTime
11423
+
11424
+ def initialize(runenv=nil, appbizid=nil, workflowrunid=nil, workflowid=nil, name=nil, state=nil, failmessage=nil, totaltokens=nil, createtime=nil, starttime=nil, endtime=nil)
11425
+ @RunEnv = runenv
11426
+ @AppBizId = appbizid
11427
+ @WorkflowRunId = workflowrunid
11428
+ @WorkflowId = workflowid
11429
+ @Name = name
11430
+ @State = state
11431
+ @FailMessage = failmessage
11432
+ @TotalTokens = totaltokens
11433
+ @CreateTime = createtime
11434
+ @StartTime = starttime
11435
+ @EndTime = endtime
11436
+ end
11437
+
11438
+ def deserialize(params)
11439
+ @RunEnv = params['RunEnv']
11440
+ @AppBizId = params['AppBizId']
11441
+ @WorkflowRunId = params['WorkflowRunId']
11442
+ @WorkflowId = params['WorkflowId']
11443
+ @Name = params['Name']
11444
+ @State = params['State']
11445
+ @FailMessage = params['FailMessage']
11446
+ @TotalTokens = params['TotalTokens']
11447
+ @CreateTime = params['CreateTime']
11448
+ @StartTime = params['StartTime']
11449
+ @EndTime = params['EndTime']
11450
+ end
11451
+ end
11452
+
11453
+ # 工作流运行实例详情
11454
+ class WorkflowRunDetail < TencentCloud::Common::AbstractModel
11455
+ # @param RunEnv: 运行环境。0: 测试环境; 1: 正式环境
11456
+ # @type RunEnv: Integer
11457
+ # @param AppBizId: 应用ID
11458
+ # @type AppBizId: String
11459
+ # @param WorkflowRunId: 工作流运行实例的ID
11460
+ # @type WorkflowRunId: String
11461
+ # @param WorkflowId: 所属工作流ID
11462
+ # @type WorkflowId: String
11463
+ # @param Name: 名称
11464
+ # @type Name: String
11465
+ # @param State: 运行状态。0: 排队中;1: 运行中;2: 运行成功;3: 运行失败; 4: 已取消
11466
+ # @type State: Integer
11467
+ # @param FailMessage: 错误信息
11468
+ # @type FailMessage: String
11469
+ # @param TotalTokens: 消耗的token总数
11470
+ # @type TotalTokens: Integer
11471
+ # @param CreateTime: 创建时间(毫秒时间戳)
11472
+ # @type CreateTime: String
11473
+ # @param StartTime: 开始时间(毫秒时间戳)
11474
+ # @type StartTime: String
11475
+ # @param EndTime: 结束时间(毫秒时间戳)
11476
+ # @type EndTime: String
11477
+ # @param DialogJson: 工作流画布Json
11478
+ # @type DialogJson: String
11479
+ # @param Query: 用户的输入
11480
+ # @type Query: String
11481
+ # @param MainModelName: 主模型名称
11482
+ # @type MainModelName: String
11483
+ # @param CustomVariables: API参数配置
11484
+ # @type CustomVariables: Array
11485
+
11486
+ attr_accessor :RunEnv, :AppBizId, :WorkflowRunId, :WorkflowId, :Name, :State, :FailMessage, :TotalTokens, :CreateTime, :StartTime, :EndTime, :DialogJson, :Query, :MainModelName, :CustomVariables
11487
+
11488
+ def initialize(runenv=nil, appbizid=nil, workflowrunid=nil, workflowid=nil, name=nil, state=nil, failmessage=nil, totaltokens=nil, createtime=nil, starttime=nil, endtime=nil, dialogjson=nil, query=nil, mainmodelname=nil, customvariables=nil)
11489
+ @RunEnv = runenv
11490
+ @AppBizId = appbizid
11491
+ @WorkflowRunId = workflowrunid
11492
+ @WorkflowId = workflowid
11493
+ @Name = name
11494
+ @State = state
11495
+ @FailMessage = failmessage
11496
+ @TotalTokens = totaltokens
11497
+ @CreateTime = createtime
11498
+ @StartTime = starttime
11499
+ @EndTime = endtime
11500
+ @DialogJson = dialogjson
11501
+ @Query = query
11502
+ @MainModelName = mainmodelname
11503
+ @CustomVariables = customvariables
11504
+ end
11505
+
11506
+ def deserialize(params)
11507
+ @RunEnv = params['RunEnv']
11508
+ @AppBizId = params['AppBizId']
11509
+ @WorkflowRunId = params['WorkflowRunId']
11510
+ @WorkflowId = params['WorkflowId']
11511
+ @Name = params['Name']
11512
+ @State = params['State']
11513
+ @FailMessage = params['FailMessage']
11514
+ @TotalTokens = params['TotalTokens']
11515
+ @CreateTime = params['CreateTime']
11516
+ @StartTime = params['StartTime']
11517
+ @EndTime = params['EndTime']
11518
+ @DialogJson = params['DialogJson']
11519
+ @Query = params['Query']
11520
+ @MainModelName = params['MainModelName']
11521
+ unless params['CustomVariables'].nil?
11522
+ @CustomVariables = []
11523
+ params['CustomVariables'].each do |i|
11524
+ customvariable_tmp = CustomVariable.new
11525
+ customvariable_tmp.deserialize(i)
11526
+ @CustomVariables << customvariable_tmp
11527
+ end
11528
+ end
11529
+ end
11530
+ end
11531
+
10914
11532
  # 工作流运行节点信息
10915
11533
  class WorkflowRunNodeInfo < TencentCloud::Common::AbstractModel
10916
11534
  # @param NodeId: 节点ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-lke
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1079
4
+ version: 3.0.1080
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-11 00:00:00.000000000 Z
11
+ date: 2025-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common