tencentcloud-sdk-dataagent 3.0.1178 → 3.0.1179

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20250513/models.rb +164 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f4007066a7aa46544927b07e15c0d882cbd9306
4
- data.tar.gz: a0ec5b320c0872818252cbcce99f24154c6435ac
3
+ metadata.gz: 407720df11a5a5a5468a9a56cdb5a84c9f0d8bb1
4
+ data.tar.gz: 83313692f2b958160d9cfaeb84f665b4a353f4cf
5
5
  SHA512:
6
- metadata.gz: 0ec3baf59e039797dfb00e81ca7b73d7ea08a3594c6d613441c270b5c23241ee5e89e20445faaaaaf67c1b8b4e9a9202e1b534dd2ec15536e1c2ea95953de6c1
7
- data.tar.gz: a1272514f9981c5784119b08e3adb871aa54c9c1d2c6557432856d50b9e776411663ea67a78566f29f6adc5cc79787729db73575d144a367299d194aa4b00d14
6
+ metadata.gz: 37e1be6cc50ae69cf56fe7e25b2aa8549cb4d5c265aaa20466eeba066ea75889c1c01899c831323a1546a55d8e61121460fa1ef8e5ef3178d770bcbe36efad04
7
+ data.tar.gz: 875ee9e1795d8c15b01f3489c6992be8f722d27aa071b316f4b3231f8be39c25f3375bad1e646e5350abcc238d6f5bb132783706753be04a51aac5ad95e26388
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1178
1
+ 3.0.1179
@@ -169,6 +169,38 @@ module TencentCloud
169
169
  end
170
170
  end
171
171
 
172
+ # 知识库文档表列信息
173
+ class ColumnInfo < TencentCloud::Common::AbstractModel
174
+ # @param Name: 列名称
175
+ # @type Name: String
176
+ # @param Type: 列类型:int, bigint, double, date, datetime, string,decimal
177
+ # @type Type: String
178
+ # @param Description: 列名称描述
179
+ # @type Description: String
180
+ # @param Index: 列索引
181
+ # @type Index: Integer
182
+ # @param OriginalName: 原始字段名称
183
+ # @type OriginalName: String
184
+
185
+ attr_accessor :Name, :Type, :Description, :Index, :OriginalName
186
+
187
+ def initialize(name=nil, type=nil, description=nil, index=nil, originalname=nil)
188
+ @Name = name
189
+ @Type = type
190
+ @Description = description
191
+ @Index = index
192
+ @OriginalName = originalname
193
+ end
194
+
195
+ def deserialize(params)
196
+ @Name = params['Name']
197
+ @Type = params['Type']
198
+ @Description = params['Description']
199
+ @Index = params['Index']
200
+ @OriginalName = params['OriginalName']
201
+ end
202
+ end
203
+
172
204
  # cos 文件信息
173
205
  class CosFileInfo < TencentCloud::Common::AbstractModel
174
206
  # @param FileName: 文件名称,包含后缀
@@ -309,6 +341,69 @@ module TencentCloud
309
341
  end
310
342
  end
311
343
 
344
+ # 知识库文件信息
345
+ class FileInfo < TencentCloud::Common::AbstractModel
346
+ # @param FileName: 文件名称
347
+ # @type FileName: String
348
+ # @param FileSize: 文件大小,字节
349
+ # @type FileSize: Float
350
+ # @param Type: 文件类型,0=文本,1=表格,默认0
351
+ # @type Type: Integer
352
+ # @param FileId: 文件ID
353
+ # @type FileId: String
354
+ # @param Status: 状态,0:数据处理中 1:可用 -1:错误
355
+ # @type Status: Integer
356
+ # @param CreateUser: 操作者
357
+ # @type CreateUser: String
358
+ # @param CreateTime: 创建时间
359
+ # @type CreateTime: String
360
+ # @param ChunkConfig: 分片策略
361
+ # @type ChunkConfig: :class:`Tencentcloud::Dataagent.v20250513.models.KnowledgeTaskConfig`
362
+ # @param Source: 文件来源0=unknow,1=user_cos,2=local
363
+ # @type Source: Integer
364
+ # @param FileUrl: 文件url
365
+ # @type FileUrl: String
366
+ # @param IsShowCase: 是否官方示例,0=否,1=是
367
+ # @type IsShowCase: Integer
368
+ # @param DocumentSummary: 文档摘要
369
+ # @type DocumentSummary: String
370
+
371
+ attr_accessor :FileName, :FileSize, :Type, :FileId, :Status, :CreateUser, :CreateTime, :ChunkConfig, :Source, :FileUrl, :IsShowCase, :DocumentSummary
372
+
373
+ def initialize(filename=nil, filesize=nil, type=nil, fileid=nil, status=nil, createuser=nil, createtime=nil, chunkconfig=nil, source=nil, fileurl=nil, isshowcase=nil, documentsummary=nil)
374
+ @FileName = filename
375
+ @FileSize = filesize
376
+ @Type = type
377
+ @FileId = fileid
378
+ @Status = status
379
+ @CreateUser = createuser
380
+ @CreateTime = createtime
381
+ @ChunkConfig = chunkconfig
382
+ @Source = source
383
+ @FileUrl = fileurl
384
+ @IsShowCase = isshowcase
385
+ @DocumentSummary = documentsummary
386
+ end
387
+
388
+ def deserialize(params)
389
+ @FileName = params['FileName']
390
+ @FileSize = params['FileSize']
391
+ @Type = params['Type']
392
+ @FileId = params['FileId']
393
+ @Status = params['Status']
394
+ @CreateUser = params['CreateUser']
395
+ @CreateTime = params['CreateTime']
396
+ unless params['ChunkConfig'].nil?
397
+ @ChunkConfig = KnowledgeTaskConfig.new
398
+ @ChunkConfig.deserialize(params['ChunkConfig'])
399
+ end
400
+ @Source = params['Source']
401
+ @FileUrl = params['FileUrl']
402
+ @IsShowCase = params['IsShowCase']
403
+ @DocumentSummary = params['DocumentSummary']
404
+ end
405
+ end
406
+
312
407
  # GetKnowledgeBaseFileList请求参数结构体
313
408
  class GetKnowledgeBaseFileListRequest < TencentCloud::Common::AbstractModel
314
409
  # @param InstanceId: 实例id
@@ -339,16 +434,31 @@ module TencentCloud
339
434
 
340
435
  # GetKnowledgeBaseFileList返回参数结构体
341
436
  class GetKnowledgeBaseFileListResponse < TencentCloud::Common::AbstractModel
437
+ # @param FileList: 文件信息列表
438
+ # @type FileList: Array
439
+ # @param Total: 文件信息总数
440
+ # @type Total: Integer
342
441
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
343
442
  # @type RequestId: String
344
443
 
345
- attr_accessor :RequestId
444
+ attr_accessor :FileList, :Total, :RequestId
346
445
 
347
- def initialize(requestid=nil)
446
+ def initialize(filelist=nil, total=nil, requestid=nil)
447
+ @FileList = filelist
448
+ @Total = total
348
449
  @RequestId = requestid
349
450
  end
350
451
 
351
452
  def deserialize(params)
453
+ unless params['FileList'].nil?
454
+ @FileList = []
455
+ params['FileList'].each do |i|
456
+ fileinfo_tmp = FileInfo.new
457
+ fileinfo_tmp.deserialize(i)
458
+ @FileList << fileinfo_tmp
459
+ end
460
+ end
461
+ @Total = params['Total']
352
462
  @RequestId = params['RequestId']
353
463
  end
354
464
  end
@@ -534,6 +644,58 @@ module TencentCloud
534
644
  end
535
645
  end
536
646
 
647
+ # 任务配置
648
+ class KnowledgeTaskConfig < TencentCloud::Common::AbstractModel
649
+ # @param ChunkType: 切片类型 0:自定义切片,1:智能切片
650
+ # @type ChunkType: Integer
651
+ # @param MaxChunkSize: /智能切片:最小值 1000,默认 4800 自定义切片:正整数即可,默认值 1000
652
+ # @type MaxChunkSize: Integer
653
+ # @param Delimiters: 切片分隔符,自定义切片使用:默认值为:["\n\n", "\n", "。", "!", "?", ",", ""]
654
+ # 注意:此字段可能返回 null,表示取不到有效值。
655
+ # @type Delimiters: Array
656
+ # @param ChunkOverlap: 自定义切片使用:默认0 可重叠字符长度
657
+ # @type ChunkOverlap: Integer
658
+ # @param Columns: 表格类文档解析
659
+ # @type Columns: Array
660
+ # @param Indexes: 带检索的索引列表
661
+ # @type Indexes: Array
662
+ # @param GenDocSummary: 0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1
663
+ # @type GenDocSummary: Integer
664
+ # @param GenParaSummary: 0:不生成段落摘要,1:生成段落概要。默认0
665
+ # @type GenParaSummary: Integer
666
+
667
+ attr_accessor :ChunkType, :MaxChunkSize, :Delimiters, :ChunkOverlap, :Columns, :Indexes, :GenDocSummary, :GenParaSummary
668
+
669
+ def initialize(chunktype=nil, maxchunksize=nil, delimiters=nil, chunkoverlap=nil, columns=nil, indexes=nil, gendocsummary=nil, genparasummary=nil)
670
+ @ChunkType = chunktype
671
+ @MaxChunkSize = maxchunksize
672
+ @Delimiters = delimiters
673
+ @ChunkOverlap = chunkoverlap
674
+ @Columns = columns
675
+ @Indexes = indexes
676
+ @GenDocSummary = gendocsummary
677
+ @GenParaSummary = genparasummary
678
+ end
679
+
680
+ def deserialize(params)
681
+ @ChunkType = params['ChunkType']
682
+ @MaxChunkSize = params['MaxChunkSize']
683
+ @Delimiters = params['Delimiters']
684
+ @ChunkOverlap = params['ChunkOverlap']
685
+ unless params['Columns'].nil?
686
+ @Columns = []
687
+ params['Columns'].each do |i|
688
+ columninfo_tmp = ColumnInfo.new
689
+ columninfo_tmp.deserialize(i)
690
+ @Columns << columninfo_tmp
691
+ end
692
+ end
693
+ @Indexes = params['Indexes']
694
+ @GenDocSummary = params['GenDocSummary']
695
+ @GenParaSummary = params['GenParaSummary']
696
+ end
697
+ end
698
+
537
699
  # ModifyChunk请求参数结构体
538
700
  class ModifyChunkRequest < TencentCloud::Common::AbstractModel
539
701
  # @param InstanceId: 实例ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dataagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1178
4
+ version: 3.0.1179
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-08 00:00:00.000000000 Z
11
+ date: 2025-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common