Class: OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::Source::FileContent::Content

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/evals/run_cancel_response.rb

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, 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(content: , type: :file_content) ⇒ Object

Parameters:



238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# File 'lib/openai/models/evals/run_cancel_response.rb', line 238

class Content < OpenAI::Internal::Type::BaseModel
  # @!attribute item
  #
  #   @return [Hash{Symbol=>Object}]
  required :item, OpenAI::Internal::Type::HashOf[OpenAI::Internal::Type::Unknown]

  # @!attribute sample
  #
  #   @return [Hash{Symbol=>Object}, nil]
  optional :sample, OpenAI::Internal::Type::HashOf[OpenAI::Internal::Type::Unknown]

  # @!method initialize(item:, sample: nil)
  #   @param item [Hash{Symbol=>Object}]
  #   @param sample [Hash{Symbol=>Object}]
end

Instance Attribute Details

#itemHash{Symbol=>Object}

Returns:

  • (Hash{Symbol=>Object})


242
# File 'lib/openai/models/evals/run_cancel_response.rb', line 242

required :item, OpenAI::Internal::Type::HashOf[OpenAI::Internal::Type::Unknown]

#sampleHash{Symbol=>Object}?

Returns:

  • (Hash{Symbol=>Object}, nil)


247
# File 'lib/openai/models/evals/run_cancel_response.rb', line 247

optional :sample, OpenAI::Internal::Type::HashOf[OpenAI::Internal::Type::Unknown]