Class EvalCreateParams.DataSourceConfig
-
- All Implemented Interfaces:
public final class EvalCreateParams.DataSourceConfig
The configuration for the data source used for the evaluation runs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
EvalCreateParams.DataSourceConfig.Visitor
An interface that defines how to map each variant of DataSourceConfig to a value of type T.
public final class
EvalCreateParams.DataSourceConfig.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
public final class
EvalCreateParams.DataSourceConfig.StoredCompletions
A data source config which specifies the metadata property of your stored completions query. This is usually metadata like
usecase=chatbot
orprompt-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.StoredCompletions>
storedCompletions()
A data source config which specifies the metadata property of your stored completions query. final Boolean
isCustom()
final Boolean
isStoredCompletions()
final EvalCreateParams.DataSourceConfig.Custom
asCustom()
A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. final EvalCreateParams.DataSourceConfig.StoredCompletions
asStoredCompletions()
A data source config which specifies the metadata property of your stored completions query. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(EvalCreateParams.DataSourceConfig.Visitor<T> visitor)
final EvalCreateParams.DataSourceConfig
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
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. final static EvalCreateParams.DataSourceConfig
ofStoredCompletions(EvalCreateParams.DataSourceConfig.StoredCompletions storedCompletions)
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
-
storedCompletions
final Optional<EvalCreateParams.DataSourceConfig.StoredCompletions> storedCompletions()
A data source config which specifies the metadata property of your stored completions query. This is usually metadata like
usecase=chatbot
orprompt-version=v2
, etc.
-
isStoredCompletions
final Boolean isStoredCompletions()
-
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
-
asStoredCompletions
final EvalCreateParams.DataSourceConfig.StoredCompletions asStoredCompletions()
A data source config which specifies the metadata property of your stored completions query. This is usually metadata like
usecase=chatbot
orprompt-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
-
ofStoredCompletions
final static EvalCreateParams.DataSourceConfig ofStoredCompletions(EvalCreateParams.DataSourceConfig.StoredCompletions storedCompletions)
A data source config which specifies the metadata property of your stored completions query. This is usually metadata like
usecase=chatbot
orprompt-version=v2
, etc.
-
-
-
-