Class: OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::Source::StoredCompletions

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

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from OpenAI::Internal::Type::BaseModel

Instance Attribute Details

#created_afterInteger?

An optional Unix timestamp to filter items created after this time.

Returns:

  • (Integer, nil)


142
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 142

optional :created_after, Integer, nil?: true

#created_beforeInteger?

An optional Unix timestamp to filter items created before this time.

Returns:

  • (Integer, nil)


148
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 148

optional :created_before, Integer, nil?: true

#limitInteger?

An optional maximum number of items to return.

Returns:

  • (Integer, nil)


154
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 154

optional :limit, Integer, nil?: true

#metadataHash{Symbol=>String}?

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.

Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

Returns:

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


165
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 165

optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true

#modelString?

An optional model to filter by (e.g., ‘gpt-4o’).

Returns:

  • (String, nil)


171
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 171

optional :model, String, nil?: true

#typeSymbol, :stored_completions

The type of source. Always ‘stored_completions`.

Returns:

  • (Symbol, :stored_completions)


136
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 136

required :type, const: :stored_completions