Class: TencentCloud::Hunyuan::V20230901::Delta
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Hunyuan::V20230901::Delta
- Defined in:
- lib/v20230901/models.rb
Overview
返回的内容(流式返回)
Instance Attribute Summary collapse
-
#Content ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ReasoningContent ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Role ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ToolCalls ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(role = nil, content = nil, toolcalls = nil, reasoningcontent = nil) ⇒ Delta
constructor
A new instance of Delta.
Constructor Details
#initialize(role = nil, content = nil, toolcalls = nil, reasoningcontent = nil) ⇒ Delta
Returns a new instance of Delta.
668 669 670 671 672 673 |
# File 'lib/v20230901/models.rb', line 668 def initialize(role=nil, content=nil, toolcalls=nil, reasoningcontent=nil) @Role = role @Content = content @ToolCalls = toolcalls @ReasoningContent = reasoningcontent end |
Instance Attribute Details
#Content ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
666 667 668 |
# File 'lib/v20230901/models.rb', line 666 def Content @Content end |
#ReasoningContent ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
666 667 668 |
# File 'lib/v20230901/models.rb', line 666 def ReasoningContent @ReasoningContent end |
#Role ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
666 667 668 |
# File 'lib/v20230901/models.rb', line 666 def Role @Role end |
#ToolCalls ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
666 667 668 |
# File 'lib/v20230901/models.rb', line 666 def ToolCalls @ToolCalls end |
Instance Method Details
#deserialize(params) ⇒ Object
675 676 677 678 679 680 681 682 683 684 685 686 687 |
# File 'lib/v20230901/models.rb', line 675 def deserialize(params) @Role = params['Role'] @Content = params['Content'] unless params['ToolCalls'].nil? @ToolCalls = [] params['ToolCalls'].each do |i| toolcall_tmp = ToolCall.new toolcall_tmp.deserialize(i) @ToolCalls << toolcall_tmp end end @ReasoningContent = params['ReasoningContent'] end |