Class EvalCreateParams.DataSourceConfig
-
- All Implemented Interfaces:
public final class EvalCreateParams.DataSourceConfigThe configuration for the data source used for the evaluation runs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceEvalCreateParams.DataSourceConfig.VisitorAn interface that defines how to map each variant of DataSourceConfig to a value of type T.
public final classEvalCreateParams.DataSourceConfig.CustomA CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. This schema is used to define the shape of the data that will be:
Used to define your testing criteria and
What data is required when creating a run
public final classEvalCreateParams.DataSourceConfig.LogsA data source config which specifies the metadata property of your stored completions query. This is usually metadata like
usecase=chatbotorprompt-version=v2, etc.
-
Method Summary
Modifier and Type Method Description final Optional<EvalCreateParams.DataSourceConfig.Custom>custom()A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. final Optional<EvalCreateParams.DataSourceConfig.Logs>logs()A data source config which specifies the metadata property of your stored completions query. final BooleanisCustom()final BooleanisLogs()final EvalCreateParams.DataSourceConfig.CustomasCustom()A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. final EvalCreateParams.DataSourceConfig.LogsasLogs()A data source config which specifies the metadata property of your stored completions query. final Optional<JsonValue>_json()final <T extends Any> Taccept(EvalCreateParams.DataSourceConfig.Visitor<T> visitor)final EvalCreateParams.DataSourceConfigvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EvalCreateParams.DataSourceConfigofCustom(EvalCreateParams.DataSourceConfig.Custom custom)A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. final static EvalCreateParams.DataSourceConfigofLogs(EvalCreateParams.DataSourceConfig.Logs logs)A data source config which specifies the metadata property of your stored completions query. -
-
Method Detail
-
custom
final Optional<EvalCreateParams.DataSourceConfig.Custom> custom()
A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. This schema is used to define the shape of the data that will be:
Used to define your testing criteria and
What data is required when creating a run
-
logs
final Optional<EvalCreateParams.DataSourceConfig.Logs> logs()
A data source config which specifies the metadata property of your stored completions query. This is usually metadata like
usecase=chatbotorprompt-version=v2, etc.
-
asCustom
final EvalCreateParams.DataSourceConfig.Custom asCustom()
A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. This schema is used to define the shape of the data that will be:
Used to define your testing criteria and
What data is required when creating a run
-
asLogs
final EvalCreateParams.DataSourceConfig.Logs asLogs()
A data source config which specifies the metadata property of your stored completions query. This is usually metadata like
usecase=chatbotorprompt-version=v2, etc.
-
accept
final <T extends Any> T accept(EvalCreateParams.DataSourceConfig.Visitor<T> visitor)
-
validate
final EvalCreateParams.DataSourceConfig validate()
-
ofCustom
final static EvalCreateParams.DataSourceConfig ofCustom(EvalCreateParams.DataSourceConfig.Custom custom)
A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. This schema is used to define the shape of the data that will be:
Used to define your testing criteria and
What data is required when creating a run
-
ofLogs
final static EvalCreateParams.DataSourceConfig ofLogs(EvalCreateParams.DataSourceConfig.Logs logs)
A data source config which specifies the metadata property of your stored completions query. This is usually metadata like
usecase=chatbotorprompt-version=v2, etc.
-
-
-
-