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 each row in the data source.
-
Method Summary
-
-
Method Detail
-
itemSchema
final EvalCreateParams.DataSourceConfig.Custom.ItemSchema itemSchema()
The json schema for each row in the data source.
-
_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 the eval should expect you to populate the sample namespace (ie, by generating responses off of your 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()
-
-
-
-