Package com.google.genai.types
Class EvaluationDataset
-
- All Implemented Interfaces:
public abstract class EvaluationDataset extends JsonSerializable
The dataset used for evaluation. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classEvaluationDataset.BuilderBuilder for EvaluationDataset.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description EvaluationDataset()
-
Method Summary
Modifier and Type Method Description abstract Optional<BigQuerySource>bigquerySource()BigQuery source holds the dataset. abstract Optional<GcsSource>gcsSource()Cloud storage source holds the dataset. static EvaluationDataset.Builderbuilder()Instantiates a builder for EvaluationDataset. abstract EvaluationDataset.BuildertoBuilder()Creates a builder with the same values as this instance. static EvaluationDatasetfromJson(String jsonString)Deserializes a JSON string to a EvaluationDataset object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
bigquerySource
abstract Optional<BigQuerySource> bigquerySource()
BigQuery source holds the dataset.
-
gcsSource
abstract Optional<GcsSource> gcsSource()
Cloud storage source holds the dataset. Currently only one Cloud Storage file path is supported.
-
builder
static EvaluationDataset.Builder builder()
Instantiates a builder for EvaluationDataset.
-
toBuilder
abstract EvaluationDataset.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static EvaluationDataset fromJson(String jsonString)
Deserializes a JSON string to a EvaluationDataset object.
-
-
-
-