tencentcloud-sdk-python 3.0.1409__py2.py3-none-any.whl → 3.0.1411__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/ams/v20201229/models.py +16 -189
- tencentcloud/apm/v20210622/models.py +15 -0
- tencentcloud/bh/v20230418/bh_client.py +138 -0
- tencentcloud/bh/v20230418/errorcodes.py +3 -0
- tencentcloud/bh/v20230418/models.py +991 -67
- tencentcloud/ccc/v20200210/models.py +2 -2
- tencentcloud/cdb/v20170320/cdb_client.py +27 -21
- tencentcloud/cdb/v20170320/errorcodes.py +0 -3
- tencentcloud/cdb/v20170320/models.py +294 -214
- tencentcloud/ctem/__init__.py +0 -0
- tencentcloud/ctem/v20231128/__init__.py +0 -0
- tencentcloud/ctem/v20231128/ctem_client.py +601 -0
- tencentcloud/ctem/v20231128/errorcodes.py +75 -0
- tencentcloud/ctem/v20231128/models.py +10459 -0
- tencentcloud/cwp/v20180228/models.py +165 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
- tencentcloud/cynosdb/v20190107/models.py +45 -0
- tencentcloud/dlc/v20210125/dlc_client.py +3 -1
- tencentcloud/dlc/v20210125/models.py +24 -7
- tencentcloud/dnspod/v20210323/errorcodes.py +1 -1
- tencentcloud/dsgc/v20190723/dsgc_client.py +1 -3
- tencentcloud/dsgc/v20190723/models.py +342 -15
- tencentcloud/emr/v20190103/models.py +155 -0
- tencentcloud/es/v20180416/errorcodes.py +42 -0
- tencentcloud/ess/v20201111/models.py +33 -4
- tencentcloud/hunyuan/v20230901/models.py +17 -2
- tencentcloud/ims/v20201229/models.py +2 -30
- tencentcloud/iotexplorer/v20190423/models.py +4 -4
- tencentcloud/iotvideo/v20201215/models.py +2 -2
- tencentcloud/iotvideo/v20211125/models.py +2 -2
- tencentcloud/kms/v20190118/errorcodes.py +36 -0
- tencentcloud/kms/v20190118/kms_client.py +345 -0
- tencentcloud/kms/v20190118/models.py +3437 -1534
- tencentcloud/lighthouse/v20200324/errorcodes.py +9 -0
- tencentcloud/lke/v20231130/lke_client.py +92 -0
- tencentcloud/lke/v20231130/models.py +2782 -622
- tencentcloud/mongodb/v20190725/models.py +15 -0
- tencentcloud/mps/v20190612/models.py +217 -18
- tencentcloud/mqtt/v20240516/errorcodes.py +3 -0
- tencentcloud/mqtt/v20240516/models.py +255 -0
- tencentcloud/mqtt/v20240516/mqtt_client.py +23 -0
- tencentcloud/redis/v20180412/models.py +6 -6
- tencentcloud/ses/v20201002/models.py +0 -8
- tencentcloud/tcss/v20201101/models.py +15 -0
- tencentcloud/thpc/v20230321/models.py +47 -2
- tencentcloud/tione/v20211111/models.py +15 -0
- tencentcloud/tke/v20180525/models.py +19 -0
- tencentcloud/trocket/v20230308/models.py +624 -354
- tencentcloud/trocket/v20230308/trocket_client.py +28 -5
- tencentcloud/vm/v20210922/models.py +45 -172
- tencentcloud/vpc/v20170312/models.py +15 -0
- tencentcloud/waf/v20180125/models.py +110 -18
- tencentcloud/wedata/v20210820/models.py +1003 -4
- tencentcloud/wedata/v20210820/wedata_client.py +71 -2
- {tencentcloud_sdk_python-3.0.1409.dist-info → tencentcloud_sdk_python-3.0.1411.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1409.dist-info → tencentcloud_sdk_python-3.0.1411.dist-info}/RECORD +60 -55
- {tencentcloud_sdk_python-3.0.1409.dist-info → tencentcloud_sdk_python-3.0.1411.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1409.dist-info → tencentcloud_sdk_python-3.0.1411.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1409.dist-info → tencentcloud_sdk_python-3.0.1411.dist-info}/top_level.txt +0 -0
@@ -128,6 +128,219 @@ class AICallConfig(AbstractModel):
|
|
128
128
|
|
129
129
|
|
130
130
|
|
131
|
+
class Agent(AbstractModel):
|
132
|
+
"""Agent 的定义
|
133
|
+
|
134
|
+
"""
|
135
|
+
|
136
|
+
def __init__(self):
|
137
|
+
r"""
|
138
|
+
:param _AgentId: AgentID
|
139
|
+
:type AgentId: str
|
140
|
+
:param _WorkflowId: WorkflowID,非空则当前Agent从workflow转换而来
|
141
|
+
:type WorkflowId: str
|
142
|
+
:param _Name: Agent名称,同一个应用内,Agent名称不能重复
|
143
|
+
:type Name: str
|
144
|
+
:param _IconUrl: 插件图标url
|
145
|
+
:type IconUrl: str
|
146
|
+
:param _Instructions: Agent指令;当该Agent被调用时,将作为“系统提示词”使用,描述Agent应执行的操作和响应方式
|
147
|
+
:type Instructions: str
|
148
|
+
:param _HandoffDescription: 当Agent作为转交目标时的描述,用于让其他Agent的LLM理解其功能和转交时机
|
149
|
+
:type HandoffDescription: str
|
150
|
+
:param _Handoffs: Agent可转交的子AgentId列表
|
151
|
+
:type Handoffs: list of str
|
152
|
+
:param _Model: Agent调用LLM时使用的模型配置
|
153
|
+
:type Model: :class:`tencentcloud.lke.v20231130.models.AgentModelInfo`
|
154
|
+
:param _Tools: Agent可使用的工具列表
|
155
|
+
:type Tools: list of AgentToolInfo
|
156
|
+
:param _Plugins: Agent可使用的插件列表
|
157
|
+
:type Plugins: list of AgentPluginInfo
|
158
|
+
:param _IsStartingAgent: 当前Agent是否是启动Agent
|
159
|
+
:type IsStartingAgent: bool
|
160
|
+
:param _AgentType: Agent类型; 0: 未指定类型; 1: 知识库检索Agent
|
161
|
+
:type AgentType: int
|
162
|
+
"""
|
163
|
+
self._AgentId = None
|
164
|
+
self._WorkflowId = None
|
165
|
+
self._Name = None
|
166
|
+
self._IconUrl = None
|
167
|
+
self._Instructions = None
|
168
|
+
self._HandoffDescription = None
|
169
|
+
self._Handoffs = None
|
170
|
+
self._Model = None
|
171
|
+
self._Tools = None
|
172
|
+
self._Plugins = None
|
173
|
+
self._IsStartingAgent = None
|
174
|
+
self._AgentType = None
|
175
|
+
|
176
|
+
@property
|
177
|
+
def AgentId(self):
|
178
|
+
"""AgentID
|
179
|
+
:rtype: str
|
180
|
+
"""
|
181
|
+
return self._AgentId
|
182
|
+
|
183
|
+
@AgentId.setter
|
184
|
+
def AgentId(self, AgentId):
|
185
|
+
self._AgentId = AgentId
|
186
|
+
|
187
|
+
@property
|
188
|
+
def WorkflowId(self):
|
189
|
+
"""WorkflowID,非空则当前Agent从workflow转换而来
|
190
|
+
:rtype: str
|
191
|
+
"""
|
192
|
+
return self._WorkflowId
|
193
|
+
|
194
|
+
@WorkflowId.setter
|
195
|
+
def WorkflowId(self, WorkflowId):
|
196
|
+
self._WorkflowId = WorkflowId
|
197
|
+
|
198
|
+
@property
|
199
|
+
def Name(self):
|
200
|
+
"""Agent名称,同一个应用内,Agent名称不能重复
|
201
|
+
:rtype: str
|
202
|
+
"""
|
203
|
+
return self._Name
|
204
|
+
|
205
|
+
@Name.setter
|
206
|
+
def Name(self, Name):
|
207
|
+
self._Name = Name
|
208
|
+
|
209
|
+
@property
|
210
|
+
def IconUrl(self):
|
211
|
+
"""插件图标url
|
212
|
+
:rtype: str
|
213
|
+
"""
|
214
|
+
return self._IconUrl
|
215
|
+
|
216
|
+
@IconUrl.setter
|
217
|
+
def IconUrl(self, IconUrl):
|
218
|
+
self._IconUrl = IconUrl
|
219
|
+
|
220
|
+
@property
|
221
|
+
def Instructions(self):
|
222
|
+
"""Agent指令;当该Agent被调用时,将作为“系统提示词”使用,描述Agent应执行的操作和响应方式
|
223
|
+
:rtype: str
|
224
|
+
"""
|
225
|
+
return self._Instructions
|
226
|
+
|
227
|
+
@Instructions.setter
|
228
|
+
def Instructions(self, Instructions):
|
229
|
+
self._Instructions = Instructions
|
230
|
+
|
231
|
+
@property
|
232
|
+
def HandoffDescription(self):
|
233
|
+
"""当Agent作为转交目标时的描述,用于让其他Agent的LLM理解其功能和转交时机
|
234
|
+
:rtype: str
|
235
|
+
"""
|
236
|
+
return self._HandoffDescription
|
237
|
+
|
238
|
+
@HandoffDescription.setter
|
239
|
+
def HandoffDescription(self, HandoffDescription):
|
240
|
+
self._HandoffDescription = HandoffDescription
|
241
|
+
|
242
|
+
@property
|
243
|
+
def Handoffs(self):
|
244
|
+
"""Agent可转交的子AgentId列表
|
245
|
+
:rtype: list of str
|
246
|
+
"""
|
247
|
+
return self._Handoffs
|
248
|
+
|
249
|
+
@Handoffs.setter
|
250
|
+
def Handoffs(self, Handoffs):
|
251
|
+
self._Handoffs = Handoffs
|
252
|
+
|
253
|
+
@property
|
254
|
+
def Model(self):
|
255
|
+
"""Agent调用LLM时使用的模型配置
|
256
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentModelInfo`
|
257
|
+
"""
|
258
|
+
return self._Model
|
259
|
+
|
260
|
+
@Model.setter
|
261
|
+
def Model(self, Model):
|
262
|
+
self._Model = Model
|
263
|
+
|
264
|
+
@property
|
265
|
+
def Tools(self):
|
266
|
+
"""Agent可使用的工具列表
|
267
|
+
:rtype: list of AgentToolInfo
|
268
|
+
"""
|
269
|
+
return self._Tools
|
270
|
+
|
271
|
+
@Tools.setter
|
272
|
+
def Tools(self, Tools):
|
273
|
+
self._Tools = Tools
|
274
|
+
|
275
|
+
@property
|
276
|
+
def Plugins(self):
|
277
|
+
"""Agent可使用的插件列表
|
278
|
+
:rtype: list of AgentPluginInfo
|
279
|
+
"""
|
280
|
+
return self._Plugins
|
281
|
+
|
282
|
+
@Plugins.setter
|
283
|
+
def Plugins(self, Plugins):
|
284
|
+
self._Plugins = Plugins
|
285
|
+
|
286
|
+
@property
|
287
|
+
def IsStartingAgent(self):
|
288
|
+
"""当前Agent是否是启动Agent
|
289
|
+
:rtype: bool
|
290
|
+
"""
|
291
|
+
return self._IsStartingAgent
|
292
|
+
|
293
|
+
@IsStartingAgent.setter
|
294
|
+
def IsStartingAgent(self, IsStartingAgent):
|
295
|
+
self._IsStartingAgent = IsStartingAgent
|
296
|
+
|
297
|
+
@property
|
298
|
+
def AgentType(self):
|
299
|
+
"""Agent类型; 0: 未指定类型; 1: 知识库检索Agent
|
300
|
+
:rtype: int
|
301
|
+
"""
|
302
|
+
return self._AgentType
|
303
|
+
|
304
|
+
@AgentType.setter
|
305
|
+
def AgentType(self, AgentType):
|
306
|
+
self._AgentType = AgentType
|
307
|
+
|
308
|
+
|
309
|
+
def _deserialize(self, params):
|
310
|
+
self._AgentId = params.get("AgentId")
|
311
|
+
self._WorkflowId = params.get("WorkflowId")
|
312
|
+
self._Name = params.get("Name")
|
313
|
+
self._IconUrl = params.get("IconUrl")
|
314
|
+
self._Instructions = params.get("Instructions")
|
315
|
+
self._HandoffDescription = params.get("HandoffDescription")
|
316
|
+
self._Handoffs = params.get("Handoffs")
|
317
|
+
if params.get("Model") is not None:
|
318
|
+
self._Model = AgentModelInfo()
|
319
|
+
self._Model._deserialize(params.get("Model"))
|
320
|
+
if params.get("Tools") is not None:
|
321
|
+
self._Tools = []
|
322
|
+
for item in params.get("Tools"):
|
323
|
+
obj = AgentToolInfo()
|
324
|
+
obj._deserialize(item)
|
325
|
+
self._Tools.append(obj)
|
326
|
+
if params.get("Plugins") is not None:
|
327
|
+
self._Plugins = []
|
328
|
+
for item in params.get("Plugins"):
|
329
|
+
obj = AgentPluginInfo()
|
330
|
+
obj._deserialize(item)
|
331
|
+
self._Plugins.append(obj)
|
332
|
+
self._IsStartingAgent = params.get("IsStartingAgent")
|
333
|
+
self._AgentType = params.get("AgentType")
|
334
|
+
memeber_set = set(params.keys())
|
335
|
+
for name, value in vars(self).items():
|
336
|
+
property_name = name[1:]
|
337
|
+
if property_name in memeber_set:
|
338
|
+
memeber_set.remove(property_name)
|
339
|
+
if len(memeber_set) > 0:
|
340
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
341
|
+
|
342
|
+
|
343
|
+
|
131
344
|
class AgentDebugInfo(AbstractModel):
|
132
345
|
"""Agent调试信息
|
133
346
|
|
@@ -183,257 +396,156 @@ class AgentDebugInfo(AbstractModel):
|
|
183
396
|
|
184
397
|
|
185
398
|
|
186
|
-
class
|
187
|
-
"""
|
399
|
+
class AgentInput(AbstractModel):
|
400
|
+
"""Agent输入值,支持直接赋值和引用
|
188
401
|
|
189
402
|
"""
|
190
403
|
|
191
404
|
def __init__(self):
|
192
405
|
r"""
|
193
|
-
:param
|
194
|
-
|
195
|
-
:
|
196
|
-
:
|
197
|
-
|
198
|
-
:type
|
199
|
-
:param _Title: 中文名, 用于展示
|
200
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
201
|
-
:type Title: str
|
202
|
-
:param _Status: 状态常量: 使用中: processing, 成功: success, 失败: failed
|
203
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
204
|
-
:type Status: str
|
205
|
-
:param _Icon: 图标
|
206
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
207
|
-
:type Icon: str
|
208
|
-
:param _Debugging: Agent调试信息
|
209
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
210
|
-
:type Debugging: :class:`tencentcloud.lke.v20231130.models.AgentProcedureDebugging`
|
211
|
-
:param _Switch: 是否切换Agent,取值为"main"或者"workflow",不切换为空
|
212
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
213
|
-
:type Switch: str
|
214
|
-
:param _WorkflowName: 工作流名称
|
215
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
216
|
-
:type WorkflowName: str
|
217
|
-
:param _Elapsed: 当前请求执行时间, 单位 ms
|
218
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
219
|
-
:type Elapsed: int
|
220
|
-
:param _NodeName: 工作流节点名称
|
221
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
222
|
-
:type NodeName: str
|
223
|
-
:param _ReplyIndex: 用于展示思考放在哪个回复气泡中
|
224
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
225
|
-
:type ReplyIndex: int
|
226
|
-
:param _SourceAgentName: 主agent
|
227
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
228
|
-
:type SourceAgentName: str
|
229
|
-
:param _TargetAgentName: 挂号agent
|
230
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
231
|
-
:type TargetAgentName: str
|
232
|
-
:param _AgentIcon: Agent的图标
|
233
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
234
|
-
:type AgentIcon: str
|
406
|
+
:param _InputType: 输入来源类型:0 用户输入,3 自定义变量(API参数)
|
407
|
+
:type InputType: int
|
408
|
+
:param _UserInputValue: 用户手写输入
|
409
|
+
:type UserInputValue: :class:`tencentcloud.lke.v20231130.models.AgentInputUserInputValue`
|
410
|
+
:param _CustomVarId: 自定义变量(API参数)
|
411
|
+
:type CustomVarId: str
|
235
412
|
"""
|
236
|
-
self.
|
237
|
-
self.
|
238
|
-
self.
|
239
|
-
self._Status = None
|
240
|
-
self._Icon = None
|
241
|
-
self._Debugging = None
|
242
|
-
self._Switch = None
|
243
|
-
self._WorkflowName = None
|
244
|
-
self._Elapsed = None
|
245
|
-
self._NodeName = None
|
246
|
-
self._ReplyIndex = None
|
247
|
-
self._SourceAgentName = None
|
248
|
-
self._TargetAgentName = None
|
249
|
-
self._AgentIcon = None
|
413
|
+
self._InputType = None
|
414
|
+
self._UserInputValue = None
|
415
|
+
self._CustomVarId = None
|
250
416
|
|
251
417
|
@property
|
252
|
-
def
|
253
|
-
"""
|
254
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
418
|
+
def InputType(self):
|
419
|
+
"""输入来源类型:0 用户输入,3 自定义变量(API参数)
|
255
420
|
:rtype: int
|
256
421
|
"""
|
257
|
-
return self.
|
422
|
+
return self._InputType
|
258
423
|
|
259
|
-
@
|
260
|
-
def
|
261
|
-
self.
|
424
|
+
@InputType.setter
|
425
|
+
def InputType(self, InputType):
|
426
|
+
self._InputType = InputType
|
262
427
|
|
263
428
|
@property
|
264
|
-
def
|
265
|
-
"""
|
266
|
-
|
267
|
-
:rtype: str
|
429
|
+
def UserInputValue(self):
|
430
|
+
"""用户手写输入
|
431
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentInputUserInputValue`
|
268
432
|
"""
|
269
|
-
return self.
|
433
|
+
return self._UserInputValue
|
270
434
|
|
271
|
-
@
|
272
|
-
def
|
273
|
-
self.
|
435
|
+
@UserInputValue.setter
|
436
|
+
def UserInputValue(self, UserInputValue):
|
437
|
+
self._UserInputValue = UserInputValue
|
274
438
|
|
275
439
|
@property
|
276
|
-
def
|
277
|
-
"""
|
278
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
440
|
+
def CustomVarId(self):
|
441
|
+
"""自定义变量(API参数)
|
279
442
|
:rtype: str
|
280
443
|
"""
|
281
|
-
return self.
|
282
|
-
|
283
|
-
@Title.setter
|
284
|
-
def Title(self, Title):
|
285
|
-
self._Title = Title
|
444
|
+
return self._CustomVarId
|
286
445
|
|
287
|
-
@
|
288
|
-
def
|
289
|
-
|
290
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
291
|
-
:rtype: str
|
292
|
-
"""
|
293
|
-
return self._Status
|
446
|
+
@CustomVarId.setter
|
447
|
+
def CustomVarId(self, CustomVarId):
|
448
|
+
self._CustomVarId = CustomVarId
|
294
449
|
|
295
|
-
@Status.setter
|
296
|
-
def Status(self, Status):
|
297
|
-
self._Status = Status
|
298
450
|
|
299
|
-
|
300
|
-
|
301
|
-
""
|
302
|
-
|
303
|
-
|
304
|
-
""
|
305
|
-
|
451
|
+
def _deserialize(self, params):
|
452
|
+
self._InputType = params.get("InputType")
|
453
|
+
if params.get("UserInputValue") is not None:
|
454
|
+
self._UserInputValue = AgentInputUserInputValue()
|
455
|
+
self._UserInputValue._deserialize(params.get("UserInputValue"))
|
456
|
+
self._CustomVarId = params.get("CustomVarId")
|
457
|
+
memeber_set = set(params.keys())
|
458
|
+
for name, value in vars(self).items():
|
459
|
+
property_name = name[1:]
|
460
|
+
if property_name in memeber_set:
|
461
|
+
memeber_set.remove(property_name)
|
462
|
+
if len(memeber_set) > 0:
|
463
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
464
|
+
|
306
465
|
|
307
|
-
@Icon.setter
|
308
|
-
def Icon(self, Icon):
|
309
|
-
self._Icon = Icon
|
310
466
|
|
311
|
-
|
312
|
-
|
313
|
-
"""Agent调试信息
|
314
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
315
|
-
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentProcedureDebugging`
|
316
|
-
"""
|
317
|
-
return self._Debugging
|
467
|
+
class AgentInputUserInputValue(AbstractModel):
|
468
|
+
"""用户手写输入
|
318
469
|
|
319
|
-
|
320
|
-
def Debugging(self, Debugging):
|
321
|
-
self._Debugging = Debugging
|
470
|
+
"""
|
322
471
|
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
:rtype: str
|
472
|
+
def __init__(self):
|
473
|
+
r"""
|
474
|
+
:param _Values: 用户输入的值
|
475
|
+
:type Values: list of str
|
328
476
|
"""
|
329
|
-
|
330
|
-
|
331
|
-
@Switch.setter
|
332
|
-
def Switch(self, Switch):
|
333
|
-
self._Switch = Switch
|
477
|
+
self._Values = None
|
334
478
|
|
335
479
|
@property
|
336
|
-
def
|
337
|
-
"""
|
338
|
-
|
339
|
-
:rtype: str
|
480
|
+
def Values(self):
|
481
|
+
"""用户输入的值
|
482
|
+
:rtype: list of str
|
340
483
|
"""
|
341
|
-
return self.
|
484
|
+
return self._Values
|
342
485
|
|
343
|
-
@
|
344
|
-
def
|
345
|
-
self.
|
346
|
-
|
347
|
-
@property
|
348
|
-
def Elapsed(self):
|
349
|
-
"""当前请求执行时间, 单位 ms
|
350
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
351
|
-
:rtype: int
|
352
|
-
"""
|
353
|
-
return self._Elapsed
|
486
|
+
@Values.setter
|
487
|
+
def Values(self, Values):
|
488
|
+
self._Values = Values
|
354
489
|
|
355
|
-
@Elapsed.setter
|
356
|
-
def Elapsed(self, Elapsed):
|
357
|
-
self._Elapsed = Elapsed
|
358
490
|
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
491
|
+
def _deserialize(self, params):
|
492
|
+
self._Values = params.get("Values")
|
493
|
+
memeber_set = set(params.keys())
|
494
|
+
for name, value in vars(self).items():
|
495
|
+
property_name = name[1:]
|
496
|
+
if property_name in memeber_set:
|
497
|
+
memeber_set.remove(property_name)
|
498
|
+
if len(memeber_set) > 0:
|
499
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
500
|
+
|
366
501
|
|
367
|
-
@NodeName.setter
|
368
|
-
def NodeName(self, NodeName):
|
369
|
-
self._NodeName = NodeName
|
370
502
|
|
371
|
-
|
372
|
-
|
373
|
-
"""用于展示思考放在哪个回复气泡中
|
374
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
375
|
-
:rtype: int
|
376
|
-
"""
|
377
|
-
return self._ReplyIndex
|
503
|
+
class AgentKnowledgeAttrLabel(AbstractModel):
|
504
|
+
"""标签过滤器
|
378
505
|
|
379
|
-
|
380
|
-
def ReplyIndex(self, ReplyIndex):
|
381
|
-
self._ReplyIndex = ReplyIndex
|
506
|
+
"""
|
382
507
|
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
:
|
508
|
+
def __init__(self):
|
509
|
+
r"""
|
510
|
+
:param _AttributeBizId: 属性ID
|
511
|
+
:type AttributeBizId: str
|
512
|
+
:param _Inputs: 标签值,标签值之间是或的关系,只有匹配的,才会进行知识检索,否则报检索不到
|
513
|
+
:type Inputs: list of AgentInput
|
388
514
|
"""
|
389
|
-
|
390
|
-
|
391
|
-
@SourceAgentName.setter
|
392
|
-
def SourceAgentName(self, SourceAgentName):
|
393
|
-
self._SourceAgentName = SourceAgentName
|
515
|
+
self._AttributeBizId = None
|
516
|
+
self._Inputs = None
|
394
517
|
|
395
518
|
@property
|
396
|
-
def
|
397
|
-
"""
|
398
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
519
|
+
def AttributeBizId(self):
|
520
|
+
"""属性ID
|
399
521
|
:rtype: str
|
400
522
|
"""
|
401
|
-
return self.
|
523
|
+
return self._AttributeBizId
|
402
524
|
|
403
|
-
@
|
404
|
-
def
|
405
|
-
self.
|
525
|
+
@AttributeBizId.setter
|
526
|
+
def AttributeBizId(self, AttributeBizId):
|
527
|
+
self._AttributeBizId = AttributeBizId
|
406
528
|
|
407
529
|
@property
|
408
|
-
def
|
409
|
-
"""
|
410
|
-
|
411
|
-
:rtype: str
|
530
|
+
def Inputs(self):
|
531
|
+
"""标签值,标签值之间是或的关系,只有匹配的,才会进行知识检索,否则报检索不到
|
532
|
+
:rtype: list of AgentInput
|
412
533
|
"""
|
413
|
-
return self.
|
534
|
+
return self._Inputs
|
414
535
|
|
415
|
-
@
|
416
|
-
def
|
417
|
-
self.
|
536
|
+
@Inputs.setter
|
537
|
+
def Inputs(self, Inputs):
|
538
|
+
self._Inputs = Inputs
|
418
539
|
|
419
540
|
|
420
541
|
def _deserialize(self, params):
|
421
|
-
self.
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
self._Debugging._deserialize(params.get("Debugging"))
|
429
|
-
self._Switch = params.get("Switch")
|
430
|
-
self._WorkflowName = params.get("WorkflowName")
|
431
|
-
self._Elapsed = params.get("Elapsed")
|
432
|
-
self._NodeName = params.get("NodeName")
|
433
|
-
self._ReplyIndex = params.get("ReplyIndex")
|
434
|
-
self._SourceAgentName = params.get("SourceAgentName")
|
435
|
-
self._TargetAgentName = params.get("TargetAgentName")
|
436
|
-
self._AgentIcon = params.get("AgentIcon")
|
542
|
+
self._AttributeBizId = params.get("AttributeBizId")
|
543
|
+
if params.get("Inputs") is not None:
|
544
|
+
self._Inputs = []
|
545
|
+
for item in params.get("Inputs"):
|
546
|
+
obj = AgentInput()
|
547
|
+
obj._deserialize(item)
|
548
|
+
self._Inputs.append(obj)
|
437
549
|
memeber_set = set(params.keys())
|
438
550
|
for name, value in vars(self).items():
|
439
551
|
property_name = name[1:]
|
@@ -444,163 +556,117 @@ class AgentProcedure(AbstractModel):
|
|
444
556
|
|
445
557
|
|
446
558
|
|
447
|
-
class
|
448
|
-
"""
|
559
|
+
class AgentKnowledgeFilter(AbstractModel):
|
560
|
+
"""知识检索筛选范围
|
449
561
|
|
450
562
|
"""
|
451
563
|
|
452
564
|
def __init__(self):
|
453
565
|
r"""
|
454
|
-
:param
|
455
|
-
|
456
|
-
:
|
457
|
-
:
|
458
|
-
|
459
|
-
:type
|
460
|
-
:param _DisplayType: 展示类型
|
461
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
462
|
-
:type DisplayType: int
|
463
|
-
:param _QuoteInfos: 搜索引擎展示的索引
|
464
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
465
|
-
:type QuoteInfos: list of QuoteInfo
|
466
|
-
:param _References: 具体的参考来源
|
467
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
468
|
-
:type References: list of AgentReference
|
469
|
-
:param _DisplayStatus: 展示正在执行的状态
|
470
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
471
|
-
:type DisplayStatus: str
|
472
|
-
:param _SandboxUrl: 云桌面的URL地址
|
473
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
474
|
-
:type SandboxUrl: str
|
475
|
-
:param _DisplayUrl: 云桌面里面通过浏览器打开的URL地址
|
476
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
477
|
-
:type DisplayUrl: str
|
566
|
+
:param _FilterType: 知识检索筛选方式; 0: 全部知识; 1:按文档和问答; 2: 按标签
|
567
|
+
:type FilterType: int
|
568
|
+
:param _DocAndAnswer: 文档和问答过滤器
|
569
|
+
:type DocAndAnswer: :class:`tencentcloud.lke.v20231130.models.AgentKnowledgeFilterDocAndAnswer`
|
570
|
+
:param _Tag: 标签过滤器
|
571
|
+
:type Tag: :class:`tencentcloud.lke.v20231130.models.AgentKnowledgeFilterTag`
|
478
572
|
"""
|
479
|
-
self.
|
480
|
-
self.
|
481
|
-
self.
|
482
|
-
self._QuoteInfos = None
|
483
|
-
self._References = None
|
484
|
-
self._DisplayStatus = None
|
485
|
-
self._SandboxUrl = None
|
486
|
-
self._DisplayUrl = None
|
573
|
+
self._FilterType = None
|
574
|
+
self._DocAndAnswer = None
|
575
|
+
self._Tag = None
|
487
576
|
|
488
577
|
@property
|
489
|
-
def
|
490
|
-
"""
|
491
|
-
|
492
|
-
:rtype: str
|
578
|
+
def FilterType(self):
|
579
|
+
"""知识检索筛选方式; 0: 全部知识; 1:按文档和问答; 2: 按标签
|
580
|
+
:rtype: int
|
493
581
|
"""
|
494
|
-
return self.
|
582
|
+
return self._FilterType
|
495
583
|
|
496
|
-
@
|
497
|
-
def
|
498
|
-
self.
|
584
|
+
@FilterType.setter
|
585
|
+
def FilterType(self, FilterType):
|
586
|
+
self._FilterType = FilterType
|
499
587
|
|
500
588
|
@property
|
501
|
-
def
|
502
|
-
"""
|
503
|
-
|
504
|
-
:rtype: str
|
589
|
+
def DocAndAnswer(self):
|
590
|
+
"""文档和问答过滤器
|
591
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentKnowledgeFilterDocAndAnswer`
|
505
592
|
"""
|
506
|
-
return self.
|
593
|
+
return self._DocAndAnswer
|
507
594
|
|
508
|
-
@
|
509
|
-
def
|
510
|
-
self.
|
595
|
+
@DocAndAnswer.setter
|
596
|
+
def DocAndAnswer(self, DocAndAnswer):
|
597
|
+
self._DocAndAnswer = DocAndAnswer
|
511
598
|
|
512
599
|
@property
|
513
|
-
def
|
514
|
-
"""
|
515
|
-
|
516
|
-
:rtype: int
|
600
|
+
def Tag(self):
|
601
|
+
"""标签过滤器
|
602
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentKnowledgeFilterTag`
|
517
603
|
"""
|
518
|
-
return self.
|
604
|
+
return self._Tag
|
519
605
|
|
520
|
-
@
|
521
|
-
def
|
522
|
-
self.
|
606
|
+
@Tag.setter
|
607
|
+
def Tag(self, Tag):
|
608
|
+
self._Tag = Tag
|
523
609
|
|
524
|
-
@property
|
525
|
-
def QuoteInfos(self):
|
526
|
-
"""搜索引擎展示的索引
|
527
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
528
|
-
:rtype: list of QuoteInfo
|
529
|
-
"""
|
530
|
-
return self._QuoteInfos
|
531
610
|
|
532
|
-
|
533
|
-
|
534
|
-
|
611
|
+
def _deserialize(self, params):
|
612
|
+
self._FilterType = params.get("FilterType")
|
613
|
+
if params.get("DocAndAnswer") is not None:
|
614
|
+
self._DocAndAnswer = AgentKnowledgeFilterDocAndAnswer()
|
615
|
+
self._DocAndAnswer._deserialize(params.get("DocAndAnswer"))
|
616
|
+
if params.get("Tag") is not None:
|
617
|
+
self._Tag = AgentKnowledgeFilterTag()
|
618
|
+
self._Tag._deserialize(params.get("Tag"))
|
619
|
+
memeber_set = set(params.keys())
|
620
|
+
for name, value in vars(self).items():
|
621
|
+
property_name = name[1:]
|
622
|
+
if property_name in memeber_set:
|
623
|
+
memeber_set.remove(property_name)
|
624
|
+
if len(memeber_set) > 0:
|
625
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
626
|
+
|
535
627
|
|
536
|
-
@property
|
537
|
-
def References(self):
|
538
|
-
"""具体的参考来源
|
539
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
540
|
-
:rtype: list of AgentReference
|
541
|
-
"""
|
542
|
-
return self._References
|
543
628
|
|
544
|
-
|
545
|
-
|
546
|
-
self._References = References
|
629
|
+
class AgentKnowledgeFilterDocAndAnswer(AbstractModel):
|
630
|
+
"""文档和问答过滤器
|
547
631
|
|
548
|
-
|
549
|
-
def DisplayStatus(self):
|
550
|
-
"""展示正在执行的状态
|
551
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
552
|
-
:rtype: str
|
553
|
-
"""
|
554
|
-
return self._DisplayStatus
|
632
|
+
"""
|
555
633
|
|
556
|
-
|
557
|
-
|
558
|
-
|
634
|
+
def __init__(self):
|
635
|
+
r"""
|
636
|
+
:param _DocBizIds: 文档ID列表
|
637
|
+
:type DocBizIds: list of str
|
638
|
+
:param _AllQa: 问答
|
639
|
+
:type AllQa: bool
|
640
|
+
"""
|
641
|
+
self._DocBizIds = None
|
642
|
+
self._AllQa = None
|
559
643
|
|
560
644
|
@property
|
561
|
-
def
|
562
|
-
"""
|
563
|
-
|
564
|
-
:rtype: str
|
645
|
+
def DocBizIds(self):
|
646
|
+
"""文档ID列表
|
647
|
+
:rtype: list of str
|
565
648
|
"""
|
566
|
-
return self.
|
649
|
+
return self._DocBizIds
|
567
650
|
|
568
|
-
@
|
569
|
-
def
|
570
|
-
self.
|
651
|
+
@DocBizIds.setter
|
652
|
+
def DocBizIds(self, DocBizIds):
|
653
|
+
self._DocBizIds = DocBizIds
|
571
654
|
|
572
655
|
@property
|
573
|
-
def
|
574
|
-
"""
|
575
|
-
|
576
|
-
:rtype: str
|
656
|
+
def AllQa(self):
|
657
|
+
"""问答
|
658
|
+
:rtype: bool
|
577
659
|
"""
|
578
|
-
return self.
|
660
|
+
return self._AllQa
|
579
661
|
|
580
|
-
@
|
581
|
-
def
|
582
|
-
self.
|
662
|
+
@AllQa.setter
|
663
|
+
def AllQa(self, AllQa):
|
664
|
+
self._AllQa = AllQa
|
583
665
|
|
584
666
|
|
585
667
|
def _deserialize(self, params):
|
586
|
-
self.
|
587
|
-
self.
|
588
|
-
self._DisplayType = params.get("DisplayType")
|
589
|
-
if params.get("QuoteInfos") is not None:
|
590
|
-
self._QuoteInfos = []
|
591
|
-
for item in params.get("QuoteInfos"):
|
592
|
-
obj = QuoteInfo()
|
593
|
-
obj._deserialize(item)
|
594
|
-
self._QuoteInfos.append(obj)
|
595
|
-
if params.get("References") is not None:
|
596
|
-
self._References = []
|
597
|
-
for item in params.get("References"):
|
598
|
-
obj = AgentReference()
|
599
|
-
obj._deserialize(item)
|
600
|
-
self._References.append(obj)
|
601
|
-
self._DisplayStatus = params.get("DisplayStatus")
|
602
|
-
self._SandboxUrl = params.get("SandboxUrl")
|
603
|
-
self._DisplayUrl = params.get("DisplayUrl")
|
668
|
+
self._DocBizIds = params.get("DocBizIds")
|
669
|
+
self._AllQa = params.get("AllQa")
|
604
670
|
memeber_set = set(params.keys())
|
605
671
|
for name, value in vars(self).items():
|
606
672
|
property_name = name[1:]
|
@@ -611,187 +677,176 @@ class AgentProcedureDebugging(AbstractModel):
|
|
611
677
|
|
612
678
|
|
613
679
|
|
614
|
-
class
|
615
|
-
"""
|
680
|
+
class AgentKnowledgeFilterTag(AbstractModel):
|
681
|
+
"""标签过滤器
|
616
682
|
|
617
683
|
"""
|
618
684
|
|
619
685
|
def __init__(self):
|
620
686
|
r"""
|
621
|
-
:param
|
622
|
-
|
623
|
-
:
|
624
|
-
:
|
625
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
626
|
-
:type Id: str
|
627
|
-
:param _Name: 名称
|
628
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
629
|
-
:type Name: str
|
630
|
-
:param _Type: 类型
|
631
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
632
|
-
:type Type: int
|
633
|
-
:param _Url: 链接
|
634
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
635
|
-
:type Url: str
|
636
|
-
:param _DocBizId: 文档业务ID
|
637
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
638
|
-
:type DocBizId: str
|
639
|
-
:param _DocName: 文档名称
|
640
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
641
|
-
:type DocName: str
|
642
|
-
:param _QaBizId: 问答业务ID
|
643
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
644
|
-
:type QaBizId: str
|
645
|
-
:param _Index: 搜索引擎索引
|
646
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
647
|
-
:type Index: int
|
648
|
-
:param _Title: 标题
|
649
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
650
|
-
:type Title: str
|
687
|
+
:param _Operator: 标签之间的关系;0:AND, 1:OR
|
688
|
+
:type Operator: int
|
689
|
+
:param _Labels: 标签
|
690
|
+
:type Labels: list of AgentKnowledgeAttrLabel
|
651
691
|
"""
|
652
|
-
self.
|
653
|
-
self.
|
654
|
-
self._Name = None
|
655
|
-
self._Type = None
|
656
|
-
self._Url = None
|
657
|
-
self._DocBizId = None
|
658
|
-
self._DocName = None
|
659
|
-
self._QaBizId = None
|
660
|
-
self._Index = None
|
661
|
-
self._Title = None
|
692
|
+
self._Operator = None
|
693
|
+
self._Labels = None
|
662
694
|
|
663
695
|
@property
|
664
|
-
def
|
665
|
-
"""
|
666
|
-
|
667
|
-
:rtype: str
|
696
|
+
def Operator(self):
|
697
|
+
"""标签之间的关系;0:AND, 1:OR
|
698
|
+
:rtype: int
|
668
699
|
"""
|
669
|
-
return self.
|
700
|
+
return self._Operator
|
670
701
|
|
671
|
-
@
|
672
|
-
def
|
673
|
-
self.
|
702
|
+
@Operator.setter
|
703
|
+
def Operator(self, Operator):
|
704
|
+
self._Operator = Operator
|
674
705
|
|
675
706
|
@property
|
676
|
-
def
|
677
|
-
"""
|
678
|
-
|
679
|
-
:rtype: str
|
707
|
+
def Labels(self):
|
708
|
+
"""标签
|
709
|
+
:rtype: list of AgentKnowledgeAttrLabel
|
680
710
|
"""
|
681
|
-
return self.
|
711
|
+
return self._Labels
|
682
712
|
|
683
|
-
@
|
684
|
-
def
|
685
|
-
self.
|
713
|
+
@Labels.setter
|
714
|
+
def Labels(self, Labels):
|
715
|
+
self._Labels = Labels
|
686
716
|
|
687
|
-
@property
|
688
|
-
def Name(self):
|
689
|
-
"""名称
|
690
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
691
|
-
:rtype: str
|
692
|
-
"""
|
693
|
-
return self._Name
|
694
717
|
|
695
|
-
|
696
|
-
|
697
|
-
|
718
|
+
def _deserialize(self, params):
|
719
|
+
self._Operator = params.get("Operator")
|
720
|
+
if params.get("Labels") is not None:
|
721
|
+
self._Labels = []
|
722
|
+
for item in params.get("Labels"):
|
723
|
+
obj = AgentKnowledgeAttrLabel()
|
724
|
+
obj._deserialize(item)
|
725
|
+
self._Labels.append(obj)
|
726
|
+
memeber_set = set(params.keys())
|
727
|
+
for name, value in vars(self).items():
|
728
|
+
property_name = name[1:]
|
729
|
+
if property_name in memeber_set:
|
730
|
+
memeber_set.remove(property_name)
|
731
|
+
if len(memeber_set) > 0:
|
732
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
733
|
+
|
698
734
|
|
699
|
-
@property
|
700
|
-
def Type(self):
|
701
|
-
"""类型
|
702
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
703
|
-
:rtype: int
|
704
|
-
"""
|
705
|
-
return self._Type
|
706
735
|
|
707
|
-
|
708
|
-
|
709
|
-
self._Type = Type
|
736
|
+
class AgentKnowledgeQAPlugin(AbstractModel):
|
737
|
+
"""知识库问答插件
|
710
738
|
|
711
|
-
|
712
|
-
def Url(self):
|
713
|
-
"""链接
|
714
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
715
|
-
:rtype: str
|
716
|
-
"""
|
717
|
-
return self._Url
|
739
|
+
"""
|
718
740
|
|
719
|
-
|
720
|
-
|
721
|
-
|
741
|
+
def __init__(self):
|
742
|
+
r"""
|
743
|
+
:param _Filter: 知识检索筛选范围
|
744
|
+
:type Filter: :class:`tencentcloud.lke.v20231130.models.AgentKnowledgeFilter`
|
745
|
+
"""
|
746
|
+
self._Filter = None
|
722
747
|
|
723
748
|
@property
|
724
|
-
def
|
725
|
-
"""
|
726
|
-
|
727
|
-
:rtype: str
|
749
|
+
def Filter(self):
|
750
|
+
"""知识检索筛选范围
|
751
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentKnowledgeFilter`
|
728
752
|
"""
|
729
|
-
return self.
|
753
|
+
return self._Filter
|
730
754
|
|
731
|
-
@
|
732
|
-
def
|
733
|
-
self.
|
755
|
+
@Filter.setter
|
756
|
+
def Filter(self, Filter):
|
757
|
+
self._Filter = Filter
|
758
|
+
|
759
|
+
|
760
|
+
def _deserialize(self, params):
|
761
|
+
if params.get("Filter") is not None:
|
762
|
+
self._Filter = AgentKnowledgeFilter()
|
763
|
+
self._Filter._deserialize(params.get("Filter"))
|
764
|
+
memeber_set = set(params.keys())
|
765
|
+
for name, value in vars(self).items():
|
766
|
+
property_name = name[1:]
|
767
|
+
if property_name in memeber_set:
|
768
|
+
memeber_set.remove(property_name)
|
769
|
+
if len(memeber_set) > 0:
|
770
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
class AgentMCPServerInfo(AbstractModel):
|
775
|
+
"""mcp的服务信息
|
776
|
+
|
777
|
+
"""
|
778
|
+
|
779
|
+
def __init__(self):
|
780
|
+
r"""
|
781
|
+
:param _McpServerUrl: mcp server URL地址
|
782
|
+
:type McpServerUrl: str
|
783
|
+
:param _Headers: mcp server header信息
|
784
|
+
:type Headers: list of AgentPluginHeader
|
785
|
+
:param _Timeout: 超时时间,单位秒
|
786
|
+
:type Timeout: int
|
787
|
+
:param _SseReadTimeout: sse服务超时时间,单位秒
|
788
|
+
:type SseReadTimeout: int
|
789
|
+
"""
|
790
|
+
self._McpServerUrl = None
|
791
|
+
self._Headers = None
|
792
|
+
self._Timeout = None
|
793
|
+
self._SseReadTimeout = None
|
734
794
|
|
735
795
|
@property
|
736
|
-
def
|
737
|
-
"""
|
738
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
796
|
+
def McpServerUrl(self):
|
797
|
+
"""mcp server URL地址
|
739
798
|
:rtype: str
|
740
799
|
"""
|
741
|
-
return self.
|
800
|
+
return self._McpServerUrl
|
742
801
|
|
743
|
-
@
|
744
|
-
def
|
745
|
-
self.
|
802
|
+
@McpServerUrl.setter
|
803
|
+
def McpServerUrl(self, McpServerUrl):
|
804
|
+
self._McpServerUrl = McpServerUrl
|
746
805
|
|
747
806
|
@property
|
748
|
-
def
|
749
|
-
"""
|
750
|
-
|
751
|
-
:rtype: str
|
807
|
+
def Headers(self):
|
808
|
+
"""mcp server header信息
|
809
|
+
:rtype: list of AgentPluginHeader
|
752
810
|
"""
|
753
|
-
return self.
|
811
|
+
return self._Headers
|
754
812
|
|
755
|
-
@
|
756
|
-
def
|
757
|
-
self.
|
813
|
+
@Headers.setter
|
814
|
+
def Headers(self, Headers):
|
815
|
+
self._Headers = Headers
|
758
816
|
|
759
817
|
@property
|
760
|
-
def
|
761
|
-
"""
|
762
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
818
|
+
def Timeout(self):
|
819
|
+
"""超时时间,单位秒
|
763
820
|
:rtype: int
|
764
821
|
"""
|
765
|
-
return self.
|
822
|
+
return self._Timeout
|
766
823
|
|
767
|
-
@
|
768
|
-
def
|
769
|
-
self.
|
824
|
+
@Timeout.setter
|
825
|
+
def Timeout(self, Timeout):
|
826
|
+
self._Timeout = Timeout
|
770
827
|
|
771
828
|
@property
|
772
|
-
def
|
773
|
-
"""
|
774
|
-
|
775
|
-
:rtype: str
|
829
|
+
def SseReadTimeout(self):
|
830
|
+
"""sse服务超时时间,单位秒
|
831
|
+
:rtype: int
|
776
832
|
"""
|
777
|
-
return self.
|
833
|
+
return self._SseReadTimeout
|
778
834
|
|
779
|
-
@
|
780
|
-
def
|
781
|
-
self.
|
835
|
+
@SseReadTimeout.setter
|
836
|
+
def SseReadTimeout(self, SseReadTimeout):
|
837
|
+
self._SseReadTimeout = SseReadTimeout
|
782
838
|
|
783
839
|
|
784
840
|
def _deserialize(self, params):
|
785
|
-
self.
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
self.
|
793
|
-
self.
|
794
|
-
self._Title = params.get("Title")
|
841
|
+
self._McpServerUrl = params.get("McpServerUrl")
|
842
|
+
if params.get("Headers") is not None:
|
843
|
+
self._Headers = []
|
844
|
+
for item in params.get("Headers"):
|
845
|
+
obj = AgentPluginHeader()
|
846
|
+
obj._deserialize(item)
|
847
|
+
self._Headers.append(obj)
|
848
|
+
self._Timeout = params.get("Timeout")
|
849
|
+
self._SseReadTimeout = params.get("SseReadTimeout")
|
795
850
|
memeber_set = set(params.keys())
|
796
851
|
for name, value in vars(self).items():
|
797
852
|
property_name = name[1:]
|
@@ -802,180 +857,1746 @@ class AgentReference(AbstractModel):
|
|
802
857
|
|
803
858
|
|
804
859
|
|
805
|
-
class
|
806
|
-
"""Agent
|
860
|
+
class AgentModelInfo(AbstractModel):
|
861
|
+
"""Agent 配置里面的模型定义
|
807
862
|
|
808
863
|
"""
|
809
864
|
|
810
865
|
def __init__(self):
|
811
866
|
r"""
|
812
|
-
:param
|
813
|
-
|
814
|
-
:
|
815
|
-
:
|
816
|
-
|
817
|
-
:type
|
818
|
-
:param
|
819
|
-
|
820
|
-
:
|
821
|
-
:
|
822
|
-
|
823
|
-
:type
|
824
|
-
:param
|
825
|
-
|
826
|
-
:
|
827
|
-
:
|
828
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
829
|
-
:type WorkflowName: str
|
830
|
-
:param _Procedures: 具体思考过程详情
|
831
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
832
|
-
:type Procedures: list of AgentProcedure
|
833
|
-
:param _TraceId: TraceId
|
834
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
835
|
-
:type TraceId: str
|
836
|
-
:param _Files: 文件信息
|
837
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
838
|
-
:type Files: list of FileInfo
|
867
|
+
:param _ModelName: 模型名称
|
868
|
+
:type ModelName: str
|
869
|
+
:param _ModelAliasName: 模型别名
|
870
|
+
:type ModelAliasName: str
|
871
|
+
:param _Temperature: 模型温度
|
872
|
+
:type Temperature: float
|
873
|
+
:param _TopP: 模型TopP
|
874
|
+
:type TopP: float
|
875
|
+
:param _IsEnabled: 模型是否可用
|
876
|
+
:type IsEnabled: bool
|
877
|
+
:param _HistoryLimit: 对话历史条数限制
|
878
|
+
:type HistoryLimit: int
|
879
|
+
:param _ModelContextWordsLimit: 模型上下文长度字符限制
|
880
|
+
:type ModelContextWordsLimit: str
|
881
|
+
:param _InstructionsWordsLimit: 指令长度字符限制
|
882
|
+
:type InstructionsWordsLimit: int
|
839
883
|
"""
|
840
|
-
self.
|
841
|
-
self.
|
842
|
-
self.
|
843
|
-
self.
|
844
|
-
self.
|
845
|
-
self.
|
846
|
-
self.
|
847
|
-
self.
|
848
|
-
self._Files = None
|
884
|
+
self._ModelName = None
|
885
|
+
self._ModelAliasName = None
|
886
|
+
self._Temperature = None
|
887
|
+
self._TopP = None
|
888
|
+
self._IsEnabled = None
|
889
|
+
self._HistoryLimit = None
|
890
|
+
self._ModelContextWordsLimit = None
|
891
|
+
self._InstructionsWordsLimit = None
|
849
892
|
|
850
893
|
@property
|
851
|
-
def
|
852
|
-
"""
|
853
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
894
|
+
def ModelName(self):
|
895
|
+
"""模型名称
|
854
896
|
:rtype: str
|
855
897
|
"""
|
856
|
-
return self.
|
898
|
+
return self._ModelName
|
857
899
|
|
858
|
-
@
|
859
|
-
def
|
860
|
-
self.
|
900
|
+
@ModelName.setter
|
901
|
+
def ModelName(self, ModelName):
|
902
|
+
self._ModelName = ModelName
|
861
903
|
|
862
904
|
@property
|
863
|
-
def
|
864
|
-
"""
|
905
|
+
def ModelAliasName(self):
|
906
|
+
"""模型别名
|
907
|
+
:rtype: str
|
908
|
+
"""
|
909
|
+
return self._ModelAliasName
|
910
|
+
|
911
|
+
@ModelAliasName.setter
|
912
|
+
def ModelAliasName(self, ModelAliasName):
|
913
|
+
self._ModelAliasName = ModelAliasName
|
914
|
+
|
915
|
+
@property
|
916
|
+
def Temperature(self):
|
917
|
+
"""模型温度
|
918
|
+
:rtype: float
|
919
|
+
"""
|
920
|
+
return self._Temperature
|
921
|
+
|
922
|
+
@Temperature.setter
|
923
|
+
def Temperature(self, Temperature):
|
924
|
+
self._Temperature = Temperature
|
925
|
+
|
926
|
+
@property
|
927
|
+
def TopP(self):
|
928
|
+
"""模型TopP
|
929
|
+
:rtype: float
|
930
|
+
"""
|
931
|
+
return self._TopP
|
932
|
+
|
933
|
+
@TopP.setter
|
934
|
+
def TopP(self, TopP):
|
935
|
+
self._TopP = TopP
|
936
|
+
|
937
|
+
@property
|
938
|
+
def IsEnabled(self):
|
939
|
+
"""模型是否可用
|
940
|
+
:rtype: bool
|
941
|
+
"""
|
942
|
+
return self._IsEnabled
|
943
|
+
|
944
|
+
@IsEnabled.setter
|
945
|
+
def IsEnabled(self, IsEnabled):
|
946
|
+
self._IsEnabled = IsEnabled
|
947
|
+
|
948
|
+
@property
|
949
|
+
def HistoryLimit(self):
|
950
|
+
"""对话历史条数限制
|
951
|
+
:rtype: int
|
952
|
+
"""
|
953
|
+
return self._HistoryLimit
|
954
|
+
|
955
|
+
@HistoryLimit.setter
|
956
|
+
def HistoryLimit(self, HistoryLimit):
|
957
|
+
self._HistoryLimit = HistoryLimit
|
958
|
+
|
959
|
+
@property
|
960
|
+
def ModelContextWordsLimit(self):
|
961
|
+
"""模型上下文长度字符限制
|
962
|
+
:rtype: str
|
963
|
+
"""
|
964
|
+
return self._ModelContextWordsLimit
|
965
|
+
|
966
|
+
@ModelContextWordsLimit.setter
|
967
|
+
def ModelContextWordsLimit(self, ModelContextWordsLimit):
|
968
|
+
self._ModelContextWordsLimit = ModelContextWordsLimit
|
969
|
+
|
970
|
+
@property
|
971
|
+
def InstructionsWordsLimit(self):
|
972
|
+
"""指令长度字符限制
|
973
|
+
:rtype: int
|
974
|
+
"""
|
975
|
+
return self._InstructionsWordsLimit
|
976
|
+
|
977
|
+
@InstructionsWordsLimit.setter
|
978
|
+
def InstructionsWordsLimit(self, InstructionsWordsLimit):
|
979
|
+
self._InstructionsWordsLimit = InstructionsWordsLimit
|
980
|
+
|
981
|
+
|
982
|
+
def _deserialize(self, params):
|
983
|
+
self._ModelName = params.get("ModelName")
|
984
|
+
self._ModelAliasName = params.get("ModelAliasName")
|
985
|
+
self._Temperature = params.get("Temperature")
|
986
|
+
self._TopP = params.get("TopP")
|
987
|
+
self._IsEnabled = params.get("IsEnabled")
|
988
|
+
self._HistoryLimit = params.get("HistoryLimit")
|
989
|
+
self._ModelContextWordsLimit = params.get("ModelContextWordsLimit")
|
990
|
+
self._InstructionsWordsLimit = params.get("InstructionsWordsLimit")
|
991
|
+
memeber_set = set(params.keys())
|
992
|
+
for name, value in vars(self).items():
|
993
|
+
property_name = name[1:]
|
994
|
+
if property_name in memeber_set:
|
995
|
+
memeber_set.remove(property_name)
|
996
|
+
if len(memeber_set) > 0:
|
997
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
998
|
+
|
999
|
+
|
1000
|
+
|
1001
|
+
class AgentPluginHeader(AbstractModel):
|
1002
|
+
"""应用配置MCP插件header信息
|
1003
|
+
|
1004
|
+
"""
|
1005
|
+
|
1006
|
+
def __init__(self):
|
1007
|
+
r"""
|
1008
|
+
:param _ParamName: 参数名称
|
1009
|
+
:type ParamName: str
|
1010
|
+
:param _ParamValue: 参数值
|
1011
|
+
:type ParamValue: str
|
1012
|
+
:param _GlobalHidden: header参数配置是否隐藏不可见
|
1013
|
+
:type GlobalHidden: bool
|
1014
|
+
:param _Input: 输入的值
|
1015
|
+
:type Input: :class:`tencentcloud.lke.v20231130.models.AgentInput`
|
1016
|
+
:param _IsRequired: 参数是否可以为空
|
1017
|
+
:type IsRequired: bool
|
1018
|
+
"""
|
1019
|
+
self._ParamName = None
|
1020
|
+
self._ParamValue = None
|
1021
|
+
self._GlobalHidden = None
|
1022
|
+
self._Input = None
|
1023
|
+
self._IsRequired = None
|
1024
|
+
|
1025
|
+
@property
|
1026
|
+
def ParamName(self):
|
1027
|
+
"""参数名称
|
1028
|
+
:rtype: str
|
1029
|
+
"""
|
1030
|
+
return self._ParamName
|
1031
|
+
|
1032
|
+
@ParamName.setter
|
1033
|
+
def ParamName(self, ParamName):
|
1034
|
+
self._ParamName = ParamName
|
1035
|
+
|
1036
|
+
@property
|
1037
|
+
def ParamValue(self):
|
1038
|
+
"""参数值
|
1039
|
+
:rtype: str
|
1040
|
+
"""
|
1041
|
+
return self._ParamValue
|
1042
|
+
|
1043
|
+
@ParamValue.setter
|
1044
|
+
def ParamValue(self, ParamValue):
|
1045
|
+
self._ParamValue = ParamValue
|
1046
|
+
|
1047
|
+
@property
|
1048
|
+
def GlobalHidden(self):
|
1049
|
+
"""header参数配置是否隐藏不可见
|
1050
|
+
:rtype: bool
|
1051
|
+
"""
|
1052
|
+
return self._GlobalHidden
|
1053
|
+
|
1054
|
+
@GlobalHidden.setter
|
1055
|
+
def GlobalHidden(self, GlobalHidden):
|
1056
|
+
self._GlobalHidden = GlobalHidden
|
1057
|
+
|
1058
|
+
@property
|
1059
|
+
def Input(self):
|
1060
|
+
"""输入的值
|
1061
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentInput`
|
1062
|
+
"""
|
1063
|
+
return self._Input
|
1064
|
+
|
1065
|
+
@Input.setter
|
1066
|
+
def Input(self, Input):
|
1067
|
+
self._Input = Input
|
1068
|
+
|
1069
|
+
@property
|
1070
|
+
def IsRequired(self):
|
1071
|
+
"""参数是否可以为空
|
1072
|
+
:rtype: bool
|
1073
|
+
"""
|
1074
|
+
return self._IsRequired
|
1075
|
+
|
1076
|
+
@IsRequired.setter
|
1077
|
+
def IsRequired(self, IsRequired):
|
1078
|
+
self._IsRequired = IsRequired
|
1079
|
+
|
1080
|
+
|
1081
|
+
def _deserialize(self, params):
|
1082
|
+
self._ParamName = params.get("ParamName")
|
1083
|
+
self._ParamValue = params.get("ParamValue")
|
1084
|
+
self._GlobalHidden = params.get("GlobalHidden")
|
1085
|
+
if params.get("Input") is not None:
|
1086
|
+
self._Input = AgentInput()
|
1087
|
+
self._Input._deserialize(params.get("Input"))
|
1088
|
+
self._IsRequired = params.get("IsRequired")
|
1089
|
+
memeber_set = set(params.keys())
|
1090
|
+
for name, value in vars(self).items():
|
1091
|
+
property_name = name[1:]
|
1092
|
+
if property_name in memeber_set:
|
1093
|
+
memeber_set.remove(property_name)
|
1094
|
+
if len(memeber_set) > 0:
|
1095
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1096
|
+
|
1097
|
+
|
1098
|
+
|
1099
|
+
class AgentPluginInfo(AbstractModel):
|
1100
|
+
"""Agent 的插件信息
|
1101
|
+
|
1102
|
+
"""
|
1103
|
+
|
1104
|
+
def __init__(self):
|
1105
|
+
r"""
|
1106
|
+
:param _PluginId: 插件id
|
1107
|
+
:type PluginId: str
|
1108
|
+
:param _Headers: 应用配置的插件header信息
|
1109
|
+
:type Headers: list of AgentPluginHeader
|
1110
|
+
:param _Model: 插件调用LLM时使用的模型配置,一般用于指定知识库问答插件的生成模型
|
1111
|
+
:type Model: :class:`tencentcloud.lke.v20231130.models.AgentModelInfo`
|
1112
|
+
:param _PluginInfoType: 插件信息类型; 0: 未指定类型; 1: 知识库问答插件
|
1113
|
+
:type PluginInfoType: int
|
1114
|
+
:param _KnowledgeQa: 知识库问答插件配置
|
1115
|
+
:type KnowledgeQa: :class:`tencentcloud.lke.v20231130.models.AgentKnowledgeQAPlugin`
|
1116
|
+
"""
|
1117
|
+
self._PluginId = None
|
1118
|
+
self._Headers = None
|
1119
|
+
self._Model = None
|
1120
|
+
self._PluginInfoType = None
|
1121
|
+
self._KnowledgeQa = None
|
1122
|
+
|
1123
|
+
@property
|
1124
|
+
def PluginId(self):
|
1125
|
+
"""插件id
|
1126
|
+
:rtype: str
|
1127
|
+
"""
|
1128
|
+
return self._PluginId
|
1129
|
+
|
1130
|
+
@PluginId.setter
|
1131
|
+
def PluginId(self, PluginId):
|
1132
|
+
self._PluginId = PluginId
|
1133
|
+
|
1134
|
+
@property
|
1135
|
+
def Headers(self):
|
1136
|
+
"""应用配置的插件header信息
|
1137
|
+
:rtype: list of AgentPluginHeader
|
1138
|
+
"""
|
1139
|
+
return self._Headers
|
1140
|
+
|
1141
|
+
@Headers.setter
|
1142
|
+
def Headers(self, Headers):
|
1143
|
+
self._Headers = Headers
|
1144
|
+
|
1145
|
+
@property
|
1146
|
+
def Model(self):
|
1147
|
+
"""插件调用LLM时使用的模型配置,一般用于指定知识库问答插件的生成模型
|
1148
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentModelInfo`
|
1149
|
+
"""
|
1150
|
+
return self._Model
|
1151
|
+
|
1152
|
+
@Model.setter
|
1153
|
+
def Model(self, Model):
|
1154
|
+
self._Model = Model
|
1155
|
+
|
1156
|
+
@property
|
1157
|
+
def PluginInfoType(self):
|
1158
|
+
"""插件信息类型; 0: 未指定类型; 1: 知识库问答插件
|
1159
|
+
:rtype: int
|
1160
|
+
"""
|
1161
|
+
return self._PluginInfoType
|
1162
|
+
|
1163
|
+
@PluginInfoType.setter
|
1164
|
+
def PluginInfoType(self, PluginInfoType):
|
1165
|
+
self._PluginInfoType = PluginInfoType
|
1166
|
+
|
1167
|
+
@property
|
1168
|
+
def KnowledgeQa(self):
|
1169
|
+
"""知识库问答插件配置
|
1170
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentKnowledgeQAPlugin`
|
1171
|
+
"""
|
1172
|
+
return self._KnowledgeQa
|
1173
|
+
|
1174
|
+
@KnowledgeQa.setter
|
1175
|
+
def KnowledgeQa(self, KnowledgeQa):
|
1176
|
+
self._KnowledgeQa = KnowledgeQa
|
1177
|
+
|
1178
|
+
|
1179
|
+
def _deserialize(self, params):
|
1180
|
+
self._PluginId = params.get("PluginId")
|
1181
|
+
if params.get("Headers") is not None:
|
1182
|
+
self._Headers = []
|
1183
|
+
for item in params.get("Headers"):
|
1184
|
+
obj = AgentPluginHeader()
|
1185
|
+
obj._deserialize(item)
|
1186
|
+
self._Headers.append(obj)
|
1187
|
+
if params.get("Model") is not None:
|
1188
|
+
self._Model = AgentModelInfo()
|
1189
|
+
self._Model._deserialize(params.get("Model"))
|
1190
|
+
self._PluginInfoType = params.get("PluginInfoType")
|
1191
|
+
if params.get("KnowledgeQa") is not None:
|
1192
|
+
self._KnowledgeQa = AgentKnowledgeQAPlugin()
|
1193
|
+
self._KnowledgeQa._deserialize(params.get("KnowledgeQa"))
|
1194
|
+
memeber_set = set(params.keys())
|
1195
|
+
for name, value in vars(self).items():
|
1196
|
+
property_name = name[1:]
|
1197
|
+
if property_name in memeber_set:
|
1198
|
+
memeber_set.remove(property_name)
|
1199
|
+
if len(memeber_set) > 0:
|
1200
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1201
|
+
|
1202
|
+
|
1203
|
+
|
1204
|
+
class AgentProcedure(AbstractModel):
|
1205
|
+
"""思考事件过程信息
|
1206
|
+
|
1207
|
+
"""
|
1208
|
+
|
1209
|
+
def __init__(self):
|
1210
|
+
r"""
|
1211
|
+
:param _Index: 索引
|
1212
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1213
|
+
:type Index: int
|
1214
|
+
:param _Name: 执行过程英语名
|
1215
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1216
|
+
:type Name: str
|
1217
|
+
:param _Title: 中文名, 用于展示
|
1218
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1219
|
+
:type Title: str
|
1220
|
+
:param _Status: 状态常量: 使用中: processing, 成功: success, 失败: failed
|
1221
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1222
|
+
:type Status: str
|
1223
|
+
:param _Icon: 图标
|
1224
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1225
|
+
:type Icon: str
|
1226
|
+
:param _Debugging: Agent调试信息
|
1227
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1228
|
+
:type Debugging: :class:`tencentcloud.lke.v20231130.models.AgentProcedureDebugging`
|
1229
|
+
:param _Switch: 是否切换Agent,取值为"main"或者"workflow",不切换为空
|
1230
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1231
|
+
:type Switch: str
|
1232
|
+
:param _WorkflowName: 工作流名称
|
1233
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1234
|
+
:type WorkflowName: str
|
1235
|
+
:param _Elapsed: 当前请求执行时间, 单位 ms
|
1236
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1237
|
+
:type Elapsed: int
|
1238
|
+
:param _NodeName: 工作流节点名称
|
1239
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1240
|
+
:type NodeName: str
|
1241
|
+
:param _ReplyIndex: 用于展示思考放在哪个回复气泡中
|
1242
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1243
|
+
:type ReplyIndex: int
|
1244
|
+
:param _SourceAgentName: 主agent
|
1245
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1246
|
+
:type SourceAgentName: str
|
1247
|
+
:param _TargetAgentName: 挂号agent
|
1248
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1249
|
+
:type TargetAgentName: str
|
1250
|
+
:param _AgentIcon: Agent的图标
|
1251
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1252
|
+
:type AgentIcon: str
|
1253
|
+
"""
|
1254
|
+
self._Index = None
|
1255
|
+
self._Name = None
|
1256
|
+
self._Title = None
|
1257
|
+
self._Status = None
|
1258
|
+
self._Icon = None
|
1259
|
+
self._Debugging = None
|
1260
|
+
self._Switch = None
|
1261
|
+
self._WorkflowName = None
|
1262
|
+
self._Elapsed = None
|
1263
|
+
self._NodeName = None
|
1264
|
+
self._ReplyIndex = None
|
1265
|
+
self._SourceAgentName = None
|
1266
|
+
self._TargetAgentName = None
|
1267
|
+
self._AgentIcon = None
|
1268
|
+
|
1269
|
+
@property
|
1270
|
+
def Index(self):
|
1271
|
+
"""索引
|
1272
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1273
|
+
:rtype: int
|
1274
|
+
"""
|
1275
|
+
return self._Index
|
1276
|
+
|
1277
|
+
@Index.setter
|
1278
|
+
def Index(self, Index):
|
1279
|
+
self._Index = Index
|
1280
|
+
|
1281
|
+
@property
|
1282
|
+
def Name(self):
|
1283
|
+
"""执行过程英语名
|
1284
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1285
|
+
:rtype: str
|
1286
|
+
"""
|
1287
|
+
return self._Name
|
1288
|
+
|
1289
|
+
@Name.setter
|
1290
|
+
def Name(self, Name):
|
1291
|
+
self._Name = Name
|
1292
|
+
|
1293
|
+
@property
|
1294
|
+
def Title(self):
|
1295
|
+
"""中文名, 用于展示
|
1296
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1297
|
+
:rtype: str
|
1298
|
+
"""
|
1299
|
+
return self._Title
|
1300
|
+
|
1301
|
+
@Title.setter
|
1302
|
+
def Title(self, Title):
|
1303
|
+
self._Title = Title
|
1304
|
+
|
1305
|
+
@property
|
1306
|
+
def Status(self):
|
1307
|
+
"""状态常量: 使用中: processing, 成功: success, 失败: failed
|
1308
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1309
|
+
:rtype: str
|
1310
|
+
"""
|
1311
|
+
return self._Status
|
1312
|
+
|
1313
|
+
@Status.setter
|
1314
|
+
def Status(self, Status):
|
1315
|
+
self._Status = Status
|
1316
|
+
|
1317
|
+
@property
|
1318
|
+
def Icon(self):
|
1319
|
+
"""图标
|
1320
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1321
|
+
:rtype: str
|
1322
|
+
"""
|
1323
|
+
return self._Icon
|
1324
|
+
|
1325
|
+
@Icon.setter
|
1326
|
+
def Icon(self, Icon):
|
1327
|
+
self._Icon = Icon
|
1328
|
+
|
1329
|
+
@property
|
1330
|
+
def Debugging(self):
|
1331
|
+
"""Agent调试信息
|
1332
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1333
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentProcedureDebugging`
|
1334
|
+
"""
|
1335
|
+
return self._Debugging
|
1336
|
+
|
1337
|
+
@Debugging.setter
|
1338
|
+
def Debugging(self, Debugging):
|
1339
|
+
self._Debugging = Debugging
|
1340
|
+
|
1341
|
+
@property
|
1342
|
+
def Switch(self):
|
1343
|
+
"""是否切换Agent,取值为"main"或者"workflow",不切换为空
|
1344
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1345
|
+
:rtype: str
|
1346
|
+
"""
|
1347
|
+
return self._Switch
|
1348
|
+
|
1349
|
+
@Switch.setter
|
1350
|
+
def Switch(self, Switch):
|
1351
|
+
self._Switch = Switch
|
1352
|
+
|
1353
|
+
@property
|
1354
|
+
def WorkflowName(self):
|
1355
|
+
"""工作流名称
|
1356
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1357
|
+
:rtype: str
|
1358
|
+
"""
|
1359
|
+
return self._WorkflowName
|
1360
|
+
|
1361
|
+
@WorkflowName.setter
|
1362
|
+
def WorkflowName(self, WorkflowName):
|
1363
|
+
self._WorkflowName = WorkflowName
|
1364
|
+
|
1365
|
+
@property
|
1366
|
+
def Elapsed(self):
|
1367
|
+
"""当前请求执行时间, 单位 ms
|
1368
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1369
|
+
:rtype: int
|
1370
|
+
"""
|
1371
|
+
return self._Elapsed
|
1372
|
+
|
1373
|
+
@Elapsed.setter
|
1374
|
+
def Elapsed(self, Elapsed):
|
1375
|
+
self._Elapsed = Elapsed
|
1376
|
+
|
1377
|
+
@property
|
1378
|
+
def NodeName(self):
|
1379
|
+
"""工作流节点名称
|
1380
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1381
|
+
:rtype: str
|
1382
|
+
"""
|
1383
|
+
return self._NodeName
|
1384
|
+
|
1385
|
+
@NodeName.setter
|
1386
|
+
def NodeName(self, NodeName):
|
1387
|
+
self._NodeName = NodeName
|
1388
|
+
|
1389
|
+
@property
|
1390
|
+
def ReplyIndex(self):
|
1391
|
+
"""用于展示思考放在哪个回复气泡中
|
1392
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1393
|
+
:rtype: int
|
1394
|
+
"""
|
1395
|
+
return self._ReplyIndex
|
1396
|
+
|
1397
|
+
@ReplyIndex.setter
|
1398
|
+
def ReplyIndex(self, ReplyIndex):
|
1399
|
+
self._ReplyIndex = ReplyIndex
|
1400
|
+
|
1401
|
+
@property
|
1402
|
+
def SourceAgentName(self):
|
1403
|
+
"""主agent
|
1404
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1405
|
+
:rtype: str
|
1406
|
+
"""
|
1407
|
+
return self._SourceAgentName
|
1408
|
+
|
1409
|
+
@SourceAgentName.setter
|
1410
|
+
def SourceAgentName(self, SourceAgentName):
|
1411
|
+
self._SourceAgentName = SourceAgentName
|
1412
|
+
|
1413
|
+
@property
|
1414
|
+
def TargetAgentName(self):
|
1415
|
+
"""挂号agent
|
1416
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1417
|
+
:rtype: str
|
1418
|
+
"""
|
1419
|
+
return self._TargetAgentName
|
1420
|
+
|
1421
|
+
@TargetAgentName.setter
|
1422
|
+
def TargetAgentName(self, TargetAgentName):
|
1423
|
+
self._TargetAgentName = TargetAgentName
|
1424
|
+
|
1425
|
+
@property
|
1426
|
+
def AgentIcon(self):
|
1427
|
+
"""Agent的图标
|
1428
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1429
|
+
:rtype: str
|
1430
|
+
"""
|
1431
|
+
return self._AgentIcon
|
1432
|
+
|
1433
|
+
@AgentIcon.setter
|
1434
|
+
def AgentIcon(self, AgentIcon):
|
1435
|
+
self._AgentIcon = AgentIcon
|
1436
|
+
|
1437
|
+
|
1438
|
+
def _deserialize(self, params):
|
1439
|
+
self._Index = params.get("Index")
|
1440
|
+
self._Name = params.get("Name")
|
1441
|
+
self._Title = params.get("Title")
|
1442
|
+
self._Status = params.get("Status")
|
1443
|
+
self._Icon = params.get("Icon")
|
1444
|
+
if params.get("Debugging") is not None:
|
1445
|
+
self._Debugging = AgentProcedureDebugging()
|
1446
|
+
self._Debugging._deserialize(params.get("Debugging"))
|
1447
|
+
self._Switch = params.get("Switch")
|
1448
|
+
self._WorkflowName = params.get("WorkflowName")
|
1449
|
+
self._Elapsed = params.get("Elapsed")
|
1450
|
+
self._NodeName = params.get("NodeName")
|
1451
|
+
self._ReplyIndex = params.get("ReplyIndex")
|
1452
|
+
self._SourceAgentName = params.get("SourceAgentName")
|
1453
|
+
self._TargetAgentName = params.get("TargetAgentName")
|
1454
|
+
self._AgentIcon = params.get("AgentIcon")
|
1455
|
+
memeber_set = set(params.keys())
|
1456
|
+
for name, value in vars(self).items():
|
1457
|
+
property_name = name[1:]
|
1458
|
+
if property_name in memeber_set:
|
1459
|
+
memeber_set.remove(property_name)
|
1460
|
+
if len(memeber_set) > 0:
|
1461
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1462
|
+
|
1463
|
+
|
1464
|
+
|
1465
|
+
class AgentProcedureDebugging(AbstractModel):
|
1466
|
+
"""Agent思考过程调试信息
|
1467
|
+
|
1468
|
+
"""
|
1469
|
+
|
1470
|
+
def __init__(self):
|
1471
|
+
r"""
|
1472
|
+
:param _Content: 模型思考内容
|
1473
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1474
|
+
:type Content: str
|
1475
|
+
:param _DisplayContent: 展示的具体文本内容
|
1476
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1477
|
+
:type DisplayContent: str
|
1478
|
+
:param _DisplayType: 展示类型
|
1479
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1480
|
+
:type DisplayType: int
|
1481
|
+
:param _QuoteInfos: 搜索引擎展示的索引
|
1482
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1483
|
+
:type QuoteInfos: list of QuoteInfo
|
1484
|
+
:param _References: 具体的参考来源
|
1485
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1486
|
+
:type References: list of AgentReference
|
1487
|
+
:param _DisplayStatus: 展示正在执行的状态
|
1488
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1489
|
+
:type DisplayStatus: str
|
1490
|
+
:param _SandboxUrl: 云桌面的URL地址
|
1491
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1492
|
+
:type SandboxUrl: str
|
1493
|
+
:param _DisplayUrl: 云桌面里面通过浏览器打开的URL地址
|
1494
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1495
|
+
:type DisplayUrl: str
|
1496
|
+
"""
|
1497
|
+
self._Content = None
|
1498
|
+
self._DisplayContent = None
|
1499
|
+
self._DisplayType = None
|
1500
|
+
self._QuoteInfos = None
|
1501
|
+
self._References = None
|
1502
|
+
self._DisplayStatus = None
|
1503
|
+
self._SandboxUrl = None
|
1504
|
+
self._DisplayUrl = None
|
1505
|
+
|
1506
|
+
@property
|
1507
|
+
def Content(self):
|
1508
|
+
"""模型思考内容
|
1509
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1510
|
+
:rtype: str
|
1511
|
+
"""
|
1512
|
+
return self._Content
|
1513
|
+
|
1514
|
+
@Content.setter
|
1515
|
+
def Content(self, Content):
|
1516
|
+
self._Content = Content
|
1517
|
+
|
1518
|
+
@property
|
1519
|
+
def DisplayContent(self):
|
1520
|
+
"""展示的具体文本内容
|
1521
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1522
|
+
:rtype: str
|
1523
|
+
"""
|
1524
|
+
return self._DisplayContent
|
1525
|
+
|
1526
|
+
@DisplayContent.setter
|
1527
|
+
def DisplayContent(self, DisplayContent):
|
1528
|
+
self._DisplayContent = DisplayContent
|
1529
|
+
|
1530
|
+
@property
|
1531
|
+
def DisplayType(self):
|
1532
|
+
"""展示类型
|
1533
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1534
|
+
:rtype: int
|
1535
|
+
"""
|
1536
|
+
return self._DisplayType
|
1537
|
+
|
1538
|
+
@DisplayType.setter
|
1539
|
+
def DisplayType(self, DisplayType):
|
1540
|
+
self._DisplayType = DisplayType
|
1541
|
+
|
1542
|
+
@property
|
1543
|
+
def QuoteInfos(self):
|
1544
|
+
"""搜索引擎展示的索引
|
1545
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1546
|
+
:rtype: list of QuoteInfo
|
1547
|
+
"""
|
1548
|
+
return self._QuoteInfos
|
1549
|
+
|
1550
|
+
@QuoteInfos.setter
|
1551
|
+
def QuoteInfos(self, QuoteInfos):
|
1552
|
+
self._QuoteInfos = QuoteInfos
|
1553
|
+
|
1554
|
+
@property
|
1555
|
+
def References(self):
|
1556
|
+
"""具体的参考来源
|
1557
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1558
|
+
:rtype: list of AgentReference
|
1559
|
+
"""
|
1560
|
+
return self._References
|
1561
|
+
|
1562
|
+
@References.setter
|
1563
|
+
def References(self, References):
|
1564
|
+
self._References = References
|
1565
|
+
|
1566
|
+
@property
|
1567
|
+
def DisplayStatus(self):
|
1568
|
+
"""展示正在执行的状态
|
1569
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1570
|
+
:rtype: str
|
1571
|
+
"""
|
1572
|
+
return self._DisplayStatus
|
1573
|
+
|
1574
|
+
@DisplayStatus.setter
|
1575
|
+
def DisplayStatus(self, DisplayStatus):
|
1576
|
+
self._DisplayStatus = DisplayStatus
|
1577
|
+
|
1578
|
+
@property
|
1579
|
+
def SandboxUrl(self):
|
1580
|
+
"""云桌面的URL地址
|
1581
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1582
|
+
:rtype: str
|
1583
|
+
"""
|
1584
|
+
return self._SandboxUrl
|
1585
|
+
|
1586
|
+
@SandboxUrl.setter
|
1587
|
+
def SandboxUrl(self, SandboxUrl):
|
1588
|
+
self._SandboxUrl = SandboxUrl
|
1589
|
+
|
1590
|
+
@property
|
1591
|
+
def DisplayUrl(self):
|
1592
|
+
"""云桌面里面通过浏览器打开的URL地址
|
1593
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1594
|
+
:rtype: str
|
1595
|
+
"""
|
1596
|
+
return self._DisplayUrl
|
1597
|
+
|
1598
|
+
@DisplayUrl.setter
|
1599
|
+
def DisplayUrl(self, DisplayUrl):
|
1600
|
+
self._DisplayUrl = DisplayUrl
|
1601
|
+
|
1602
|
+
|
1603
|
+
def _deserialize(self, params):
|
1604
|
+
self._Content = params.get("Content")
|
1605
|
+
self._DisplayContent = params.get("DisplayContent")
|
1606
|
+
self._DisplayType = params.get("DisplayType")
|
1607
|
+
if params.get("QuoteInfos") is not None:
|
1608
|
+
self._QuoteInfos = []
|
1609
|
+
for item in params.get("QuoteInfos"):
|
1610
|
+
obj = QuoteInfo()
|
1611
|
+
obj._deserialize(item)
|
1612
|
+
self._QuoteInfos.append(obj)
|
1613
|
+
if params.get("References") is not None:
|
1614
|
+
self._References = []
|
1615
|
+
for item in params.get("References"):
|
1616
|
+
obj = AgentReference()
|
1617
|
+
obj._deserialize(item)
|
1618
|
+
self._References.append(obj)
|
1619
|
+
self._DisplayStatus = params.get("DisplayStatus")
|
1620
|
+
self._SandboxUrl = params.get("SandboxUrl")
|
1621
|
+
self._DisplayUrl = params.get("DisplayUrl")
|
1622
|
+
memeber_set = set(params.keys())
|
1623
|
+
for name, value in vars(self).items():
|
1624
|
+
property_name = name[1:]
|
1625
|
+
if property_name in memeber_set:
|
1626
|
+
memeber_set.remove(property_name)
|
1627
|
+
if len(memeber_set) > 0:
|
1628
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1629
|
+
|
1630
|
+
|
1631
|
+
|
1632
|
+
class AgentReference(AbstractModel):
|
1633
|
+
"""Agent中的参考来源
|
1634
|
+
|
1635
|
+
"""
|
1636
|
+
|
1637
|
+
def __init__(self):
|
1638
|
+
r"""
|
1639
|
+
:param _DocId: 来源文档ID
|
1640
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1641
|
+
:type DocId: str
|
1642
|
+
:param _Id: id
|
1643
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1644
|
+
:type Id: str
|
1645
|
+
:param _Name: 名称
|
1646
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1647
|
+
:type Name: str
|
1648
|
+
:param _Type: 类型
|
1649
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1650
|
+
:type Type: int
|
1651
|
+
:param _Url: 链接
|
1652
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1653
|
+
:type Url: str
|
1654
|
+
:param _DocBizId: 文档业务ID
|
1655
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1656
|
+
:type DocBizId: str
|
1657
|
+
:param _DocName: 文档名称
|
1658
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1659
|
+
:type DocName: str
|
1660
|
+
:param _QaBizId: 问答业务ID
|
1661
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1662
|
+
:type QaBizId: str
|
1663
|
+
:param _Index: 搜索引擎索引
|
1664
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1665
|
+
:type Index: int
|
1666
|
+
:param _Title: 标题
|
1667
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1668
|
+
:type Title: str
|
1669
|
+
"""
|
1670
|
+
self._DocId = None
|
1671
|
+
self._Id = None
|
1672
|
+
self._Name = None
|
1673
|
+
self._Type = None
|
1674
|
+
self._Url = None
|
1675
|
+
self._DocBizId = None
|
1676
|
+
self._DocName = None
|
1677
|
+
self._QaBizId = None
|
1678
|
+
self._Index = None
|
1679
|
+
self._Title = None
|
1680
|
+
|
1681
|
+
@property
|
1682
|
+
def DocId(self):
|
1683
|
+
"""来源文档ID
|
1684
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1685
|
+
:rtype: str
|
1686
|
+
"""
|
1687
|
+
return self._DocId
|
1688
|
+
|
1689
|
+
@DocId.setter
|
1690
|
+
def DocId(self, DocId):
|
1691
|
+
self._DocId = DocId
|
1692
|
+
|
1693
|
+
@property
|
1694
|
+
def Id(self):
|
1695
|
+
"""id
|
1696
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1697
|
+
:rtype: str
|
1698
|
+
"""
|
1699
|
+
return self._Id
|
1700
|
+
|
1701
|
+
@Id.setter
|
1702
|
+
def Id(self, Id):
|
1703
|
+
self._Id = Id
|
1704
|
+
|
1705
|
+
@property
|
1706
|
+
def Name(self):
|
1707
|
+
"""名称
|
1708
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1709
|
+
:rtype: str
|
1710
|
+
"""
|
1711
|
+
return self._Name
|
1712
|
+
|
1713
|
+
@Name.setter
|
1714
|
+
def Name(self, Name):
|
1715
|
+
self._Name = Name
|
1716
|
+
|
1717
|
+
@property
|
1718
|
+
def Type(self):
|
1719
|
+
"""类型
|
1720
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1721
|
+
:rtype: int
|
1722
|
+
"""
|
1723
|
+
return self._Type
|
1724
|
+
|
1725
|
+
@Type.setter
|
1726
|
+
def Type(self, Type):
|
1727
|
+
self._Type = Type
|
1728
|
+
|
1729
|
+
@property
|
1730
|
+
def Url(self):
|
1731
|
+
"""链接
|
1732
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1733
|
+
:rtype: str
|
1734
|
+
"""
|
1735
|
+
return self._Url
|
1736
|
+
|
1737
|
+
@Url.setter
|
1738
|
+
def Url(self, Url):
|
1739
|
+
self._Url = Url
|
1740
|
+
|
1741
|
+
@property
|
1742
|
+
def DocBizId(self):
|
1743
|
+
"""文档业务ID
|
1744
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1745
|
+
:rtype: str
|
1746
|
+
"""
|
1747
|
+
return self._DocBizId
|
1748
|
+
|
1749
|
+
@DocBizId.setter
|
1750
|
+
def DocBizId(self, DocBizId):
|
1751
|
+
self._DocBizId = DocBizId
|
1752
|
+
|
1753
|
+
@property
|
1754
|
+
def DocName(self):
|
1755
|
+
"""文档名称
|
1756
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1757
|
+
:rtype: str
|
1758
|
+
"""
|
1759
|
+
return self._DocName
|
1760
|
+
|
1761
|
+
@DocName.setter
|
1762
|
+
def DocName(self, DocName):
|
1763
|
+
self._DocName = DocName
|
1764
|
+
|
1765
|
+
@property
|
1766
|
+
def QaBizId(self):
|
1767
|
+
"""问答业务ID
|
1768
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1769
|
+
:rtype: str
|
1770
|
+
"""
|
1771
|
+
return self._QaBizId
|
1772
|
+
|
1773
|
+
@QaBizId.setter
|
1774
|
+
def QaBizId(self, QaBizId):
|
1775
|
+
self._QaBizId = QaBizId
|
1776
|
+
|
1777
|
+
@property
|
1778
|
+
def Index(self):
|
1779
|
+
"""搜索引擎索引
|
1780
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1781
|
+
:rtype: int
|
1782
|
+
"""
|
1783
|
+
return self._Index
|
1784
|
+
|
1785
|
+
@Index.setter
|
1786
|
+
def Index(self, Index):
|
1787
|
+
self._Index = Index
|
1788
|
+
|
1789
|
+
@property
|
1790
|
+
def Title(self):
|
1791
|
+
"""标题
|
1792
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1793
|
+
:rtype: str
|
1794
|
+
"""
|
1795
|
+
return self._Title
|
1796
|
+
|
1797
|
+
@Title.setter
|
1798
|
+
def Title(self, Title):
|
1799
|
+
self._Title = Title
|
1800
|
+
|
1801
|
+
|
1802
|
+
def _deserialize(self, params):
|
1803
|
+
self._DocId = params.get("DocId")
|
1804
|
+
self._Id = params.get("Id")
|
1805
|
+
self._Name = params.get("Name")
|
1806
|
+
self._Type = params.get("Type")
|
1807
|
+
self._Url = params.get("Url")
|
1808
|
+
self._DocBizId = params.get("DocBizId")
|
1809
|
+
self._DocName = params.get("DocName")
|
1810
|
+
self._QaBizId = params.get("QaBizId")
|
1811
|
+
self._Index = params.get("Index")
|
1812
|
+
self._Title = params.get("Title")
|
1813
|
+
memeber_set = set(params.keys())
|
1814
|
+
for name, value in vars(self).items():
|
1815
|
+
property_name = name[1:]
|
1816
|
+
if property_name in memeber_set:
|
1817
|
+
memeber_set.remove(property_name)
|
1818
|
+
if len(memeber_set) > 0:
|
1819
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1820
|
+
|
1821
|
+
|
1822
|
+
|
1823
|
+
class AgentThought(AbstractModel):
|
1824
|
+
"""Agent的思考过程
|
1825
|
+
|
1826
|
+
"""
|
1827
|
+
|
1828
|
+
def __init__(self):
|
1829
|
+
r"""
|
1830
|
+
:param _SessionId: 会话 ID
|
1831
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1832
|
+
:type SessionId: str
|
1833
|
+
:param _RequestId: 请求 ID
|
1834
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1835
|
+
:type RequestId: str
|
1836
|
+
:param _RecordId: 对应哪条会话, 会话 ID, 用于回答的消息存储使用, 可提前生成, 保存消息时使用
|
1837
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1838
|
+
:type RecordId: str
|
1839
|
+
:param _Elapsed: 当前请求执行时间, 单位 ms
|
1840
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1841
|
+
:type Elapsed: int
|
1842
|
+
:param _IsWorkflow: 当前是否为工作流
|
1843
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1844
|
+
:type IsWorkflow: bool
|
1845
|
+
:param _WorkflowName: 如果当前是工作流,工作流名称
|
1846
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1847
|
+
:type WorkflowName: str
|
1848
|
+
:param _Procedures: 具体思考过程详情
|
1849
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1850
|
+
:type Procedures: list of AgentProcedure
|
1851
|
+
:param _TraceId: TraceId
|
1852
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1853
|
+
:type TraceId: str
|
1854
|
+
:param _Files: 文件信息
|
1855
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1856
|
+
:type Files: list of FileInfo
|
1857
|
+
"""
|
1858
|
+
self._SessionId = None
|
1859
|
+
self._RequestId = None
|
1860
|
+
self._RecordId = None
|
1861
|
+
self._Elapsed = None
|
1862
|
+
self._IsWorkflow = None
|
1863
|
+
self._WorkflowName = None
|
1864
|
+
self._Procedures = None
|
1865
|
+
self._TraceId = None
|
1866
|
+
self._Files = None
|
1867
|
+
|
1868
|
+
@property
|
1869
|
+
def SessionId(self):
|
1870
|
+
"""会话 ID
|
1871
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1872
|
+
:rtype: str
|
1873
|
+
"""
|
1874
|
+
return self._SessionId
|
1875
|
+
|
1876
|
+
@SessionId.setter
|
1877
|
+
def SessionId(self, SessionId):
|
1878
|
+
self._SessionId = SessionId
|
1879
|
+
|
1880
|
+
@property
|
1881
|
+
def RequestId(self):
|
1882
|
+
"""请求 ID
|
1883
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1884
|
+
:rtype: str
|
1885
|
+
"""
|
1886
|
+
return self._RequestId
|
1887
|
+
|
1888
|
+
@RequestId.setter
|
1889
|
+
def RequestId(self, RequestId):
|
1890
|
+
self._RequestId = RequestId
|
1891
|
+
|
1892
|
+
@property
|
1893
|
+
def RecordId(self):
|
1894
|
+
"""对应哪条会话, 会话 ID, 用于回答的消息存储使用, 可提前生成, 保存消息时使用
|
1895
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1896
|
+
:rtype: str
|
1897
|
+
"""
|
1898
|
+
return self._RecordId
|
1899
|
+
|
1900
|
+
@RecordId.setter
|
1901
|
+
def RecordId(self, RecordId):
|
1902
|
+
self._RecordId = RecordId
|
1903
|
+
|
1904
|
+
@property
|
1905
|
+
def Elapsed(self):
|
1906
|
+
"""当前请求执行时间, 单位 ms
|
1907
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1908
|
+
:rtype: int
|
1909
|
+
"""
|
1910
|
+
return self._Elapsed
|
1911
|
+
|
1912
|
+
@Elapsed.setter
|
1913
|
+
def Elapsed(self, Elapsed):
|
1914
|
+
self._Elapsed = Elapsed
|
1915
|
+
|
1916
|
+
@property
|
1917
|
+
def IsWorkflow(self):
|
1918
|
+
"""当前是否为工作流
|
1919
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1920
|
+
:rtype: bool
|
1921
|
+
"""
|
1922
|
+
return self._IsWorkflow
|
1923
|
+
|
1924
|
+
@IsWorkflow.setter
|
1925
|
+
def IsWorkflow(self, IsWorkflow):
|
1926
|
+
self._IsWorkflow = IsWorkflow
|
1927
|
+
|
1928
|
+
@property
|
1929
|
+
def WorkflowName(self):
|
1930
|
+
"""如果当前是工作流,工作流名称
|
1931
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1932
|
+
:rtype: str
|
1933
|
+
"""
|
1934
|
+
return self._WorkflowName
|
1935
|
+
|
1936
|
+
@WorkflowName.setter
|
1937
|
+
def WorkflowName(self, WorkflowName):
|
1938
|
+
self._WorkflowName = WorkflowName
|
1939
|
+
|
1940
|
+
@property
|
1941
|
+
def Procedures(self):
|
1942
|
+
"""具体思考过程详情
|
1943
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1944
|
+
:rtype: list of AgentProcedure
|
1945
|
+
"""
|
1946
|
+
return self._Procedures
|
1947
|
+
|
1948
|
+
@Procedures.setter
|
1949
|
+
def Procedures(self, Procedures):
|
1950
|
+
self._Procedures = Procedures
|
1951
|
+
|
1952
|
+
@property
|
1953
|
+
def TraceId(self):
|
1954
|
+
"""TraceId
|
1955
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1956
|
+
:rtype: str
|
1957
|
+
"""
|
1958
|
+
return self._TraceId
|
1959
|
+
|
1960
|
+
@TraceId.setter
|
1961
|
+
def TraceId(self, TraceId):
|
1962
|
+
self._TraceId = TraceId
|
1963
|
+
|
1964
|
+
@property
|
1965
|
+
def Files(self):
|
1966
|
+
"""文件信息
|
1967
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1968
|
+
:rtype: list of FileInfo
|
1969
|
+
"""
|
1970
|
+
return self._Files
|
1971
|
+
|
1972
|
+
@Files.setter
|
1973
|
+
def Files(self, Files):
|
1974
|
+
self._Files = Files
|
1975
|
+
|
1976
|
+
|
1977
|
+
def _deserialize(self, params):
|
1978
|
+
self._SessionId = params.get("SessionId")
|
1979
|
+
self._RequestId = params.get("RequestId")
|
1980
|
+
self._RecordId = params.get("RecordId")
|
1981
|
+
self._Elapsed = params.get("Elapsed")
|
1982
|
+
self._IsWorkflow = params.get("IsWorkflow")
|
1983
|
+
self._WorkflowName = params.get("WorkflowName")
|
1984
|
+
if params.get("Procedures") is not None:
|
1985
|
+
self._Procedures = []
|
1986
|
+
for item in params.get("Procedures"):
|
1987
|
+
obj = AgentProcedure()
|
1988
|
+
obj._deserialize(item)
|
1989
|
+
self._Procedures.append(obj)
|
1990
|
+
self._TraceId = params.get("TraceId")
|
1991
|
+
if params.get("Files") is not None:
|
1992
|
+
self._Files = []
|
1993
|
+
for item in params.get("Files"):
|
1994
|
+
obj = FileInfo()
|
1995
|
+
obj._deserialize(item)
|
1996
|
+
self._Files.append(obj)
|
1997
|
+
memeber_set = set(params.keys())
|
1998
|
+
for name, value in vars(self).items():
|
1999
|
+
property_name = name[1:]
|
2000
|
+
if property_name in memeber_set:
|
2001
|
+
memeber_set.remove(property_name)
|
2002
|
+
if len(memeber_set) > 0:
|
2003
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2004
|
+
|
2005
|
+
|
2006
|
+
|
2007
|
+
class AgentToolInfo(AbstractModel):
|
2008
|
+
"""Agent的工具信息
|
2009
|
+
|
2010
|
+
"""
|
2011
|
+
|
2012
|
+
def __init__(self):
|
2013
|
+
r"""
|
2014
|
+
:param _PluginId: 插件id
|
2015
|
+
:type PluginId: str
|
2016
|
+
:param _PluginName: 插件名称
|
2017
|
+
:type PluginName: str
|
2018
|
+
:param _IconUrl: 插件图标url
|
2019
|
+
:type IconUrl: str
|
2020
|
+
:param _PluginType: 0 自定义插件
|
2021
|
+
1 官方插件
|
2022
|
+
2 第三方插件 目前用于第三方实现的mcp server
|
2023
|
+
:type PluginType: int
|
2024
|
+
:param _ToolId: 工具id
|
2025
|
+
:type ToolId: str
|
2026
|
+
:param _ToolName: 工具名称
|
2027
|
+
:type ToolName: str
|
2028
|
+
:param _ToolDesc: 工具描述
|
2029
|
+
:type ToolDesc: str
|
2030
|
+
:param _Inputs: 输入参数
|
2031
|
+
:type Inputs: list of AgentToolReqParam
|
2032
|
+
:param _Outputs: 输出参数
|
2033
|
+
:type Outputs: list of AgentToolRspParam
|
2034
|
+
:param _CreateType: 创建方式,0:服务创建,1:代码创建,2:MCP创建
|
2035
|
+
:type CreateType: int
|
2036
|
+
:param _McpServer: MCP插件的配置信息
|
2037
|
+
:type McpServer: :class:`tencentcloud.lke.v20231130.models.AgentMCPServerInfo`
|
2038
|
+
:param _IsBindingKnowledge: 该工具是否和知识库绑定
|
2039
|
+
:type IsBindingKnowledge: bool
|
2040
|
+
:param _Status: 插件状态,1:可用,2:不可用
|
2041
|
+
:type Status: int
|
2042
|
+
:param _Headers: header信息
|
2043
|
+
:type Headers: list of AgentPluginHeader
|
2044
|
+
:param _CallingMethod: NON_STREAMING: 非流式 STREAMIN: 流式
|
2045
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2046
|
+
:type CallingMethod: str
|
2047
|
+
"""
|
2048
|
+
self._PluginId = None
|
2049
|
+
self._PluginName = None
|
2050
|
+
self._IconUrl = None
|
2051
|
+
self._PluginType = None
|
2052
|
+
self._ToolId = None
|
2053
|
+
self._ToolName = None
|
2054
|
+
self._ToolDesc = None
|
2055
|
+
self._Inputs = None
|
2056
|
+
self._Outputs = None
|
2057
|
+
self._CreateType = None
|
2058
|
+
self._McpServer = None
|
2059
|
+
self._IsBindingKnowledge = None
|
2060
|
+
self._Status = None
|
2061
|
+
self._Headers = None
|
2062
|
+
self._CallingMethod = None
|
2063
|
+
|
2064
|
+
@property
|
2065
|
+
def PluginId(self):
|
2066
|
+
"""插件id
|
2067
|
+
:rtype: str
|
2068
|
+
"""
|
2069
|
+
return self._PluginId
|
2070
|
+
|
2071
|
+
@PluginId.setter
|
2072
|
+
def PluginId(self, PluginId):
|
2073
|
+
self._PluginId = PluginId
|
2074
|
+
|
2075
|
+
@property
|
2076
|
+
def PluginName(self):
|
2077
|
+
"""插件名称
|
2078
|
+
:rtype: str
|
2079
|
+
"""
|
2080
|
+
return self._PluginName
|
2081
|
+
|
2082
|
+
@PluginName.setter
|
2083
|
+
def PluginName(self, PluginName):
|
2084
|
+
self._PluginName = PluginName
|
2085
|
+
|
2086
|
+
@property
|
2087
|
+
def IconUrl(self):
|
2088
|
+
"""插件图标url
|
2089
|
+
:rtype: str
|
2090
|
+
"""
|
2091
|
+
return self._IconUrl
|
2092
|
+
|
2093
|
+
@IconUrl.setter
|
2094
|
+
def IconUrl(self, IconUrl):
|
2095
|
+
self._IconUrl = IconUrl
|
2096
|
+
|
2097
|
+
@property
|
2098
|
+
def PluginType(self):
|
2099
|
+
"""0 自定义插件
|
2100
|
+
1 官方插件
|
2101
|
+
2 第三方插件 目前用于第三方实现的mcp server
|
2102
|
+
:rtype: int
|
2103
|
+
"""
|
2104
|
+
return self._PluginType
|
2105
|
+
|
2106
|
+
@PluginType.setter
|
2107
|
+
def PluginType(self, PluginType):
|
2108
|
+
self._PluginType = PluginType
|
2109
|
+
|
2110
|
+
@property
|
2111
|
+
def ToolId(self):
|
2112
|
+
"""工具id
|
2113
|
+
:rtype: str
|
2114
|
+
"""
|
2115
|
+
return self._ToolId
|
2116
|
+
|
2117
|
+
@ToolId.setter
|
2118
|
+
def ToolId(self, ToolId):
|
2119
|
+
self._ToolId = ToolId
|
2120
|
+
|
2121
|
+
@property
|
2122
|
+
def ToolName(self):
|
2123
|
+
"""工具名称
|
2124
|
+
:rtype: str
|
2125
|
+
"""
|
2126
|
+
return self._ToolName
|
2127
|
+
|
2128
|
+
@ToolName.setter
|
2129
|
+
def ToolName(self, ToolName):
|
2130
|
+
self._ToolName = ToolName
|
2131
|
+
|
2132
|
+
@property
|
2133
|
+
def ToolDesc(self):
|
2134
|
+
"""工具描述
|
2135
|
+
:rtype: str
|
2136
|
+
"""
|
2137
|
+
return self._ToolDesc
|
2138
|
+
|
2139
|
+
@ToolDesc.setter
|
2140
|
+
def ToolDesc(self, ToolDesc):
|
2141
|
+
self._ToolDesc = ToolDesc
|
2142
|
+
|
2143
|
+
@property
|
2144
|
+
def Inputs(self):
|
2145
|
+
"""输入参数
|
2146
|
+
:rtype: list of AgentToolReqParam
|
2147
|
+
"""
|
2148
|
+
return self._Inputs
|
2149
|
+
|
2150
|
+
@Inputs.setter
|
2151
|
+
def Inputs(self, Inputs):
|
2152
|
+
self._Inputs = Inputs
|
2153
|
+
|
2154
|
+
@property
|
2155
|
+
def Outputs(self):
|
2156
|
+
"""输出参数
|
2157
|
+
:rtype: list of AgentToolRspParam
|
2158
|
+
"""
|
2159
|
+
return self._Outputs
|
2160
|
+
|
2161
|
+
@Outputs.setter
|
2162
|
+
def Outputs(self, Outputs):
|
2163
|
+
self._Outputs = Outputs
|
2164
|
+
|
2165
|
+
@property
|
2166
|
+
def CreateType(self):
|
2167
|
+
"""创建方式,0:服务创建,1:代码创建,2:MCP创建
|
2168
|
+
:rtype: int
|
2169
|
+
"""
|
2170
|
+
return self._CreateType
|
2171
|
+
|
2172
|
+
@CreateType.setter
|
2173
|
+
def CreateType(self, CreateType):
|
2174
|
+
self._CreateType = CreateType
|
2175
|
+
|
2176
|
+
@property
|
2177
|
+
def McpServer(self):
|
2178
|
+
"""MCP插件的配置信息
|
2179
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentMCPServerInfo`
|
2180
|
+
"""
|
2181
|
+
return self._McpServer
|
2182
|
+
|
2183
|
+
@McpServer.setter
|
2184
|
+
def McpServer(self, McpServer):
|
2185
|
+
self._McpServer = McpServer
|
2186
|
+
|
2187
|
+
@property
|
2188
|
+
def IsBindingKnowledge(self):
|
2189
|
+
"""该工具是否和知识库绑定
|
2190
|
+
:rtype: bool
|
2191
|
+
"""
|
2192
|
+
return self._IsBindingKnowledge
|
2193
|
+
|
2194
|
+
@IsBindingKnowledge.setter
|
2195
|
+
def IsBindingKnowledge(self, IsBindingKnowledge):
|
2196
|
+
self._IsBindingKnowledge = IsBindingKnowledge
|
2197
|
+
|
2198
|
+
@property
|
2199
|
+
def Status(self):
|
2200
|
+
"""插件状态,1:可用,2:不可用
|
2201
|
+
:rtype: int
|
2202
|
+
"""
|
2203
|
+
return self._Status
|
2204
|
+
|
2205
|
+
@Status.setter
|
2206
|
+
def Status(self, Status):
|
2207
|
+
self._Status = Status
|
2208
|
+
|
2209
|
+
@property
|
2210
|
+
def Headers(self):
|
2211
|
+
"""header信息
|
2212
|
+
:rtype: list of AgentPluginHeader
|
2213
|
+
"""
|
2214
|
+
return self._Headers
|
2215
|
+
|
2216
|
+
@Headers.setter
|
2217
|
+
def Headers(self, Headers):
|
2218
|
+
self._Headers = Headers
|
2219
|
+
|
2220
|
+
@property
|
2221
|
+
def CallingMethod(self):
|
2222
|
+
"""NON_STREAMING: 非流式 STREAMIN: 流式
|
865
2223
|
注意:此字段可能返回 null,表示取不到有效值。
|
866
2224
|
:rtype: str
|
867
2225
|
"""
|
868
|
-
return self.
|
2226
|
+
return self._CallingMethod
|
2227
|
+
|
2228
|
+
@CallingMethod.setter
|
2229
|
+
def CallingMethod(self, CallingMethod):
|
2230
|
+
self._CallingMethod = CallingMethod
|
2231
|
+
|
2232
|
+
|
2233
|
+
def _deserialize(self, params):
|
2234
|
+
self._PluginId = params.get("PluginId")
|
2235
|
+
self._PluginName = params.get("PluginName")
|
2236
|
+
self._IconUrl = params.get("IconUrl")
|
2237
|
+
self._PluginType = params.get("PluginType")
|
2238
|
+
self._ToolId = params.get("ToolId")
|
2239
|
+
self._ToolName = params.get("ToolName")
|
2240
|
+
self._ToolDesc = params.get("ToolDesc")
|
2241
|
+
if params.get("Inputs") is not None:
|
2242
|
+
self._Inputs = []
|
2243
|
+
for item in params.get("Inputs"):
|
2244
|
+
obj = AgentToolReqParam()
|
2245
|
+
obj._deserialize(item)
|
2246
|
+
self._Inputs.append(obj)
|
2247
|
+
if params.get("Outputs") is not None:
|
2248
|
+
self._Outputs = []
|
2249
|
+
for item in params.get("Outputs"):
|
2250
|
+
obj = AgentToolRspParam()
|
2251
|
+
obj._deserialize(item)
|
2252
|
+
self._Outputs.append(obj)
|
2253
|
+
self._CreateType = params.get("CreateType")
|
2254
|
+
if params.get("McpServer") is not None:
|
2255
|
+
self._McpServer = AgentMCPServerInfo()
|
2256
|
+
self._McpServer._deserialize(params.get("McpServer"))
|
2257
|
+
self._IsBindingKnowledge = params.get("IsBindingKnowledge")
|
2258
|
+
self._Status = params.get("Status")
|
2259
|
+
if params.get("Headers") is not None:
|
2260
|
+
self._Headers = []
|
2261
|
+
for item in params.get("Headers"):
|
2262
|
+
obj = AgentPluginHeader()
|
2263
|
+
obj._deserialize(item)
|
2264
|
+
self._Headers.append(obj)
|
2265
|
+
self._CallingMethod = params.get("CallingMethod")
|
2266
|
+
memeber_set = set(params.keys())
|
2267
|
+
for name, value in vars(self).items():
|
2268
|
+
property_name = name[1:]
|
2269
|
+
if property_name in memeber_set:
|
2270
|
+
memeber_set.remove(property_name)
|
2271
|
+
if len(memeber_set) > 0:
|
2272
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2273
|
+
|
2274
|
+
|
2275
|
+
|
2276
|
+
class AgentToolReqParam(AbstractModel):
|
2277
|
+
"""Agent工具的请求参数定义
|
2278
|
+
|
2279
|
+
"""
|
2280
|
+
|
2281
|
+
def __init__(self):
|
2282
|
+
r"""
|
2283
|
+
:param _Name: 参数名称
|
2284
|
+
:type Name: str
|
2285
|
+
:param _Desc: 参数描述
|
2286
|
+
:type Desc: str
|
2287
|
+
: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
|
2288
|
+
:type Type: int
|
2289
|
+
:param _IsRequired: 参数是否必填
|
2290
|
+
:type IsRequired: bool
|
2291
|
+
:param _DefaultValue: 参数默认值
|
2292
|
+
:type DefaultValue: str
|
2293
|
+
:param _SubParams: 子参数,ParamType 是OBJECT 或 ARRAY<>类型有用
|
2294
|
+
:type SubParams: list of AgentToolReqParam
|
2295
|
+
:param _GlobalHidden: 是否隐藏不可见
|
2296
|
+
:type GlobalHidden: bool
|
2297
|
+
:param _AgentHidden: agent模式下模型是否可见
|
2298
|
+
:type AgentHidden: bool
|
2299
|
+
:param _AnyOf: 其中任意
|
2300
|
+
:type AnyOf: list of AgentToolReqParam
|
2301
|
+
:param _OneOf: 其中一个
|
2302
|
+
:type OneOf: list of AgentToolReqParam
|
2303
|
+
:param _Input: 输入
|
2304
|
+
:type Input: :class:`tencentcloud.lke.v20231130.models.AgentInput`
|
2305
|
+
"""
|
2306
|
+
self._Name = None
|
2307
|
+
self._Desc = None
|
2308
|
+
self._Type = None
|
2309
|
+
self._IsRequired = None
|
2310
|
+
self._DefaultValue = None
|
2311
|
+
self._SubParams = None
|
2312
|
+
self._GlobalHidden = None
|
2313
|
+
self._AgentHidden = None
|
2314
|
+
self._AnyOf = None
|
2315
|
+
self._OneOf = None
|
2316
|
+
self._Input = None
|
2317
|
+
|
2318
|
+
@property
|
2319
|
+
def Name(self):
|
2320
|
+
"""参数名称
|
2321
|
+
:rtype: str
|
2322
|
+
"""
|
2323
|
+
return self._Name
|
869
2324
|
|
870
|
-
@
|
871
|
-
def
|
872
|
-
self.
|
2325
|
+
@Name.setter
|
2326
|
+
def Name(self, Name):
|
2327
|
+
self._Name = Name
|
873
2328
|
|
874
2329
|
@property
|
875
|
-
def
|
876
|
-
"""
|
877
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2330
|
+
def Desc(self):
|
2331
|
+
"""参数描述
|
878
2332
|
:rtype: str
|
879
2333
|
"""
|
880
|
-
return self.
|
2334
|
+
return self._Desc
|
881
2335
|
|
882
|
-
@
|
883
|
-
def
|
884
|
-
self.
|
2336
|
+
@Desc.setter
|
2337
|
+
def Desc(self, Desc):
|
2338
|
+
self._Desc = Desc
|
885
2339
|
|
886
2340
|
@property
|
887
|
-
def
|
888
|
-
"""
|
889
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2341
|
+
def Type(self):
|
2342
|
+
"""参数类型,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
|
890
2343
|
:rtype: int
|
891
2344
|
"""
|
892
|
-
return self.
|
2345
|
+
return self._Type
|
893
2346
|
|
894
|
-
@
|
895
|
-
def
|
896
|
-
self.
|
2347
|
+
@Type.setter
|
2348
|
+
def Type(self, Type):
|
2349
|
+
self._Type = Type
|
897
2350
|
|
898
2351
|
@property
|
899
|
-
def
|
900
|
-
"""
|
901
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2352
|
+
def IsRequired(self):
|
2353
|
+
"""参数是否必填
|
902
2354
|
:rtype: bool
|
903
2355
|
"""
|
904
|
-
return self.
|
2356
|
+
return self._IsRequired
|
905
2357
|
|
906
|
-
@
|
907
|
-
def
|
908
|
-
self.
|
2358
|
+
@IsRequired.setter
|
2359
|
+
def IsRequired(self, IsRequired):
|
2360
|
+
self._IsRequired = IsRequired
|
909
2361
|
|
910
2362
|
@property
|
911
|
-
def
|
912
|
-
"""
|
913
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2363
|
+
def DefaultValue(self):
|
2364
|
+
"""参数默认值
|
914
2365
|
:rtype: str
|
915
2366
|
"""
|
916
|
-
return self.
|
2367
|
+
return self._DefaultValue
|
917
2368
|
|
918
|
-
@
|
919
|
-
def
|
920
|
-
self.
|
2369
|
+
@DefaultValue.setter
|
2370
|
+
def DefaultValue(self, DefaultValue):
|
2371
|
+
self._DefaultValue = DefaultValue
|
921
2372
|
|
922
2373
|
@property
|
923
|
-
def
|
924
|
-
"""
|
925
|
-
|
926
|
-
:rtype: list of AgentProcedure
|
2374
|
+
def SubParams(self):
|
2375
|
+
"""子参数,ParamType 是OBJECT 或 ARRAY<>类型有用
|
2376
|
+
:rtype: list of AgentToolReqParam
|
927
2377
|
"""
|
928
|
-
return self.
|
2378
|
+
return self._SubParams
|
929
2379
|
|
930
|
-
@
|
931
|
-
def
|
932
|
-
self.
|
2380
|
+
@SubParams.setter
|
2381
|
+
def SubParams(self, SubParams):
|
2382
|
+
self._SubParams = SubParams
|
933
2383
|
|
934
2384
|
@property
|
935
|
-
def
|
936
|
-
"""
|
937
|
-
|
938
|
-
:rtype: str
|
2385
|
+
def GlobalHidden(self):
|
2386
|
+
"""是否隐藏不可见
|
2387
|
+
:rtype: bool
|
939
2388
|
"""
|
940
|
-
return self.
|
2389
|
+
return self._GlobalHidden
|
941
2390
|
|
942
|
-
@
|
943
|
-
def
|
944
|
-
self.
|
2391
|
+
@GlobalHidden.setter
|
2392
|
+
def GlobalHidden(self, GlobalHidden):
|
2393
|
+
self._GlobalHidden = GlobalHidden
|
945
2394
|
|
946
2395
|
@property
|
947
|
-
def
|
948
|
-
"""
|
949
|
-
|
950
|
-
:rtype: list of FileInfo
|
2396
|
+
def AgentHidden(self):
|
2397
|
+
"""agent模式下模型是否可见
|
2398
|
+
:rtype: bool
|
951
2399
|
"""
|
952
|
-
return self.
|
2400
|
+
return self._AgentHidden
|
953
2401
|
|
954
|
-
@
|
955
|
-
def
|
956
|
-
self.
|
2402
|
+
@AgentHidden.setter
|
2403
|
+
def AgentHidden(self, AgentHidden):
|
2404
|
+
self._AgentHidden = AgentHidden
|
2405
|
+
|
2406
|
+
@property
|
2407
|
+
def AnyOf(self):
|
2408
|
+
"""其中任意
|
2409
|
+
:rtype: list of AgentToolReqParam
|
2410
|
+
"""
|
2411
|
+
return self._AnyOf
|
2412
|
+
|
2413
|
+
@AnyOf.setter
|
2414
|
+
def AnyOf(self, AnyOf):
|
2415
|
+
self._AnyOf = AnyOf
|
2416
|
+
|
2417
|
+
@property
|
2418
|
+
def OneOf(self):
|
2419
|
+
"""其中一个
|
2420
|
+
:rtype: list of AgentToolReqParam
|
2421
|
+
"""
|
2422
|
+
return self._OneOf
|
2423
|
+
|
2424
|
+
@OneOf.setter
|
2425
|
+
def OneOf(self, OneOf):
|
2426
|
+
self._OneOf = OneOf
|
2427
|
+
|
2428
|
+
@property
|
2429
|
+
def Input(self):
|
2430
|
+
"""输入
|
2431
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.AgentInput`
|
2432
|
+
"""
|
2433
|
+
return self._Input
|
2434
|
+
|
2435
|
+
@Input.setter
|
2436
|
+
def Input(self, Input):
|
2437
|
+
self._Input = Input
|
957
2438
|
|
958
2439
|
|
959
2440
|
def _deserialize(self, params):
|
960
|
-
self.
|
961
|
-
self.
|
962
|
-
self.
|
963
|
-
self.
|
964
|
-
self.
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
obj = AgentProcedure()
|
2441
|
+
self._Name = params.get("Name")
|
2442
|
+
self._Desc = params.get("Desc")
|
2443
|
+
self._Type = params.get("Type")
|
2444
|
+
self._IsRequired = params.get("IsRequired")
|
2445
|
+
self._DefaultValue = params.get("DefaultValue")
|
2446
|
+
if params.get("SubParams") is not None:
|
2447
|
+
self._SubParams = []
|
2448
|
+
for item in params.get("SubParams"):
|
2449
|
+
obj = AgentToolReqParam()
|
970
2450
|
obj._deserialize(item)
|
971
|
-
self.
|
972
|
-
self.
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
2451
|
+
self._SubParams.append(obj)
|
2452
|
+
self._GlobalHidden = params.get("GlobalHidden")
|
2453
|
+
self._AgentHidden = params.get("AgentHidden")
|
2454
|
+
if params.get("AnyOf") is not None:
|
2455
|
+
self._AnyOf = []
|
2456
|
+
for item in params.get("AnyOf"):
|
2457
|
+
obj = AgentToolReqParam()
|
2458
|
+
obj._deserialize(item)
|
2459
|
+
self._AnyOf.append(obj)
|
2460
|
+
if params.get("OneOf") is not None:
|
2461
|
+
self._OneOf = []
|
2462
|
+
for item in params.get("OneOf"):
|
2463
|
+
obj = AgentToolReqParam()
|
2464
|
+
obj._deserialize(item)
|
2465
|
+
self._OneOf.append(obj)
|
2466
|
+
if params.get("Input") is not None:
|
2467
|
+
self._Input = AgentInput()
|
2468
|
+
self._Input._deserialize(params.get("Input"))
|
2469
|
+
memeber_set = set(params.keys())
|
2470
|
+
for name, value in vars(self).items():
|
2471
|
+
property_name = name[1:]
|
2472
|
+
if property_name in memeber_set:
|
2473
|
+
memeber_set.remove(property_name)
|
2474
|
+
if len(memeber_set) > 0:
|
2475
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2476
|
+
|
2477
|
+
|
2478
|
+
|
2479
|
+
class AgentToolRspParam(AbstractModel):
|
2480
|
+
"""Agent工具的响应参数定义
|
2481
|
+
|
2482
|
+
"""
|
2483
|
+
|
2484
|
+
def __init__(self):
|
2485
|
+
r"""
|
2486
|
+
:param _Name: 参数名称
|
2487
|
+
:type Name: str
|
2488
|
+
:param _Desc: 参数描述
|
2489
|
+
:type Desc: str
|
2490
|
+
: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
|
2491
|
+
:type Type: int
|
2492
|
+
:param _SubParams: 子参数,ParamType 是OBJECT 或 ARRAY<>类型有用
|
2493
|
+
:type SubParams: list of AgentToolRspParam
|
2494
|
+
:param _AgentHidden: agent模式下模型是否可见
|
2495
|
+
:type AgentHidden: bool
|
2496
|
+
:param _GlobalHidden: 是否隐藏不可见
|
2497
|
+
:type GlobalHidden: bool
|
2498
|
+
:param _AnalysisMethod: COVER: 覆盖解析 INCREMENT:增量解析
|
2499
|
+
:type AnalysisMethod: str
|
2500
|
+
"""
|
2501
|
+
self._Name = None
|
2502
|
+
self._Desc = None
|
2503
|
+
self._Type = None
|
2504
|
+
self._SubParams = None
|
2505
|
+
self._AgentHidden = None
|
2506
|
+
self._GlobalHidden = None
|
2507
|
+
self._AnalysisMethod = None
|
2508
|
+
|
2509
|
+
@property
|
2510
|
+
def Name(self):
|
2511
|
+
"""参数名称
|
2512
|
+
:rtype: str
|
2513
|
+
"""
|
2514
|
+
return self._Name
|
2515
|
+
|
2516
|
+
@Name.setter
|
2517
|
+
def Name(self, Name):
|
2518
|
+
self._Name = Name
|
2519
|
+
|
2520
|
+
@property
|
2521
|
+
def Desc(self):
|
2522
|
+
"""参数描述
|
2523
|
+
:rtype: str
|
2524
|
+
"""
|
2525
|
+
return self._Desc
|
2526
|
+
|
2527
|
+
@Desc.setter
|
2528
|
+
def Desc(self, Desc):
|
2529
|
+
self._Desc = Desc
|
2530
|
+
|
2531
|
+
@property
|
2532
|
+
def Type(self):
|
2533
|
+
"""参数类型,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
|
2534
|
+
:rtype: int
|
2535
|
+
"""
|
2536
|
+
return self._Type
|
2537
|
+
|
2538
|
+
@Type.setter
|
2539
|
+
def Type(self, Type):
|
2540
|
+
self._Type = Type
|
2541
|
+
|
2542
|
+
@property
|
2543
|
+
def SubParams(self):
|
2544
|
+
"""子参数,ParamType 是OBJECT 或 ARRAY<>类型有用
|
2545
|
+
:rtype: list of AgentToolRspParam
|
2546
|
+
"""
|
2547
|
+
return self._SubParams
|
2548
|
+
|
2549
|
+
@SubParams.setter
|
2550
|
+
def SubParams(self, SubParams):
|
2551
|
+
self._SubParams = SubParams
|
2552
|
+
|
2553
|
+
@property
|
2554
|
+
def AgentHidden(self):
|
2555
|
+
"""agent模式下模型是否可见
|
2556
|
+
:rtype: bool
|
2557
|
+
"""
|
2558
|
+
return self._AgentHidden
|
2559
|
+
|
2560
|
+
@AgentHidden.setter
|
2561
|
+
def AgentHidden(self, AgentHidden):
|
2562
|
+
self._AgentHidden = AgentHidden
|
2563
|
+
|
2564
|
+
@property
|
2565
|
+
def GlobalHidden(self):
|
2566
|
+
"""是否隐藏不可见
|
2567
|
+
:rtype: bool
|
2568
|
+
"""
|
2569
|
+
return self._GlobalHidden
|
2570
|
+
|
2571
|
+
@GlobalHidden.setter
|
2572
|
+
def GlobalHidden(self, GlobalHidden):
|
2573
|
+
self._GlobalHidden = GlobalHidden
|
2574
|
+
|
2575
|
+
@property
|
2576
|
+
def AnalysisMethod(self):
|
2577
|
+
"""COVER: 覆盖解析 INCREMENT:增量解析
|
2578
|
+
:rtype: str
|
2579
|
+
"""
|
2580
|
+
return self._AnalysisMethod
|
2581
|
+
|
2582
|
+
@AnalysisMethod.setter
|
2583
|
+
def AnalysisMethod(self, AnalysisMethod):
|
2584
|
+
self._AnalysisMethod = AnalysisMethod
|
2585
|
+
|
2586
|
+
|
2587
|
+
def _deserialize(self, params):
|
2588
|
+
self._Name = params.get("Name")
|
2589
|
+
self._Desc = params.get("Desc")
|
2590
|
+
self._Type = params.get("Type")
|
2591
|
+
if params.get("SubParams") is not None:
|
2592
|
+
self._SubParams = []
|
2593
|
+
for item in params.get("SubParams"):
|
2594
|
+
obj = AgentToolRspParam()
|
977
2595
|
obj._deserialize(item)
|
978
|
-
self.
|
2596
|
+
self._SubParams.append(obj)
|
2597
|
+
self._AgentHidden = params.get("AgentHidden")
|
2598
|
+
self._GlobalHidden = params.get("GlobalHidden")
|
2599
|
+
self._AnalysisMethod = params.get("AnalysisMethod")
|
979
2600
|
memeber_set = set(params.keys())
|
980
2601
|
for name, value in vars(self).items():
|
981
2602
|
property_name = name[1:]
|
@@ -3395,6 +5016,102 @@ class Coord(AbstractModel):
|
|
3395
5016
|
|
3396
5017
|
|
3397
5018
|
|
5019
|
+
class CreateAgentRequest(AbstractModel):
|
5020
|
+
"""CreateAgent请求参数结构体
|
5021
|
+
|
5022
|
+
"""
|
5023
|
+
|
5024
|
+
def __init__(self):
|
5025
|
+
r"""
|
5026
|
+
:param _AppBizId: 应用ID
|
5027
|
+
:type AppBizId: str
|
5028
|
+
:param _Agent: 要增加的Agent的信息
|
5029
|
+
:type Agent: :class:`tencentcloud.lke.v20231130.models.Agent`
|
5030
|
+
"""
|
5031
|
+
self._AppBizId = None
|
5032
|
+
self._Agent = None
|
5033
|
+
|
5034
|
+
@property
|
5035
|
+
def AppBizId(self):
|
5036
|
+
"""应用ID
|
5037
|
+
:rtype: str
|
5038
|
+
"""
|
5039
|
+
return self._AppBizId
|
5040
|
+
|
5041
|
+
@AppBizId.setter
|
5042
|
+
def AppBizId(self, AppBizId):
|
5043
|
+
self._AppBizId = AppBizId
|
5044
|
+
|
5045
|
+
@property
|
5046
|
+
def Agent(self):
|
5047
|
+
"""要增加的Agent的信息
|
5048
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.Agent`
|
5049
|
+
"""
|
5050
|
+
return self._Agent
|
5051
|
+
|
5052
|
+
@Agent.setter
|
5053
|
+
def Agent(self, Agent):
|
5054
|
+
self._Agent = Agent
|
5055
|
+
|
5056
|
+
|
5057
|
+
def _deserialize(self, params):
|
5058
|
+
self._AppBizId = params.get("AppBizId")
|
5059
|
+
if params.get("Agent") is not None:
|
5060
|
+
self._Agent = Agent()
|
5061
|
+
self._Agent._deserialize(params.get("Agent"))
|
5062
|
+
memeber_set = set(params.keys())
|
5063
|
+
for name, value in vars(self).items():
|
5064
|
+
property_name = name[1:]
|
5065
|
+
if property_name in memeber_set:
|
5066
|
+
memeber_set.remove(property_name)
|
5067
|
+
if len(memeber_set) > 0:
|
5068
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
5069
|
+
|
5070
|
+
|
5071
|
+
|
5072
|
+
class CreateAgentResponse(AbstractModel):
|
5073
|
+
"""CreateAgent返回参数结构体
|
5074
|
+
|
5075
|
+
"""
|
5076
|
+
|
5077
|
+
def __init__(self):
|
5078
|
+
r"""
|
5079
|
+
:param _AgentId: 新建的AgentID
|
5080
|
+
:type AgentId: str
|
5081
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5082
|
+
:type RequestId: str
|
5083
|
+
"""
|
5084
|
+
self._AgentId = None
|
5085
|
+
self._RequestId = None
|
5086
|
+
|
5087
|
+
@property
|
5088
|
+
def AgentId(self):
|
5089
|
+
"""新建的AgentID
|
5090
|
+
:rtype: str
|
5091
|
+
"""
|
5092
|
+
return self._AgentId
|
5093
|
+
|
5094
|
+
@AgentId.setter
|
5095
|
+
def AgentId(self, AgentId):
|
5096
|
+
self._AgentId = AgentId
|
5097
|
+
|
5098
|
+
@property
|
5099
|
+
def RequestId(self):
|
5100
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5101
|
+
:rtype: str
|
5102
|
+
"""
|
5103
|
+
return self._RequestId
|
5104
|
+
|
5105
|
+
@RequestId.setter
|
5106
|
+
def RequestId(self, RequestId):
|
5107
|
+
self._RequestId = RequestId
|
5108
|
+
|
5109
|
+
|
5110
|
+
def _deserialize(self, params):
|
5111
|
+
self._AgentId = params.get("AgentId")
|
5112
|
+
self._RequestId = params.get("RequestId")
|
5113
|
+
|
5114
|
+
|
3398
5115
|
class CreateAppRequest(AbstractModel):
|
3399
5116
|
"""CreateApp请求参数结构体
|
3400
5117
|
|
@@ -5200,6 +6917,100 @@ class CustomVariable(AbstractModel):
|
|
5200
6917
|
|
5201
6918
|
|
5202
6919
|
|
6920
|
+
class DeleteAgentRequest(AbstractModel):
|
6921
|
+
"""DeleteAgent请求参数结构体
|
6922
|
+
|
6923
|
+
"""
|
6924
|
+
|
6925
|
+
def __init__(self):
|
6926
|
+
r"""
|
6927
|
+
:param _AgentId: Agent的ID
|
6928
|
+
:type AgentId: str
|
6929
|
+
:param _AppBizId: 应用ID
|
6930
|
+
:type AppBizId: str
|
6931
|
+
"""
|
6932
|
+
self._AgentId = None
|
6933
|
+
self._AppBizId = None
|
6934
|
+
|
6935
|
+
@property
|
6936
|
+
def AgentId(self):
|
6937
|
+
"""Agent的ID
|
6938
|
+
:rtype: str
|
6939
|
+
"""
|
6940
|
+
return self._AgentId
|
6941
|
+
|
6942
|
+
@AgentId.setter
|
6943
|
+
def AgentId(self, AgentId):
|
6944
|
+
self._AgentId = AgentId
|
6945
|
+
|
6946
|
+
@property
|
6947
|
+
def AppBizId(self):
|
6948
|
+
"""应用ID
|
6949
|
+
:rtype: str
|
6950
|
+
"""
|
6951
|
+
return self._AppBizId
|
6952
|
+
|
6953
|
+
@AppBizId.setter
|
6954
|
+
def AppBizId(self, AppBizId):
|
6955
|
+
self._AppBizId = AppBizId
|
6956
|
+
|
6957
|
+
|
6958
|
+
def _deserialize(self, params):
|
6959
|
+
self._AgentId = params.get("AgentId")
|
6960
|
+
self._AppBizId = params.get("AppBizId")
|
6961
|
+
memeber_set = set(params.keys())
|
6962
|
+
for name, value in vars(self).items():
|
6963
|
+
property_name = name[1:]
|
6964
|
+
if property_name in memeber_set:
|
6965
|
+
memeber_set.remove(property_name)
|
6966
|
+
if len(memeber_set) > 0:
|
6967
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
6968
|
+
|
6969
|
+
|
6970
|
+
|
6971
|
+
class DeleteAgentResponse(AbstractModel):
|
6972
|
+
"""DeleteAgent返回参数结构体
|
6973
|
+
|
6974
|
+
"""
|
6975
|
+
|
6976
|
+
def __init__(self):
|
6977
|
+
r"""
|
6978
|
+
:param _AgentId: Agent的ID
|
6979
|
+
:type AgentId: str
|
6980
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6981
|
+
:type RequestId: str
|
6982
|
+
"""
|
6983
|
+
self._AgentId = None
|
6984
|
+
self._RequestId = None
|
6985
|
+
|
6986
|
+
@property
|
6987
|
+
def AgentId(self):
|
6988
|
+
"""Agent的ID
|
6989
|
+
:rtype: str
|
6990
|
+
"""
|
6991
|
+
return self._AgentId
|
6992
|
+
|
6993
|
+
@AgentId.setter
|
6994
|
+
def AgentId(self, AgentId):
|
6995
|
+
self._AgentId = AgentId
|
6996
|
+
|
6997
|
+
@property
|
6998
|
+
def RequestId(self):
|
6999
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7000
|
+
:rtype: str
|
7001
|
+
"""
|
7002
|
+
return self._RequestId
|
7003
|
+
|
7004
|
+
@RequestId.setter
|
7005
|
+
def RequestId(self, RequestId):
|
7006
|
+
self._RequestId = RequestId
|
7007
|
+
|
7008
|
+
|
7009
|
+
def _deserialize(self, params):
|
7010
|
+
self._AgentId = params.get("AgentId")
|
7011
|
+
self._RequestId = params.get("RequestId")
|
7012
|
+
|
7013
|
+
|
5203
7014
|
class DeleteAppRequest(AbstractModel):
|
5204
7015
|
"""DeleteApp请求参数结构体
|
5205
7016
|
|
@@ -5806,15 +7617,109 @@ class DeleteSharedKnowledgeRequest(AbstractModel):
|
|
5806
7617
|
"""共享知识库业务ID
|
5807
7618
|
:rtype: str
|
5808
7619
|
"""
|
5809
|
-
return self._KnowledgeBizId
|
7620
|
+
return self._KnowledgeBizId
|
7621
|
+
|
7622
|
+
@KnowledgeBizId.setter
|
7623
|
+
def KnowledgeBizId(self, KnowledgeBizId):
|
7624
|
+
self._KnowledgeBizId = KnowledgeBizId
|
7625
|
+
|
7626
|
+
|
7627
|
+
def _deserialize(self, params):
|
7628
|
+
self._KnowledgeBizId = params.get("KnowledgeBizId")
|
7629
|
+
memeber_set = set(params.keys())
|
7630
|
+
for name, value in vars(self).items():
|
7631
|
+
property_name = name[1:]
|
7632
|
+
if property_name in memeber_set:
|
7633
|
+
memeber_set.remove(property_name)
|
7634
|
+
if len(memeber_set) > 0:
|
7635
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7636
|
+
|
7637
|
+
|
7638
|
+
|
7639
|
+
class DeleteSharedKnowledgeResponse(AbstractModel):
|
7640
|
+
"""DeleteSharedKnowledge返回参数结构体
|
7641
|
+
|
7642
|
+
"""
|
7643
|
+
|
7644
|
+
def __init__(self):
|
7645
|
+
r"""
|
7646
|
+
:param _KnowledgeBizId: 共享知识库业务ID
|
7647
|
+
:type KnowledgeBizId: str
|
7648
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7649
|
+
:type RequestId: str
|
7650
|
+
"""
|
7651
|
+
self._KnowledgeBizId = None
|
7652
|
+
self._RequestId = None
|
7653
|
+
|
7654
|
+
@property
|
7655
|
+
def KnowledgeBizId(self):
|
7656
|
+
"""共享知识库业务ID
|
7657
|
+
:rtype: str
|
7658
|
+
"""
|
7659
|
+
return self._KnowledgeBizId
|
7660
|
+
|
7661
|
+
@KnowledgeBizId.setter
|
7662
|
+
def KnowledgeBizId(self, KnowledgeBizId):
|
7663
|
+
self._KnowledgeBizId = KnowledgeBizId
|
7664
|
+
|
7665
|
+
@property
|
7666
|
+
def RequestId(self):
|
7667
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7668
|
+
:rtype: str
|
7669
|
+
"""
|
7670
|
+
return self._RequestId
|
7671
|
+
|
7672
|
+
@RequestId.setter
|
7673
|
+
def RequestId(self, RequestId):
|
7674
|
+
self._RequestId = RequestId
|
7675
|
+
|
7676
|
+
|
7677
|
+
def _deserialize(self, params):
|
7678
|
+
self._KnowledgeBizId = params.get("KnowledgeBizId")
|
7679
|
+
self._RequestId = params.get("RequestId")
|
7680
|
+
|
7681
|
+
|
7682
|
+
class DeleteVarRequest(AbstractModel):
|
7683
|
+
"""DeleteVar请求参数结构体
|
7684
|
+
|
7685
|
+
"""
|
7686
|
+
|
7687
|
+
def __init__(self):
|
7688
|
+
r"""
|
7689
|
+
:param _AppBizId: 应用ID
|
7690
|
+
:type AppBizId: str
|
7691
|
+
:param _VarId: 变量ID
|
7692
|
+
:type VarId: str
|
7693
|
+
"""
|
7694
|
+
self._AppBizId = None
|
7695
|
+
self._VarId = None
|
7696
|
+
|
7697
|
+
@property
|
7698
|
+
def AppBizId(self):
|
7699
|
+
"""应用ID
|
7700
|
+
:rtype: str
|
7701
|
+
"""
|
7702
|
+
return self._AppBizId
|
7703
|
+
|
7704
|
+
@AppBizId.setter
|
7705
|
+
def AppBizId(self, AppBizId):
|
7706
|
+
self._AppBizId = AppBizId
|
7707
|
+
|
7708
|
+
@property
|
7709
|
+
def VarId(self):
|
7710
|
+
"""变量ID
|
7711
|
+
:rtype: str
|
7712
|
+
"""
|
7713
|
+
return self._VarId
|
5810
7714
|
|
5811
|
-
@
|
5812
|
-
def
|
5813
|
-
self.
|
7715
|
+
@VarId.setter
|
7716
|
+
def VarId(self, VarId):
|
7717
|
+
self._VarId = VarId
|
5814
7718
|
|
5815
7719
|
|
5816
7720
|
def _deserialize(self, params):
|
5817
|
-
self.
|
7721
|
+
self._AppBizId = params.get("AppBizId")
|
7722
|
+
self._VarId = params.get("VarId")
|
5818
7723
|
memeber_set = set(params.keys())
|
5819
7724
|
for name, value in vars(self).items():
|
5820
7725
|
property_name = name[1:]
|
@@ -5825,32 +7730,18 @@ class DeleteSharedKnowledgeRequest(AbstractModel):
|
|
5825
7730
|
|
5826
7731
|
|
5827
7732
|
|
5828
|
-
class
|
5829
|
-
"""
|
7733
|
+
class DeleteVarResponse(AbstractModel):
|
7734
|
+
"""DeleteVar返回参数结构体
|
5830
7735
|
|
5831
7736
|
"""
|
5832
7737
|
|
5833
7738
|
def __init__(self):
|
5834
7739
|
r"""
|
5835
|
-
:param _KnowledgeBizId: 共享知识库业务ID
|
5836
|
-
:type KnowledgeBizId: str
|
5837
7740
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5838
7741
|
:type RequestId: str
|
5839
7742
|
"""
|
5840
|
-
self._KnowledgeBizId = None
|
5841
7743
|
self._RequestId = None
|
5842
7744
|
|
5843
|
-
@property
|
5844
|
-
def KnowledgeBizId(self):
|
5845
|
-
"""共享知识库业务ID
|
5846
|
-
:rtype: str
|
5847
|
-
"""
|
5848
|
-
return self._KnowledgeBizId
|
5849
|
-
|
5850
|
-
@KnowledgeBizId.setter
|
5851
|
-
def KnowledgeBizId(self, KnowledgeBizId):
|
5852
|
-
self._KnowledgeBizId = KnowledgeBizId
|
5853
|
-
|
5854
7745
|
@property
|
5855
7746
|
def RequestId(self):
|
5856
7747
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -5864,12 +7755,11 @@ class DeleteSharedKnowledgeResponse(AbstractModel):
|
|
5864
7755
|
|
5865
7756
|
|
5866
7757
|
def _deserialize(self, params):
|
5867
|
-
self._KnowledgeBizId = params.get("KnowledgeBizId")
|
5868
7758
|
self._RequestId = params.get("RequestId")
|
5869
7759
|
|
5870
7760
|
|
5871
|
-
class
|
5872
|
-
"""
|
7761
|
+
class DescribeAppAgentListRequest(AbstractModel):
|
7762
|
+
"""DescribeAppAgentList请求参数结构体
|
5873
7763
|
|
5874
7764
|
"""
|
5875
7765
|
|
@@ -5877,11 +7767,8 @@ class DeleteVarRequest(AbstractModel):
|
|
5877
7767
|
r"""
|
5878
7768
|
:param _AppBizId: 应用ID
|
5879
7769
|
:type AppBizId: str
|
5880
|
-
:param _VarId: 变量ID
|
5881
|
-
:type VarId: str
|
5882
7770
|
"""
|
5883
7771
|
self._AppBizId = None
|
5884
|
-
self._VarId = None
|
5885
7772
|
|
5886
7773
|
@property
|
5887
7774
|
def AppBizId(self):
|
@@ -5894,21 +7781,9 @@ class DeleteVarRequest(AbstractModel):
|
|
5894
7781
|
def AppBizId(self, AppBizId):
|
5895
7782
|
self._AppBizId = AppBizId
|
5896
7783
|
|
5897
|
-
@property
|
5898
|
-
def VarId(self):
|
5899
|
-
"""变量ID
|
5900
|
-
:rtype: str
|
5901
|
-
"""
|
5902
|
-
return self._VarId
|
5903
|
-
|
5904
|
-
@VarId.setter
|
5905
|
-
def VarId(self, VarId):
|
5906
|
-
self._VarId = VarId
|
5907
|
-
|
5908
7784
|
|
5909
7785
|
def _deserialize(self, params):
|
5910
7786
|
self._AppBizId = params.get("AppBizId")
|
5911
|
-
self._VarId = params.get("VarId")
|
5912
7787
|
memeber_set = set(params.keys())
|
5913
7788
|
for name, value in vars(self).items():
|
5914
7789
|
property_name = name[1:]
|
@@ -5919,18 +7794,46 @@ class DeleteVarRequest(AbstractModel):
|
|
5919
7794
|
|
5920
7795
|
|
5921
7796
|
|
5922
|
-
class
|
5923
|
-
"""
|
7797
|
+
class DescribeAppAgentListResponse(AbstractModel):
|
7798
|
+
"""DescribeAppAgentList返回参数结构体
|
5924
7799
|
|
5925
7800
|
"""
|
5926
7801
|
|
5927
7802
|
def __init__(self):
|
5928
7803
|
r"""
|
7804
|
+
:param _StaringAgentId: 入口启动AgentID
|
7805
|
+
:type StaringAgentId: str
|
7806
|
+
:param _Agents: 应用Agent信息列表
|
7807
|
+
:type Agents: list of Agent
|
5929
7808
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5930
7809
|
:type RequestId: str
|
5931
7810
|
"""
|
7811
|
+
self._StaringAgentId = None
|
7812
|
+
self._Agents = None
|
5932
7813
|
self._RequestId = None
|
5933
7814
|
|
7815
|
+
@property
|
7816
|
+
def StaringAgentId(self):
|
7817
|
+
"""入口启动AgentID
|
7818
|
+
:rtype: str
|
7819
|
+
"""
|
7820
|
+
return self._StaringAgentId
|
7821
|
+
|
7822
|
+
@StaringAgentId.setter
|
7823
|
+
def StaringAgentId(self, StaringAgentId):
|
7824
|
+
self._StaringAgentId = StaringAgentId
|
7825
|
+
|
7826
|
+
@property
|
7827
|
+
def Agents(self):
|
7828
|
+
"""应用Agent信息列表
|
7829
|
+
:rtype: list of Agent
|
7830
|
+
"""
|
7831
|
+
return self._Agents
|
7832
|
+
|
7833
|
+
@Agents.setter
|
7834
|
+
def Agents(self, Agents):
|
7835
|
+
self._Agents = Agents
|
7836
|
+
|
5934
7837
|
@property
|
5935
7838
|
def RequestId(self):
|
5936
7839
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -5944,6 +7847,13 @@ class DeleteVarResponse(AbstractModel):
|
|
5944
7847
|
|
5945
7848
|
|
5946
7849
|
def _deserialize(self, params):
|
7850
|
+
self._StaringAgentId = params.get("StaringAgentId")
|
7851
|
+
if params.get("Agents") is not None:
|
7852
|
+
self._Agents = []
|
7853
|
+
for item in params.get("Agents"):
|
7854
|
+
obj = Agent()
|
7855
|
+
obj._deserialize(item)
|
7856
|
+
self._Agents.append(obj)
|
5947
7857
|
self._RequestId = params.get("RequestId")
|
5948
7858
|
|
5949
7859
|
|
@@ -7344,6 +9254,9 @@ class DescribeDocResponse(AbstractModel):
|
|
7344
9254
|
:type CateBizId: str
|
7345
9255
|
:param _IsDisabled: 文档是否停用,false:未停用,true:已停用
|
7346
9256
|
:type IsDisabled: bool
|
9257
|
+
:param _IsDownload: 是否支持下载
|
9258
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9259
|
+
:type IsDownload: bool
|
7347
9260
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7348
9261
|
:type RequestId: str
|
7349
9262
|
"""
|
@@ -7372,6 +9285,7 @@ class DescribeDocResponse(AbstractModel):
|
|
7372
9285
|
self._AttrLabels = None
|
7373
9286
|
self._CateBizId = None
|
7374
9287
|
self._IsDisabled = None
|
9288
|
+
self._IsDownload = None
|
7375
9289
|
self._RequestId = None
|
7376
9290
|
|
7377
9291
|
@property
|
@@ -7649,6 +9563,18 @@ class DescribeDocResponse(AbstractModel):
|
|
7649
9563
|
def IsDisabled(self, IsDisabled):
|
7650
9564
|
self._IsDisabled = IsDisabled
|
7651
9565
|
|
9566
|
+
@property
|
9567
|
+
def IsDownload(self):
|
9568
|
+
"""是否支持下载
|
9569
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9570
|
+
:rtype: bool
|
9571
|
+
"""
|
9572
|
+
return self._IsDownload
|
9573
|
+
|
9574
|
+
@IsDownload.setter
|
9575
|
+
def IsDownload(self, IsDownload):
|
9576
|
+
self._IsDownload = IsDownload
|
9577
|
+
|
7652
9578
|
@property
|
7653
9579
|
def RequestId(self):
|
7654
9580
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -7692,6 +9618,7 @@ class DescribeDocResponse(AbstractModel):
|
|
7692
9618
|
self._AttrLabels.append(obj)
|
7693
9619
|
self._CateBizId = params.get("CateBizId")
|
7694
9620
|
self._IsDisabled = params.get("IsDisabled")
|
9621
|
+
self._IsDownload = params.get("IsDownload")
|
7695
9622
|
self._RequestId = params.get("RequestId")
|
7696
9623
|
|
7697
9624
|
|
@@ -10590,6 +12517,8 @@ class DocSegment(AbstractModel):
|
|
10590
12517
|
:param _DocUrl: 文档链接
|
10591
12518
|
注意:此字段可能返回 null,表示取不到有效值。
|
10592
12519
|
:type DocUrl: str
|
12520
|
+
:param _WebUrl: 文档的自定义链接
|
12521
|
+
:type WebUrl: str
|
10593
12522
|
"""
|
10594
12523
|
self._Id = None
|
10595
12524
|
self._BusinessId = None
|
@@ -10601,6 +12530,7 @@ class DocSegment(AbstractModel):
|
|
10601
12530
|
self._DocId = None
|
10602
12531
|
self._DocBizId = None
|
10603
12532
|
self._DocUrl = None
|
12533
|
+
self._WebUrl = None
|
10604
12534
|
|
10605
12535
|
@property
|
10606
12536
|
def Id(self):
|
@@ -10722,6 +12652,17 @@ class DocSegment(AbstractModel):
|
|
10722
12652
|
def DocUrl(self, DocUrl):
|
10723
12653
|
self._DocUrl = DocUrl
|
10724
12654
|
|
12655
|
+
@property
|
12656
|
+
def WebUrl(self):
|
12657
|
+
"""文档的自定义链接
|
12658
|
+
:rtype: str
|
12659
|
+
"""
|
12660
|
+
return self._WebUrl
|
12661
|
+
|
12662
|
+
@WebUrl.setter
|
12663
|
+
def WebUrl(self, WebUrl):
|
12664
|
+
self._WebUrl = WebUrl
|
12665
|
+
|
10725
12666
|
|
10726
12667
|
def _deserialize(self, params):
|
10727
12668
|
self._Id = params.get("Id")
|
@@ -10734,6 +12675,7 @@ class DocSegment(AbstractModel):
|
|
10734
12675
|
self._DocId = params.get("DocId")
|
10735
12676
|
self._DocBizId = params.get("DocBizId")
|
10736
12677
|
self._DocUrl = params.get("DocUrl")
|
12678
|
+
self._WebUrl = params.get("WebUrl")
|
10737
12679
|
memeber_set = set(params.keys())
|
10738
12680
|
for name, value in vars(self).items():
|
10739
12681
|
property_name = name[1:]
|
@@ -12384,6 +14326,9 @@ class GetDocPreviewResponse(AbstractModel):
|
|
12384
14326
|
:type NewName: str
|
12385
14327
|
:param _ParseResultCosUrl: 文件md结果cos临时地址
|
12386
14328
|
:type ParseResultCosUrl: str
|
14329
|
+
:param _IsDownload: 是否可下载
|
14330
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
14331
|
+
:type IsDownload: bool
|
12387
14332
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12388
14333
|
:type RequestId: str
|
12389
14334
|
"""
|
@@ -12394,6 +14339,7 @@ class GetDocPreviewResponse(AbstractModel):
|
|
12394
14339
|
self._Bucket = None
|
12395
14340
|
self._NewName = None
|
12396
14341
|
self._ParseResultCosUrl = None
|
14342
|
+
self._IsDownload = None
|
12397
14343
|
self._RequestId = None
|
12398
14344
|
|
12399
14345
|
@property
|
@@ -12476,6 +14422,18 @@ class GetDocPreviewResponse(AbstractModel):
|
|
12476
14422
|
def ParseResultCosUrl(self, ParseResultCosUrl):
|
12477
14423
|
self._ParseResultCosUrl = ParseResultCosUrl
|
12478
14424
|
|
14425
|
+
@property
|
14426
|
+
def IsDownload(self):
|
14427
|
+
"""是否可下载
|
14428
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
14429
|
+
:rtype: bool
|
14430
|
+
"""
|
14431
|
+
return self._IsDownload
|
14432
|
+
|
14433
|
+
@IsDownload.setter
|
14434
|
+
def IsDownload(self, IsDownload):
|
14435
|
+
self._IsDownload = IsDownload
|
14436
|
+
|
12479
14437
|
@property
|
12480
14438
|
def RequestId(self):
|
12481
14439
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -12496,6 +14454,7 @@ class GetDocPreviewResponse(AbstractModel):
|
|
12496
14454
|
self._Bucket = params.get("Bucket")
|
12497
14455
|
self._NewName = params.get("NewName")
|
12498
14456
|
self._ParseResultCosUrl = params.get("ParseResultCosUrl")
|
14457
|
+
self._IsDownload = params.get("IsDownload")
|
12499
14458
|
self._RequestId = params.get("RequestId")
|
12500
14459
|
|
12501
14460
|
|
@@ -14670,10 +16629,13 @@ class KnowledgeCapacityPieGraphDetail(AbstractModel):
|
|
14670
16629
|
:param _Proportion: 当前应用对于总用量的占比
|
14671
16630
|
注意:此字段可能返回 null,表示取不到有效值。
|
14672
16631
|
:type Proportion: float
|
16632
|
+
:param _KnowledgeType: 知识库类型:0默认1共享
|
16633
|
+
:type KnowledgeType: int
|
14673
16634
|
"""
|
14674
16635
|
self._AppName = None
|
14675
16636
|
self._UsedCharSize = None
|
14676
16637
|
self._Proportion = None
|
16638
|
+
self._KnowledgeType = None
|
14677
16639
|
|
14678
16640
|
@property
|
14679
16641
|
def AppName(self):
|
@@ -14711,11 +16673,23 @@ class KnowledgeCapacityPieGraphDetail(AbstractModel):
|
|
14711
16673
|
def Proportion(self, Proportion):
|
14712
16674
|
self._Proportion = Proportion
|
14713
16675
|
|
16676
|
+
@property
|
16677
|
+
def KnowledgeType(self):
|
16678
|
+
"""知识库类型:0默认1共享
|
16679
|
+
:rtype: int
|
16680
|
+
"""
|
16681
|
+
return self._KnowledgeType
|
16682
|
+
|
16683
|
+
@KnowledgeType.setter
|
16684
|
+
def KnowledgeType(self, KnowledgeType):
|
16685
|
+
self._KnowledgeType = KnowledgeType
|
16686
|
+
|
14714
16687
|
|
14715
16688
|
def _deserialize(self, params):
|
14716
16689
|
self._AppName = params.get("AppName")
|
14717
16690
|
self._UsedCharSize = params.get("UsedCharSize")
|
14718
16691
|
self._Proportion = params.get("Proportion")
|
16692
|
+
self._KnowledgeType = params.get("KnowledgeType")
|
14719
16693
|
memeber_set = set(params.keys())
|
14720
16694
|
for name, value in vars(self).items():
|
14721
16695
|
property_name = name[1:]
|
@@ -14745,15 +16719,18 @@ class KnowledgeDetail(AbstractModel):
|
|
14745
16719
|
:param _ExceedCharSize: 超量字符数
|
14746
16720
|
注意:此字段可能返回 null,表示取不到有效值。
|
14747
16721
|
:type ExceedCharSize: str
|
14748
|
-
:param _IsSharedKnowledge:
|
16722
|
+
:param _IsSharedKnowledge: 废弃
|
14749
16723
|
注意:此字段可能返回 null,表示取不到有效值。
|
14750
16724
|
:type IsSharedKnowledge: bool
|
16725
|
+
:param _KnowledgeType: 知识库类型:0默认1共享
|
16726
|
+
:type KnowledgeType: int
|
14751
16727
|
"""
|
14752
16728
|
self._AppName = None
|
14753
16729
|
self._UsedCharSize = None
|
14754
16730
|
self._Proportion = None
|
14755
16731
|
self._ExceedCharSize = None
|
14756
16732
|
self._IsSharedKnowledge = None
|
16733
|
+
self._KnowledgeType = None
|
14757
16734
|
|
14758
16735
|
@property
|
14759
16736
|
def AppName(self):
|
@@ -14805,7 +16782,7 @@ class KnowledgeDetail(AbstractModel):
|
|
14805
16782
|
|
14806
16783
|
@property
|
14807
16784
|
def IsSharedKnowledge(self):
|
14808
|
-
"""
|
16785
|
+
"""废弃
|
14809
16786
|
注意:此字段可能返回 null,表示取不到有效值。
|
14810
16787
|
:rtype: bool
|
14811
16788
|
"""
|
@@ -14815,6 +16792,17 @@ class KnowledgeDetail(AbstractModel):
|
|
14815
16792
|
def IsSharedKnowledge(self, IsSharedKnowledge):
|
14816
16793
|
self._IsSharedKnowledge = IsSharedKnowledge
|
14817
16794
|
|
16795
|
+
@property
|
16796
|
+
def KnowledgeType(self):
|
16797
|
+
"""知识库类型:0默认1共享
|
16798
|
+
:rtype: int
|
16799
|
+
"""
|
16800
|
+
return self._KnowledgeType
|
16801
|
+
|
16802
|
+
@KnowledgeType.setter
|
16803
|
+
def KnowledgeType(self, KnowledgeType):
|
16804
|
+
self._KnowledgeType = KnowledgeType
|
16805
|
+
|
14818
16806
|
|
14819
16807
|
def _deserialize(self, params):
|
14820
16808
|
self._AppName = params.get("AppName")
|
@@ -14822,6 +16810,7 @@ class KnowledgeDetail(AbstractModel):
|
|
14822
16810
|
self._Proportion = params.get("Proportion")
|
14823
16811
|
self._ExceedCharSize = params.get("ExceedCharSize")
|
14824
16812
|
self._IsSharedKnowledge = params.get("IsSharedKnowledge")
|
16813
|
+
self._KnowledgeType = params.get("KnowledgeType")
|
14825
16814
|
memeber_set = set(params.keys())
|
14826
16815
|
for name, value in vars(self).items():
|
14827
16816
|
property_name = name[1:]
|
@@ -21295,6 +23284,102 @@ class ModelParameter(AbstractModel):
|
|
21295
23284
|
|
21296
23285
|
|
21297
23286
|
|
23287
|
+
class ModifyAgentRequest(AbstractModel):
|
23288
|
+
"""ModifyAgent请求参数结构体
|
23289
|
+
|
23290
|
+
"""
|
23291
|
+
|
23292
|
+
def __init__(self):
|
23293
|
+
r"""
|
23294
|
+
:param _AppBizId: 需要修改的应用ID
|
23295
|
+
:type AppBizId: str
|
23296
|
+
:param _Agent: 修改后的Agent的信息
|
23297
|
+
:type Agent: :class:`tencentcloud.lke.v20231130.models.Agent`
|
23298
|
+
"""
|
23299
|
+
self._AppBizId = None
|
23300
|
+
self._Agent = None
|
23301
|
+
|
23302
|
+
@property
|
23303
|
+
def AppBizId(self):
|
23304
|
+
"""需要修改的应用ID
|
23305
|
+
:rtype: str
|
23306
|
+
"""
|
23307
|
+
return self._AppBizId
|
23308
|
+
|
23309
|
+
@AppBizId.setter
|
23310
|
+
def AppBizId(self, AppBizId):
|
23311
|
+
self._AppBizId = AppBizId
|
23312
|
+
|
23313
|
+
@property
|
23314
|
+
def Agent(self):
|
23315
|
+
"""修改后的Agent的信息
|
23316
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.Agent`
|
23317
|
+
"""
|
23318
|
+
return self._Agent
|
23319
|
+
|
23320
|
+
@Agent.setter
|
23321
|
+
def Agent(self, Agent):
|
23322
|
+
self._Agent = Agent
|
23323
|
+
|
23324
|
+
|
23325
|
+
def _deserialize(self, params):
|
23326
|
+
self._AppBizId = params.get("AppBizId")
|
23327
|
+
if params.get("Agent") is not None:
|
23328
|
+
self._Agent = Agent()
|
23329
|
+
self._Agent._deserialize(params.get("Agent"))
|
23330
|
+
memeber_set = set(params.keys())
|
23331
|
+
for name, value in vars(self).items():
|
23332
|
+
property_name = name[1:]
|
23333
|
+
if property_name in memeber_set:
|
23334
|
+
memeber_set.remove(property_name)
|
23335
|
+
if len(memeber_set) > 0:
|
23336
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
23337
|
+
|
23338
|
+
|
23339
|
+
|
23340
|
+
class ModifyAgentResponse(AbstractModel):
|
23341
|
+
"""ModifyAgent返回参数结构体
|
23342
|
+
|
23343
|
+
"""
|
23344
|
+
|
23345
|
+
def __init__(self):
|
23346
|
+
r"""
|
23347
|
+
:param _AgentId: 修改的AgentId
|
23348
|
+
:type AgentId: str
|
23349
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
23350
|
+
:type RequestId: str
|
23351
|
+
"""
|
23352
|
+
self._AgentId = None
|
23353
|
+
self._RequestId = None
|
23354
|
+
|
23355
|
+
@property
|
23356
|
+
def AgentId(self):
|
23357
|
+
"""修改的AgentId
|
23358
|
+
:rtype: str
|
23359
|
+
"""
|
23360
|
+
return self._AgentId
|
23361
|
+
|
23362
|
+
@AgentId.setter
|
23363
|
+
def AgentId(self, AgentId):
|
23364
|
+
self._AgentId = AgentId
|
23365
|
+
|
23366
|
+
@property
|
23367
|
+
def RequestId(self):
|
23368
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
23369
|
+
:rtype: str
|
23370
|
+
"""
|
23371
|
+
return self._RequestId
|
23372
|
+
|
23373
|
+
@RequestId.setter
|
23374
|
+
def RequestId(self, RequestId):
|
23375
|
+
self._RequestId = RequestId
|
23376
|
+
|
23377
|
+
|
23378
|
+
def _deserialize(self, params):
|
23379
|
+
self._AgentId = params.get("AgentId")
|
23380
|
+
self._RequestId = params.get("RequestId")
|
23381
|
+
|
23382
|
+
|
21298
23383
|
class ModifyAppRequest(AbstractModel):
|
21299
23384
|
"""ModifyApp请求参数结构体
|
21300
23385
|
|
@@ -23281,12 +25366,24 @@ class MsgRecordReference(AbstractModel):
|
|
23281
25366
|
:type Name: str
|
23282
25367
|
:param _DocId: 来源文档ID
|
23283
25368
|
:type DocId: str
|
25369
|
+
:param _KnowledgeName: 知识库名称
|
25370
|
+
:type KnowledgeName: str
|
25371
|
+
:param _KnowledgeBizId: 知识库业务id
|
25372
|
+
:type KnowledgeBizId: str
|
25373
|
+
:param _DocBizId: 文档业务id
|
25374
|
+
:type DocBizId: str
|
25375
|
+
:param _QaBizId: 问答业务id
|
25376
|
+
:type QaBizId: str
|
23284
25377
|
"""
|
23285
25378
|
self._Id = None
|
23286
25379
|
self._Url = None
|
23287
25380
|
self._Type = None
|
23288
25381
|
self._Name = None
|
23289
25382
|
self._DocId = None
|
25383
|
+
self._KnowledgeName = None
|
25384
|
+
self._KnowledgeBizId = None
|
25385
|
+
self._DocBizId = None
|
25386
|
+
self._QaBizId = None
|
23290
25387
|
|
23291
25388
|
@property
|
23292
25389
|
def Id(self):
|
@@ -23343,6 +25440,50 @@ class MsgRecordReference(AbstractModel):
|
|
23343
25440
|
def DocId(self, DocId):
|
23344
25441
|
self._DocId = DocId
|
23345
25442
|
|
25443
|
+
@property
|
25444
|
+
def KnowledgeName(self):
|
25445
|
+
"""知识库名称
|
25446
|
+
:rtype: str
|
25447
|
+
"""
|
25448
|
+
return self._KnowledgeName
|
25449
|
+
|
25450
|
+
@KnowledgeName.setter
|
25451
|
+
def KnowledgeName(self, KnowledgeName):
|
25452
|
+
self._KnowledgeName = KnowledgeName
|
25453
|
+
|
25454
|
+
@property
|
25455
|
+
def KnowledgeBizId(self):
|
25456
|
+
"""知识库业务id
|
25457
|
+
:rtype: str
|
25458
|
+
"""
|
25459
|
+
return self._KnowledgeBizId
|
25460
|
+
|
25461
|
+
@KnowledgeBizId.setter
|
25462
|
+
def KnowledgeBizId(self, KnowledgeBizId):
|
25463
|
+
self._KnowledgeBizId = KnowledgeBizId
|
25464
|
+
|
25465
|
+
@property
|
25466
|
+
def DocBizId(self):
|
25467
|
+
"""文档业务id
|
25468
|
+
:rtype: str
|
25469
|
+
"""
|
25470
|
+
return self._DocBizId
|
25471
|
+
|
25472
|
+
@DocBizId.setter
|
25473
|
+
def DocBizId(self, DocBizId):
|
25474
|
+
self._DocBizId = DocBizId
|
25475
|
+
|
25476
|
+
@property
|
25477
|
+
def QaBizId(self):
|
25478
|
+
"""问答业务id
|
25479
|
+
:rtype: str
|
25480
|
+
"""
|
25481
|
+
return self._QaBizId
|
25482
|
+
|
25483
|
+
@QaBizId.setter
|
25484
|
+
def QaBizId(self, QaBizId):
|
25485
|
+
self._QaBizId = QaBizId
|
25486
|
+
|
23346
25487
|
|
23347
25488
|
def _deserialize(self, params):
|
23348
25489
|
self._Id = params.get("Id")
|
@@ -23350,6 +25491,10 @@ class MsgRecordReference(AbstractModel):
|
|
23350
25491
|
self._Type = params.get("Type")
|
23351
25492
|
self._Name = params.get("Name")
|
23352
25493
|
self._DocId = params.get("DocId")
|
25494
|
+
self._KnowledgeName = params.get("KnowledgeName")
|
25495
|
+
self._KnowledgeBizId = params.get("KnowledgeBizId")
|
25496
|
+
self._DocBizId = params.get("DocBizId")
|
25497
|
+
self._QaBizId = params.get("QaBizId")
|
23353
25498
|
memeber_set = set(params.keys())
|
23354
25499
|
for name, value in vars(self).items():
|
23355
25500
|
property_name = name[1:]
|
@@ -27460,6 +29605,8 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
27460
29605
|
:type Opt: int
|
27461
29606
|
:param _CateBizId: 分类ID
|
27462
29607
|
:type CateBizId: str
|
29608
|
+
:param _IsDownload: 是否可下载,IsRefer为true并且ReferUrlType为0时,该值才有意义
|
29609
|
+
:type IsDownload: bool
|
27463
29610
|
"""
|
27464
29611
|
self._BotBizId = None
|
27465
29612
|
self._FileName = None
|
@@ -27478,6 +29625,7 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
27478
29625
|
self._IsRefer = None
|
27479
29626
|
self._Opt = None
|
27480
29627
|
self._CateBizId = None
|
29628
|
+
self._IsDownload = None
|
27481
29629
|
|
27482
29630
|
@property
|
27483
29631
|
def BotBizId(self):
|
@@ -27676,6 +29824,17 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
27676
29824
|
def CateBizId(self, CateBizId):
|
27677
29825
|
self._CateBizId = CateBizId
|
27678
29826
|
|
29827
|
+
@property
|
29828
|
+
def IsDownload(self):
|
29829
|
+
"""是否可下载,IsRefer为true并且ReferUrlType为0时,该值才有意义
|
29830
|
+
:rtype: bool
|
29831
|
+
"""
|
29832
|
+
return self._IsDownload
|
29833
|
+
|
29834
|
+
@IsDownload.setter
|
29835
|
+
def IsDownload(self, IsDownload):
|
29836
|
+
self._IsDownload = IsDownload
|
29837
|
+
|
27679
29838
|
|
27680
29839
|
def _deserialize(self, params):
|
27681
29840
|
self._BotBizId = params.get("BotBizId")
|
@@ -27700,6 +29859,7 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
|
|
27700
29859
|
self._IsRefer = params.get("IsRefer")
|
27701
29860
|
self._Opt = params.get("Opt")
|
27702
29861
|
self._CateBizId = params.get("CateBizId")
|
29862
|
+
self._IsDownload = params.get("IsDownload")
|
27703
29863
|
memeber_set = set(params.keys())
|
27704
29864
|
for name, value in vars(self).items():
|
27705
29865
|
property_name = name[1:]
|