Class: OpenAI::Models::EvalCustomDataSourceConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::EvalCustomDataSourceConfig
- Defined in:
- lib/openai/models/eval_custom_data_source_config.rb
Instance Attribute Summary collapse
-
#schema ⇒ Hash{Symbol=>Object}
The json schema for the run data source items.
-
#type ⇒ Symbol, :custom
The type of data source.
Instance Method Summary collapse
-
#initialize(schema: , type: :custom) ⇒ Object
constructor
Some parameter documentations has been truncated, see EvalCustomDataSourceConfig for more details.
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(schema: , type: :custom) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::EvalCustomDataSourceConfig for more details.
A CustomDataSourceConfig which specifies the schema of your ‘item` and optionally `sample` namespaces. The response schema defines the shape of the data that will be:
-
Used to define your testing criteria and
-
What data is required when creating a run
|
# File 'lib/openai/models/eval_custom_data_source_config.rb', line 19
|
Instance Attribute Details
#schema ⇒ Hash{Symbol=>Object}
The json schema for the run data source items. Learn how to build JSON schemas [here](json-schema.org/).
11 |
# File 'lib/openai/models/eval_custom_data_source_config.rb', line 11 required :schema, OpenAI::Internal::Type::HashOf[OpenAI::Internal::Type::Unknown] |
#type ⇒ Symbol, :custom
The type of data source. Always ‘custom`.
17 |
# File 'lib/openai/models/eval_custom_data_source_config.rb', line 17 required :type, const: :custom |