tencentcloud-sdk-dataagent 3.0.1177 → 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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20250513/client.rb +24 -0
- data/lib/v20250513/models.rb +206 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 407720df11a5a5a5468a9a56cdb5a84c9f0d8bb1
|
|
4
|
+
data.tar.gz: 83313692f2b958160d9cfaeb84f665b4a353f4cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37e1be6cc50ae69cf56fe7e25b2aa8549cb4d5c265aaa20466eeba066ea75889c1c01899c831323a1546a55d8e61121460fa1ef8e5ef3178d770bcbe36efad04
|
|
7
|
+
data.tar.gz: 875ee9e1795d8c15b01f3489c6992be8f722d27aa071b316f4b3231f8be39c25f3375bad1e646e5350abcc238d6f5bb132783706753be04a51aac5ad95e26388
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1179
|
data/lib/v20250513/client.rb
CHANGED
|
@@ -149,6 +149,30 @@ module TencentCloud
|
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
+
# 获取知识库文件信息列表
|
|
153
|
+
|
|
154
|
+
# @param request: Request instance for GetKnowledgeBaseFileList.
|
|
155
|
+
# @type request: :class:`Tencentcloud::dataagent::V20250513::GetKnowledgeBaseFileListRequest`
|
|
156
|
+
# @rtype: :class:`Tencentcloud::dataagent::V20250513::GetKnowledgeBaseFileListResponse`
|
|
157
|
+
def GetKnowledgeBaseFileList(request)
|
|
158
|
+
body = send_request('GetKnowledgeBaseFileList', request.serialize)
|
|
159
|
+
response = JSON.parse(body)
|
|
160
|
+
if response['Response'].key?('Error') == false
|
|
161
|
+
model = GetKnowledgeBaseFileListResponse.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 GetKnowledgeBaseList.
|
data/lib/v20250513/models.rb
CHANGED
|
@@ -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,128 @@ 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
|
+
# GetKnowledgeBaseFileList请求参数结构体
|
|
408
|
+
class GetKnowledgeBaseFileListRequest < TencentCloud::Common::AbstractModel
|
|
409
|
+
# @param InstanceId: 实例id
|
|
410
|
+
# @type InstanceId: String
|
|
411
|
+
# @param Page: 默认 1 表示第一页,可以不填
|
|
412
|
+
# @type Page: Integer
|
|
413
|
+
# @param PageSize: 默认 10 一页展示 10 条,可以不填
|
|
414
|
+
# @type PageSize: Integer
|
|
415
|
+
# @param KnowledgeBaseId: 知识库id
|
|
416
|
+
# @type KnowledgeBaseId: String
|
|
417
|
+
|
|
418
|
+
attr_accessor :InstanceId, :Page, :PageSize, :KnowledgeBaseId
|
|
419
|
+
|
|
420
|
+
def initialize(instanceid=nil, page=nil, pagesize=nil, knowledgebaseid=nil)
|
|
421
|
+
@InstanceId = instanceid
|
|
422
|
+
@Page = page
|
|
423
|
+
@PageSize = pagesize
|
|
424
|
+
@KnowledgeBaseId = knowledgebaseid
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
def deserialize(params)
|
|
428
|
+
@InstanceId = params['InstanceId']
|
|
429
|
+
@Page = params['Page']
|
|
430
|
+
@PageSize = params['PageSize']
|
|
431
|
+
@KnowledgeBaseId = params['KnowledgeBaseId']
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
# GetKnowledgeBaseFileList返回参数结构体
|
|
436
|
+
class GetKnowledgeBaseFileListResponse < TencentCloud::Common::AbstractModel
|
|
437
|
+
# @param FileList: 文件信息列表
|
|
438
|
+
# @type FileList: Array
|
|
439
|
+
# @param Total: 文件信息总数
|
|
440
|
+
# @type Total: Integer
|
|
441
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
442
|
+
# @type RequestId: String
|
|
443
|
+
|
|
444
|
+
attr_accessor :FileList, :Total, :RequestId
|
|
445
|
+
|
|
446
|
+
def initialize(filelist=nil, total=nil, requestid=nil)
|
|
447
|
+
@FileList = filelist
|
|
448
|
+
@Total = total
|
|
449
|
+
@RequestId = requestid
|
|
450
|
+
end
|
|
451
|
+
|
|
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']
|
|
462
|
+
@RequestId = params['RequestId']
|
|
463
|
+
end
|
|
464
|
+
end
|
|
465
|
+
|
|
312
466
|
# GetKnowledgeBaseList请求参数结构体
|
|
313
467
|
class GetKnowledgeBaseListRequest < TencentCloud::Common::AbstractModel
|
|
314
468
|
# @param InstanceId: 实例id
|
|
@@ -490,6 +644,58 @@ module TencentCloud
|
|
|
490
644
|
end
|
|
491
645
|
end
|
|
492
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
|
+
|
|
493
699
|
# ModifyChunk请求参数结构体
|
|
494
700
|
class ModifyChunkRequest < TencentCloud::Common::AbstractModel
|
|
495
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.
|
|
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-
|
|
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
|
|
@@ -33,8 +33,8 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/v20250513/client.rb
|
|
37
36
|
- lib/v20250513/models.rb
|
|
37
|
+
- lib/v20250513/client.rb
|
|
38
38
|
- lib/tencentcloud-sdk-dataagent.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|