tencentcloud-sdk-es 3.0.1125 → 3.0.1139

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/v20250101/models.rb +111 -17
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b02116368f3c42c49cc8469894910101a5b765e
4
- data.tar.gz: 5f64e8c26989529605cf56d178a68bf402f7b8cf
3
+ metadata.gz: 58bc18bdae5d125ab2a56ef94b6fd289a0cd3dfc
4
+ data.tar.gz: 4865eb52cfa8ae3b214a524c36130bc1a1bf6b0f
5
5
  SHA512:
6
- metadata.gz: 8e2d317bb067bcbbee50b5e4f466dba9a716bf9edb33545c98846d4769d9ba0eb9f4e00a0f22a4e9de33d91f7faa947e07e35cbbbf77dec604788f90cbf41106
7
- data.tar.gz: 0be9362cd42604ac34626a9af7c600da4b90689f336ec8884e22ad108790d5bc1b929be799ca1e1f33333c3692852214c72471c7ea3a353cbf441e28883579d1
6
+ metadata.gz: a9140919bba597d1cf08fb60382ee5e6cc35d7a09046030df696326ad3b42028eb6194e9745e574517156eee7cff17d9f448a5923881b0b3964a2d77b8a7c2e0
7
+ data.tar.gz: 6d0c2df17280c8ea92c8a87825d20495b9ba29a790a3d4cec437b7c256bc1aa14c7323369b381bba96b60e1654ce6eed128818f6213f08e1fbf0722b2512e1cd
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1125
1
+ 3.0.1139
@@ -332,12 +332,20 @@ module TencentCloud
332
332
 
333
333
  # 文档信息
334
334
  class Document < TencentCloud::Common::AbstractModel
335
- # @param FileType: 文件类型。
336
- # 支持的文件类型: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
337
- # 支持的文件大小:
338
- # - PDF、DOC、DOCX、PPT、PPTX 支持100M
339
- # - MD、TXT、XLS、XLSX、CSV 支持10M
340
- # - 其他支持20M
335
+ # @param FileType: 支持的文件类型:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、
336
+ # XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、
337
+ # IM、PCX、PPM、TIFF、XBM、HEIF、JP2
338
+
339
+ # 文档解析支持的文件大小:
340
+ # -PDF、DOC、DOCX、PPT、PPTX支持100M
341
+ # -MD、TXT、XLS、XLSX、CSV支特10M
342
+ # -其他支持20M
343
+
344
+ # 文本切片支持的文件大小:
345
+ # -PDF最大300M
346
+ # -D0CX、D0C、PPT、PPTX最大200M
347
+ # -TXT、MD最大10M
348
+ # -其他最大20M
341
349
  # @type FileType: String
342
350
  # @param FileUrl: 文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,使用腾讯云COS 文件地址。
343
351
  # @type FileUrl: String
@@ -587,21 +595,36 @@ module TencentCloud
587
595
 
588
596
  # 会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制。
589
597
  class Message < TencentCloud::Common::AbstractModel
590
- # @param Role: 角色, system', ‘user','assistant'或者'tool', 在message中, 除了system,其他必须是user与assistant交替(一问一答)
598
+ # @param Role: 角色,可选值包括 systemuserassistanttool
591
599
  # @type Role: String
592
600
  # @param Content: 具体文本内容
593
601
  # @type Content: String
602
+ # @param ToolCallId: 当role为tool时传入,标识具体的函数调用
603
+ # @type ToolCallId: String
604
+ # @param ToolCalls: 模型生成的工具调用
605
+ # @type ToolCalls: Array
594
606
 
595
- attr_accessor :Role, :Content
607
+ attr_accessor :Role, :Content, :ToolCallId, :ToolCalls
596
608
 
597
- def initialize(role=nil, content=nil)
609
+ def initialize(role=nil, content=nil, toolcallid=nil, toolcalls=nil)
598
610
  @Role = role
599
611
  @Content = content
612
+ @ToolCallId = toolcallid
613
+ @ToolCalls = toolcalls
600
614
  end
601
615
 
602
616
  def deserialize(params)
603
617
  @Role = params['Role']
604
618
  @Content = params['Content']
619
+ @ToolCallId = params['ToolCallId']
620
+ unless params['ToolCalls'].nil?
621
+ @ToolCalls = []
622
+ params['ToolCalls'].each do |i|
623
+ toolcall_tmp = ToolCall.new
624
+ toolcall_tmp.deserialize(i)
625
+ @ToolCalls << toolcall_tmp
626
+ end
627
+ end
605
628
  end
606
629
  end
607
630
 
@@ -629,19 +652,30 @@ module TencentCloud
629
652
  # @type Content: String
630
653
  # @param ReasoningContent: 推理内容
631
654
  # @type ReasoningContent: String
655
+ # @param ToolCalls: 模型生成的工具调用
656
+ # @type ToolCalls: Array
632
657
 
633
- attr_accessor :Role, :Content, :ReasoningContent
658
+ attr_accessor :Role, :Content, :ReasoningContent, :ToolCalls
634
659
 
635
- def initialize(role=nil, content=nil, reasoningcontent=nil)
660
+ def initialize(role=nil, content=nil, reasoningcontent=nil, toolcalls=nil)
636
661
  @Role = role
637
662
  @Content = content
638
663
  @ReasoningContent = reasoningcontent
664
+ @ToolCalls = toolcalls
639
665
  end
640
666
 
641
667
  def deserialize(params)
642
668
  @Role = params['Role']
643
669
  @Content = params['Content']
644
670
  @ReasoningContent = params['ReasoningContent']
671
+ unless params['ToolCalls'].nil?
672
+ @ToolCalls = []
673
+ params['ToolCalls'].each do |i|
674
+ toolcall_tmp = ToolCall.new
675
+ toolcall_tmp.deserialize(i)
676
+ @ToolCalls << toolcall_tmp
677
+ end
678
+ end
645
679
  end
646
680
  end
647
681
 
@@ -663,18 +697,27 @@ module TencentCloud
663
697
 
664
698
  # 文档信息
665
699
  class ParseDocument < TencentCloud::Common::AbstractModel
666
- # @param FileType: 文件类型。
667
- # 支持的文件类型: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
668
- # 支持的文件大小:
669
- # - PDF、DOC、DOCX、PPT、PPTX 支持100M
670
- # - MD、TXT、XLS、XLSX、CSV 支持10M
671
- # - 其他支持20M
700
+ # @param FileType: 支持的文件类型:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、
701
+ # XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、
702
+ # IM、PCX、PPM、TIFF、XBM、HEIF、JP2
703
+
704
+ # 文档解析支持的文件大小:
705
+ # -PDF、DOC、DOCX、PPT、PPTX支持100M
706
+ # -MD、TXT、XLS、XLSX、CSV支特10M
707
+ # -其他支持20M
708
+
709
+ # 文本切片支持的文件大小:
710
+ # -PDF最大300M
711
+ # -D0CX、D0C、PPT、PPTX最大200M
712
+ # -TXT、MD最大10M
713
+ # -其他最大20M
672
714
  # @type FileType: String
673
715
  # @param FileUrl: 文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,使用腾讯云COS 文件地址。
674
716
  # @type FileUrl: String
675
717
  # @param FileContent: 文件的 base64 值,携带 MineType前缀信息。编码后的后的文件不超过 10M。
676
718
  # 支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过3秒。
677
719
  # 支持的图片像素:单边介于20-10000px之间。
720
+ # 文件的 FileUrl、FileContent必须提供一个,如果都提供只使用 FileUrl。
678
721
  # @type FileContent: String
679
722
  # @param DocumentParseConfig: 文档解析配置
680
723
  # @type DocumentParseConfig: :class:`Tencentcloud::Es.v20250101.models.DocumentParseConfig`
@@ -925,6 +968,57 @@ module TencentCloud
925
968
  end
926
969
  end
927
970
 
971
+ # 模型生成的工具调用
972
+ class ToolCall < TencentCloud::Common::AbstractModel
973
+ # @param Id: 工具调用id
974
+ # @type Id: String
975
+ # @param Type: 工具调用类型,当前只支持function
976
+ # @type Type: String
977
+ # @param Function: 具体的function调用
978
+ # @type Function: :class:`Tencentcloud::Es.v20250101.models.ToolCallFunction`
979
+ # @param Index: 索引值
980
+ # @type Index: Integer
981
+
982
+ attr_accessor :Id, :Type, :Function, :Index
983
+
984
+ def initialize(id=nil, type=nil, function=nil, index=nil)
985
+ @Id = id
986
+ @Type = type
987
+ @Function = function
988
+ @Index = index
989
+ end
990
+
991
+ def deserialize(params)
992
+ @Id = params['Id']
993
+ @Type = params['Type']
994
+ unless params['Function'].nil?
995
+ @Function = ToolCallFunction.new
996
+ @Function.deserialize(params['Function'])
997
+ end
998
+ @Index = params['Index']
999
+ end
1000
+ end
1001
+
1002
+ # 具体的function调用
1003
+ class ToolCallFunction < TencentCloud::Common::AbstractModel
1004
+ # @param Name: function名称
1005
+ # @type Name: String
1006
+ # @param Arguments: function参数,一般为json字符串
1007
+ # @type Arguments: String
1008
+
1009
+ attr_accessor :Name, :Arguments
1010
+
1011
+ def initialize(name=nil, arguments=nil)
1012
+ @Name = name
1013
+ @Arguments = arguments
1014
+ end
1015
+
1016
+ def deserialize(params)
1017
+ @Name = params['Name']
1018
+ @Arguments = params['Arguments']
1019
+ end
1020
+ end
1021
+
928
1022
  # token消耗总数
929
1023
  class Usage < TencentCloud::Common::AbstractModel
930
1024
  # @param TotalTokens: tokens总数
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-es
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1125
4
+ version: 3.0.1139
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-08-18 00:00:00.000000000 Z
11
+ date: 2025-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -34,10 +34,10 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - lib/tencentcloud-sdk-es.rb
37
- - lib/v20250101/client.rb
38
37
  - lib/v20250101/models.rb
39
- - lib/v20180416/client.rb
38
+ - lib/v20250101/client.rb
40
39
  - lib/v20180416/models.rb
40
+ - lib/v20180416/client.rb
41
41
  - lib/VERSION
42
42
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
43
43
  licenses: