Class EvalUpdateResponse.DataSourceConfig
-
- All Implemented Interfaces:
public final class EvalUpdateResponse.DataSourceConfig
Configuration of data sources used in runs of the evaluation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
EvalUpdateResponse.DataSourceConfig.Visitor
An interface that defines how to map each variant of DataSourceConfig to a value of type T.
public final class
EvalUpdateResponse.DataSourceConfig.Logs
A LogsDataSourceConfig which specifies the metadata property of your logs query. This is usually metadata like
usecase=chatbot
orprompt-version=v2
, etc. The schema returned by this data source config is used to defined what variables are available in your evals.item
andsample
are both defined when using this data source config.
-
Method Summary
Modifier and Type Method Description final Optional<EvalCustomDataSourceConfig>
custom()
A CustomDataSourceConfig which specifies the schema of your item
and optionallysample
namespaces.final Optional<EvalUpdateResponse.DataSourceConfig.Logs>
logs()
A LogsDataSourceConfig which specifies the metadata property of your logs query. final Optional<EvalStoredCompletionsDataSourceConfig>
storedCompletions()
Deprecated in favor of LogsDataSourceConfig. final Boolean
isCustom()
final Boolean
isLogs()
final Boolean
isStoredCompletions()
final EvalCustomDataSourceConfig
asCustom()
A CustomDataSourceConfig which specifies the schema of your item
and optionallysample
namespaces.final EvalUpdateResponse.DataSourceConfig.Logs
asLogs()
A LogsDataSourceConfig which specifies the metadata property of your logs query. final EvalStoredCompletionsDataSourceConfig
asStoredCompletions()
Deprecated in favor of LogsDataSourceConfig. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(EvalUpdateResponse.DataSourceConfig.Visitor<T> visitor)
final EvalUpdateResponse.DataSourceConfig
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static EvalUpdateResponse.DataSourceConfig
ofCustom(EvalCustomDataSourceConfig custom)
A CustomDataSourceConfig which specifies the schema of your item
and optionallysample
namespaces.final static EvalUpdateResponse.DataSourceConfig
ofLogs(EvalUpdateResponse.DataSourceConfig.Logs logs)
A LogsDataSourceConfig which specifies the metadata property of your logs query. final static EvalUpdateResponse.DataSourceConfig
ofStoredCompletions(EvalStoredCompletionsDataSourceConfig storedCompletions)
Deprecated in favor of LogsDataSourceConfig. -
-
Method Detail
-
custom
final Optional<EvalCustomDataSourceConfig> custom()
A CustomDataSourceConfig which specifies the schema of your
item
and optionallysample
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
-
logs
final Optional<EvalUpdateResponse.DataSourceConfig.Logs> logs()
A LogsDataSourceConfig which specifies the metadata property of your logs query. This is usually metadata like
usecase=chatbot
orprompt-version=v2
, etc. The schema returned by this data source config is used to defined what variables are available in your evals.item
andsample
are both defined when using this data source config.
-
storedCompletions
@Deprecated(message = "deprecated") final Optional<EvalStoredCompletionsDataSourceConfig> storedCompletions()
Deprecated in favor of LogsDataSourceConfig.
-
isStoredCompletions
@Deprecated(message = "deprecated") final Boolean isStoredCompletions()
-
asCustom
final EvalCustomDataSourceConfig asCustom()
A CustomDataSourceConfig which specifies the schema of your
item
and optionallysample
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
-
asLogs
final EvalUpdateResponse.DataSourceConfig.Logs asLogs()
A LogsDataSourceConfig which specifies the metadata property of your logs query. This is usually metadata like
usecase=chatbot
orprompt-version=v2
, etc. The schema returned by this data source config is used to defined what variables are available in your evals.item
andsample
are both defined when using this data source config.
-
asStoredCompletions
@Deprecated(message = "deprecated") final EvalStoredCompletionsDataSourceConfig asStoredCompletions()
Deprecated in favor of LogsDataSourceConfig.
-
accept
final <T extends Any> T accept(EvalUpdateResponse.DataSourceConfig.Visitor<T> visitor)
-
validate
final EvalUpdateResponse.DataSourceConfig validate()
-
ofCustom
final static EvalUpdateResponse.DataSourceConfig ofCustom(EvalCustomDataSourceConfig custom)
A CustomDataSourceConfig which specifies the schema of your
item
and optionallysample
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
-
ofLogs
final static EvalUpdateResponse.DataSourceConfig ofLogs(EvalUpdateResponse.DataSourceConfig.Logs logs)
A LogsDataSourceConfig which specifies the metadata property of your logs query. This is usually metadata like
usecase=chatbot
orprompt-version=v2
, etc. The schema returned by this data source config is used to defined what variables are available in your evals.item
andsample
are both defined when using this data source config.
-
ofStoredCompletions
@Deprecated(message = "deprecated") final static EvalUpdateResponse.DataSourceConfig ofStoredCompletions(EvalStoredCompletionsDataSourceConfig storedCompletions)
Deprecated in favor of LogsDataSourceConfig.
-
-
-
-