Interface EvalCreateResponse.DataSourceConfig.Visitor
-
- All Implemented Interfaces:
public interface EvalCreateResponse.DataSourceConfig.Visitor<T extends Object>
An interface that defines how to map each variant of DataSourceConfig to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitCustom(EvalCustomDataSourceConfig custom)
A CustomDataSourceConfig which specifies the schema of your item
and optionallysample
namespaces.abstract T
visitLogs(EvalCreateResponse.DataSourceConfig.Logs logs)
A LogsDataSourceConfig which specifies the metadata property of your logs query. abstract T
visitStoredCompletions(EvalStoredCompletionsDataSourceConfig storedCompletions)
Deprecated in favor of LogsDataSourceConfig. T
unknown(JsonValue json)
Maps an unknown variant of DataSourceConfig to a value of type T. -
-
Method Detail
-
visitCustom
abstract T visitCustom(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
-
visitLogs
abstract T visitLogs(EvalCreateResponse.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.
-
visitStoredCompletions
@Deprecated(message = "deprecated") abstract T visitStoredCompletions(EvalStoredCompletionsDataSourceConfig storedCompletions)
Deprecated in favor of LogsDataSourceConfig.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of DataSourceConfig to a value of type T.
An instance of DataSourceConfig can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-