Class: TencentCloud::Hunyuan::V20230901::WebSearchOptions
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Hunyuan::V20230901::WebSearchOptions
- Defined in:
- lib/v20230901/models.rb
Overview
知识注入相关的参数信息
Instance Attribute Summary collapse
- #EnableImage ⇒ Object
- #EnableMusic ⇒ Object
- #Knowledge ⇒ Object
- #Processes ⇒ Object
- #UserLocation ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(knowledge = nil, userlocation = nil, processes = nil, enableimage = nil, enablemusic = nil) ⇒ WebSearchOptions
constructor
A new instance of WebSearchOptions.
Constructor Details
#initialize(knowledge = nil, userlocation = nil, processes = nil, enableimage = nil, enablemusic = nil) ⇒ WebSearchOptions
Returns a new instance of WebSearchOptions.
3185 3186 3187 3188 3189 3190 3191 |
# File 'lib/v20230901/models.rb', line 3185 def initialize(knowledge=nil, userlocation=nil, processes=nil, enableimage=nil, enablemusic=nil) @Knowledge = knowledge @UserLocation = userlocation @Processes = processes @EnableImage = enableimage @EnableMusic = enablemusic end |
Instance Attribute Details
#EnableImage ⇒ Object
3183 3184 3185 |
# File 'lib/v20230901/models.rb', line 3183 def EnableImage @EnableImage end |
#EnableMusic ⇒ Object
3183 3184 3185 |
# File 'lib/v20230901/models.rb', line 3183 def EnableMusic @EnableMusic end |
#Knowledge ⇒ Object
3183 3184 3185 |
# File 'lib/v20230901/models.rb', line 3183 def Knowledge @Knowledge end |
#Processes ⇒ Object
3183 3184 3185 |
# File 'lib/v20230901/models.rb', line 3183 def Processes @Processes end |
#UserLocation ⇒ Object
3183 3184 3185 |
# File 'lib/v20230901/models.rb', line 3183 def UserLocation @UserLocation end |
Instance Method Details
#deserialize(params) ⇒ Object
3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 |
# File 'lib/v20230901/models.rb', line 3193 def deserialize(params) unless params['Knowledge'].nil? @Knowledge = [] params['Knowledge'].each do |i| knowledge_tmp = Knowledge.new knowledge_tmp.deserialize(i) @Knowledge << knowledge_tmp end end unless params['UserLocation'].nil? @UserLocation = UserLocation.new @UserLocation.deserialize(params['UserLocation']) end @Processes = params['Processes'] @EnableImage = params['EnableImage'] @EnableMusic = params['EnableMusic'] end |