Class: OpenAI::Models::Beta::BetaResponseOutputText::Annotation::FilePath

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_response_output_text.rb,
sig/openai/models/beta/beta_response_output_text.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

#initializeObject



170
# File 'sig/openai/models/beta/beta_response_output_text.rbs', line 170

def initialize: (

Instance Attribute Details

#file_idString

The ID of the file.

Parameters:

  • value (String)

Returns:

  • (String)


201
# File 'lib/openai/models/beta/beta_response_output_text.rb', line 201

required :file_id, String

#indexInteger

The index of the file in the list of files.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


207
# File 'lib/openai/models/beta/beta_response_output_text.rb', line 207

required :index, Integer

#typeSymbol, :file_path

The type of the file path. Always file_path.

Parameters:

  • value (:file_path)

Returns:

  • (Symbol, :file_path)


213
# File 'lib/openai/models/beta/beta_response_output_text.rb', line 213

required :type, const: :file_path

Instance Method Details

#to_hash{

Returns:

  • ({)


176
# File 'sig/openai/models/beta/beta_response_output_text.rbs', line 176

def to_hash: -> {