Class: TencentCloud::Es::V20250101::OutputMessage
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Es::V20250101::OutputMessage
- Defined in:
- lib/v20250101/models.rb
Overview
会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(role = nil, content = nil, reasoningcontent = nil, toolcalls = nil) ⇒ OutputMessage
constructor
A new instance of OutputMessage.
Constructor Details
#initialize(role = nil, content = nil, reasoningcontent = nil, toolcalls = nil) ⇒ OutputMessage
Returns a new instance of OutputMessage.
796 797 798 799 800 801 |
# File 'lib/v20250101/models.rb', line 796 def initialize(role=nil, content=nil, reasoningcontent=nil, toolcalls=nil) @Role = role @Content = content @ReasoningContent = reasoningcontent @ToolCalls = toolcalls end |
Instance Attribute Details
#Content ⇒ Object
794 795 796 |
# File 'lib/v20250101/models.rb', line 794 def Content @Content end |
#ReasoningContent ⇒ Object
794 795 796 |
# File 'lib/v20250101/models.rb', line 794 def ReasoningContent @ReasoningContent end |
#Role ⇒ Object
794 795 796 |
# File 'lib/v20250101/models.rb', line 794 def Role @Role end |
#ToolCalls ⇒ Object
794 795 796 |
# File 'lib/v20250101/models.rb', line 794 def ToolCalls @ToolCalls end |
Instance Method Details
#deserialize(params) ⇒ Object
803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'lib/v20250101/models.rb', line 803 def deserialize(params) @Role = params['Role'] @Content = params['Content'] @ReasoningContent = params['ReasoningContent'] unless params['ToolCalls'].nil? @ToolCalls = [] params['ToolCalls'].each do |i| toolcall_tmp = ToolCall.new toolcall_tmp.deserialize(i) @ToolCalls << toolcall_tmp end end end |