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.
6055 6056 6057 6058 6059 |
# File 'lib/v20211111/models.rb', line 6055 def initialize(type=nil, text=nil, imageurl=nil) @Type = type @Text = text @ImageUrl = imageurl end |
Instance Attribute Details
#ImageUrl ⇒ Object
6053 6054 6055 |
# File 'lib/v20211111/models.rb', line 6053 def ImageUrl @ImageUrl end |
#Text ⇒ Object
6053 6054 6055 |
# File 'lib/v20211111/models.rb', line 6053 def Text @Text end |
#Type ⇒ Object
6053 6054 6055 |
# File 'lib/v20211111/models.rb', line 6053 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
6061 6062 6063 6064 6065 6066 6067 6068 |
# File 'lib/v20211111/models.rb', line 6061 def deserialize(params) @Type = params['Type'] @Text = params['Text'] unless params['ImageUrl'].nil? @ImageUrl = ImageUrl.new @ImageUrl.deserialize(params['ImageUrl']) end end |