Class EvalCreateParams.DataSourceConfig.Custom
-
- All Implemented Interfaces:
public final class EvalCreateParams.DataSourceConfig.CustomA CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. This schema is used to define 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 classEvalCreateParams.DataSourceConfig.Custom.BuilderA builder for Custom.
public final classEvalCreateParams.DataSourceConfig.Custom.ItemSchemaThe json schema for the run data source items.
-
Method Summary
Modifier and Type Method Description final EvalCreateParams.DataSourceConfig.Custom.ItemSchemaitemSchema()The json schema for the run data source items. final JsonValue_type()The type of data source. final Optional<Boolean>includeSampleSchema()Whether to include the sample schema in the data source. final JsonField<EvalCreateParams.DataSourceConfig.Custom.ItemSchema>_itemSchema()Returns the raw JSON value of itemSchema. final JsonField<Boolean>_includeSampleSchema()Returns the raw JSON value of includeSampleSchema. final Map<String, JsonValue>_additionalProperties()final EvalCreateParams.DataSourceConfig.Custom.BuildertoBuilder()final EvalCreateParams.DataSourceConfig.Customvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EvalCreateParams.DataSourceConfig.Custom.Builderbuilder()Returns a mutable builder for constructing an instance of Custom. -
-
Method Detail
-
itemSchema
final EvalCreateParams.DataSourceConfig.Custom.ItemSchema itemSchema()
The json schema for the run data source items.
-
_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).
-
includeSampleSchema
final Optional<Boolean> includeSampleSchema()
Whether to include the sample schema in the data source.
-
_itemSchema
final JsonField<EvalCreateParams.DataSourceConfig.Custom.ItemSchema> _itemSchema()
Returns the raw JSON value of itemSchema.
Unlike itemSchema, this method doesn't throw if the JSON field has an unexpected type.
-
_includeSampleSchema
final JsonField<Boolean> _includeSampleSchema()
Returns the raw JSON value of includeSampleSchema.
Unlike includeSampleSchema, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EvalCreateParams.DataSourceConfig.Custom.Builder toBuilder()
-
validate
final EvalCreateParams.DataSourceConfig.Custom validate()
-
builder
final static EvalCreateParams.DataSourceConfig.Custom.Builder builder()
Returns a mutable builder for constructing an instance of Custom.
The following fields are required:
.itemSchema()
-
-
-
-