Class: TencentCloud::Tdai::V20250717::CreateChatCompletionRes

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20250717/models.rb

Overview

对话接口出参

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#AppIdObject



417
418
419
# File 'lib/v20250717/models.rb', line 417

def AppId
  @AppId
end

#ChatIdObject



417
418
419
# File 'lib/v20250717/models.rb', line 417

def ChatId
  @ChatId
end

#ChoicesObject



417
418
419
# File 'lib/v20250717/models.rb', line 417

def Choices
  @Choices
end

#CreatedObject



417
418
419
# File 'lib/v20250717/models.rb', line 417

def Created
  @Created
end

#ModelObject



417
418
419
# File 'lib/v20250717/models.rb', line 417

def Model
  @Model
end

#ObjectObject



417
418
419
# File 'lib/v20250717/models.rb', line 417

def Object
  @Object
end

#OwnerUinObject



417
418
419
# File 'lib/v20250717/models.rb', line 417

def OwnerUin
  @OwnerUin
end

#RequestIdObject



417
418
419
# File 'lib/v20250717/models.rb', line 417

def RequestId
  @RequestId
end

#StreamingIdObject



417
418
419
# File 'lib/v20250717/models.rb', line 417

def StreamingId
  @StreamingId
end

#TaskIdObject



417
418
419
# File 'lib/v20250717/models.rb', line 417

def TaskId
  @TaskId
end

#UinObject



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