Class: TencentCloud::Tione::V20211111::MultiModalContent
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tione::V20211111::MultiModalContent
- Defined in:
- lib/v20211111/models.rb
Overview
多模态对话内容,支持图片与文字信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, text = nil, imageurl = nil) ⇒ MultiModalContent
constructor
A new instance of MultiModalContent.
Constructor Details
#initialize(type = nil, text = nil, imageurl = nil) ⇒ MultiModalContent
Returns a new instance of MultiModalContent.
6376 6377 6378 6379 6380 |
# File 'lib/v20211111/models.rb', line 6376 def initialize(type=nil, text=nil, imageurl=nil) @Type = type @Text = text @ImageUrl = imageurl end |
Instance Attribute Details
#ImageUrl ⇒ Object
6374 6375 6376 |
# File 'lib/v20211111/models.rb', line 6374 def ImageUrl @ImageUrl end |
#Text ⇒ Object
6374 6375 6376 |
# File 'lib/v20211111/models.rb', line 6374 def Text @Text end |
#Type ⇒ Object
6374 6375 6376 |
# File 'lib/v20211111/models.rb', line 6374 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
6382 6383 6384 6385 6386 6387 6388 6389 |
# File 'lib/v20211111/models.rb', line 6382 def deserialize(params) @Type = params['Type'] @Text = params['Text'] unless params['ImageUrl'].nil? @ImageUrl = ImageUrl.new @ImageUrl.deserialize(params['ImageUrl']) end end |