Package com.google.genai.types
Class ComputationBasedMetricSpec.Builder
java.lang.Object
com.google.genai.types.ComputationBasedMetricSpec.Builder
- Enclosing class:
- ComputationBasedMetricSpec
Builder for ComputationBasedMetricSpec.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ComputationBasedMetricSpecbuild()Clears the value of parameters field.Clears the value of type field.abstract ComputationBasedMetricSpec.Builderparameters(Map<String, Object> parameters) Setter for parameters.abstract ComputationBasedMetricSpec.BuilderSetter for type.type(ComputationBasedMetricType.Known knownType) Setter for type given a known enum.Setter for type given a string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Setter for type.type: The type of the computation based metric.
-
clearType
Clears the value of type field. -
type
@CanIgnoreReturnValue public ComputationBasedMetricSpec.Builder type(ComputationBasedMetricType.Known knownType) Setter for type given a known enum.type: The type of the computation based metric.
-
type
Setter for type given a string.type: The type of the computation based metric.
-
parameters
Setter for parameters.parameters: A map of parameters for the metric. ROUGE example: {"rouge_type": "rougeL", "split_summaries": True, "use_stemmer": True}. BLEU example: {"use_effective_order": True}.
-
clearParameters
Clears the value of parameters field. -
build
-