Package com.google.genai.types
Class Metric.Builder
java.lang.Object
com.google.genai.types.Metric.Builder
- Enclosing class:
- Metric
Builder for Metric.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Metricbuild()Clears the value of judgeModelSystemInstruction field.Clears the value of name field.Clears the value of promptTemplate field.Clears the value of returnRawOutput field.abstract Metric.BuilderjudgeModelSystemInstruction(String judgeModelSystemInstruction) Setter for judgeModelSystemInstruction.abstract Metric.BuilderSetter for name.abstract Metric.BuilderpromptTemplate(String promptTemplate) Setter for promptTemplate.abstract Metric.BuilderreturnRawOutput(boolean returnRawOutput) Setter for returnRawOutput.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Setter for name.name: The name of the metric.
-
clearName
Clears the value of name field. -
promptTemplate
Setter for promptTemplate.promptTemplate: The prompt template for the metric.
-
clearPromptTemplate
Clears the value of promptTemplate field. -
judgeModelSystemInstruction
Setter for judgeModelSystemInstruction.judgeModelSystemInstruction: The system instruction for the judge model.
-
clearJudgeModelSystemInstruction
Clears the value of judgeModelSystemInstruction field. -
returnRawOutput
Setter for returnRawOutput.returnRawOutput: Whether to return the raw output from the judge model.
-
clearReturnRawOutput
Clears the value of returnRawOutput field. -
build
-