Class: OpenAI::Models::BetaResponseOutputItem::Beta::BetaResponseOutputItem::ImageGenerationCall

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_response_output_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



608
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 608

def initialize: (

Instance Attribute Details

#agentOpenAI::Beta::BetaResponseOutputItem::ImageGenerationCall::Agent?

Returns the value of attribute agent.

Returns:

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


606
607
608
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 606

def agent
  @agent
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


598
599
600
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 598

def id
  @id
end

#resultString?

Returns the value of attribute result.

Returns:

  • (String, nil)


600
601
602
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 600

def result
  @result
end

#statusOpenAI::Models::Beta::BetaResponseOutputItem::ImageGenerationCall::status

Returns the value of attribute status.

Returns:

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


602
603
604
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 602

def status
  @status
end

#type:image_generation_call

Returns the value of attribute type.

Returns:

  • (:image_generation_call)


604
605
606
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 604

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


616
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 616

def to_hash: -> {