Class: TencentCloud::Tdai::V20250717::CreateChatCompletionRes
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdai::V20250717::CreateChatCompletionRes
- Defined in:
- lib/v20250717/models.rb
Overview
对话接口出参
Instance Attribute Summary collapse
- #AppId ⇒ Object
- #ChatId ⇒ Object
- #Choices ⇒ Object
- #Created ⇒ Object
- #Model ⇒ Object
- #Object ⇒ Object
- #OwnerUin ⇒ Object
- #RequestId ⇒ Object
- #StreamingId ⇒ Object
- #TaskId ⇒ Object
- #Uin ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(object = nil, created = nil, model = nil, appid = nil, owneruin = nil, uin = nil, requestid = nil, chatid = nil, streamingid = nil, taskid = nil, choices = nil) ⇒ CreateChatCompletionRes
constructor
A new instance of CreateChatCompletionRes.
Constructor Details
#initialize(object = nil, created = nil, model = nil, appid = nil, owneruin = nil, uin = nil, requestid = nil, chatid = nil, streamingid = nil, taskid = nil, choices = nil) ⇒ CreateChatCompletionRes
419 420 421 422 423 424 425 426 427 428 429 430 431 |
# File 'lib/v20250717/models.rb', line 419 def initialize(object=nil, created=nil, model=nil, appid=nil, owneruin=nil, uin=nil, requestid=nil, chatid=nil, streamingid=nil, taskid=nil, choices=nil) @Object = object @Created = created @Model = model @AppId = appid @OwnerUin = owneruin @Uin = uin @RequestId = requestid @ChatId = chatid @StreamingId = streamingid @TaskId = taskid @Choices = choices end |
Instance Attribute Details
#AppId ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def AppId @AppId end |
#ChatId ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def ChatId @ChatId end |
#Choices ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def Choices @Choices end |
#Created ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def Created @Created end |
#Model ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def Model @Model end |
#Object ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def Object @Object end |
#OwnerUin ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def OwnerUin @OwnerUin end |
#RequestId ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def RequestId @RequestId end |
#StreamingId ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def StreamingId @StreamingId end |
#TaskId ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def TaskId @TaskId end |
#Uin ⇒ Object
417 418 419 |
# File 'lib/v20250717/models.rb', line 417 def Uin @Uin end |
Instance Method Details
#deserialize(params) ⇒ Object
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 |
# File 'lib/v20250717/models.rb', line 433 def deserialize(params) @Object = params['Object'] @Created = params['Created'] @Model = params['Model'] @AppId = params['AppId'] @OwnerUin = params['OwnerUin'] @Uin = params['Uin'] @RequestId = params['RequestId'] @ChatId = params['ChatId'] @StreamingId = params['StreamingId'] @TaskId = params['TaskId'] unless params['Choices'].nil? @Choices = [] params['Choices'].each do |i| uploadchoice_tmp = UploadChoice.new uploadchoice_tmp.deserialize(i) @Choices << uploadchoice_tmp end end end |