Class: OpenAI::Models::Evals::CreateEvalJSONLRunDataSource::Source::FileContent

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

#initialize ⇒ Object

Parameters:

  • content —

    The content of the jsonl file.

  • type —

    The type of jsonl source. Always file_content.



55
# File 'sig/openai/models/evals/create_eval_jsonl_run_data_source.rbs', line 55

def initialize: (

Instance Attribute Details

#content ⇒ ::Array[OpenAI::Evals::CreateEvalJSONLRunDataSource::Source::FileContent::Content]

The content of the jsonl file.

Returns:

  • (::Array[OpenAI::Evals::CreateEvalJSONLRunDataSource::Source::FileContent::Content])


46
47
48
49
50
51
52
53
# File 'lib/openai/models/evals/create_eval_jsonl_run_data_source.rb', line 46

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

#type ⇒ :file_content

The type of jsonl source. Always file_content.

Returns:

  • (:file_content)


59
# File 'lib/openai/models/evals/create_eval_jsonl_run_data_source.rb', line 59

required :type, const: :file_content

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


60
# File 'sig/openai/models/evals/create_eval_jsonl_run_data_source.rbs', line 60

def to_hash: -> {