Package com.google.genai.types
Class PredefinedMetricSpec
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.PredefinedMetricSpec
The spec for a pre-defined metric. This data type is not supported in Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for PredefinedMetricSpec. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PredefinedMetricSpec.Builderbuilder()Instantiates a builder for PredefinedMetricSpec.static PredefinedMetricSpecDeserializes a JSON string to a PredefinedMetricSpec object.Required.Optional.abstract PredefinedMetricSpec.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
PredefinedMetricSpec
public PredefinedMetricSpec()
-
-
Method Details
-
metricSpecName
Required. The name of a pre-defined metric, such as "instruction_following_v1" or "text_quality_v1". -
metricSpecParameters
Optional. The parameters needed to run the pre-defined metric. -
builder
Instantiates a builder for PredefinedMetricSpec. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a PredefinedMetricSpec object.
-