tencentcloud-sdk-lke 3.0.1085 → 3.0.1089
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20231130/client.rb +96 -0
- data/lib/v20231130/models.rb +845 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c77da6b900ea1ad5d19b3fe009ee5d657fa36e46
|
4
|
+
data.tar.gz: cd588b31cce93c05cae20aaa8943ad8649b91112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cfee821c958260d370538aa3441bf5d68b3137e8d2a86cc6a081aa62e7271d8a832a44e41ea3345b368ca959619172fccbd8d4b762e25d96a3a51bed77a4348
|
7
|
+
data.tar.gz: def96fed5f1f429d0a40a51d2e09abfc0dea4517d36e547225b351f7fc25e44185fda01ca29bfd742607008afd841ed9845fae632b7e4179dde1281408b5f8b2
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1089
|
data/lib/v20231130/client.rb
CHANGED
@@ -103,6 +103,30 @@ module TencentCloud
|
|
103
103
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
104
104
|
end
|
105
105
|
|
106
|
+
# 你创建一个Agent
|
107
|
+
|
108
|
+
# @param request: Request instance for CreateAgent.
|
109
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::CreateAgentRequest`
|
110
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::CreateAgentResponse`
|
111
|
+
def CreateAgent(request)
|
112
|
+
body = send_request('CreateAgent', request.serialize)
|
113
|
+
response = JSON.parse(body)
|
114
|
+
if response['Response'].key?('Error') == false
|
115
|
+
model = CreateAgentResponse.new
|
116
|
+
model.deserialize(response['Response'])
|
117
|
+
model
|
118
|
+
else
|
119
|
+
code = response['Response']['Error']['Code']
|
120
|
+
message = response['Response']['Error']['Message']
|
121
|
+
reqid = response['Response']['RequestId']
|
122
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
123
|
+
end
|
124
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
125
|
+
raise e
|
126
|
+
rescue StandardError => e
|
127
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
128
|
+
end
|
129
|
+
|
106
130
|
# 创建知识引擎应用。
|
107
131
|
|
108
132
|
# @param request: Request instance for CreateApp.
|
@@ -368,6 +392,30 @@ module TencentCloud
|
|
368
392
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
369
393
|
end
|
370
394
|
|
395
|
+
# 删除Agent
|
396
|
+
|
397
|
+
# @param request: Request instance for DeleteAgent.
|
398
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::DeleteAgentRequest`
|
399
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::DeleteAgentResponse`
|
400
|
+
def DeleteAgent(request)
|
401
|
+
body = send_request('DeleteAgent', request.serialize)
|
402
|
+
response = JSON.parse(body)
|
403
|
+
if response['Response'].key?('Error') == false
|
404
|
+
model = DeleteAgentResponse.new
|
405
|
+
model.deserialize(response['Response'])
|
406
|
+
model
|
407
|
+
else
|
408
|
+
code = response['Response']['Error']['Code']
|
409
|
+
message = response['Response']['Error']['Message']
|
410
|
+
reqid = response['Response']['RequestId']
|
411
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
412
|
+
end
|
413
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
414
|
+
raise e
|
415
|
+
rescue StandardError => e
|
416
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
417
|
+
end
|
418
|
+
|
371
419
|
# 删除应用
|
372
420
|
|
373
421
|
# @param request: Request instance for DeleteApp.
|
@@ -608,6 +656,30 @@ module TencentCloud
|
|
608
656
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
609
657
|
end
|
610
658
|
|
659
|
+
# 查询指定应用下的Agent列表
|
660
|
+
|
661
|
+
# @param request: Request instance for DescribeAppAgentList.
|
662
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::DescribeAppAgentListRequest`
|
663
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::DescribeAppAgentListResponse`
|
664
|
+
def DescribeAppAgentList(request)
|
665
|
+
body = send_request('DescribeAppAgentList', request.serialize)
|
666
|
+
response = JSON.parse(body)
|
667
|
+
if response['Response'].key?('Error') == false
|
668
|
+
model = DescribeAppAgentListResponse.new
|
669
|
+
model.deserialize(response['Response'])
|
670
|
+
model
|
671
|
+
else
|
672
|
+
code = response['Response']['Error']['Code']
|
673
|
+
message = response['Response']['Error']['Message']
|
674
|
+
reqid = response['Response']['RequestId']
|
675
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
676
|
+
end
|
677
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
678
|
+
raise e
|
679
|
+
rescue StandardError => e
|
680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
681
|
+
end
|
682
|
+
|
611
683
|
# 查询属性标签详情
|
612
684
|
|
613
685
|
# @param request: Request instance for DescribeAttributeLabel.
|
@@ -2099,6 +2171,30 @@ module TencentCloud
|
|
2099
2171
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2100
2172
|
end
|
2101
2173
|
|
2174
|
+
# 修改Agent信息
|
2175
|
+
|
2176
|
+
# @param request: Request instance for ModifyAgent.
|
2177
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::ModifyAgentRequest`
|
2178
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::ModifyAgentResponse`
|
2179
|
+
def ModifyAgent(request)
|
2180
|
+
body = send_request('ModifyAgent', request.serialize)
|
2181
|
+
response = JSON.parse(body)
|
2182
|
+
if response['Response'].key?('Error') == false
|
2183
|
+
model = ModifyAgentResponse.new
|
2184
|
+
model.deserialize(response['Response'])
|
2185
|
+
model
|
2186
|
+
else
|
2187
|
+
code = response['Response']['Error']['Code']
|
2188
|
+
message = response['Response']['Error']['Message']
|
2189
|
+
reqid = response['Response']['RequestId']
|
2190
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2191
|
+
end
|
2192
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2193
|
+
raise e
|
2194
|
+
rescue StandardError => e
|
2195
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2196
|
+
end
|
2197
|
+
|
2102
2198
|
# 修改应用请求结构体
|
2103
2199
|
|
2104
2200
|
# @param request: Request instance for ModifyApp.
|
data/lib/v20231130/models.rb
CHANGED
@@ -60,6 +60,83 @@ module TencentCloud
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
+
# Agent 的定义
|
64
|
+
class Agent < TencentCloud::Common::AbstractModel
|
65
|
+
# @param AgentId: AgentID
|
66
|
+
# @type AgentId: String
|
67
|
+
# @param WorkflowId: WorkflowID,非空则当前Agent从workflow转换而来
|
68
|
+
# @type WorkflowId: String
|
69
|
+
# @param Name: Agent名称,同一个应用内,Agent名称不能重复
|
70
|
+
# @type Name: String
|
71
|
+
# @param IconUrl: 插件图标url
|
72
|
+
# @type IconUrl: String
|
73
|
+
# @param Instructions: Agent指令;当该Agent被调用时,将作为“系统提示词”使用,描述Agent应执行的操作和响应方式
|
74
|
+
# @type Instructions: String
|
75
|
+
# @param HandoffDescription: 当Agent作为转交目标时的描述,用于让其他Agent的LLM理解其功能和转交时机
|
76
|
+
# @type HandoffDescription: String
|
77
|
+
# @param Handoffs: Agent可转交的子AgentId列表
|
78
|
+
# @type Handoffs: Array
|
79
|
+
# @param Model: Agent调用LLM时使用的模型配置
|
80
|
+
# @type Model: :class:`Tencentcloud::Lke.v20231130.models.AgentModelInfo`
|
81
|
+
# @param Tools: Agent可使用的工具列表
|
82
|
+
# @type Tools: Array
|
83
|
+
# @param Plugins: Agent可使用的插件列表
|
84
|
+
# @type Plugins: Array
|
85
|
+
# @param IsStartingAgent: 当前Agent是否是启动Agent
|
86
|
+
# @type IsStartingAgent: Boolean
|
87
|
+
# @param AgentType: Agent类型; 0: 未指定类型; 1: 知识库检索Agent
|
88
|
+
# @type AgentType: Integer
|
89
|
+
|
90
|
+
attr_accessor :AgentId, :WorkflowId, :Name, :IconUrl, :Instructions, :HandoffDescription, :Handoffs, :Model, :Tools, :Plugins, :IsStartingAgent, :AgentType
|
91
|
+
|
92
|
+
def initialize(agentid=nil, workflowid=nil, name=nil, iconurl=nil, instructions=nil, handoffdescription=nil, handoffs=nil, model=nil, tools=nil, plugins=nil, isstartingagent=nil, agenttype=nil)
|
93
|
+
@AgentId = agentid
|
94
|
+
@WorkflowId = workflowid
|
95
|
+
@Name = name
|
96
|
+
@IconUrl = iconurl
|
97
|
+
@Instructions = instructions
|
98
|
+
@HandoffDescription = handoffdescription
|
99
|
+
@Handoffs = handoffs
|
100
|
+
@Model = model
|
101
|
+
@Tools = tools
|
102
|
+
@Plugins = plugins
|
103
|
+
@IsStartingAgent = isstartingagent
|
104
|
+
@AgentType = agenttype
|
105
|
+
end
|
106
|
+
|
107
|
+
def deserialize(params)
|
108
|
+
@AgentId = params['AgentId']
|
109
|
+
@WorkflowId = params['WorkflowId']
|
110
|
+
@Name = params['Name']
|
111
|
+
@IconUrl = params['IconUrl']
|
112
|
+
@Instructions = params['Instructions']
|
113
|
+
@HandoffDescription = params['HandoffDescription']
|
114
|
+
@Handoffs = params['Handoffs']
|
115
|
+
unless params['Model'].nil?
|
116
|
+
@Model = AgentModelInfo.new
|
117
|
+
@Model.deserialize(params['Model'])
|
118
|
+
end
|
119
|
+
unless params['Tools'].nil?
|
120
|
+
@Tools = []
|
121
|
+
params['Tools'].each do |i|
|
122
|
+
agenttoolinfo_tmp = AgentToolInfo.new
|
123
|
+
agenttoolinfo_tmp.deserialize(i)
|
124
|
+
@Tools << agenttoolinfo_tmp
|
125
|
+
end
|
126
|
+
end
|
127
|
+
unless params['Plugins'].nil?
|
128
|
+
@Plugins = []
|
129
|
+
params['Plugins'].each do |i|
|
130
|
+
agentplugininfo_tmp = AgentPluginInfo.new
|
131
|
+
agentplugininfo_tmp.deserialize(i)
|
132
|
+
@Plugins << agentplugininfo_tmp
|
133
|
+
end
|
134
|
+
end
|
135
|
+
@IsStartingAgent = params['IsStartingAgent']
|
136
|
+
@AgentType = params['AgentType']
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
63
140
|
# Agent调试信息
|
64
141
|
class AgentDebugInfo < TencentCloud::Common::AbstractModel
|
65
142
|
# @param Input: 工具、大模型的输入信息,json
|
@@ -82,6 +159,331 @@ module TencentCloud
|
|
82
159
|
end
|
83
160
|
end
|
84
161
|
|
162
|
+
# Agent输入值,支持直接赋值和引用
|
163
|
+
class AgentInput < TencentCloud::Common::AbstractModel
|
164
|
+
# @param InputType: 输入来源类型:0 用户输入,3 自定义变量(API参数)
|
165
|
+
# @type InputType: Integer
|
166
|
+
# @param UserInputValue: 用户手写输入
|
167
|
+
# @type UserInputValue: :class:`Tencentcloud::Lke.v20231130.models.AgentInputUserInputValue`
|
168
|
+
# @param CustomVarId: 自定义变量(API参数)
|
169
|
+
# @type CustomVarId: String
|
170
|
+
|
171
|
+
attr_accessor :InputType, :UserInputValue, :CustomVarId
|
172
|
+
|
173
|
+
def initialize(inputtype=nil, userinputvalue=nil, customvarid=nil)
|
174
|
+
@InputType = inputtype
|
175
|
+
@UserInputValue = userinputvalue
|
176
|
+
@CustomVarId = customvarid
|
177
|
+
end
|
178
|
+
|
179
|
+
def deserialize(params)
|
180
|
+
@InputType = params['InputType']
|
181
|
+
unless params['UserInputValue'].nil?
|
182
|
+
@UserInputValue = AgentInputUserInputValue.new
|
183
|
+
@UserInputValue.deserialize(params['UserInputValue'])
|
184
|
+
end
|
185
|
+
@CustomVarId = params['CustomVarId']
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# 用户手写输入
|
190
|
+
class AgentInputUserInputValue < TencentCloud::Common::AbstractModel
|
191
|
+
# @param Values: 用户输入的值
|
192
|
+
# @type Values: Array
|
193
|
+
|
194
|
+
attr_accessor :Values
|
195
|
+
|
196
|
+
def initialize(values=nil)
|
197
|
+
@Values = values
|
198
|
+
end
|
199
|
+
|
200
|
+
def deserialize(params)
|
201
|
+
@Values = params['Values']
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
# 标签过滤器
|
206
|
+
class AgentKnowledgeAttrLabel < TencentCloud::Common::AbstractModel
|
207
|
+
# @param AttributeBizId: 属性ID
|
208
|
+
# @type AttributeBizId: String
|
209
|
+
# @param Inputs: 标签值,标签值之间是或的关系,只有匹配的,才会进行知识检索,否则报检索不到
|
210
|
+
# @type Inputs: Array
|
211
|
+
|
212
|
+
attr_accessor :AttributeBizId, :Inputs
|
213
|
+
|
214
|
+
def initialize(attributebizid=nil, inputs=nil)
|
215
|
+
@AttributeBizId = attributebizid
|
216
|
+
@Inputs = inputs
|
217
|
+
end
|
218
|
+
|
219
|
+
def deserialize(params)
|
220
|
+
@AttributeBizId = params['AttributeBizId']
|
221
|
+
unless params['Inputs'].nil?
|
222
|
+
@Inputs = []
|
223
|
+
params['Inputs'].each do |i|
|
224
|
+
agentinput_tmp = AgentInput.new
|
225
|
+
agentinput_tmp.deserialize(i)
|
226
|
+
@Inputs << agentinput_tmp
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
# 知识检索筛选范围
|
233
|
+
class AgentKnowledgeFilter < TencentCloud::Common::AbstractModel
|
234
|
+
# @param FilterType: 知识检索筛选方式; 0: 全部知识; 1:按文档和问答; 2: 按标签
|
235
|
+
# @type FilterType: Integer
|
236
|
+
# @param DocAndAnswer: 文档和问答过滤器
|
237
|
+
# @type DocAndAnswer: :class:`Tencentcloud::Lke.v20231130.models.AgentKnowledgeFilterDocAndAnswer`
|
238
|
+
# @param Tag: 标签过滤器
|
239
|
+
# @type Tag: :class:`Tencentcloud::Lke.v20231130.models.AgentKnowledgeFilterTag`
|
240
|
+
|
241
|
+
attr_accessor :FilterType, :DocAndAnswer, :Tag
|
242
|
+
|
243
|
+
def initialize(filtertype=nil, docandanswer=nil, tag=nil)
|
244
|
+
@FilterType = filtertype
|
245
|
+
@DocAndAnswer = docandanswer
|
246
|
+
@Tag = tag
|
247
|
+
end
|
248
|
+
|
249
|
+
def deserialize(params)
|
250
|
+
@FilterType = params['FilterType']
|
251
|
+
unless params['DocAndAnswer'].nil?
|
252
|
+
@DocAndAnswer = AgentKnowledgeFilterDocAndAnswer.new
|
253
|
+
@DocAndAnswer.deserialize(params['DocAndAnswer'])
|
254
|
+
end
|
255
|
+
unless params['Tag'].nil?
|
256
|
+
@Tag = AgentKnowledgeFilterTag.new
|
257
|
+
@Tag.deserialize(params['Tag'])
|
258
|
+
end
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
# 文档和问答过滤器
|
263
|
+
class AgentKnowledgeFilterDocAndAnswer < TencentCloud::Common::AbstractModel
|
264
|
+
# @param DocBizIds: 文档ID列表
|
265
|
+
# @type DocBizIds: Array
|
266
|
+
# @param AllQa: 问答
|
267
|
+
# @type AllQa: Boolean
|
268
|
+
|
269
|
+
attr_accessor :DocBizIds, :AllQa
|
270
|
+
|
271
|
+
def initialize(docbizids=nil, allqa=nil)
|
272
|
+
@DocBizIds = docbizids
|
273
|
+
@AllQa = allqa
|
274
|
+
end
|
275
|
+
|
276
|
+
def deserialize(params)
|
277
|
+
@DocBizIds = params['DocBizIds']
|
278
|
+
@AllQa = params['AllQa']
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
# 标签过滤器
|
283
|
+
class AgentKnowledgeFilterTag < TencentCloud::Common::AbstractModel
|
284
|
+
# @param Operator: 标签之间的关系;0:AND, 1:OR
|
285
|
+
# @type Operator: Integer
|
286
|
+
# @param Labels: 标签
|
287
|
+
# @type Labels: Array
|
288
|
+
|
289
|
+
attr_accessor :Operator, :Labels
|
290
|
+
|
291
|
+
def initialize(operator=nil, labels=nil)
|
292
|
+
@Operator = operator
|
293
|
+
@Labels = labels
|
294
|
+
end
|
295
|
+
|
296
|
+
def deserialize(params)
|
297
|
+
@Operator = params['Operator']
|
298
|
+
unless params['Labels'].nil?
|
299
|
+
@Labels = []
|
300
|
+
params['Labels'].each do |i|
|
301
|
+
agentknowledgeattrlabel_tmp = AgentKnowledgeAttrLabel.new
|
302
|
+
agentknowledgeattrlabel_tmp.deserialize(i)
|
303
|
+
@Labels << agentknowledgeattrlabel_tmp
|
304
|
+
end
|
305
|
+
end
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
# 知识库问答插件
|
310
|
+
class AgentKnowledgeQAPlugin < TencentCloud::Common::AbstractModel
|
311
|
+
# @param Filter: 知识检索筛选范围
|
312
|
+
# @type Filter: :class:`Tencentcloud::Lke.v20231130.models.AgentKnowledgeFilter`
|
313
|
+
|
314
|
+
attr_accessor :Filter
|
315
|
+
|
316
|
+
def initialize(filter=nil)
|
317
|
+
@Filter = filter
|
318
|
+
end
|
319
|
+
|
320
|
+
def deserialize(params)
|
321
|
+
unless params['Filter'].nil?
|
322
|
+
@Filter = AgentKnowledgeFilter.new
|
323
|
+
@Filter.deserialize(params['Filter'])
|
324
|
+
end
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
328
|
+
# mcp的服务信息
|
329
|
+
class AgentMCPServerInfo < TencentCloud::Common::AbstractModel
|
330
|
+
# @param McpServerUrl: mcp server URL地址
|
331
|
+
# @type McpServerUrl: String
|
332
|
+
# @param Headers: mcp server header信息
|
333
|
+
# @type Headers: Array
|
334
|
+
# @param Timeout: 超时时间,单位秒
|
335
|
+
# @type Timeout: Integer
|
336
|
+
# @param SseReadTimeout: sse服务超时时间,单位秒
|
337
|
+
# @type SseReadTimeout: Integer
|
338
|
+
|
339
|
+
attr_accessor :McpServerUrl, :Headers, :Timeout, :SseReadTimeout
|
340
|
+
|
341
|
+
def initialize(mcpserverurl=nil, headers=nil, timeout=nil, ssereadtimeout=nil)
|
342
|
+
@McpServerUrl = mcpserverurl
|
343
|
+
@Headers = headers
|
344
|
+
@Timeout = timeout
|
345
|
+
@SseReadTimeout = ssereadtimeout
|
346
|
+
end
|
347
|
+
|
348
|
+
def deserialize(params)
|
349
|
+
@McpServerUrl = params['McpServerUrl']
|
350
|
+
unless params['Headers'].nil?
|
351
|
+
@Headers = []
|
352
|
+
params['Headers'].each do |i|
|
353
|
+
agentpluginheader_tmp = AgentPluginHeader.new
|
354
|
+
agentpluginheader_tmp.deserialize(i)
|
355
|
+
@Headers << agentpluginheader_tmp
|
356
|
+
end
|
357
|
+
end
|
358
|
+
@Timeout = params['Timeout']
|
359
|
+
@SseReadTimeout = params['SseReadTimeout']
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
# Agent 配置里面的模型定义
|
364
|
+
class AgentModelInfo < TencentCloud::Common::AbstractModel
|
365
|
+
# @param ModelName: 模型名称
|
366
|
+
# @type ModelName: String
|
367
|
+
# @param ModelAliasName: 模型别名
|
368
|
+
# @type ModelAliasName: String
|
369
|
+
# @param Temperature: 模型温度
|
370
|
+
# @type Temperature: Float
|
371
|
+
# @param TopP: 模型TopP
|
372
|
+
# @type TopP: Float
|
373
|
+
# @param IsEnabled: 模型是否可用
|
374
|
+
# @type IsEnabled: Boolean
|
375
|
+
# @param HistoryLimit: 对话历史条数限制
|
376
|
+
# @type HistoryLimit: Integer
|
377
|
+
# @param ModelContextWordsLimit: 模型上下文长度字符限制
|
378
|
+
# @type ModelContextWordsLimit: String
|
379
|
+
# @param InstructionsWordsLimit: 指令长度字符限制
|
380
|
+
# @type InstructionsWordsLimit: Integer
|
381
|
+
|
382
|
+
attr_accessor :ModelName, :ModelAliasName, :Temperature, :TopP, :IsEnabled, :HistoryLimit, :ModelContextWordsLimit, :InstructionsWordsLimit
|
383
|
+
|
384
|
+
def initialize(modelname=nil, modelaliasname=nil, temperature=nil, topp=nil, isenabled=nil, historylimit=nil, modelcontextwordslimit=nil, instructionswordslimit=nil)
|
385
|
+
@ModelName = modelname
|
386
|
+
@ModelAliasName = modelaliasname
|
387
|
+
@Temperature = temperature
|
388
|
+
@TopP = topp
|
389
|
+
@IsEnabled = isenabled
|
390
|
+
@HistoryLimit = historylimit
|
391
|
+
@ModelContextWordsLimit = modelcontextwordslimit
|
392
|
+
@InstructionsWordsLimit = instructionswordslimit
|
393
|
+
end
|
394
|
+
|
395
|
+
def deserialize(params)
|
396
|
+
@ModelName = params['ModelName']
|
397
|
+
@ModelAliasName = params['ModelAliasName']
|
398
|
+
@Temperature = params['Temperature']
|
399
|
+
@TopP = params['TopP']
|
400
|
+
@IsEnabled = params['IsEnabled']
|
401
|
+
@HistoryLimit = params['HistoryLimit']
|
402
|
+
@ModelContextWordsLimit = params['ModelContextWordsLimit']
|
403
|
+
@InstructionsWordsLimit = params['InstructionsWordsLimit']
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
# 应用配置MCP插件header信息
|
408
|
+
class AgentPluginHeader < TencentCloud::Common::AbstractModel
|
409
|
+
# @param ParamName: 参数名称
|
410
|
+
# @type ParamName: String
|
411
|
+
# @param ParamValue: 参数值
|
412
|
+
# @type ParamValue: String
|
413
|
+
# @param GlobalHidden: header参数配置是否隐藏不可见
|
414
|
+
# @type GlobalHidden: Boolean
|
415
|
+
# @param Input: 输入的值
|
416
|
+
# @type Input: :class:`Tencentcloud::Lke.v20231130.models.AgentInput`
|
417
|
+
# @param IsRequired: 参数是否可以为空
|
418
|
+
# @type IsRequired: Boolean
|
419
|
+
|
420
|
+
attr_accessor :ParamName, :ParamValue, :GlobalHidden, :Input, :IsRequired
|
421
|
+
|
422
|
+
def initialize(paramname=nil, paramvalue=nil, globalhidden=nil, input=nil, isrequired=nil)
|
423
|
+
@ParamName = paramname
|
424
|
+
@ParamValue = paramvalue
|
425
|
+
@GlobalHidden = globalhidden
|
426
|
+
@Input = input
|
427
|
+
@IsRequired = isrequired
|
428
|
+
end
|
429
|
+
|
430
|
+
def deserialize(params)
|
431
|
+
@ParamName = params['ParamName']
|
432
|
+
@ParamValue = params['ParamValue']
|
433
|
+
@GlobalHidden = params['GlobalHidden']
|
434
|
+
unless params['Input'].nil?
|
435
|
+
@Input = AgentInput.new
|
436
|
+
@Input.deserialize(params['Input'])
|
437
|
+
end
|
438
|
+
@IsRequired = params['IsRequired']
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
442
|
+
# Agent 的插件信息
|
443
|
+
class AgentPluginInfo < TencentCloud::Common::AbstractModel
|
444
|
+
# @param PluginId: 插件id
|
445
|
+
# @type PluginId: String
|
446
|
+
# @param Headers: 应用配置的插件header信息
|
447
|
+
# @type Headers: Array
|
448
|
+
# @param Model: 插件调用LLM时使用的模型配置,一般用于指定知识库问答插件的生成模型
|
449
|
+
# @type Model: :class:`Tencentcloud::Lke.v20231130.models.AgentModelInfo`
|
450
|
+
# @param PluginInfoType: 插件信息类型; 0: 未指定类型; 1: 知识库问答插件
|
451
|
+
# @type PluginInfoType: Integer
|
452
|
+
# @param KnowledgeQa: 知识库问答插件配置
|
453
|
+
# @type KnowledgeQa: :class:`Tencentcloud::Lke.v20231130.models.AgentKnowledgeQAPlugin`
|
454
|
+
|
455
|
+
attr_accessor :PluginId, :Headers, :Model, :PluginInfoType, :KnowledgeQa
|
456
|
+
|
457
|
+
def initialize(pluginid=nil, headers=nil, model=nil, plugininfotype=nil, knowledgeqa=nil)
|
458
|
+
@PluginId = pluginid
|
459
|
+
@Headers = headers
|
460
|
+
@Model = model
|
461
|
+
@PluginInfoType = plugininfotype
|
462
|
+
@KnowledgeQa = knowledgeqa
|
463
|
+
end
|
464
|
+
|
465
|
+
def deserialize(params)
|
466
|
+
@PluginId = params['PluginId']
|
467
|
+
unless params['Headers'].nil?
|
468
|
+
@Headers = []
|
469
|
+
params['Headers'].each do |i|
|
470
|
+
agentpluginheader_tmp = AgentPluginHeader.new
|
471
|
+
agentpluginheader_tmp.deserialize(i)
|
472
|
+
@Headers << agentpluginheader_tmp
|
473
|
+
end
|
474
|
+
end
|
475
|
+
unless params['Model'].nil?
|
476
|
+
@Model = AgentModelInfo.new
|
477
|
+
@Model.deserialize(params['Model'])
|
478
|
+
end
|
479
|
+
@PluginInfoType = params['PluginInfoType']
|
480
|
+
unless params['KnowledgeQa'].nil?
|
481
|
+
@KnowledgeQa = AgentKnowledgeQAPlugin.new
|
482
|
+
@KnowledgeQa.deserialize(params['KnowledgeQa'])
|
483
|
+
end
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
85
487
|
# 思考事件过程信息
|
86
488
|
class AgentProcedure < TencentCloud::Common::AbstractModel
|
87
489
|
# @param Index: 索引
|
@@ -366,6 +768,232 @@ module TencentCloud
|
|
366
768
|
end
|
367
769
|
end
|
368
770
|
|
771
|
+
# Agent的工具信息
|
772
|
+
class AgentToolInfo < TencentCloud::Common::AbstractModel
|
773
|
+
# @param PluginId: 插件id
|
774
|
+
# @type PluginId: String
|
775
|
+
# @param PluginName: 插件名称
|
776
|
+
# @type PluginName: String
|
777
|
+
# @param IconUrl: 插件图标url
|
778
|
+
# @type IconUrl: String
|
779
|
+
# @param PluginType: 0 自定义插件
|
780
|
+
# 1 官方插件
|
781
|
+
# 2 第三方插件 目前用于第三方实现的mcp server
|
782
|
+
# @type PluginType: Integer
|
783
|
+
# @param ToolId: 工具id
|
784
|
+
# @type ToolId: String
|
785
|
+
# @param ToolName: 工具名称
|
786
|
+
# @type ToolName: String
|
787
|
+
# @param ToolDesc: 工具描述
|
788
|
+
# @type ToolDesc: String
|
789
|
+
# @param Inputs: 输入参数
|
790
|
+
# @type Inputs: Array
|
791
|
+
# @param Outputs: 输出参数
|
792
|
+
# @type Outputs: Array
|
793
|
+
# @param CreateType: 创建方式,0:服务创建,1:代码创建,2:MCP创建
|
794
|
+
# @type CreateType: Integer
|
795
|
+
# @param McpServer: MCP插件的配置信息
|
796
|
+
# @type McpServer: :class:`Tencentcloud::Lke.v20231130.models.AgentMCPServerInfo`
|
797
|
+
# @param IsBindingKnowledge: 该工具是否和知识库绑定
|
798
|
+
# @type IsBindingKnowledge: Boolean
|
799
|
+
# @param Status: 插件状态,1:可用,2:不可用
|
800
|
+
# @type Status: Integer
|
801
|
+
# @param Headers: header信息
|
802
|
+
# @type Headers: Array
|
803
|
+
# @param CallingMethod: NON_STREAMING: 非流式 STREAMIN: 流式
|
804
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
805
|
+
# @type CallingMethod: String
|
806
|
+
|
807
|
+
attr_accessor :PluginId, :PluginName, :IconUrl, :PluginType, :ToolId, :ToolName, :ToolDesc, :Inputs, :Outputs, :CreateType, :McpServer, :IsBindingKnowledge, :Status, :Headers, :CallingMethod
|
808
|
+
|
809
|
+
def initialize(pluginid=nil, pluginname=nil, iconurl=nil, plugintype=nil, toolid=nil, toolname=nil, tooldesc=nil, inputs=nil, outputs=nil, createtype=nil, mcpserver=nil, isbindingknowledge=nil, status=nil, headers=nil, callingmethod=nil)
|
810
|
+
@PluginId = pluginid
|
811
|
+
@PluginName = pluginname
|
812
|
+
@IconUrl = iconurl
|
813
|
+
@PluginType = plugintype
|
814
|
+
@ToolId = toolid
|
815
|
+
@ToolName = toolname
|
816
|
+
@ToolDesc = tooldesc
|
817
|
+
@Inputs = inputs
|
818
|
+
@Outputs = outputs
|
819
|
+
@CreateType = createtype
|
820
|
+
@McpServer = mcpserver
|
821
|
+
@IsBindingKnowledge = isbindingknowledge
|
822
|
+
@Status = status
|
823
|
+
@Headers = headers
|
824
|
+
@CallingMethod = callingmethod
|
825
|
+
end
|
826
|
+
|
827
|
+
def deserialize(params)
|
828
|
+
@PluginId = params['PluginId']
|
829
|
+
@PluginName = params['PluginName']
|
830
|
+
@IconUrl = params['IconUrl']
|
831
|
+
@PluginType = params['PluginType']
|
832
|
+
@ToolId = params['ToolId']
|
833
|
+
@ToolName = params['ToolName']
|
834
|
+
@ToolDesc = params['ToolDesc']
|
835
|
+
unless params['Inputs'].nil?
|
836
|
+
@Inputs = []
|
837
|
+
params['Inputs'].each do |i|
|
838
|
+
agenttoolreqparam_tmp = AgentToolReqParam.new
|
839
|
+
agenttoolreqparam_tmp.deserialize(i)
|
840
|
+
@Inputs << agenttoolreqparam_tmp
|
841
|
+
end
|
842
|
+
end
|
843
|
+
unless params['Outputs'].nil?
|
844
|
+
@Outputs = []
|
845
|
+
params['Outputs'].each do |i|
|
846
|
+
agenttoolrspparam_tmp = AgentToolRspParam.new
|
847
|
+
agenttoolrspparam_tmp.deserialize(i)
|
848
|
+
@Outputs << agenttoolrspparam_tmp
|
849
|
+
end
|
850
|
+
end
|
851
|
+
@CreateType = params['CreateType']
|
852
|
+
unless params['McpServer'].nil?
|
853
|
+
@McpServer = AgentMCPServerInfo.new
|
854
|
+
@McpServer.deserialize(params['McpServer'])
|
855
|
+
end
|
856
|
+
@IsBindingKnowledge = params['IsBindingKnowledge']
|
857
|
+
@Status = params['Status']
|
858
|
+
unless params['Headers'].nil?
|
859
|
+
@Headers = []
|
860
|
+
params['Headers'].each do |i|
|
861
|
+
agentpluginheader_tmp = AgentPluginHeader.new
|
862
|
+
agentpluginheader_tmp.deserialize(i)
|
863
|
+
@Headers << agentpluginheader_tmp
|
864
|
+
end
|
865
|
+
end
|
866
|
+
@CallingMethod = params['CallingMethod']
|
867
|
+
end
|
868
|
+
end
|
869
|
+
|
870
|
+
# Agent工具的请求参数定义
|
871
|
+
class AgentToolReqParam < TencentCloud::Common::AbstractModel
|
872
|
+
# @param Name: 参数名称
|
873
|
+
# @type Name: String
|
874
|
+
# @param Desc: 参数描述
|
875
|
+
# @type Desc: String
|
876
|
+
# @param Type: 参数类型,0:string, 1:int, 2:float,3:bool 4:object 5:array_string, 6:array_int, 7:array_float, 8:array_bool, 9:array_object
|
877
|
+
# @type Type: Integer
|
878
|
+
# @param IsRequired: 参数是否必填
|
879
|
+
# @type IsRequired: Boolean
|
880
|
+
# @param DefaultValue: 参数默认值
|
881
|
+
# @type DefaultValue: String
|
882
|
+
# @param SubParams: 子参数,ParamType 是OBJECT 或 ARRAY<>类型有用
|
883
|
+
# @type SubParams: Array
|
884
|
+
# @param GlobalHidden: 是否隐藏不可见
|
885
|
+
# @type GlobalHidden: Boolean
|
886
|
+
# @param AgentHidden: agent模式下模型是否可见
|
887
|
+
# @type AgentHidden: Boolean
|
888
|
+
# @param AnyOf: 其中任意
|
889
|
+
# @type AnyOf: Array
|
890
|
+
# @param OneOf: 其中一个
|
891
|
+
# @type OneOf: Array
|
892
|
+
# @param Input: 输入
|
893
|
+
# @type Input: :class:`Tencentcloud::Lke.v20231130.models.AgentInput`
|
894
|
+
|
895
|
+
attr_accessor :Name, :Desc, :Type, :IsRequired, :DefaultValue, :SubParams, :GlobalHidden, :AgentHidden, :AnyOf, :OneOf, :Input
|
896
|
+
|
897
|
+
def initialize(name=nil, desc=nil, type=nil, isrequired=nil, defaultvalue=nil, subparams=nil, globalhidden=nil, agenthidden=nil, anyof=nil, oneof=nil, input=nil)
|
898
|
+
@Name = name
|
899
|
+
@Desc = desc
|
900
|
+
@Type = type
|
901
|
+
@IsRequired = isrequired
|
902
|
+
@DefaultValue = defaultvalue
|
903
|
+
@SubParams = subparams
|
904
|
+
@GlobalHidden = globalhidden
|
905
|
+
@AgentHidden = agenthidden
|
906
|
+
@AnyOf = anyof
|
907
|
+
@OneOf = oneof
|
908
|
+
@Input = input
|
909
|
+
end
|
910
|
+
|
911
|
+
def deserialize(params)
|
912
|
+
@Name = params['Name']
|
913
|
+
@Desc = params['Desc']
|
914
|
+
@Type = params['Type']
|
915
|
+
@IsRequired = params['IsRequired']
|
916
|
+
@DefaultValue = params['DefaultValue']
|
917
|
+
unless params['SubParams'].nil?
|
918
|
+
@SubParams = []
|
919
|
+
params['SubParams'].each do |i|
|
920
|
+
agenttoolreqparam_tmp = AgentToolReqParam.new
|
921
|
+
agenttoolreqparam_tmp.deserialize(i)
|
922
|
+
@SubParams << agenttoolreqparam_tmp
|
923
|
+
end
|
924
|
+
end
|
925
|
+
@GlobalHidden = params['GlobalHidden']
|
926
|
+
@AgentHidden = params['AgentHidden']
|
927
|
+
unless params['AnyOf'].nil?
|
928
|
+
@AnyOf = []
|
929
|
+
params['AnyOf'].each do |i|
|
930
|
+
agenttoolreqparam_tmp = AgentToolReqParam.new
|
931
|
+
agenttoolreqparam_tmp.deserialize(i)
|
932
|
+
@AnyOf << agenttoolreqparam_tmp
|
933
|
+
end
|
934
|
+
end
|
935
|
+
unless params['OneOf'].nil?
|
936
|
+
@OneOf = []
|
937
|
+
params['OneOf'].each do |i|
|
938
|
+
agenttoolreqparam_tmp = AgentToolReqParam.new
|
939
|
+
agenttoolreqparam_tmp.deserialize(i)
|
940
|
+
@OneOf << agenttoolreqparam_tmp
|
941
|
+
end
|
942
|
+
end
|
943
|
+
unless params['Input'].nil?
|
944
|
+
@Input = AgentInput.new
|
945
|
+
@Input.deserialize(params['Input'])
|
946
|
+
end
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
950
|
+
# Agent工具的响应参数定义
|
951
|
+
class AgentToolRspParam < TencentCloud::Common::AbstractModel
|
952
|
+
# @param Name: 参数名称
|
953
|
+
# @type Name: String
|
954
|
+
# @param Desc: 参数描述
|
955
|
+
# @type Desc: String
|
956
|
+
# @param Type: 参数类型,0:string, 1:int, 2:float,3:bool 4:object 5:array_string, 6:array_int, 7:array_float, 8:array_bool, 9:array_object
|
957
|
+
# @type Type: Integer
|
958
|
+
# @param SubParams: 子参数,ParamType 是OBJECT 或 ARRAY<>类型有用
|
959
|
+
# @type SubParams: Array
|
960
|
+
# @param AgentHidden: agent模式下模型是否可见
|
961
|
+
# @type AgentHidden: Boolean
|
962
|
+
# @param GlobalHidden: 是否隐藏不可见
|
963
|
+
# @type GlobalHidden: Boolean
|
964
|
+
# @param AnalysisMethod: COVER: 覆盖解析 INCREMENT:增量解析
|
965
|
+
# @type AnalysisMethod: String
|
966
|
+
|
967
|
+
attr_accessor :Name, :Desc, :Type, :SubParams, :AgentHidden, :GlobalHidden, :AnalysisMethod
|
968
|
+
|
969
|
+
def initialize(name=nil, desc=nil, type=nil, subparams=nil, agenthidden=nil, globalhidden=nil, analysismethod=nil)
|
970
|
+
@Name = name
|
971
|
+
@Desc = desc
|
972
|
+
@Type = type
|
973
|
+
@SubParams = subparams
|
974
|
+
@AgentHidden = agenthidden
|
975
|
+
@GlobalHidden = globalhidden
|
976
|
+
@AnalysisMethod = analysismethod
|
977
|
+
end
|
978
|
+
|
979
|
+
def deserialize(params)
|
980
|
+
@Name = params['Name']
|
981
|
+
@Desc = params['Desc']
|
982
|
+
@Type = params['Type']
|
983
|
+
unless params['SubParams'].nil?
|
984
|
+
@SubParams = []
|
985
|
+
params['SubParams'].each do |i|
|
986
|
+
agenttoolrspparam_tmp = AgentToolRspParam.new
|
987
|
+
agenttoolrspparam_tmp.deserialize(i)
|
988
|
+
@SubParams << agenttoolrspparam_tmp
|
989
|
+
end
|
990
|
+
end
|
991
|
+
@AgentHidden = params['AgentHidden']
|
992
|
+
@GlobalHidden = params['GlobalHidden']
|
993
|
+
@AnalysisMethod = params['AnalysisMethod']
|
994
|
+
end
|
995
|
+
end
|
996
|
+
|
369
997
|
# 自定义变量和标签关系数据
|
370
998
|
class ApiVarAttrInfo < TencentCloud::Common::AbstractModel
|
371
999
|
# @param ApiVarId: 自定义变量id
|
@@ -1259,6 +1887,49 @@ module TencentCloud
|
|
1259
1887
|
end
|
1260
1888
|
end
|
1261
1889
|
|
1890
|
+
# CreateAgent请求参数结构体
|
1891
|
+
class CreateAgentRequest < TencentCloud::Common::AbstractModel
|
1892
|
+
# @param AppBizId: 应用ID
|
1893
|
+
# @type AppBizId: String
|
1894
|
+
# @param Agent: 要增加的Agent的信息
|
1895
|
+
# @type Agent: :class:`Tencentcloud::Lke.v20231130.models.Agent`
|
1896
|
+
|
1897
|
+
attr_accessor :AppBizId, :Agent
|
1898
|
+
|
1899
|
+
def initialize(appbizid=nil, agent=nil)
|
1900
|
+
@AppBizId = appbizid
|
1901
|
+
@Agent = agent
|
1902
|
+
end
|
1903
|
+
|
1904
|
+
def deserialize(params)
|
1905
|
+
@AppBizId = params['AppBizId']
|
1906
|
+
unless params['Agent'].nil?
|
1907
|
+
@Agent = Agent.new
|
1908
|
+
@Agent.deserialize(params['Agent'])
|
1909
|
+
end
|
1910
|
+
end
|
1911
|
+
end
|
1912
|
+
|
1913
|
+
# CreateAgent返回参数结构体
|
1914
|
+
class CreateAgentResponse < TencentCloud::Common::AbstractModel
|
1915
|
+
# @param AgentId: 新建的AgentID
|
1916
|
+
# @type AgentId: String
|
1917
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1918
|
+
# @type RequestId: String
|
1919
|
+
|
1920
|
+
attr_accessor :AgentId, :RequestId
|
1921
|
+
|
1922
|
+
def initialize(agentid=nil, requestid=nil)
|
1923
|
+
@AgentId = agentid
|
1924
|
+
@RequestId = requestid
|
1925
|
+
end
|
1926
|
+
|
1927
|
+
def deserialize(params)
|
1928
|
+
@AgentId = params['AgentId']
|
1929
|
+
@RequestId = params['RequestId']
|
1930
|
+
end
|
1931
|
+
end
|
1932
|
+
|
1262
1933
|
# CreateApp请求参数结构体
|
1263
1934
|
class CreateAppRequest < TencentCloud::Common::AbstractModel
|
1264
1935
|
# @param AppType: 应用类型;knowledge_qa-知识问答管理
|
@@ -1942,6 +2613,46 @@ module TencentCloud
|
|
1942
2613
|
end
|
1943
2614
|
end
|
1944
2615
|
|
2616
|
+
# DeleteAgent请求参数结构体
|
2617
|
+
class DeleteAgentRequest < TencentCloud::Common::AbstractModel
|
2618
|
+
# @param AgentId: Agent的ID
|
2619
|
+
# @type AgentId: String
|
2620
|
+
# @param AppBizId: 应用ID
|
2621
|
+
# @type AppBizId: String
|
2622
|
+
|
2623
|
+
attr_accessor :AgentId, :AppBizId
|
2624
|
+
|
2625
|
+
def initialize(agentid=nil, appbizid=nil)
|
2626
|
+
@AgentId = agentid
|
2627
|
+
@AppBizId = appbizid
|
2628
|
+
end
|
2629
|
+
|
2630
|
+
def deserialize(params)
|
2631
|
+
@AgentId = params['AgentId']
|
2632
|
+
@AppBizId = params['AppBizId']
|
2633
|
+
end
|
2634
|
+
end
|
2635
|
+
|
2636
|
+
# DeleteAgent返回参数结构体
|
2637
|
+
class DeleteAgentResponse < TencentCloud::Common::AbstractModel
|
2638
|
+
# @param AgentId: Agent的ID
|
2639
|
+
# @type AgentId: String
|
2640
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2641
|
+
# @type RequestId: String
|
2642
|
+
|
2643
|
+
attr_accessor :AgentId, :RequestId
|
2644
|
+
|
2645
|
+
def initialize(agentid=nil, requestid=nil)
|
2646
|
+
@AgentId = agentid
|
2647
|
+
@RequestId = requestid
|
2648
|
+
end
|
2649
|
+
|
2650
|
+
def deserialize(params)
|
2651
|
+
@AgentId = params['AgentId']
|
2652
|
+
@RequestId = params['RequestId']
|
2653
|
+
end
|
2654
|
+
end
|
2655
|
+
|
1945
2656
|
# DeleteApp请求参数结构体
|
1946
2657
|
class DeleteAppRequest < TencentCloud::Common::AbstractModel
|
1947
2658
|
# @param AppBizId: 应用ID
|
@@ -2276,6 +2987,53 @@ module TencentCloud
|
|
2276
2987
|
end
|
2277
2988
|
end
|
2278
2989
|
|
2990
|
+
# DescribeAppAgentList请求参数结构体
|
2991
|
+
class DescribeAppAgentListRequest < TencentCloud::Common::AbstractModel
|
2992
|
+
# @param AppBizId: 应用ID
|
2993
|
+
# @type AppBizId: String
|
2994
|
+
|
2995
|
+
attr_accessor :AppBizId
|
2996
|
+
|
2997
|
+
def initialize(appbizid=nil)
|
2998
|
+
@AppBizId = appbizid
|
2999
|
+
end
|
3000
|
+
|
3001
|
+
def deserialize(params)
|
3002
|
+
@AppBizId = params['AppBizId']
|
3003
|
+
end
|
3004
|
+
end
|
3005
|
+
|
3006
|
+
# DescribeAppAgentList返回参数结构体
|
3007
|
+
class DescribeAppAgentListResponse < TencentCloud::Common::AbstractModel
|
3008
|
+
# @param StaringAgentId: 入口启动AgentID
|
3009
|
+
# @type StaringAgentId: String
|
3010
|
+
# @param Agents: 应用Agent信息列表
|
3011
|
+
# @type Agents: Array
|
3012
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3013
|
+
# @type RequestId: String
|
3014
|
+
|
3015
|
+
attr_accessor :StaringAgentId, :Agents, :RequestId
|
3016
|
+
|
3017
|
+
def initialize(staringagentid=nil, agents=nil, requestid=nil)
|
3018
|
+
@StaringAgentId = staringagentid
|
3019
|
+
@Agents = agents
|
3020
|
+
@RequestId = requestid
|
3021
|
+
end
|
3022
|
+
|
3023
|
+
def deserialize(params)
|
3024
|
+
@StaringAgentId = params['StaringAgentId']
|
3025
|
+
unless params['Agents'].nil?
|
3026
|
+
@Agents = []
|
3027
|
+
params['Agents'].each do |i|
|
3028
|
+
agent_tmp = Agent.new
|
3029
|
+
agent_tmp.deserialize(i)
|
3030
|
+
@Agents << agent_tmp
|
3031
|
+
end
|
3032
|
+
end
|
3033
|
+
@RequestId = params['RequestId']
|
3034
|
+
end
|
3035
|
+
end
|
3036
|
+
|
2279
3037
|
# DescribeApp请求参数结构体
|
2280
3038
|
class DescribeAppRequest < TencentCloud::Common::AbstractModel
|
2281
3039
|
# @param AppBizId: 应用ID
|
@@ -2800,12 +3558,15 @@ module TencentCloud
|
|
2800
3558
|
# @type CateBizId: String
|
2801
3559
|
# @param IsDisabled: 文档是否停用,false:未停用,true:已停用
|
2802
3560
|
# @type IsDisabled: Boolean
|
3561
|
+
# @param IsDownload: 是否支持下载
|
3562
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3563
|
+
# @type IsDownload: Boolean
|
2803
3564
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2804
3565
|
# @type RequestId: String
|
2805
3566
|
|
2806
|
-
attr_accessor :DocBizId, :FileName, :FileType, :CosUrl, :UpdateTime, :Status, :StatusDesc, :Reason, :IsRefer, :QaNum, :IsDeleted, :Source, :SourceDesc, :IsAllowRestart, :IsDeletedQa, :IsCreatingQa, :IsAllowDelete, :IsAllowRefer, :IsCreatedQa, :DocCharSize, :IsAllowEdit, :AttrRange, :AttrLabels, :CateBizId, :IsDisabled, :RequestId
|
3567
|
+
attr_accessor :DocBizId, :FileName, :FileType, :CosUrl, :UpdateTime, :Status, :StatusDesc, :Reason, :IsRefer, :QaNum, :IsDeleted, :Source, :SourceDesc, :IsAllowRestart, :IsDeletedQa, :IsCreatingQa, :IsAllowDelete, :IsAllowRefer, :IsCreatedQa, :DocCharSize, :IsAllowEdit, :AttrRange, :AttrLabels, :CateBizId, :IsDisabled, :IsDownload, :RequestId
|
2807
3568
|
|
2808
|
-
def initialize(docbizid=nil, filename=nil, filetype=nil, cosurl=nil, updatetime=nil, status=nil, statusdesc=nil, reason=nil, isrefer=nil, qanum=nil, isdeleted=nil, source=nil, sourcedesc=nil, isallowrestart=nil, isdeletedqa=nil, iscreatingqa=nil, isallowdelete=nil, isallowrefer=nil, iscreatedqa=nil, doccharsize=nil, isallowedit=nil, attrrange=nil, attrlabels=nil, catebizid=nil, isdisabled=nil, requestid=nil)
|
3569
|
+
def initialize(docbizid=nil, filename=nil, filetype=nil, cosurl=nil, updatetime=nil, status=nil, statusdesc=nil, reason=nil, isrefer=nil, qanum=nil, isdeleted=nil, source=nil, sourcedesc=nil, isallowrestart=nil, isdeletedqa=nil, iscreatingqa=nil, isallowdelete=nil, isallowrefer=nil, iscreatedqa=nil, doccharsize=nil, isallowedit=nil, attrrange=nil, attrlabels=nil, catebizid=nil, isdisabled=nil, isdownload=nil, requestid=nil)
|
2809
3570
|
@DocBizId = docbizid
|
2810
3571
|
@FileName = filename
|
2811
3572
|
@FileType = filetype
|
@@ -2831,6 +3592,7 @@ module TencentCloud
|
|
2831
3592
|
@AttrLabels = attrlabels
|
2832
3593
|
@CateBizId = catebizid
|
2833
3594
|
@IsDisabled = isdisabled
|
3595
|
+
@IsDownload = isdownload
|
2834
3596
|
@RequestId = requestid
|
2835
3597
|
end
|
2836
3598
|
|
@@ -2867,6 +3629,7 @@ module TencentCloud
|
|
2867
3629
|
end
|
2868
3630
|
@CateBizId = params['CateBizId']
|
2869
3631
|
@IsDisabled = params['IsDisabled']
|
3632
|
+
@IsDownload = params['IsDownload']
|
2870
3633
|
@RequestId = params['RequestId']
|
2871
3634
|
end
|
2872
3635
|
end
|
@@ -3990,10 +4753,12 @@ module TencentCloud
|
|
3990
4753
|
# @param DocUrl: 文档链接
|
3991
4754
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
3992
4755
|
# @type DocUrl: String
|
4756
|
+
# @param WebUrl: 文档的自定义链接
|
4757
|
+
# @type WebUrl: String
|
3993
4758
|
|
3994
|
-
attr_accessor :Id, :BusinessId, :FileType, :SegmentType, :Title, :PageContent, :OrgData, :DocId, :DocBizId, :DocUrl
|
4759
|
+
attr_accessor :Id, :BusinessId, :FileType, :SegmentType, :Title, :PageContent, :OrgData, :DocId, :DocBizId, :DocUrl, :WebUrl
|
3995
4760
|
|
3996
|
-
def initialize(id=nil, businessid=nil, filetype=nil, segmenttype=nil, title=nil, pagecontent=nil, orgdata=nil, docid=nil, docbizid=nil, docurl=nil)
|
4761
|
+
def initialize(id=nil, businessid=nil, filetype=nil, segmenttype=nil, title=nil, pagecontent=nil, orgdata=nil, docid=nil, docbizid=nil, docurl=nil, weburl=nil)
|
3997
4762
|
@Id = id
|
3998
4763
|
@BusinessId = businessid
|
3999
4764
|
@FileType = filetype
|
@@ -4004,6 +4769,7 @@ module TencentCloud
|
|
4004
4769
|
@DocId = docid
|
4005
4770
|
@DocBizId = docbizid
|
4006
4771
|
@DocUrl = docurl
|
4772
|
+
@WebUrl = weburl
|
4007
4773
|
end
|
4008
4774
|
|
4009
4775
|
def deserialize(params)
|
@@ -4017,6 +4783,7 @@ module TencentCloud
|
|
4017
4783
|
@DocId = params['DocId']
|
4018
4784
|
@DocBizId = params['DocBizId']
|
4019
4785
|
@DocUrl = params['DocUrl']
|
4786
|
+
@WebUrl = params['WebUrl']
|
4020
4787
|
end
|
4021
4788
|
end
|
4022
4789
|
|
@@ -4650,12 +5417,15 @@ module TencentCloud
|
|
4650
5417
|
# @type NewName: String
|
4651
5418
|
# @param ParseResultCosUrl: 文件md结果cos临时地址
|
4652
5419
|
# @type ParseResultCosUrl: String
|
5420
|
+
# @param IsDownload: 是否可下载
|
5421
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5422
|
+
# @type IsDownload: Boolean
|
4653
5423
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4654
5424
|
# @type RequestId: String
|
4655
5425
|
|
4656
|
-
attr_accessor :FileName, :FileType, :CosUrl, :Url, :Bucket, :NewName, :ParseResultCosUrl, :RequestId
|
5426
|
+
attr_accessor :FileName, :FileType, :CosUrl, :Url, :Bucket, :NewName, :ParseResultCosUrl, :IsDownload, :RequestId
|
4657
5427
|
|
4658
|
-
def initialize(filename=nil, filetype=nil, cosurl=nil, url=nil, bucket=nil, newname=nil, parseresultcosurl=nil, requestid=nil)
|
5428
|
+
def initialize(filename=nil, filetype=nil, cosurl=nil, url=nil, bucket=nil, newname=nil, parseresultcosurl=nil, isdownload=nil, requestid=nil)
|
4659
5429
|
@FileName = filename
|
4660
5430
|
@FileType = filetype
|
4661
5431
|
@CosUrl = cosurl
|
@@ -4663,6 +5433,7 @@ module TencentCloud
|
|
4663
5433
|
@Bucket = bucket
|
4664
5434
|
@NewName = newname
|
4665
5435
|
@ParseResultCosUrl = parseresultcosurl
|
5436
|
+
@IsDownload = isdownload
|
4666
5437
|
@RequestId = requestid
|
4667
5438
|
end
|
4668
5439
|
|
@@ -4674,6 +5445,7 @@ module TencentCloud
|
|
4674
5445
|
@Bucket = params['Bucket']
|
4675
5446
|
@NewName = params['NewName']
|
4676
5447
|
@ParseResultCosUrl = params['ParseResultCosUrl']
|
5448
|
+
@IsDownload = params['IsDownload']
|
4677
5449
|
@RequestId = params['RequestId']
|
4678
5450
|
end
|
4679
5451
|
end
|
@@ -7988,6 +8760,49 @@ module TencentCloud
|
|
7988
8760
|
end
|
7989
8761
|
end
|
7990
8762
|
|
8763
|
+
# ModifyAgent请求参数结构体
|
8764
|
+
class ModifyAgentRequest < TencentCloud::Common::AbstractModel
|
8765
|
+
# @param AppBizId: 需要修改的应用ID
|
8766
|
+
# @type AppBizId: String
|
8767
|
+
# @param Agent: 修改后的Agent的信息
|
8768
|
+
# @type Agent: :class:`Tencentcloud::Lke.v20231130.models.Agent`
|
8769
|
+
|
8770
|
+
attr_accessor :AppBizId, :Agent
|
8771
|
+
|
8772
|
+
def initialize(appbizid=nil, agent=nil)
|
8773
|
+
@AppBizId = appbizid
|
8774
|
+
@Agent = agent
|
8775
|
+
end
|
8776
|
+
|
8777
|
+
def deserialize(params)
|
8778
|
+
@AppBizId = params['AppBizId']
|
8779
|
+
unless params['Agent'].nil?
|
8780
|
+
@Agent = Agent.new
|
8781
|
+
@Agent.deserialize(params['Agent'])
|
8782
|
+
end
|
8783
|
+
end
|
8784
|
+
end
|
8785
|
+
|
8786
|
+
# ModifyAgent返回参数结构体
|
8787
|
+
class ModifyAgentResponse < TencentCloud::Common::AbstractModel
|
8788
|
+
# @param AgentId: 修改的AgentId
|
8789
|
+
# @type AgentId: String
|
8790
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8791
|
+
# @type RequestId: String
|
8792
|
+
|
8793
|
+
attr_accessor :AgentId, :RequestId
|
8794
|
+
|
8795
|
+
def initialize(agentid=nil, requestid=nil)
|
8796
|
+
@AgentId = agentid
|
8797
|
+
@RequestId = requestid
|
8798
|
+
end
|
8799
|
+
|
8800
|
+
def deserialize(params)
|
8801
|
+
@AgentId = params['AgentId']
|
8802
|
+
@RequestId = params['RequestId']
|
8803
|
+
end
|
8804
|
+
end
|
8805
|
+
|
7991
8806
|
# ModifyApp请求参数结构体
|
7992
8807
|
class ModifyAppRequest < TencentCloud::Common::AbstractModel
|
7993
8808
|
# @param AppBizId: 应用 ID
|
@@ -8752,15 +9567,27 @@ module TencentCloud
|
|
8752
9567
|
# @type Name: String
|
8753
9568
|
# @param DocId: 来源文档ID
|
8754
9569
|
# @type DocId: String
|
9570
|
+
# @param KnowledgeName: 知识库名称
|
9571
|
+
# @type KnowledgeName: String
|
9572
|
+
# @param KnowledgeBizId: 知识库业务id
|
9573
|
+
# @type KnowledgeBizId: String
|
9574
|
+
# @param DocBizId: 文档业务id
|
9575
|
+
# @type DocBizId: String
|
9576
|
+
# @param QaBizId: 问答业务id
|
9577
|
+
# @type QaBizId: String
|
8755
9578
|
|
8756
|
-
attr_accessor :Id, :Url, :Type, :Name, :DocId
|
9579
|
+
attr_accessor :Id, :Url, :Type, :Name, :DocId, :KnowledgeName, :KnowledgeBizId, :DocBizId, :QaBizId
|
8757
9580
|
|
8758
|
-
def initialize(id=nil, url=nil, type=nil, name=nil, docid=nil)
|
9581
|
+
def initialize(id=nil, url=nil, type=nil, name=nil, docid=nil, knowledgename=nil, knowledgebizid=nil, docbizid=nil, qabizid=nil)
|
8759
9582
|
@Id = id
|
8760
9583
|
@Url = url
|
8761
9584
|
@Type = type
|
8762
9585
|
@Name = name
|
8763
9586
|
@DocId = docid
|
9587
|
+
@KnowledgeName = knowledgename
|
9588
|
+
@KnowledgeBizId = knowledgebizid
|
9589
|
+
@DocBizId = docbizid
|
9590
|
+
@QaBizId = qabizid
|
8764
9591
|
end
|
8765
9592
|
|
8766
9593
|
def deserialize(params)
|
@@ -8769,6 +9596,10 @@ module TencentCloud
|
|
8769
9596
|
@Type = params['Type']
|
8770
9597
|
@Name = params['Name']
|
8771
9598
|
@DocId = params['DocId']
|
9599
|
+
@KnowledgeName = params['KnowledgeName']
|
9600
|
+
@KnowledgeBizId = params['KnowledgeBizId']
|
9601
|
+
@DocBizId = params['DocBizId']
|
9602
|
+
@QaBizId = params['QaBizId']
|
8772
9603
|
end
|
8773
9604
|
end
|
8774
9605
|
|
@@ -10317,10 +11148,12 @@ module TencentCloud
|
|
10317
11148
|
# @type Opt: Integer
|
10318
11149
|
# @param CateBizId: 分类ID
|
10319
11150
|
# @type CateBizId: String
|
11151
|
+
# @param IsDownload: 是否可下载,IsRefer为true并且ReferUrlType为0时,该值才有意义
|
11152
|
+
# @type IsDownload: Boolean
|
10320
11153
|
|
10321
|
-
attr_accessor :BotBizId, :FileName, :FileType, :CosUrl, :ETag, :CosHash, :Size, :AttrRange, :Source, :WebUrl, :AttrLabels, :ReferUrlType, :ExpireStart, :ExpireEnd, :IsRefer, :Opt, :CateBizId
|
11154
|
+
attr_accessor :BotBizId, :FileName, :FileType, :CosUrl, :ETag, :CosHash, :Size, :AttrRange, :Source, :WebUrl, :AttrLabels, :ReferUrlType, :ExpireStart, :ExpireEnd, :IsRefer, :Opt, :CateBizId, :IsDownload
|
10322
11155
|
|
10323
|
-
def initialize(botbizid=nil, filename=nil, filetype=nil, cosurl=nil, etag=nil, coshash=nil, size=nil, attrrange=nil, source=nil, weburl=nil, attrlabels=nil, referurltype=nil, expirestart=nil, expireend=nil, isrefer=nil, opt=nil, catebizid=nil)
|
11156
|
+
def initialize(botbizid=nil, filename=nil, filetype=nil, cosurl=nil, etag=nil, coshash=nil, size=nil, attrrange=nil, source=nil, weburl=nil, attrlabels=nil, referurltype=nil, expirestart=nil, expireend=nil, isrefer=nil, opt=nil, catebizid=nil, isdownload=nil)
|
10324
11157
|
@BotBizId = botbizid
|
10325
11158
|
@FileName = filename
|
10326
11159
|
@FileType = filetype
|
@@ -10338,6 +11171,7 @@ module TencentCloud
|
|
10338
11171
|
@IsRefer = isrefer
|
10339
11172
|
@Opt = opt
|
10340
11173
|
@CateBizId = catebizid
|
11174
|
+
@IsDownload = isdownload
|
10341
11175
|
end
|
10342
11176
|
|
10343
11177
|
def deserialize(params)
|
@@ -10365,6 +11199,7 @@ module TencentCloud
|
|
10365
11199
|
@IsRefer = params['IsRefer']
|
10366
11200
|
@Opt = params['Opt']
|
10367
11201
|
@CateBizId = params['CateBizId']
|
11202
|
+
@IsDownload = params['IsDownload']
|
10368
11203
|
end
|
10369
11204
|
end
|
10370
11205
|
|
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.
|
4
|
+
version: 3.0.1089
|
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
|
+
date: 2025-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|