Class: OpenAI::Models::Beta::BetaResponseOutputTextAnnotationAddedEvent::Annotation::FilePath

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

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initialize ⇒ FilePath

Returns a new instance of FilePath.

Parameters:

  • file_id —

    The ID of the file.

  • index —

    The index of the file in the list of files.

  • type —

    The type of the file path. Always file_path.

  • file_id: (String)
  • index: (Integer)
  • type: (:file_path)


265
266
267
268
269
# File 'sig/openai/models/beta/beta_response_output_text_annotation_added_event.rbs', line 265

def initialize: (
  file_id: String,
  index: Integer,
  ?type: :file_path
) -> void

Instance Attribute Details

#file_id ⇒ String

The ID of the file.

Returns:

  • (String)


270
# File 'lib/openai/models/beta/beta_response_output_text_annotation_added_event.rb', line 270

required :file_id, String

#index ⇒ Integer

The index of the file in the list of files.

Returns:

  • (Integer)


276
# File 'lib/openai/models/beta/beta_response_output_text_annotation_added_event.rb', line 276

required :index, Integer

#type ⇒ :file_path

The type of the file path. Always file_path.

Returns:

  • (:file_path)


282
# File 'lib/openai/models/beta/beta_response_output_text_annotation_added_event.rb', line 282

required :type, const: :file_path

Instance Method Details

#to_hash ⇒ { file_id: String, index: Integer, ?type: :file_path }

Returns:

  • ({ file_id: String, index: Integer, ?type: :file_path })


271
272
273
274
275
# File 'sig/openai/models/beta/beta_response_output_text_annotation_added_event.rbs', line 271

def to_hash: -> {
  file_id: String,
  index: Integer,
  ?type: :file_path
}