Class EvalCustomDataSourceConfig
-
- All Implemented Interfaces:
public final class EvalCustomDataSourceConfigA CustomDataSourceConfig which specifies the schema of your
itemand optionallysamplenamespaces. 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEvalCustomDataSourceConfig.BuilderA builder for EvalCustomDataSourceConfig.
public final classEvalCustomDataSourceConfig.SchemaThe json schema for the run data source items. Learn how to build JSON schemas here.
-
Method Summary
Modifier and Type Method Description final EvalCustomDataSourceConfig.Schemaschema()The json schema for the run data source items. final JsonValue_type()The type of data source. final JsonField<EvalCustomDataSourceConfig.Schema>_schema()Returns the raw JSON value of schema. final Map<String, JsonValue>_additionalProperties()final EvalCustomDataSourceConfig.BuildertoBuilder()final EvalCustomDataSourceConfigvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EvalCustomDataSourceConfig.Builderbuilder()Returns a mutable builder for constructing an instance of EvalCustomDataSourceConfig. -
-
Method Detail
-
schema
final EvalCustomDataSourceConfig.Schema schema()
The json schema for the run data source items. Learn how to build JSON schemas here.
-
_type
final JsonValue _type()
The type of data source. Always
custom.Expected to always return the following:
JsonValue.from("custom")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_schema
final JsonField<EvalCustomDataSourceConfig.Schema> _schema()
Returns the raw JSON value of schema.
Unlike schema, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EvalCustomDataSourceConfig.Builder toBuilder()
-
validate
final EvalCustomDataSourceConfig validate()
-
builder
final static EvalCustomDataSourceConfig.Builder builder()
Returns a mutable builder for constructing an instance of EvalCustomDataSourceConfig.
The following fields are required:
.schema()
-
-
-
-