tencentcloud-sdk-lkeap 3.0.976

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1681 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Lkeap
19
+ module V20240522
20
+ # 属性信息
21
+ class AttributeItem < TencentCloud::Common::AbstractModel
22
+ # @param AttributeId: 属性id
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type AttributeId: String
25
+ # @param AttributeKey: 属性标识
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type AttributeKey: String
28
+ # @param AttributeName: 属性名称
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type AttributeName: String
31
+ # @param Labels: 标签名称
32
+ # 注意:此字段可能返回 null,表示取不到有效值。
33
+ # @type Labels: Array
34
+
35
+ attr_accessor :AttributeId, :AttributeKey, :AttributeName, :Labels
36
+
37
+ def initialize(attributeid=nil, attributekey=nil, attributename=nil, labels=nil)
38
+ @AttributeId = attributeid
39
+ @AttributeKey = attributekey
40
+ @AttributeName = attributename
41
+ @Labels = labels
42
+ end
43
+
44
+ def deserialize(params)
45
+ @AttributeId = params['AttributeId']
46
+ @AttributeKey = params['AttributeKey']
47
+ @AttributeName = params['AttributeName']
48
+ unless params['Labels'].nil?
49
+ @Labels = []
50
+ params['Labels'].each do |i|
51
+ attributelabelitem_tmp = AttributeLabelItem.new
52
+ attributelabelitem_tmp.deserialize(i)
53
+ @Labels << attributelabelitem_tmp
54
+ end
55
+ end
56
+ end
57
+ end
58
+
59
+ # 属性标签信息
60
+ class AttributeLabelItem < TencentCloud::Common::AbstractModel
61
+ # @param LabelId: 标签id
62
+ # 注意:此字段可能返回 null,表示取不到有效值。
63
+ # @type LabelId: String
64
+ # @param LabelName: 标签名称,最大80个英文字符
65
+ # 注意:此字段可能返回 null,表示取不到有效值。
66
+ # @type LabelName: String
67
+
68
+ attr_accessor :LabelId, :LabelName
69
+
70
+ def initialize(labelid=nil, labelname=nil)
71
+ @LabelId = labelid
72
+ @LabelName = labelname
73
+ end
74
+
75
+ def deserialize(params)
76
+ @LabelId = params['LabelId']
77
+ @LabelName = params['LabelName']
78
+ end
79
+ end
80
+
81
+ # 属性标签引用
82
+ class AttributeLabelReferItem < TencentCloud::Common::AbstractModel
83
+ # @param AttributeId: 属性id
84
+ # 注意:此字段可能返回 null,表示取不到有效值。
85
+ # @type AttributeId: String
86
+ # @param LabelIds: 标签id
87
+ # 注意:此字段可能返回 null,表示取不到有效值。
88
+ # @type LabelIds: Array
89
+
90
+ attr_accessor :AttributeId, :LabelIds
91
+
92
+ def initialize(attributeid=nil, labelids=nil)
93
+ @AttributeId = attributeid
94
+ @LabelIds = labelids
95
+ end
96
+
97
+ def deserialize(params)
98
+ @AttributeId = params['AttributeId']
99
+ @LabelIds = params['LabelIds']
100
+ end
101
+ end
102
+
103
+ # CreateAttributeLabel请求参数结构体
104
+ class CreateAttributeLabelRequest < TencentCloud::Common::AbstractModel
105
+ # @param Labels: 属性标签信息
106
+ # @type Labels: Array
107
+
108
+ attr_accessor :Labels
109
+
110
+ def initialize(labels=nil)
111
+ @Labels = labels
112
+ end
113
+
114
+ def deserialize(params)
115
+ unless params['Labels'].nil?
116
+ @Labels = []
117
+ params['Labels'].each do |i|
118
+ attributelabelitem_tmp = AttributeLabelItem.new
119
+ attributelabelitem_tmp.deserialize(i)
120
+ @Labels << attributelabelitem_tmp
121
+ end
122
+ end
123
+ end
124
+ end
125
+
126
+ # CreateAttributeLabel返回参数结构体
127
+ class CreateAttributeLabelResponse < TencentCloud::Common::AbstractModel
128
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
129
+ # @type RequestId: String
130
+
131
+ attr_accessor :RequestId
132
+
133
+ def initialize(requestid=nil)
134
+ @RequestId = requestid
135
+ end
136
+
137
+ def deserialize(params)
138
+ @RequestId = params['RequestId']
139
+ end
140
+ end
141
+
142
+ # CreateKnowledgeBase请求参数结构体
143
+ class CreateKnowledgeBaseRequest < TencentCloud::Common::AbstractModel
144
+
145
+
146
+ def initialize()
147
+ end
148
+
149
+ def deserialize(params)
150
+ end
151
+ end
152
+
153
+ # CreateKnowledgeBase返回参数结构体
154
+ class CreateKnowledgeBaseResponse < TencentCloud::Common::AbstractModel
155
+ # @param KnowledgeBaseId: 知识库ID
156
+ # @type KnowledgeBaseId: String
157
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
158
+ # @type RequestId: String
159
+
160
+ attr_accessor :KnowledgeBaseId, :RequestId
161
+
162
+ def initialize(knowledgebaseid=nil, requestid=nil)
163
+ @KnowledgeBaseId = knowledgebaseid
164
+ @RequestId = requestid
165
+ end
166
+
167
+ def deserialize(params)
168
+ @KnowledgeBaseId = params['KnowledgeBaseId']
169
+ @RequestId = params['RequestId']
170
+ end
171
+ end
172
+
173
+ # CreateQA请求参数结构体
174
+ class CreateQARequest < TencentCloud::Common::AbstractModel
175
+ # @param AttributeLabels: 属性标签
176
+ # @type AttributeLabels: Array
177
+
178
+ attr_accessor :AttributeLabels
179
+
180
+ def initialize(attributelabels=nil)
181
+ @AttributeLabels = attributelabels
182
+ end
183
+
184
+ def deserialize(params)
185
+ unless params['AttributeLabels'].nil?
186
+ @AttributeLabels = []
187
+ params['AttributeLabels'].each do |i|
188
+ attributelabelreferitem_tmp = AttributeLabelReferItem.new
189
+ attributelabelreferitem_tmp.deserialize(i)
190
+ @AttributeLabels << attributelabelreferitem_tmp
191
+ end
192
+ end
193
+ end
194
+ end
195
+
196
+ # CreateQA返回参数结构体
197
+ class CreateQAResponse < TencentCloud::Common::AbstractModel
198
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
199
+ # @type RequestId: String
200
+
201
+ attr_accessor :RequestId
202
+
203
+ def initialize(requestid=nil)
204
+ @RequestId = requestid
205
+ end
206
+
207
+ def deserialize(params)
208
+ @RequestId = params['RequestId']
209
+ end
210
+ end
211
+
212
+ # 创建智能文档解析任务的配置信息
213
+ class CreateReconstructDocumentFlowConfig < TencentCloud::Common::AbstractModel
214
+ # @param TableResultType: Markdown文件中表格返回的形式
215
+ # 0,表格以MD形式返回
216
+ # 1,表格以HTML形式返回
217
+ # 默认为1
218
+ # @type TableResultType: String
219
+ # @param ResultType: 智能文档解析返回结果的格式
220
+ # 0:只返回全文MD;
221
+ # 1:只返回每一页的OCR原始Json;
222
+ # 2:只返回每一页的MD,
223
+ # 3:返回全文MD + 每一页的OCR原始Json;
224
+ # 4:返回全文MD + 每一页的MD,
225
+ # 默认值为3(返回全文MD + 每一页的OCR原始Json)
226
+
227
+ # @type ResultType: String
228
+
229
+ attr_accessor :TableResultType, :ResultType
230
+
231
+ def initialize(tableresulttype=nil, resulttype=nil)
232
+ @TableResultType = tableresulttype
233
+ @ResultType = resulttype
234
+ end
235
+
236
+ def deserialize(params)
237
+ @TableResultType = params['TableResultType']
238
+ @ResultType = params['ResultType']
239
+ end
240
+ end
241
+
242
+ # CreateReconstructDocumentFlow请求参数结构体
243
+ class CreateReconstructDocumentFlowRequest < TencentCloud::Common::AbstractModel
244
+ # @param FileType: 文件类型。
245
+
246
+ # **支持的文件类型:**
247
+ # - `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`、`BMP`、`GIF`、`WEBP`、`HEIC`、`EPS`、`ICNS`、`IM`、`PCX`、`PPM`、`TIFF`、`XBM`、`HEIF`、`JP2`
248
+
249
+ # **支持的文件大小:**
250
+ # - `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
251
+ # - `TXT`、`MD` 最大10M
252
+ # - 其他 最大20M
253
+ # @type FileType: String
254
+ # @param FileUrl: 文件的 URL 地址。
255
+ # 文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
256
+ # 参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
257
+ # @type FileUrl: String
258
+ # @param FileBase64: 文件的 Base64 值。
259
+ # 支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
260
+ # 支持的图片像素:单边介于20-10000px之间。
261
+ # 文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
262
+ # @type FileBase64: String
263
+ # @param FileStartPageNumber: 文档的起始页码。
264
+ # 当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
265
+ # @type FileStartPageNumber: Integer
266
+ # @param FileEndPageNumber: 文档的结束页码。
267
+ # 当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
268
+ # @type FileEndPageNumber: Integer
269
+ # @param Config: 创建文档解析任务配置信息。
270
+ # @type Config: :class:`Tencentcloud::Lkeap.v20240522.models.CreateReconstructDocumentFlowConfig`
271
+
272
+ attr_accessor :FileType, :FileUrl, :FileBase64, :FileStartPageNumber, :FileEndPageNumber, :Config
273
+
274
+ def initialize(filetype=nil, fileurl=nil, filebase64=nil, filestartpagenumber=nil, fileendpagenumber=nil, config=nil)
275
+ @FileType = filetype
276
+ @FileUrl = fileurl
277
+ @FileBase64 = filebase64
278
+ @FileStartPageNumber = filestartpagenumber
279
+ @FileEndPageNumber = fileendpagenumber
280
+ @Config = config
281
+ end
282
+
283
+ def deserialize(params)
284
+ @FileType = params['FileType']
285
+ @FileUrl = params['FileUrl']
286
+ @FileBase64 = params['FileBase64']
287
+ @FileStartPageNumber = params['FileStartPageNumber']
288
+ @FileEndPageNumber = params['FileEndPageNumber']
289
+ unless params['Config'].nil?
290
+ @Config = CreateReconstructDocumentFlowConfig.new
291
+ @Config.deserialize(params['Config'])
292
+ end
293
+ end
294
+ end
295
+
296
+ # CreateReconstructDocumentFlow返回参数结构体
297
+ class CreateReconstructDocumentFlowResponse < TencentCloud::Common::AbstractModel
298
+ # @param TaskId: 任务唯一id。30天内可以通过GetReconstructDocumentResult接口查询TaskId对应的处理结果。
299
+ # @type TaskId: String
300
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
301
+ # @type RequestId: String
302
+
303
+ attr_accessor :TaskId, :RequestId
304
+
305
+ def initialize(taskid=nil, requestid=nil)
306
+ @TaskId = taskid
307
+ @RequestId = requestid
308
+ end
309
+
310
+ def deserialize(params)
311
+ @TaskId = params['TaskId']
312
+ @RequestId = params['RequestId']
313
+ end
314
+ end
315
+
316
+ # 创建智能文档拆分任务的配置信息
317
+ class CreateSplitDocumentFlowConfig < TencentCloud::Common::AbstractModel
318
+ # @param TableResultType: Markdown文件中表格返回的形式
319
+ # 0,表格以MD形式返回
320
+ # 1,表格以HTML形式返回
321
+ # 默认为
322
+ # @type TableResultType: String
323
+ # @param ResultType: 智能文档解析返回结果的格式
324
+ # 0:只返回全文MD;
325
+ # 1:只返回每一页的OCR原始Json;
326
+ # 2:只返回每一页的MD,
327
+ # 3:返回全文MD + 每一页的OCR原始Json;
328
+ # 4:返回全文MD + 每一页的MD,
329
+ # 默认值为3(返回全文MD + 每一页的OCR原始Json)
330
+
331
+ # @type ResultType: String
332
+ # @param EnableMllm: 是否开启mllm
333
+ # @type EnableMllm: Boolean
334
+ # @param MaxChunkSize: 最大分片长度
335
+ # @type MaxChunkSize: Integer
336
+
337
+ attr_accessor :TableResultType, :ResultType, :EnableMllm, :MaxChunkSize
338
+ extend Gem::Deprecate
339
+ deprecate :TableResultType, :none, 2025, 1
340
+ deprecate :TableResultType=, :none, 2025, 1
341
+ deprecate :ResultType, :none, 2025, 1
342
+ deprecate :ResultType=, :none, 2025, 1
343
+
344
+ def initialize(tableresulttype=nil, resulttype=nil, enablemllm=nil, maxchunksize=nil)
345
+ @TableResultType = tableresulttype
346
+ @ResultType = resulttype
347
+ @EnableMllm = enablemllm
348
+ @MaxChunkSize = maxchunksize
349
+ end
350
+
351
+ def deserialize(params)
352
+ @TableResultType = params['TableResultType']
353
+ @ResultType = params['ResultType']
354
+ @EnableMllm = params['EnableMllm']
355
+ @MaxChunkSize = params['MaxChunkSize']
356
+ end
357
+ end
358
+
359
+ # CreateSplitDocumentFlow请求参数结构体
360
+ class CreateSplitDocumentFlowRequest < TencentCloud::Common::AbstractModel
361
+ # @param FileType: 文件类型。支持的文件类型:PDF、DOC、DOCX、XLS、XLSX、PPT、PPTX、MD、TXT、PNG、JPG、JPEG、CSV
362
+ # @type FileType: String
363
+ # @param FileUrl: 文件的 Url 地址。文件存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
364
+ # @type FileUrl: String
365
+ # @param FileName: 文件名,可选,当文件名无法从传入的FileUrl获取时需要通过该字段来明确
366
+ # @type FileName: String
367
+ # @param FileBase64: 文件的 Base64 值。支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
368
+ # @type FileBase64: String
369
+ # @param FileStartPageNumber: 当传入文件是PDF类型时,用来指定pdf识别的起始页码,识别的页码包含当前值
370
+ # @type FileStartPageNumber: Integer
371
+ # @param FileEndPageNumber: 当传入文件是PDF类型时,用来指定pdf识别的结束页码,识别的页码包含当前值。
372
+ # @type FileEndPageNumber: Integer
373
+ # @param Config: 创建文档拆分任务配置信息创建文档解析任务配置信息
374
+ # @type Config: :class:`Tencentcloud::Lkeap.v20240522.models.CreateSplitDocumentFlowConfig`
375
+
376
+ attr_accessor :FileType, :FileUrl, :FileName, :FileBase64, :FileStartPageNumber, :FileEndPageNumber, :Config
377
+ extend Gem::Deprecate
378
+ deprecate :FileBase64, :none, 2025, 1
379
+ deprecate :FileBase64=, :none, 2025, 1
380
+
381
+ def initialize(filetype=nil, fileurl=nil, filename=nil, filebase64=nil, filestartpagenumber=nil, fileendpagenumber=nil, config=nil)
382
+ @FileType = filetype
383
+ @FileUrl = fileurl
384
+ @FileName = filename
385
+ @FileBase64 = filebase64
386
+ @FileStartPageNumber = filestartpagenumber
387
+ @FileEndPageNumber = fileendpagenumber
388
+ @Config = config
389
+ end
390
+
391
+ def deserialize(params)
392
+ @FileType = params['FileType']
393
+ @FileUrl = params['FileUrl']
394
+ @FileName = params['FileName']
395
+ @FileBase64 = params['FileBase64']
396
+ @FileStartPageNumber = params['FileStartPageNumber']
397
+ @FileEndPageNumber = params['FileEndPageNumber']
398
+ unless params['Config'].nil?
399
+ @Config = CreateSplitDocumentFlowConfig.new
400
+ @Config.deserialize(params['Config'])
401
+ end
402
+ end
403
+ end
404
+
405
+ # CreateSplitDocumentFlow返回参数结构体
406
+ class CreateSplitDocumentFlowResponse < TencentCloud::Common::AbstractModel
407
+ # @param TaskId: 任务唯一id。30天内可以通过GetSplitDocumentResult接口查询TaskId对应的处理结果。
408
+ # @type TaskId: String
409
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
410
+ # @type RequestId: String
411
+
412
+ attr_accessor :TaskId, :RequestId
413
+
414
+ def initialize(taskid=nil, requestid=nil)
415
+ @TaskId = taskid
416
+ @RequestId = requestid
417
+ end
418
+
419
+ def deserialize(params)
420
+ @TaskId = params['TaskId']
421
+ @RequestId = params['RequestId']
422
+ end
423
+ end
424
+
425
+ # DeleteAttributeLabels请求参数结构体
426
+ class DeleteAttributeLabelsRequest < TencentCloud::Common::AbstractModel
427
+
428
+
429
+ def initialize()
430
+ end
431
+
432
+ def deserialize(params)
433
+ end
434
+ end
435
+
436
+ # DeleteAttributeLabels返回参数结构体
437
+ class DeleteAttributeLabelsResponse < TencentCloud::Common::AbstractModel
438
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
439
+ # @type RequestId: String
440
+
441
+ attr_accessor :RequestId
442
+
443
+ def initialize(requestid=nil)
444
+ @RequestId = requestid
445
+ end
446
+
447
+ def deserialize(params)
448
+ @RequestId = params['RequestId']
449
+ end
450
+ end
451
+
452
+ # DeleteDocs请求参数结构体
453
+ class DeleteDocsRequest < TencentCloud::Common::AbstractModel
454
+
455
+
456
+ def initialize()
457
+ end
458
+
459
+ def deserialize(params)
460
+ end
461
+ end
462
+
463
+ # DeleteDocs返回参数结构体
464
+ class DeleteDocsResponse < TencentCloud::Common::AbstractModel
465
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
466
+ # @type RequestId: String
467
+
468
+ attr_accessor :RequestId
469
+
470
+ def initialize(requestid=nil)
471
+ @RequestId = requestid
472
+ end
473
+
474
+ def deserialize(params)
475
+ @RequestId = params['RequestId']
476
+ end
477
+ end
478
+
479
+ # DeleteKnowledgeBase请求参数结构体
480
+ class DeleteKnowledgeBaseRequest < TencentCloud::Common::AbstractModel
481
+ # @param KnowledgeBaseId: 知识库ID
482
+ # @type KnowledgeBaseId: String
483
+
484
+ attr_accessor :KnowledgeBaseId
485
+
486
+ def initialize(knowledgebaseid=nil)
487
+ @KnowledgeBaseId = knowledgebaseid
488
+ end
489
+
490
+ def deserialize(params)
491
+ @KnowledgeBaseId = params['KnowledgeBaseId']
492
+ end
493
+ end
494
+
495
+ # DeleteKnowledgeBase返回参数结构体
496
+ class DeleteKnowledgeBaseResponse < TencentCloud::Common::AbstractModel
497
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
498
+ # @type RequestId: String
499
+
500
+ attr_accessor :RequestId
501
+
502
+ def initialize(requestid=nil)
503
+ @RequestId = requestid
504
+ end
505
+
506
+ def deserialize(params)
507
+ @RequestId = params['RequestId']
508
+ end
509
+ end
510
+
511
+ # DeleteQAs请求参数结构体
512
+ class DeleteQAsRequest < TencentCloud::Common::AbstractModel
513
+
514
+
515
+ def initialize()
516
+ end
517
+
518
+ def deserialize(params)
519
+ end
520
+ end
521
+
522
+ # DeleteQAs返回参数结构体
523
+ class DeleteQAsResponse < TencentCloud::Common::AbstractModel
524
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
525
+ # @type RequestId: String
526
+
527
+ attr_accessor :RequestId
528
+
529
+ def initialize(requestid=nil)
530
+ @RequestId = requestid
531
+ end
532
+
533
+ def deserialize(params)
534
+ @RequestId = params['RequestId']
535
+ end
536
+ end
537
+
538
+ # DescribeDoc请求参数结构体
539
+ class DescribeDocRequest < TencentCloud::Common::AbstractModel
540
+
541
+
542
+ def initialize()
543
+ end
544
+
545
+ def deserialize(params)
546
+ end
547
+ end
548
+
549
+ # DescribeDoc返回参数结构体
550
+ class DescribeDocResponse < TencentCloud::Common::AbstractModel
551
+ # @param AttributeLabels: 属性标签
552
+ # @type AttributeLabels: Array
553
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
554
+ # @type RequestId: String
555
+
556
+ attr_accessor :AttributeLabels, :RequestId
557
+
558
+ def initialize(attributelabels=nil, requestid=nil)
559
+ @AttributeLabels = attributelabels
560
+ @RequestId = requestid
561
+ end
562
+
563
+ def deserialize(params)
564
+ unless params['AttributeLabels'].nil?
565
+ @AttributeLabels = []
566
+ params['AttributeLabels'].each do |i|
567
+ attributelabelreferitem_tmp = AttributeLabelReferItem.new
568
+ attributelabelreferitem_tmp.deserialize(i)
569
+ @AttributeLabels << attributelabelreferitem_tmp
570
+ end
571
+ end
572
+ @RequestId = params['RequestId']
573
+ end
574
+ end
575
+
576
+ # 离线文档列表回包
577
+ class DocItem < TencentCloud::Common::AbstractModel
578
+ # @param DocId: 文档id
579
+ # 注意:此字段可能返回 null,表示取不到有效值。
580
+ # @type DocId: String
581
+ # @param Status: 状态,
582
+ # - Uploading 上传中
583
+ # - Parsing 解析中
584
+ # - ParseFailed 解析失败
585
+ # - Indexing 创建索引中
586
+ # - IndexFailed 创建索引失败
587
+ # - Success 发布成功
588
+ # - Failed 失败
589
+ # 注意:此字段可能返回 null,表示取不到有效值。
590
+ # @type Status: String
591
+ # @param FileName: 文件名
592
+ # 注意:此字段可能返回 null,表示取不到有效值。
593
+ # @type FileName: String
594
+ # @param UpdateTime: 更新时间
595
+ # 注意:此字段可能返回 null,表示取不到有效值。
596
+ # @type UpdateTime: String
597
+ # @param AttributeLabels: 属性标签
598
+ # 注意:此字段可能返回 null,表示取不到有效值。
599
+ # @type AttributeLabels: Array
600
+
601
+ attr_accessor :DocId, :Status, :FileName, :UpdateTime, :AttributeLabels
602
+
603
+ def initialize(docid=nil, status=nil, filename=nil, updatetime=nil, attributelabels=nil)
604
+ @DocId = docid
605
+ @Status = status
606
+ @FileName = filename
607
+ @UpdateTime = updatetime
608
+ @AttributeLabels = attributelabels
609
+ end
610
+
611
+ def deserialize(params)
612
+ @DocId = params['DocId']
613
+ @Status = params['Status']
614
+ @FileName = params['FileName']
615
+ @UpdateTime = params['UpdateTime']
616
+ unless params['AttributeLabels'].nil?
617
+ @AttributeLabels = []
618
+ params['AttributeLabels'].each do |i|
619
+ attributelabelreferitem_tmp = AttributeLabelReferItem.new
620
+ attributelabelreferitem_tmp.deserialize(i)
621
+ @AttributeLabels << attributelabelreferitem_tmp
622
+ end
623
+ end
624
+ end
625
+ end
626
+
627
+ # 文档拆分任务的用量
628
+ class DocumentUsage < TencentCloud::Common::AbstractModel
629
+ # @param PageNumber: 文档拆分任务的页数
630
+ # @type PageNumber: Integer
631
+ # @param TotalToken: 文档拆分任务消耗的总token数
632
+ # @type TotalToken: Integer
633
+ # @param TotalTokens: 文档拆分任务消耗的总token数
634
+ # @type TotalTokens: Integer
635
+
636
+ attr_accessor :PageNumber, :TotalToken, :TotalTokens
637
+ extend Gem::Deprecate
638
+ deprecate :TotalToken, :none, 2025, 1
639
+ deprecate :TotalToken=, :none, 2025, 1
640
+
641
+ def initialize(pagenumber=nil, totaltoken=nil, totaltokens=nil)
642
+ @PageNumber = pagenumber
643
+ @TotalToken = totaltoken
644
+ @TotalTokens = totaltokens
645
+ end
646
+
647
+ def deserialize(params)
648
+ @PageNumber = params['PageNumber']
649
+ @TotalToken = params['TotalToken']
650
+ @TotalTokens = params['TotalTokens']
651
+ end
652
+ end
653
+
654
+ # 向量
655
+ class EmbeddingObject < TencentCloud::Common::AbstractModel
656
+ # @param Embedding: 向量
657
+ # @type Embedding: Array
658
+
659
+ attr_accessor :Embedding
660
+
661
+ def initialize(embedding=nil)
662
+ @Embedding = embedding
663
+ end
664
+
665
+ def deserialize(params)
666
+ @Embedding = params['Embedding']
667
+ end
668
+ end
669
+
670
+ # GetEmbedding请求参数结构体
671
+ class GetEmbeddingRequest < TencentCloud::Common::AbstractModel
672
+ # @param Model: 模型名称
673
+ # @type Model: String
674
+ # @param Inputs: 需要 embedding 的文本, 单条文本最大长度500个字符, 总条数最大7条
675
+ # @type Inputs: Array
676
+
677
+ attr_accessor :Model, :Inputs
678
+
679
+ def initialize(model=nil, inputs=nil)
680
+ @Model = model
681
+ @Inputs = inputs
682
+ end
683
+
684
+ def deserialize(params)
685
+ @Model = params['Model']
686
+ @Inputs = params['Inputs']
687
+ end
688
+ end
689
+
690
+ # GetEmbedding返回参数结构体
691
+ class GetEmbeddingResponse < TencentCloud::Common::AbstractModel
692
+ # @param Data: 特征
693
+ # @type Data: Array
694
+ # @param Usage: 消耗量,返回TotalToken
695
+ # @type Usage: :class:`Tencentcloud::Lkeap.v20240522.models.Usage`
696
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
697
+ # @type RequestId: String
698
+
699
+ attr_accessor :Data, :Usage, :RequestId
700
+
701
+ def initialize(data=nil, usage=nil, requestid=nil)
702
+ @Data = data
703
+ @Usage = usage
704
+ @RequestId = requestid
705
+ end
706
+
707
+ def deserialize(params)
708
+ unless params['Data'].nil?
709
+ @Data = []
710
+ params['Data'].each do |i|
711
+ embeddingobject_tmp = EmbeddingObject.new
712
+ embeddingobject_tmp.deserialize(i)
713
+ @Data << embeddingobject_tmp
714
+ end
715
+ end
716
+ unless params['Usage'].nil?
717
+ @Usage = Usage.new
718
+ @Usage.deserialize(params['Usage'])
719
+ end
720
+ @RequestId = params['RequestId']
721
+ end
722
+ end
723
+
724
+ # GetReconstructDocumentResult请求参数结构体
725
+ class GetReconstructDocumentResultRequest < TencentCloud::Common::AbstractModel
726
+ # @param TaskId: 解析任务ID
727
+ # @type TaskId: String
728
+
729
+ attr_accessor :TaskId
730
+
731
+ def initialize(taskid=nil)
732
+ @TaskId = taskid
733
+ end
734
+
735
+ def deserialize(params)
736
+ @TaskId = params['TaskId']
737
+ end
738
+ end
739
+
740
+ # GetReconstructDocumentResult返回参数结构体
741
+ class GetReconstructDocumentResultResponse < TencentCloud::Common::AbstractModel
742
+ # @param Status: 任务状态。- `Success`:执行完成- `Processing`:执行中- `Pause`: 暂停- `Failed`:执行失败- `WaitExecute`:等待执行
743
+ # @type Status: String
744
+ # @param DocumentRecognizeResultUrl: 解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟
745
+ # @type DocumentRecognizeResultUrl: String
746
+ # @param FailedPages: 文档解析失败的页码
747
+ # @type FailedPages: Array
748
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
749
+ # @type RequestId: String
750
+
751
+ attr_accessor :Status, :DocumentRecognizeResultUrl, :FailedPages, :RequestId
752
+
753
+ def initialize(status=nil, documentrecognizeresulturl=nil, failedpages=nil, requestid=nil)
754
+ @Status = status
755
+ @DocumentRecognizeResultUrl = documentrecognizeresulturl
756
+ @FailedPages = failedpages
757
+ @RequestId = requestid
758
+ end
759
+
760
+ def deserialize(params)
761
+ @Status = params['Status']
762
+ @DocumentRecognizeResultUrl = params['DocumentRecognizeResultUrl']
763
+ unless params['FailedPages'].nil?
764
+ @FailedPages = []
765
+ params['FailedPages'].each do |i|
766
+ reconstructdocumentfailedpage_tmp = ReconstructDocumentFailedPage.new
767
+ reconstructdocumentfailedpage_tmp.deserialize(i)
768
+ @FailedPages << reconstructdocumentfailedpage_tmp
769
+ end
770
+ end
771
+ @RequestId = params['RequestId']
772
+ end
773
+ end
774
+
775
+ # GetSplitDocumentResult请求参数结构体
776
+ class GetSplitDocumentResultRequest < TencentCloud::Common::AbstractModel
777
+ # @param TaskId: 拆分任务ID
778
+ # @type TaskId: String
779
+
780
+ attr_accessor :TaskId
781
+
782
+ def initialize(taskid=nil)
783
+ @TaskId = taskid
784
+ end
785
+
786
+ def deserialize(params)
787
+ @TaskId = params['TaskId']
788
+ end
789
+ end
790
+
791
+ # GetSplitDocumentResult返回参数结构体
792
+ class GetSplitDocumentResultResponse < TencentCloud::Common::AbstractModel
793
+ # @param Status: 任务状态。
794
+
795
+ # - `Success`:执行完成
796
+ # - `Processing`:执行中
797
+ # - `Pause`: 暂停
798
+ # - `Failed`:执行失败
799
+ # - `WaitExecute`:等待执行
800
+ # @type Status: String
801
+ # @param DocumentRecognizeResultUrl: 拆分结果的临时下载地址。
802
+ # 文件类型为zip压缩包,下载链接有效期30分钟。
803
+ # 压缩包内包含\*.md、\*.jsonl、\*mllm.json以及images文件夹。
804
+
805
+ # > **jsonl** 结构说明:
806
+ # - `page_content`:
807
+ # 用于生成嵌入(embedding)库,以便于检索使用。该字段中的图片将使用占位符替换。
808
+ # - `org_data`:
809
+ # 表示与 page_content 对应的最小语义完整性块,用于问答模型的处理。
810
+ # - `big_data`:
811
+ # 表示与 page_content 对应的最大语义完整性块,也用于问答模型的处理。
812
+ # @type DocumentRecognizeResultUrl: String
813
+ # @param FailedPages: 文档拆分失败的页码
814
+ # @type FailedPages: Array
815
+ # @param Usage: 文档拆分任务的用量
816
+ # @type Usage: :class:`Tencentcloud::Lkeap.v20240522.models.DocumentUsage`
817
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
818
+ # @type RequestId: String
819
+
820
+ attr_accessor :Status, :DocumentRecognizeResultUrl, :FailedPages, :Usage, :RequestId
821
+ extend Gem::Deprecate
822
+ deprecate :FailedPages, :none, 2025, 1
823
+ deprecate :FailedPages=, :none, 2025, 1
824
+
825
+ def initialize(status=nil, documentrecognizeresulturl=nil, failedpages=nil, usage=nil, requestid=nil)
826
+ @Status = status
827
+ @DocumentRecognizeResultUrl = documentrecognizeresulturl
828
+ @FailedPages = failedpages
829
+ @Usage = usage
830
+ @RequestId = requestid
831
+ end
832
+
833
+ def deserialize(params)
834
+ @Status = params['Status']
835
+ @DocumentRecognizeResultUrl = params['DocumentRecognizeResultUrl']
836
+ unless params['FailedPages'].nil?
837
+ @FailedPages = []
838
+ params['FailedPages'].each do |i|
839
+ splitdocumentfailedpage_tmp = SplitDocumentFailedPage.new
840
+ splitdocumentfailedpage_tmp.deserialize(i)
841
+ @FailedPages << splitdocumentfailedpage_tmp
842
+ end
843
+ end
844
+ unless params['Usage'].nil?
845
+ @Usage = DocumentUsage.new
846
+ @Usage.deserialize(params['Usage'])
847
+ end
848
+ @RequestId = params['RequestId']
849
+ end
850
+ end
851
+
852
+ # ImportQAs请求参数结构体
853
+ class ImportQAsRequest < TencentCloud::Common::AbstractModel
854
+
855
+
856
+ def initialize()
857
+ end
858
+
859
+ def deserialize(params)
860
+ end
861
+ end
862
+
863
+ # ImportQAs返回参数结构体
864
+ class ImportQAsResponse < TencentCloud::Common::AbstractModel
865
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
866
+ # @type RequestId: String
867
+
868
+ attr_accessor :RequestId
869
+
870
+ def initialize(requestid=nil)
871
+ @RequestId = requestid
872
+ end
873
+
874
+ def deserialize(params)
875
+ @RequestId = params['RequestId']
876
+ end
877
+ end
878
+
879
+ # 属性标签
880
+ class LabelItem < TencentCloud::Common::AbstractModel
881
+ # @param Name: 属性key
882
+ # @type Name: String
883
+ # @param Values: 标签值
884
+ # @type Values: Array
885
+
886
+ attr_accessor :Name, :Values
887
+
888
+ def initialize(name=nil, values=nil)
889
+ @Name = name
890
+ @Values = values
891
+ end
892
+
893
+ def deserialize(params)
894
+ @Name = params['Name']
895
+ @Values = params['Values']
896
+ end
897
+ end
898
+
899
+ # ListAttributeLabels请求参数结构体
900
+ class ListAttributeLabelsRequest < TencentCloud::Common::AbstractModel
901
+
902
+
903
+ def initialize()
904
+ end
905
+
906
+ def deserialize(params)
907
+ end
908
+ end
909
+
910
+ # ListAttributeLabels返回参数结构体
911
+ class ListAttributeLabelsResponse < TencentCloud::Common::AbstractModel
912
+ # @param List: 属性标签列表
913
+ # @type List: Array
914
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
915
+ # @type RequestId: String
916
+
917
+ attr_accessor :List, :RequestId
918
+
919
+ def initialize(list=nil, requestid=nil)
920
+ @List = list
921
+ @RequestId = requestid
922
+ end
923
+
924
+ def deserialize(params)
925
+ unless params['List'].nil?
926
+ @List = []
927
+ params['List'].each do |i|
928
+ attributeitem_tmp = AttributeItem.new
929
+ attributeitem_tmp.deserialize(i)
930
+ @List << attributeitem_tmp
931
+ end
932
+ end
933
+ @RequestId = params['RequestId']
934
+ end
935
+ end
936
+
937
+ # ListDocs请求参数结构体
938
+ class ListDocsRequest < TencentCloud::Common::AbstractModel
939
+
940
+
941
+ def initialize()
942
+ end
943
+
944
+ def deserialize(params)
945
+ end
946
+ end
947
+
948
+ # ListDocs返回参数结构体
949
+ class ListDocsResponse < TencentCloud::Common::AbstractModel
950
+ # @param List: 文档信息
951
+ # @type List: Array
952
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
953
+ # @type RequestId: String
954
+
955
+ attr_accessor :List, :RequestId
956
+
957
+ def initialize(list=nil, requestid=nil)
958
+ @List = list
959
+ @RequestId = requestid
960
+ end
961
+
962
+ def deserialize(params)
963
+ unless params['List'].nil?
964
+ @List = []
965
+ params['List'].each do |i|
966
+ docitem_tmp = DocItem.new
967
+ docitem_tmp.deserialize(i)
968
+ @List << docitem_tmp
969
+ end
970
+ end
971
+ @RequestId = params['RequestId']
972
+ end
973
+ end
974
+
975
+ # ListQAs请求参数结构体
976
+ class ListQAsRequest < TencentCloud::Common::AbstractModel
977
+
978
+
979
+ def initialize()
980
+ end
981
+
982
+ def deserialize(params)
983
+ end
984
+ end
985
+
986
+ # ListQAs返回参数结构体
987
+ class ListQAsResponse < TencentCloud::Common::AbstractModel
988
+ # @param List: 问答对信息
989
+ # @type List: Array
990
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
991
+ # @type RequestId: String
992
+
993
+ attr_accessor :List, :RequestId
994
+
995
+ def initialize(list=nil, requestid=nil)
996
+ @List = list
997
+ @RequestId = requestid
998
+ end
999
+
1000
+ def deserialize(params)
1001
+ unless params['List'].nil?
1002
+ @List = []
1003
+ params['List'].each do |i|
1004
+ qaitem_tmp = QaItem.new
1005
+ qaitem_tmp.deserialize(i)
1006
+ @List << qaitem_tmp
1007
+ end
1008
+ end
1009
+ @RequestId = params['RequestId']
1010
+ end
1011
+ end
1012
+
1013
+ # ModifyAttributeLabel请求参数结构体
1014
+ class ModifyAttributeLabelRequest < TencentCloud::Common::AbstractModel
1015
+ # @param Labels: 属性标签
1016
+ # @type Labels: Array
1017
+
1018
+ attr_accessor :Labels
1019
+
1020
+ def initialize(labels=nil)
1021
+ @Labels = labels
1022
+ end
1023
+
1024
+ def deserialize(params)
1025
+ unless params['Labels'].nil?
1026
+ @Labels = []
1027
+ params['Labels'].each do |i|
1028
+ attributelabelitem_tmp = AttributeLabelItem.new
1029
+ attributelabelitem_tmp.deserialize(i)
1030
+ @Labels << attributelabelitem_tmp
1031
+ end
1032
+ end
1033
+ end
1034
+ end
1035
+
1036
+ # ModifyAttributeLabel返回参数结构体
1037
+ class ModifyAttributeLabelResponse < TencentCloud::Common::AbstractModel
1038
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1039
+ # @type RequestId: String
1040
+
1041
+ attr_accessor :RequestId
1042
+
1043
+ def initialize(requestid=nil)
1044
+ @RequestId = requestid
1045
+ end
1046
+
1047
+ def deserialize(params)
1048
+ @RequestId = params['RequestId']
1049
+ end
1050
+ end
1051
+
1052
+ # ModifyQA请求参数结构体
1053
+ class ModifyQARequest < TencentCloud::Common::AbstractModel
1054
+ # @param AttributeLabels: 属性标签
1055
+ # @type AttributeLabels: Array
1056
+
1057
+ attr_accessor :AttributeLabels
1058
+
1059
+ def initialize(attributelabels=nil)
1060
+ @AttributeLabels = attributelabels
1061
+ end
1062
+
1063
+ def deserialize(params)
1064
+ unless params['AttributeLabels'].nil?
1065
+ @AttributeLabels = []
1066
+ params['AttributeLabels'].each do |i|
1067
+ attributelabelreferitem_tmp = AttributeLabelReferItem.new
1068
+ attributelabelreferitem_tmp.deserialize(i)
1069
+ @AttributeLabels << attributelabelreferitem_tmp
1070
+ end
1071
+ end
1072
+ end
1073
+ end
1074
+
1075
+ # ModifyQA返回参数结构体
1076
+ class ModifyQAResponse < TencentCloud::Common::AbstractModel
1077
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1078
+ # @type RequestId: String
1079
+
1080
+ attr_accessor :RequestId
1081
+
1082
+ def initialize(requestid=nil)
1083
+ @RequestId = requestid
1084
+ end
1085
+
1086
+ def deserialize(params)
1087
+ @RequestId = params['RequestId']
1088
+ end
1089
+ end
1090
+
1091
+ # 问答对信息
1092
+ class QaItem < TencentCloud::Common::AbstractModel
1093
+ # @param QaId: 问答id
1094
+ # 注意:此字段可能返回 null,表示取不到有效值。
1095
+ # @type QaId: String
1096
+ # @param Question: 问题
1097
+ # 注意:此字段可能返回 null,表示取不到有效值。
1098
+ # @type Question: String
1099
+ # @param Answer: 答案
1100
+ # 注意:此字段可能返回 null,表示取不到有效值。
1101
+ # @type Answer: String
1102
+ # @param AttributeLabels: 属性标签
1103
+ # 注意:此字段可能返回 null,表示取不到有效值。
1104
+ # @type AttributeLabels: Array
1105
+ # @param CreateTime: 创建时间
1106
+ # 注意:此字段可能返回 null,表示取不到有效值。
1107
+ # @type CreateTime: String
1108
+ # @param UpdateTime: 更新时间
1109
+ # 注意:此字段可能返回 null,表示取不到有效值。
1110
+ # @type UpdateTime: String
1111
+
1112
+ attr_accessor :QaId, :Question, :Answer, :AttributeLabels, :CreateTime, :UpdateTime
1113
+
1114
+ def initialize(qaid=nil, question=nil, answer=nil, attributelabels=nil, createtime=nil, updatetime=nil)
1115
+ @QaId = qaid
1116
+ @Question = question
1117
+ @Answer = answer
1118
+ @AttributeLabels = attributelabels
1119
+ @CreateTime = createtime
1120
+ @UpdateTime = updatetime
1121
+ end
1122
+
1123
+ def deserialize(params)
1124
+ @QaId = params['QaId']
1125
+ @Question = params['Question']
1126
+ @Answer = params['Answer']
1127
+ unless params['AttributeLabels'].nil?
1128
+ @AttributeLabels = []
1129
+ params['AttributeLabels'].each do |i|
1130
+ attributelabelreferitem_tmp = AttributeLabelReferItem.new
1131
+ attributelabelreferitem_tmp.deserialize(i)
1132
+ @AttributeLabels << attributelabelreferitem_tmp
1133
+ end
1134
+ end
1135
+ @CreateTime = params['CreateTime']
1136
+ @UpdateTime = params['UpdateTime']
1137
+ end
1138
+ end
1139
+
1140
+ # 文档解析失败记录
1141
+ class ReconstructDocumentFailedPage < TencentCloud::Common::AbstractModel
1142
+ # @param PageNumber: 失败页码
1143
+ # 注意:此字段可能返回 null,表示取不到有效值。
1144
+ # @type PageNumber: Integer
1145
+
1146
+ attr_accessor :PageNumber
1147
+
1148
+ def initialize(pagenumber=nil)
1149
+ @PageNumber = pagenumber
1150
+ end
1151
+
1152
+ def deserialize(params)
1153
+ @PageNumber = params['PageNumber']
1154
+ end
1155
+ end
1156
+
1157
+ # ReconstructDocumentSSE 功能配置参数
1158
+ class ReconstructDocumentSSEConfig < TencentCloud::Common::AbstractModel
1159
+ # @param TableResultType: Markdown文件中表格返回的形式
1160
+ # 0,表格以MD形式返回
1161
+ # 1,表格以HTML形式返回
1162
+ # 默认为0
1163
+ # @type TableResultType: String
1164
+ # @param MarkdownImageResponseType: Markdown文件中图片返回的形式
1165
+ # 0:markdown中图片以链接形式返回
1166
+ # 1:markdown中图片只返回图片中提取的文本内容
1167
+ # 默认是0
1168
+ # @type MarkdownImageResponseType: String
1169
+ # @param ReturnPageFormat: Markdown文件中是否包含页码信息
1170
+ # @type ReturnPageFormat: Boolean
1171
+ # @param PageFormat: 自定义输出页码样式,{{p}}为页码占位符,开启ReturnPageFormat生效。未填默认样式:<page_num>page {{p}}</page_num>
1172
+ # @type PageFormat: String
1173
+
1174
+ attr_accessor :TableResultType, :MarkdownImageResponseType, :ReturnPageFormat, :PageFormat
1175
+
1176
+ def initialize(tableresulttype=nil, markdownimageresponsetype=nil, returnpageformat=nil, pageformat=nil)
1177
+ @TableResultType = tableresulttype
1178
+ @MarkdownImageResponseType = markdownimageresponsetype
1179
+ @ReturnPageFormat = returnpageformat
1180
+ @PageFormat = pageformat
1181
+ end
1182
+
1183
+ def deserialize(params)
1184
+ @TableResultType = params['TableResultType']
1185
+ @MarkdownImageResponseType = params['MarkdownImageResponseType']
1186
+ @ReturnPageFormat = params['ReturnPageFormat']
1187
+ @PageFormat = params['PageFormat']
1188
+ end
1189
+ end
1190
+
1191
+ # ReconstructDocumentSSE请求参数结构体
1192
+ class ReconstructDocumentSSERequest < TencentCloud::Common::AbstractModel
1193
+ # @param FileType: 文件类型。
1194
+ # **支持的文件类型**:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2
1195
+ # **支持的文件大小**:
1196
+ # - PDF、DOC、DOCX、PPT、PPTX 支持100M
1197
+ # - MD、TXT 支持10M
1198
+ # - 其他支持20M
1199
+ # @type FileType: String
1200
+ # @param FileUrl: 文件的 URL 地址。
1201
+ # 文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
1202
+ # 参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
1203
+ # @type FileUrl: String
1204
+ # @param FileBase64: 文件的 Base64 值。
1205
+ # 支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
1206
+ # 支持的图片像素:单边介于20-10000px之间。
1207
+ # 文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
1208
+ # @type FileBase64: String
1209
+ # @param FileStartPageNumber: 文档的起始页码。
1210
+ # 当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
1211
+ # @type FileStartPageNumber: Integer
1212
+ # @param FileEndPageNumber: 文档的结束页码。
1213
+ # 当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
1214
+ # @type FileEndPageNumber: Integer
1215
+ # @param Config: 文档解析配置信息
1216
+ # @type Config: :class:`Tencentcloud::Lkeap.v20240522.models.ReconstructDocumentSSEConfig`
1217
+
1218
+ attr_accessor :FileType, :FileUrl, :FileBase64, :FileStartPageNumber, :FileEndPageNumber, :Config
1219
+
1220
+ def initialize(filetype=nil, fileurl=nil, filebase64=nil, filestartpagenumber=nil, fileendpagenumber=nil, config=nil)
1221
+ @FileType = filetype
1222
+ @FileUrl = fileurl
1223
+ @FileBase64 = filebase64
1224
+ @FileStartPageNumber = filestartpagenumber
1225
+ @FileEndPageNumber = fileendpagenumber
1226
+ @Config = config
1227
+ end
1228
+
1229
+ def deserialize(params)
1230
+ @FileType = params['FileType']
1231
+ @FileUrl = params['FileUrl']
1232
+ @FileBase64 = params['FileBase64']
1233
+ @FileStartPageNumber = params['FileStartPageNumber']
1234
+ @FileEndPageNumber = params['FileEndPageNumber']
1235
+ unless params['Config'].nil?
1236
+ @Config = ReconstructDocumentSSEConfig.new
1237
+ @Config.deserialize(params['Config'])
1238
+ end
1239
+ end
1240
+ end
1241
+
1242
+ # ReconstructDocumentSSE返回参数结构体
1243
+ class ReconstructDocumentSSEResponse < TencentCloud::Common::AbstractModel
1244
+ # @param TaskId: 任务ID。本次请求的唯一标识
1245
+ # @type TaskId: String
1246
+ # @param ResponseType: 响应类型。1:返回进度信息,2:返回解析结果
1247
+ # @type ResponseType: String
1248
+ # @param Progress: 进度。0~100
1249
+ # @type Progress: String
1250
+ # @param ProgressMessage: 进度信息。
1251
+ # @type ProgressMessage: String
1252
+ # @param DocumentRecognizeResultUrl: 文档解析结果URL。存储在腾讯云cos,可以通过http请求下载,URL十分钟内有效。
1253
+ # @type DocumentRecognizeResultUrl: String
1254
+ # @param FailedPages: 文档解析失败的页码。
1255
+ # @type FailedPages: Array
1256
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
1257
+ # @type RequestId: String
1258
+
1259
+ attr_accessor :TaskId, :ResponseType, :Progress, :ProgressMessage, :DocumentRecognizeResultUrl, :FailedPages, :RequestId
1260
+
1261
+ def initialize(taskid=nil, responsetype=nil, progress=nil, progressmessage=nil, documentrecognizeresulturl=nil, failedpages=nil, requestid=nil)
1262
+ @TaskId = taskid
1263
+ @ResponseType = responsetype
1264
+ @Progress = progress
1265
+ @ProgressMessage = progressmessage
1266
+ @DocumentRecognizeResultUrl = documentrecognizeresulturl
1267
+ @FailedPages = failedpages
1268
+ @RequestId = requestid
1269
+ end
1270
+
1271
+ def deserialize(params)
1272
+ @TaskId = params['TaskId']
1273
+ @ResponseType = params['ResponseType']
1274
+ @Progress = params['Progress']
1275
+ @ProgressMessage = params['ProgressMessage']
1276
+ @DocumentRecognizeResultUrl = params['DocumentRecognizeResultUrl']
1277
+ unless params['FailedPages'].nil?
1278
+ @FailedPages = []
1279
+ params['FailedPages'].each do |i|
1280
+ reconstructdocumentfailedpage_tmp = ReconstructDocumentFailedPage.new
1281
+ reconstructdocumentfailedpage_tmp.deserialize(i)
1282
+ @FailedPages << reconstructdocumentfailedpage_tmp
1283
+ end
1284
+ end
1285
+ @RequestId = params['RequestId']
1286
+ end
1287
+ end
1288
+
1289
+ # 检索的结果
1290
+ class RetrievalRecord < TencentCloud::Common::AbstractModel
1291
+ # @param Metadata: 检索结果的元数据
1292
+ # @type Metadata: :class:`Tencentcloud::Lkeap.v20240522.models.RetrievalRecordMetadata`
1293
+ # @param Title: 检索到的标题
1294
+ # @type Title: String
1295
+ # @param Content: 检索到的内容
1296
+ # @type Content: String
1297
+
1298
+ attr_accessor :Metadata, :Title, :Content
1299
+
1300
+ def initialize(metadata=nil, title=nil, content=nil)
1301
+ @Metadata = metadata
1302
+ @Title = title
1303
+ @Content = content
1304
+ end
1305
+
1306
+ def deserialize(params)
1307
+ unless params['Metadata'].nil?
1308
+ @Metadata = RetrievalRecordMetadata.new
1309
+ @Metadata.deserialize(params['Metadata'])
1310
+ end
1311
+ @Title = params['Title']
1312
+ @Content = params['Content']
1313
+ end
1314
+ end
1315
+
1316
+ # 检索结果的元数据
1317
+ class RetrievalRecordMetadata < TencentCloud::Common::AbstractModel
1318
+ # @param Type: 结果的类型。
1319
+ # - `DOC`:文档
1320
+ # - `QA`:问答对
1321
+ # @type Type: String
1322
+ # @param ResultSource: 检索结果的来源。
1323
+ # - `SEMANTIC`:从语义检索中得到的结果
1324
+ # - `FULL_TEXT`:从全文检索中得到的结果
1325
+ # @type ResultSource: String
1326
+ # @param ChunkPageNumbers: 切片在文档中的页码,仅部分文档支持
1327
+ # @type ChunkPageNumbers: Array
1328
+
1329
+ attr_accessor :Type, :ResultSource, :ChunkPageNumbers
1330
+
1331
+ def initialize(type=nil, resultsource=nil, chunkpagenumbers=nil)
1332
+ @Type = type
1333
+ @ResultSource = resultsource
1334
+ @ChunkPageNumbers = chunkpagenumbers
1335
+ end
1336
+
1337
+ def deserialize(params)
1338
+ @Type = params['Type']
1339
+ @ResultSource = params['ResultSource']
1340
+ @ChunkPageNumbers = params['ChunkPageNumbers']
1341
+ end
1342
+ end
1343
+
1344
+ # 检索参数设置
1345
+ class RetrievalSetting < TencentCloud::Common::AbstractModel
1346
+ # @param Type: 检索的类型,不填该参数则检索全部。
1347
+ # - `DOC`:文档
1348
+ # - `QA`:QA
1349
+
1350
+ # 仅RetrieveKnowledge接口支持该参数
1351
+ # @type Type: String
1352
+ # @param TopK: 返回个数
1353
+ # @type TopK: Integer
1354
+ # @param ScoreThreshold: 分数过滤
1355
+ # @type ScoreThreshold: Float
1356
+
1357
+ attr_accessor :Type, :TopK, :ScoreThreshold
1358
+
1359
+ def initialize(type=nil, topk=nil, scorethreshold=nil)
1360
+ @Type = type
1361
+ @TopK = topk
1362
+ @ScoreThreshold = scorethreshold
1363
+ end
1364
+
1365
+ def deserialize(params)
1366
+ @Type = params['Type']
1367
+ @TopK = params['TopK']
1368
+ @ScoreThreshold = params['ScoreThreshold']
1369
+ end
1370
+ end
1371
+
1372
+ # RetrieveKnowledge请求参数结构体
1373
+ class RetrieveKnowledgeRequest < TencentCloud::Common::AbstractModel
1374
+ # @param KnowledgeBaseId: 知识库ID。
1375
+ # @type KnowledgeBaseId: String
1376
+ # @param Query: 用于检索的文本。
1377
+ # @type Query: String
1378
+ # @param RetrievalMethod: 检索方法,默认使用`HYBRID`混合检索。
1379
+ # - `SEMANTIC`:语义检索
1380
+ # - `FULL_TEXT`:全文检索
1381
+ # - `HYBRID`:混合检索
1382
+ # @type RetrievalMethod: String
1383
+ # @param RetrievalSetting: 检索设置。
1384
+ # @type RetrievalSetting: :class:`Tencentcloud::Lkeap.v20240522.models.RetrievalSetting`
1385
+ # @param AttributeLabels: 标签过滤。
1386
+ # @type AttributeLabels: Array
1387
+
1388
+ attr_accessor :KnowledgeBaseId, :Query, :RetrievalMethod, :RetrievalSetting, :AttributeLabels
1389
+
1390
+ def initialize(knowledgebaseid=nil, query=nil, retrievalmethod=nil, retrievalsetting=nil, attributelabels=nil)
1391
+ @KnowledgeBaseId = knowledgebaseid
1392
+ @Query = query
1393
+ @RetrievalMethod = retrievalmethod
1394
+ @RetrievalSetting = retrievalsetting
1395
+ @AttributeLabels = attributelabels
1396
+ end
1397
+
1398
+ def deserialize(params)
1399
+ @KnowledgeBaseId = params['KnowledgeBaseId']
1400
+ @Query = params['Query']
1401
+ @RetrievalMethod = params['RetrievalMethod']
1402
+ unless params['RetrievalSetting'].nil?
1403
+ @RetrievalSetting = RetrievalSetting.new
1404
+ @RetrievalSetting.deserialize(params['RetrievalSetting'])
1405
+ end
1406
+ unless params['AttributeLabels'].nil?
1407
+ @AttributeLabels = []
1408
+ params['AttributeLabels'].each do |i|
1409
+ labelitem_tmp = LabelItem.new
1410
+ labelitem_tmp.deserialize(i)
1411
+ @AttributeLabels << labelitem_tmp
1412
+ end
1413
+ end
1414
+ end
1415
+ end
1416
+
1417
+ # RetrieveKnowledge返回参数结构体
1418
+ class RetrieveKnowledgeResponse < TencentCloud::Common::AbstractModel
1419
+ # @param Records: 检索结果
1420
+ # @type Records: Array
1421
+ # @param TotalCount: 检索结果数量
1422
+ # @type TotalCount: Integer
1423
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1424
+ # @type RequestId: String
1425
+
1426
+ attr_accessor :Records, :TotalCount, :RequestId
1427
+
1428
+ def initialize(records=nil, totalcount=nil, requestid=nil)
1429
+ @Records = records
1430
+ @TotalCount = totalcount
1431
+ @RequestId = requestid
1432
+ end
1433
+
1434
+ def deserialize(params)
1435
+ unless params['Records'].nil?
1436
+ @Records = []
1437
+ params['Records'].each do |i|
1438
+ retrievalrecord_tmp = RetrievalRecord.new
1439
+ retrievalrecord_tmp.deserialize(i)
1440
+ @Records << retrievalrecord_tmp
1441
+ end
1442
+ end
1443
+ @TotalCount = params['TotalCount']
1444
+ @RequestId = params['RequestId']
1445
+ end
1446
+ end
1447
+
1448
+ # RunRerank请求参数结构体
1449
+ class RunRerankRequest < TencentCloud::Common::AbstractModel
1450
+ # @param Query: 查询内容
1451
+ # @type Query: String
1452
+ # @param Docs: 文档列表,最多20个
1453
+ # @type Docs: Array
1454
+ # @param Model: 模型名称, 默认: lke-reranker-base
1455
+ # @type Model: String
1456
+
1457
+ attr_accessor :Query, :Docs, :Model
1458
+
1459
+ def initialize(query=nil, docs=nil, model=nil)
1460
+ @Query = query
1461
+ @Docs = docs
1462
+ @Model = model
1463
+ end
1464
+
1465
+ def deserialize(params)
1466
+ @Query = params['Query']
1467
+ @Docs = params['Docs']
1468
+ @Model = params['Model']
1469
+ end
1470
+ end
1471
+
1472
+ # RunRerank返回参数结构体
1473
+ class RunRerankResponse < TencentCloud::Common::AbstractModel
1474
+ # @param ScoreList: 相关性, 数值越大越相关
1475
+ # @type ScoreList: Array
1476
+ # @param Usage: 消耗量,仅返回TotalToken
1477
+ # @type Usage: :class:`Tencentcloud::Lkeap.v20240522.models.Usage`
1478
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1479
+ # @type RequestId: String
1480
+
1481
+ attr_accessor :ScoreList, :Usage, :RequestId
1482
+
1483
+ def initialize(scorelist=nil, usage=nil, requestid=nil)
1484
+ @ScoreList = scorelist
1485
+ @Usage = usage
1486
+ @RequestId = requestid
1487
+ end
1488
+
1489
+ def deserialize(params)
1490
+ @ScoreList = params['ScoreList']
1491
+ unless params['Usage'].nil?
1492
+ @Usage = Usage.new
1493
+ @Usage.deserialize(params['Usage'])
1494
+ end
1495
+ @RequestId = params['RequestId']
1496
+ end
1497
+ end
1498
+
1499
+ # 分段配置
1500
+ class SegmentationConfig < TencentCloud::Common::AbstractModel
1501
+ # @param MaxChunkSize: 最大分片长度
1502
+ # @type MaxChunkSize: Integer
1503
+
1504
+ attr_accessor :MaxChunkSize
1505
+
1506
+ def initialize(maxchunksize=nil)
1507
+ @MaxChunkSize = maxchunksize
1508
+ end
1509
+
1510
+ def deserialize(params)
1511
+ @MaxChunkSize = params['MaxChunkSize']
1512
+ end
1513
+ end
1514
+
1515
+ # 文档解析失败记录
1516
+ class SplitDocumentFailedPage < TencentCloud::Common::AbstractModel
1517
+ # @param PageNumber: 失败页码
1518
+ # 注意:此字段可能返回 null,表示取不到有效值。
1519
+ # @type PageNumber: Integer
1520
+
1521
+ attr_accessor :PageNumber
1522
+
1523
+ def initialize(pagenumber=nil)
1524
+ @PageNumber = pagenumber
1525
+ end
1526
+
1527
+ def deserialize(params)
1528
+ @PageNumber = params['PageNumber']
1529
+ end
1530
+ end
1531
+
1532
+ # UploadDocRealtime请求参数结构体
1533
+ class UploadDocRealtimeRequest < TencentCloud::Common::AbstractModel
1534
+
1535
+
1536
+ def initialize()
1537
+ end
1538
+
1539
+ def deserialize(params)
1540
+ end
1541
+ end
1542
+
1543
+ # UploadDocRealtime返回参数结构体
1544
+ class UploadDocRealtimeResponse < TencentCloud::Common::AbstractModel
1545
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
1546
+ # @type RequestId: String
1547
+
1548
+ attr_accessor :RequestId
1549
+
1550
+ def initialize(requestid=nil)
1551
+ @RequestId = requestid
1552
+ end
1553
+
1554
+ def deserialize(params)
1555
+ @RequestId = params['RequestId']
1556
+ end
1557
+ end
1558
+
1559
+ # UploadDoc请求参数结构体
1560
+ class UploadDocRequest < TencentCloud::Common::AbstractModel
1561
+ # @param KnowledgeBaseId: 知识库ID
1562
+ # @type KnowledgeBaseId: String
1563
+ # @param FileName: 文件名,可选。
1564
+ # **需带文件类型后缀**,当文件名无法从传入的`FileUrl`获取时需要通过该字段来明确。
1565
+ # @type FileName: String
1566
+ # @param FileType: 文件类型。
1567
+
1568
+ # **支持的文件类型:**
1569
+ # - `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`
1570
+
1571
+ # **支持的文件大小:**
1572
+ # - `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
1573
+ # - `TXT`、`MD` 最大10M
1574
+ # - 其他 最大20M
1575
+ # @type FileType: String
1576
+ # @param FileUrl: 文件的 URL 地址。
1577
+ # 文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
1578
+ # 参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
1579
+ # @type FileUrl: String
1580
+ # @param AttributeLabel: 属性标签引用
1581
+ # @type AttributeLabel: Array
1582
+ # @param AttributeLabels: 属性标签引用
1583
+ # @type AttributeLabels: Array
1584
+ # @param Config: 分段信息
1585
+ # @type Config: :class:`Tencentcloud::Lkeap.v20240522.models.SegmentationConfig`
1586
+
1587
+ attr_accessor :KnowledgeBaseId, :FileName, :FileType, :FileUrl, :AttributeLabel, :AttributeLabels, :Config
1588
+ extend Gem::Deprecate
1589
+ deprecate :AttributeLabel, :none, 2025, 1
1590
+ deprecate :AttributeLabel=, :none, 2025, 1
1591
+
1592
+ def initialize(knowledgebaseid=nil, filename=nil, filetype=nil, fileurl=nil, attributelabel=nil, attributelabels=nil, config=nil)
1593
+ @KnowledgeBaseId = knowledgebaseid
1594
+ @FileName = filename
1595
+ @FileType = filetype
1596
+ @FileUrl = fileurl
1597
+ @AttributeLabel = attributelabel
1598
+ @AttributeLabels = attributelabels
1599
+ @Config = config
1600
+ end
1601
+
1602
+ def deserialize(params)
1603
+ @KnowledgeBaseId = params['KnowledgeBaseId']
1604
+ @FileName = params['FileName']
1605
+ @FileType = params['FileType']
1606
+ @FileUrl = params['FileUrl']
1607
+ unless params['AttributeLabel'].nil?
1608
+ @AttributeLabel = []
1609
+ params['AttributeLabel'].each do |i|
1610
+ attributelabelreferitem_tmp = AttributeLabelReferItem.new
1611
+ attributelabelreferitem_tmp.deserialize(i)
1612
+ @AttributeLabel << attributelabelreferitem_tmp
1613
+ end
1614
+ end
1615
+ unless params['AttributeLabels'].nil?
1616
+ @AttributeLabels = []
1617
+ params['AttributeLabels'].each do |i|
1618
+ attributelabelreferitem_tmp = AttributeLabelReferItem.new
1619
+ attributelabelreferitem_tmp.deserialize(i)
1620
+ @AttributeLabels << attributelabelreferitem_tmp
1621
+ end
1622
+ end
1623
+ unless params['Config'].nil?
1624
+ @Config = SegmentationConfig.new
1625
+ @Config.deserialize(params['Config'])
1626
+ end
1627
+ end
1628
+ end
1629
+
1630
+ # UploadDoc返回参数结构体
1631
+ class UploadDocResponse < TencentCloud::Common::AbstractModel
1632
+ # @param DocId: 文档ID
1633
+ # @type DocId: String
1634
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1635
+ # @type RequestId: String
1636
+
1637
+ attr_accessor :DocId, :RequestId
1638
+
1639
+ def initialize(docid=nil, requestid=nil)
1640
+ @DocId = docid
1641
+ @RequestId = requestid
1642
+ end
1643
+
1644
+ def deserialize(params)
1645
+ @DocId = params['DocId']
1646
+ @RequestId = params['RequestId']
1647
+ end
1648
+ end
1649
+
1650
+ # 消耗量
1651
+ class Usage < TencentCloud::Common::AbstractModel
1652
+ # @param TotalPages: 文档页数
1653
+ # @type TotalPages: Integer
1654
+ # @param InputTokens: 输入token数
1655
+ # @type InputTokens: Integer
1656
+ # @param OutputTokens: 输出token数
1657
+ # @type OutputTokens: Integer
1658
+ # @param TotalTokens: 总token数
1659
+ # @type TotalTokens: Integer
1660
+
1661
+ attr_accessor :TotalPages, :InputTokens, :OutputTokens, :TotalTokens
1662
+
1663
+ def initialize(totalpages=nil, inputtokens=nil, outputtokens=nil, totaltokens=nil)
1664
+ @TotalPages = totalpages
1665
+ @InputTokens = inputtokens
1666
+ @OutputTokens = outputtokens
1667
+ @TotalTokens = totaltokens
1668
+ end
1669
+
1670
+ def deserialize(params)
1671
+ @TotalPages = params['TotalPages']
1672
+ @InputTokens = params['InputTokens']
1673
+ @OutputTokens = params['OutputTokens']
1674
+ @TotalTokens = params['TotalTokens']
1675
+ end
1676
+ end
1677
+
1678
+ end
1679
+ end
1680
+ end
1681
+