Class: OpenAI::Models::BetaResponseItem::Beta::BetaResponseItem::ImageGenerationCall

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_response_item.rbs

Defined Under Namespace

Modules: Status Classes: Agent

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



609
# File 'sig/openai/models/beta/beta_response_item.rbs', line 609

def initialize: (

Instance Attribute Details

#agentOpenAI::Beta::BetaResponseItem::ImageGenerationCall::Agent?

Returns the value of attribute agent.

Returns:

  • (OpenAI::Beta::BetaResponseItem::ImageGenerationCall::Agent, nil)


607
608
609
# File 'sig/openai/models/beta/beta_response_item.rbs', line 607

def agent
  @agent
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


599
600
601
# File 'sig/openai/models/beta/beta_response_item.rbs', line 599

def id
  @id
end

#resultString?

Returns the value of attribute result.

Returns:

  • (String, nil)


601
602
603
# File 'sig/openai/models/beta/beta_response_item.rbs', line 601

def result
  @result
end

#statusOpenAI::Models::Beta::BetaResponseItem::ImageGenerationCall::status

Returns the value of attribute status.

Returns:

  • (OpenAI::Models::Beta::BetaResponseItem::ImageGenerationCall::status)


603
604
605
# File 'sig/openai/models/beta/beta_response_item.rbs', line 603

def status
  @status
end

#type:image_generation_call

Returns the value of attribute type.

Returns:

  • (:image_generation_call)


605
606
607
# File 'sig/openai/models/beta/beta_response_item.rbs', line 605

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


617
# File 'sig/openai/models/beta/beta_response_item.rbs', line 617

def to_hash: -> {