Class: OpenAI::Models::Evals::RunListResponse::DataSource::Responses::Source::FileContent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Evals::RunListResponse::DataSource::Responses::Source::FileContent
- Defined in:
- lib/openai/models/evals/run_list_response.rb,
sig/openai/models/evals/run_list_response.rbs
Defined Under Namespace
Classes: Content
Instance Attribute Summary collapse
-
#content ⇒ ::Array[OpenAI::Models::Evals::RunListResponse::DataSource::Responses::Source::FileContent::Content]
The content of the jsonl file.
-
#type ⇒ :file_content
The type of jsonl source.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ FileContent
constructor
A new instance of FileContent.
- #to_hash ⇒ { content: ::Array[OpenAI::Models::Evals::RunListResponse::DataSource::Responses::Source::FileContent::Content], ?type: :file_content }
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 ⇒ FileContent
Returns a new instance of FileContent.
237 238 239 240 |
# File 'sig/openai/models/evals/run_list_response.rbs', line 237
def initialize: (
content: ::Array[OpenAI::Models::Evals::RunListResponse::DataSource::Responses::Source::FileContent::Content],
?type: :file_content
) -> void
|
Instance Attribute Details
#content ⇒ ::Array[OpenAI::Models::Evals::RunListResponse::DataSource::Responses::Source::FileContent::Content]
The content of the jsonl file.
253 254 255 256 257 258 259 260 |
# File 'lib/openai/models/evals/run_list_response.rb', line 253 required( :content, -> { OpenAI::Internal::Type::ArrayOf[ OpenAI::Models::Evals::RunListResponse::DataSource::Responses::Source::FileContent::Content ] } ) |
#type ⇒ :file_content
The type of jsonl source. Always file_content.
266 |
# File 'lib/openai/models/evals/run_list_response.rb', line 266 required :type, const: :file_content |
Instance Method Details
#to_hash ⇒ { content: ::Array[OpenAI::Models::Evals::RunListResponse::DataSource::Responses::Source::FileContent::Content], ?type: :file_content }
242 243 244 245 |
# File 'sig/openai/models/evals/run_list_response.rbs', line 242
def to_hash: -> {
content: ::Array[OpenAI::Models::Evals::RunListResponse::DataSource::Responses::Source::FileContent::Content],
?type: :file_content
}
|