Interface EvalRetrieveResponse.DataSourceConfig.Visitor
-
- All Implemented Interfaces:
public interface EvalRetrieveResponse.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
visitStoredCompletions(EvalStoredCompletionsDataSourceConfig storedCompletions)
A StoredCompletionsDataSourceConfig which specifies the metadata property of your stored completions query. 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
-
visitStoredCompletions
abstract T visitStoredCompletions(EvalStoredCompletionsDataSourceConfig storedCompletions)
A StoredCompletionsDataSourceConfig which specifies the metadata property of your stored completions 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.
-
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.
-
-
-
-