Package com.google.genai.types
Class AutoraterConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AutoraterConfig
Autorater config used for evaluation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for AutoraterConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe fully qualified name of the publisher model or tuned autorater endpoint to use.static AutoraterConfig.Builderbuilder()Instantiates a builder for AutoraterConfig.static AutoraterConfigDeserializes a JSON string to a AutoraterConfig object.abstract Optional<GenerationConfig>Configuration options for model generation and outputs.Number of samples for each instance in the dataset.abstract AutoraterConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
AutoraterConfig
public AutoraterConfig()
-
-
Method Details
-
samplingCount
Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32. -
autoraterModel
The fully qualified name of the publisher model or tuned autorater endpoint to use.Publisher model format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
-
generationConfig
Configuration options for model generation and outputs. -
builder
Instantiates a builder for AutoraterConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a AutoraterConfig object.
-