tencentcloud-sdk-dataagent 3.0.1178 → 3.0.1185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f4007066a7aa46544927b07e15c0d882cbd9306
4
- data.tar.gz: a0ec5b320c0872818252cbcce99f24154c6435ac
3
+ metadata.gz: 22f900b78a9a51be698a266e0503ee56b14b64ef
4
+ data.tar.gz: 2de10865510b0835973402a3a55adda08d6eac17
5
5
  SHA512:
6
- metadata.gz: 0ec3baf59e039797dfb00e81ca7b73d7ea08a3594c6d613441c270b5c23241ee5e89e20445faaaaaf67c1b8b4e9a9202e1b534dd2ec15536e1c2ea95953de6c1
7
- data.tar.gz: a1272514f9981c5784119b08e3adb871aa54c9c1d2c6557432856d50b9e776411663ea67a78566f29f6adc5cc79787729db73575d144a367299d194aa4b00d14
6
+ metadata.gz: 3322cba2542f20b663c34b07bc7207a8b0a44e5848f2d1d0dfa02e8535b74b0795d3360e84f711a5b90ff338253ea7638be52a7e7fc15ada1ac16acd0c25d954
7
+ data.tar.gz: 6febac8a5631f666ab7a28159a68f98e30e6cbbee05f02aa2fa6cd2b9c06dbd2105ce30a4a516450dae3315cca9107e8ec96b280940fd6cbd41fe5c787027991
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1178
1
+ 3.0.1185
@@ -149,6 +149,30 @@ module TencentCloud
149
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
150
  end
151
151
 
152
+ # 根据知识库id查询jobs 列表
153
+
154
+ # @param request: Request instance for GetJobsByKnowledgeBaseId.
155
+ # @type request: :class:`Tencentcloud::dataagent::V20250513::GetJobsByKnowledgeBaseIdRequest`
156
+ # @rtype: :class:`Tencentcloud::dataagent::V20250513::GetJobsByKnowledgeBaseIdResponse`
157
+ def GetJobsByKnowledgeBaseId(request)
158
+ body = send_request('GetJobsByKnowledgeBaseId', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = GetJobsByKnowledgeBaseIdResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
152
176
  # 获取知识库文件信息列表
153
177
 
154
178
  # @param request: Request instance for GetKnowledgeBaseFileList.
@@ -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,116 @@ 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
+
407
+ # GetJobsByKnowledgeBaseId请求参数结构体
408
+ class GetJobsByKnowledgeBaseIdRequest < TencentCloud::Common::AbstractModel
409
+ # @param InstanceId: 实例ID
410
+ # @type InstanceId: String
411
+ # @param KnowledgeBaseId: 知识库id
412
+ # @type KnowledgeBaseId: String
413
+
414
+ attr_accessor :InstanceId, :KnowledgeBaseId
415
+
416
+ def initialize(instanceid=nil, knowledgebaseid=nil)
417
+ @InstanceId = instanceid
418
+ @KnowledgeBaseId = knowledgebaseid
419
+ end
420
+
421
+ def deserialize(params)
422
+ @InstanceId = params['InstanceId']
423
+ @KnowledgeBaseId = params['KnowledgeBaseId']
424
+ end
425
+ end
426
+
427
+ # GetJobsByKnowledgeBaseId返回参数结构体
428
+ class GetJobsByKnowledgeBaseIdResponse < TencentCloud::Common::AbstractModel
429
+ # @param Jobs: 任务列表详情
430
+ # @type Jobs: Array
431
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
432
+ # @type RequestId: String
433
+
434
+ attr_accessor :Jobs, :RequestId
435
+
436
+ def initialize(jobs=nil, requestid=nil)
437
+ @Jobs = jobs
438
+ @RequestId = requestid
439
+ end
440
+
441
+ def deserialize(params)
442
+ unless params['Jobs'].nil?
443
+ @Jobs = []
444
+ params['Jobs'].each do |i|
445
+ uploadjob_tmp = UploadJob.new
446
+ uploadjob_tmp.deserialize(i)
447
+ @Jobs << uploadjob_tmp
448
+ end
449
+ end
450
+ @RequestId = params['RequestId']
451
+ end
452
+ end
453
+
312
454
  # GetKnowledgeBaseFileList请求参数结构体
313
455
  class GetKnowledgeBaseFileListRequest < TencentCloud::Common::AbstractModel
314
456
  # @param InstanceId: 实例id
@@ -339,16 +481,31 @@ module TencentCloud
339
481
 
340
482
  # GetKnowledgeBaseFileList返回参数结构体
341
483
  class GetKnowledgeBaseFileListResponse < TencentCloud::Common::AbstractModel
484
+ # @param FileList: 文件信息列表
485
+ # @type FileList: Array
486
+ # @param Total: 文件信息总数
487
+ # @type Total: Integer
342
488
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
343
489
  # @type RequestId: String
344
490
 
345
- attr_accessor :RequestId
491
+ attr_accessor :FileList, :Total, :RequestId
346
492
 
347
- def initialize(requestid=nil)
493
+ def initialize(filelist=nil, total=nil, requestid=nil)
494
+ @FileList = filelist
495
+ @Total = total
348
496
  @RequestId = requestid
349
497
  end
350
498
 
351
499
  def deserialize(params)
500
+ unless params['FileList'].nil?
501
+ @FileList = []
502
+ params['FileList'].each do |i|
503
+ fileinfo_tmp = FileInfo.new
504
+ fileinfo_tmp.deserialize(i)
505
+ @FileList << fileinfo_tmp
506
+ end
507
+ end
508
+ @Total = params['Total']
352
509
  @RequestId = params['RequestId']
353
510
  end
354
511
  end
@@ -534,6 +691,58 @@ module TencentCloud
534
691
  end
535
692
  end
536
693
 
694
+ # 任务配置
695
+ class KnowledgeTaskConfig < TencentCloud::Common::AbstractModel
696
+ # @param ChunkType: 切片类型 0:自定义切片,1:智能切片
697
+ # @type ChunkType: Integer
698
+ # @param MaxChunkSize: /智能切片:最小值 1000,默认 4800 自定义切片:正整数即可,默认值 1000
699
+ # @type MaxChunkSize: Integer
700
+ # @param Delimiters: 切片分隔符,自定义切片使用:默认值为:["\n\n", "\n", "。", "!", "?", ",", ""]
701
+ # 注意:此字段可能返回 null,表示取不到有效值。
702
+ # @type Delimiters: Array
703
+ # @param ChunkOverlap: 自定义切片使用:默认0 可重叠字符长度
704
+ # @type ChunkOverlap: Integer
705
+ # @param Columns: 表格类文档解析
706
+ # @type Columns: Array
707
+ # @param Indexes: 带检索的索引列表
708
+ # @type Indexes: Array
709
+ # @param GenDocSummary: 0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1
710
+ # @type GenDocSummary: Integer
711
+ # @param GenParaSummary: 0:不生成段落摘要,1:生成段落概要。默认0
712
+ # @type GenParaSummary: Integer
713
+
714
+ attr_accessor :ChunkType, :MaxChunkSize, :Delimiters, :ChunkOverlap, :Columns, :Indexes, :GenDocSummary, :GenParaSummary
715
+
716
+ def initialize(chunktype=nil, maxchunksize=nil, delimiters=nil, chunkoverlap=nil, columns=nil, indexes=nil, gendocsummary=nil, genparasummary=nil)
717
+ @ChunkType = chunktype
718
+ @MaxChunkSize = maxchunksize
719
+ @Delimiters = delimiters
720
+ @ChunkOverlap = chunkoverlap
721
+ @Columns = columns
722
+ @Indexes = indexes
723
+ @GenDocSummary = gendocsummary
724
+ @GenParaSummary = genparasummary
725
+ end
726
+
727
+ def deserialize(params)
728
+ @ChunkType = params['ChunkType']
729
+ @MaxChunkSize = params['MaxChunkSize']
730
+ @Delimiters = params['Delimiters']
731
+ @ChunkOverlap = params['ChunkOverlap']
732
+ unless params['Columns'].nil?
733
+ @Columns = []
734
+ params['Columns'].each do |i|
735
+ columninfo_tmp = ColumnInfo.new
736
+ columninfo_tmp.deserialize(i)
737
+ @Columns << columninfo_tmp
738
+ end
739
+ end
740
+ @Indexes = params['Indexes']
741
+ @GenDocSummary = params['GenDocSummary']
742
+ @GenParaSummary = params['GenParaSummary']
743
+ end
744
+ end
745
+
537
746
  # ModifyChunk请求参数结构体
538
747
  class ModifyChunkRequest < TencentCloud::Common::AbstractModel
539
748
  # @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.1185
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-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,8 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20250513/models.rb
37
36
  - lib/v20250513/client.rb
37
+ - lib/v20250513/models.rb
38
38
  - lib/tencentcloud-sdk-dataagent.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby