Class: OpenAI::Models::Responses::ResponseCodeInterpreterToolCall::Output::Image

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_code_interpreter_tool_call.rb,
sig/openai/models/responses/response_code_interpreter_tool_call.rbs

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

#initializeImage

Returns a new instance of Image.

Parameters:

  • url: (String)
  • type: (:image)


71
# File 'sig/openai/models/responses/response_code_interpreter_tool_call.rbs', line 71

def initialize: (url: String, ?type: :image) -> void

Instance Attribute Details

#typeSymbol, :image

The type of the output. Always image.

Parameters:

  • value (:image)

Returns:

  • (Symbol, :image)


105
# File 'lib/openai/models/responses/response_code_interpreter_tool_call.rb', line 105

required :type, const: :image

#urlString

The URL of the image output from the code interpreter.

Parameters:

  • value (String)

Returns:

  • (String)


111
# File 'lib/openai/models/responses/response_code_interpreter_tool_call.rb', line 111

required :url, String

Instance Method Details

#to_hash{ type: :image, url: String }

Returns:

  • ({ type: :image, url: String })


73
# File 'sig/openai/models/responses/response_code_interpreter_tool_call.rbs', line 73

def to_hash: -> { type: :image, url: String }