Class EvalCustomDataSourceConfig
-
- All Implemented Interfaces:
public final class EvalCustomDataSourceConfig
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
EvalCustomDataSourceConfig.Builder
A builder for EvalCustomDataSourceConfig.
public final class
EvalCustomDataSourceConfig.Schema
The json schema for the run data source items. Learn how to build JSON schemas here.
-
Method Summary
Modifier and Type Method Description final EvalCustomDataSourceConfig.Schema
schema()
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.Builder
toBuilder()
final EvalCustomDataSourceConfig
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static EvalCustomDataSourceConfig.Builder
builder()
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()
-
-
-
-