Module: OpenAI::Models::EvalCreateParams::DataSourceConfig

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/eval_create_params.rb

Overview

The configuration for the data source used for the evaluation runs. Dictates the schema of the data used in the evaluation.

Defined Under Namespace

Classes: Custom, Logs, StoredCompletions

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, type_info

Instance Method Details

#initialize(metadata: nil, type: :logs) ⇒ Object

A data source config which specifies the metadata property of your logs query. This is usually metadata like ‘usecase=chatbot` or `prompt-version=v2`, etc.

Parameters:

  • metadata (Hash{Symbol=>Object}) (defaults to: nil)

    Metadata filters for the logs data source.

  • type (Symbol, :logs) (defaults to: :logs)

    The type of data source. Always ‘logs`.



# File 'lib/openai/models/eval_create_params.rb', line 98