Class: TencentCloud::Hunyuan::V20230901::TranslationMessage

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230901/models.rb

Overview

翻译接口会话内容

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role = nil, content = nil) ⇒ TranslationMessage

Returns a new instance of TranslationMessage.



3069
3070
3071
3072
# File 'lib/v20230901/models.rb', line 3069

def initialize(role=nil, content=nil)
  @Role = role
  @Content = content
end

Instance Attribute Details

#ContentObject

Parameters:

  • Role:

    角色,可选值包括 system、user、assistant、 tool。

  • Content:

    文本内容



3067
3068
3069
# File 'lib/v20230901/models.rb', line 3067

def Content
  @Content
end

#RoleObject

Parameters:

  • Role:

    角色,可选值包括 system、user、assistant、 tool。

  • Content:

    文本内容



3067
3068
3069
# File 'lib/v20230901/models.rb', line 3067

def Role
  @Role
end

Instance Method Details

#deserialize(params) ⇒ Object



3074
3075
3076
3077
# File 'lib/v20230901/models.rb', line 3074

def deserialize(params)
  @Role = params['Role']
  @Content = params['Content']
end