Class: OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::Source::FileContent

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

Defined Under Namespace

Classes: Content

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_with_error, 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

Parameters:

  • content

    The content of the jsonl file.

  • type

    The type of jsonl source. Always file_content.



239
# File 'sig/openai/models/evals/run_retrieve_response.rbs', line 239

def initialize: (

Instance Attribute Details

#content::Array[OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::Source::FileContent::Content]

The content of the jsonl file.



258
259
260
261
262
263
264
265
# File 'lib/openai/models/evals/run_retrieve_response.rb', line 258

required(
  :content,
  -> {
    OpenAI::Internal::Type::ArrayOf[
      OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::Source::FileContent::Content
    ]
  }
)

#type:file_content

The type of jsonl source. Always file_content.

Returns:

  • (:file_content)


271
# File 'lib/openai/models/evals/run_retrieve_response.rb', line 271

required :type, const: :file_content

Instance Method Details

#to_hash{

Returns:

  • ({)


244
# File 'sig/openai/models/evals/run_retrieve_response.rbs', line 244

def to_hash: -> {