tencentcloud-sdk-lkeap 3.0.1049 → 3.0.1051

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/v20240522/models.rb +69 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ada2713b564becd2ffd16547a93e3fc027b279d
4
- data.tar.gz: ebf79bc7bebfdf6013390526a6e5530e0aa0f0a2
3
+ metadata.gz: 93058d2ad7dd67ac73c7fbf5639268d83d2ede84
4
+ data.tar.gz: 32cace015b31ccb473d9dfdd180ed75829ecd71a
5
5
  SHA512:
6
- metadata.gz: 56d0ffd0b020bef8e1e03889182187955a6684e2724c8ace796ae66c2c895cede8932451ac70e80cce811ea191ad6f5da40f588f6478dc55b3e13090b556d6c2
7
- data.tar.gz: 588b889dc70f624e99cc358eb61582aeff4ce643fce625da8ed871e243bbf7800ff66d575a83c52c8e62bc040605c7632671aedebdc389da17d5c64e950242ff
6
+ metadata.gz: 359dd1b5dfb54ee0e788d8a18f910894daffd447c40d92c9112012d7a2f7bb85556c3d0d410c9b7cb9ae06d2d048a09d0a1e9c047c99d3fb2c46d28d47553f2d
7
+ data.tar.gz: 24997ab8dbafe687483885615cab71fd734f69c25edc3a0e427c99be9f732bc11503fb6e7188886d1eb91802df0d2a9e50494f73fa5516f68a2792ecedf2545f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1049
1
+ 3.0.1051
@@ -116,15 +116,18 @@ module TencentCloud
116
116
  # @type Temperature: Float
117
117
  # @param MaxTokens: 最大生成的token数量,默认为4096,最大可设置为16384
118
118
  # @type MaxTokens: Integer
119
+ # @param EnableSearch: 是否启用联网搜索
120
+ # @type EnableSearch: Boolean
119
121
 
120
- attr_accessor :Model, :Messages, :Stream, :Temperature, :MaxTokens
122
+ attr_accessor :Model, :Messages, :Stream, :Temperature, :MaxTokens, :EnableSearch
121
123
 
122
- def initialize(model=nil, messages=nil, stream=nil, temperature=nil, maxtokens=nil)
124
+ def initialize(model=nil, messages=nil, stream=nil, temperature=nil, maxtokens=nil, enablesearch=nil)
123
125
  @Model = model
124
126
  @Messages = messages
125
127
  @Stream = stream
126
128
  @Temperature = temperature
127
129
  @MaxTokens = maxtokens
130
+ @EnableSearch = enablesearch
128
131
  end
129
132
 
130
133
  def deserialize(params)
@@ -140,6 +143,7 @@ module TencentCloud
140
143
  @Stream = params['Stream']
141
144
  @Temperature = params['Temperature']
142
145
  @MaxTokens = params['MaxTokens']
146
+ @EnableSearch = params['EnableSearch']
143
147
  end
144
148
  end
145
149
 
@@ -915,22 +919,30 @@ module TencentCloud
915
919
  # @type TotalToken: Integer
916
920
  # @param TotalTokens: 文档拆分任务消耗的总token数
917
921
  # @type TotalTokens: Integer
922
+ # @param SplitTokens: 拆分消耗的token数
923
+ # @type SplitTokens: Integer
924
+ # @param MllmTokens: mllm消耗的token数
925
+ # @type MllmTokens: Integer
918
926
 
919
- attr_accessor :PageNumber, :TotalToken, :TotalTokens
927
+ attr_accessor :PageNumber, :TotalToken, :TotalTokens, :SplitTokens, :MllmTokens
920
928
  extend Gem::Deprecate
921
929
  deprecate :TotalToken, :none, 2025, 4
922
930
  deprecate :TotalToken=, :none, 2025, 4
923
931
 
924
- def initialize(pagenumber=nil, totaltoken=nil, totaltokens=nil)
932
+ def initialize(pagenumber=nil, totaltoken=nil, totaltokens=nil, splittokens=nil, mllmtokens=nil)
925
933
  @PageNumber = pagenumber
926
934
  @TotalToken = totaltoken
927
935
  @TotalTokens = totaltokens
936
+ @SplitTokens = splittokens
937
+ @MllmTokens = mllmtokens
928
938
  end
929
939
 
930
940
  def deserialize(params)
931
941
  @PageNumber = params['PageNumber']
932
942
  @TotalToken = params['TotalToken']
933
943
  @TotalTokens = params['TotalTokens']
944
+ @SplitTokens = params['SplitTokens']
945
+ @MllmTokens = params['MllmTokens']
934
946
  end
935
947
  end
936
948
 
@@ -1411,19 +1423,30 @@ module TencentCloud
1411
1423
  # @param ReasoningContent: 思维链内容。
1412
1424
  # ReasoningConent参数仅支持出参,且只有deepseek-r1模型会返回。
1413
1425
  # @type ReasoningContent: String
1426
+ # @param SearchResults: 搜索结果
1427
+ # @type SearchResults: Array
1414
1428
 
1415
- attr_accessor :Role, :Content, :ReasoningContent
1429
+ attr_accessor :Role, :Content, :ReasoningContent, :SearchResults
1416
1430
 
1417
- def initialize(role=nil, content=nil, reasoningcontent=nil)
1431
+ def initialize(role=nil, content=nil, reasoningcontent=nil, searchresults=nil)
1418
1432
  @Role = role
1419
1433
  @Content = content
1420
1434
  @ReasoningContent = reasoningcontent
1435
+ @SearchResults = searchresults
1421
1436
  end
1422
1437
 
1423
1438
  def deserialize(params)
1424
1439
  @Role = params['Role']
1425
1440
  @Content = params['Content']
1426
1441
  @ReasoningContent = params['ReasoningContent']
1442
+ unless params['SearchResults'].nil?
1443
+ @SearchResults = []
1444
+ params['SearchResults'].each do |i|
1445
+ searchresult_tmp = SearchResult.new
1446
+ searchresult_tmp.deserialize(i)
1447
+ @SearchResults << searchresult_tmp
1448
+ end
1449
+ end
1427
1450
  end
1428
1451
  end
1429
1452
 
@@ -2001,6 +2024,46 @@ module TencentCloud
2001
2024
  end
2002
2025
  end
2003
2026
 
2027
+ # 搜索结果
2028
+ class SearchResult < TencentCloud::Common::AbstractModel
2029
+ # @param Index: 索引
2030
+ # @type Index: Integer
2031
+ # @param Url: 链接地址
2032
+ # @type Url: String
2033
+ # @param Name: 标题
2034
+ # @type Name: String
2035
+ # @param Snippet: 摘要
2036
+ # @type Snippet: String
2037
+ # @param Icon: 图标
2038
+ # @type Icon: String
2039
+ # @param Site: 站点
2040
+ # @type Site: String
2041
+ # @param PublishedTime: 1740412800
2042
+ # @type PublishedTime: Integer
2043
+
2044
+ attr_accessor :Index, :Url, :Name, :Snippet, :Icon, :Site, :PublishedTime
2045
+
2046
+ def initialize(index=nil, url=nil, name=nil, snippet=nil, icon=nil, site=nil, publishedtime=nil)
2047
+ @Index = index
2048
+ @Url = url
2049
+ @Name = name
2050
+ @Snippet = snippet
2051
+ @Icon = icon
2052
+ @Site = site
2053
+ @PublishedTime = publishedtime
2054
+ end
2055
+
2056
+ def deserialize(params)
2057
+ @Index = params['Index']
2058
+ @Url = params['Url']
2059
+ @Name = params['Name']
2060
+ @Snippet = params['Snippet']
2061
+ @Icon = params['Icon']
2062
+ @Site = params['Site']
2063
+ @PublishedTime = params['PublishedTime']
2064
+ end
2065
+ end
2066
+
2004
2067
  # 分段配置
2005
2068
  class SegmentationConfig < TencentCloud::Common::AbstractModel
2006
2069
  # @param MaxChunkSize: 最大分片长度
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-lkeap
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1049
4
+ version: 3.0.1051
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-04-27 00:00:00.000000000 Z
11
+ date: 2025-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common