Class: TencentCloud::Hunyuan::V20230901::Message

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, contents = nil, toolcallid = nil, toolcalls = nil, fileids = nil, reasoningcontent = nil) ⇒ Message

Returns a new instance of Message.



1777
1778
1779
1780
1781
1782
1783
1784
1785
# File 'lib/v20230901/models.rb', line 1777

def initialize(role=nil, content=nil, contents=nil, toolcallid=nil, toolcalls=nil, fileids=nil, reasoningcontent=nil)
  @Role = role
  @Content = content
  @Contents = contents
  @ToolCallId = toolcallid
  @ToolCalls = toolcalls
  @FileIDs = fileids
  @ReasoningContent = reasoningcontent
end

Instance Attribute Details

#ContentObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:



1775
1776
1777
# File 'lib/v20230901/models.rb', line 1775

def Content
  @Content
end

#ContentsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:



1775
1776
1777
# File 'lib/v20230901/models.rb', line 1775

def Contents
  @Contents
end

#FileIDsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:



1775
1776
1777
# File 'lib/v20230901/models.rb', line 1775

def FileIDs
  @FileIDs
end

#ReasoningContentObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:



1775
1776
1777
# File 'lib/v20230901/models.rb', line 1775

def ReasoningContent
  @ReasoningContent
end

#RoleObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:



1775
1776
1777
# File 'lib/v20230901/models.rb', line 1775

def Role
  @Role
end

#ToolCallIdObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:



1775
1776
1777
# File 'lib/v20230901/models.rb', line 1775

def ToolCallId
  @ToolCallId
end

#ToolCallsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:



1775
1776
1777
# File 'lib/v20230901/models.rb', line 1775

def ToolCalls
  @ToolCalls
end

Instance Method Details

#deserialize(params) ⇒ Object



1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
# File 'lib/v20230901/models.rb', line 1787

def deserialize(params)
  @Role = params['Role']
  @Content = params['Content']
  unless params['Contents'].nil?
    @Contents = []
    params['Contents'].each do |i|
      content_tmp = Content.new
      content_tmp.deserialize(i)
      @Contents << content_tmp
    end
  end
  @ToolCallId = params['ToolCallId']
  unless params['ToolCalls'].nil?
    @ToolCalls = []
    params['ToolCalls'].each do |i|
      toolcall_tmp = ToolCall.new
      toolcall_tmp.deserialize(i)
      @ToolCalls << toolcall_tmp
    end
  end
  @FileIDs = params['FileIDs']
  @ReasoningContent = params['ReasoningContent']
end