Class: TencentCloud::Hunyuan::V20230901::Message
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Hunyuan::V20230901::Message
- Defined in:
- lib/v20230901/models.rb
Overview
会话内容
Instance Attribute Summary collapse
-
#Content ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Contents ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#FileIDs ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#ReasoningContent ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Role ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#ToolCallId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#ToolCalls ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(role = nil, content = nil, contents = nil, toolcallid = nil, toolcalls = nil, fileids = nil, reasoningcontent = nil) ⇒ Message
constructor
A new instance of Message.
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
#Content ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1775 1776 1777 |
# File 'lib/v20230901/models.rb', line 1775 def Content @Content end |
#Contents ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1775 1776 1777 |
# File 'lib/v20230901/models.rb', line 1775 def Contents @Contents end |
#FileIDs ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1775 1776 1777 |
# File 'lib/v20230901/models.rb', line 1775 def FileIDs @FileIDs end |
#ReasoningContent ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1775 1776 1777 |
# File 'lib/v20230901/models.rb', line 1775 def ReasoningContent @ReasoningContent end |
#Role ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1775 1776 1777 |
# File 'lib/v20230901/models.rb', line 1775 def Role @Role end |
#ToolCallId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1775 1776 1777 |
# File 'lib/v20230901/models.rb', line 1775 def ToolCallId @ToolCallId end |
#ToolCalls ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
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 |