Package com.google.genai.types
Class GeminiPreferenceExampleCompletion
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GeminiPreferenceExampleCompletion
Completion and its preference score.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for GeminiPreferenceExampleCompletion. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for GeminiPreferenceExampleCompletion.Single turn completion for the given prompt.Deserializes a JSON string to a GeminiPreferenceExampleCompletion object.score()
The score for the given completion.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GeminiPreferenceExampleCompletion
public GeminiPreferenceExampleCompletion()
-
-
Method Details
-
completion
Single turn completion for the given prompt. -
score
The score for the given completion. -
builder
Instantiates a builder for GeminiPreferenceExampleCompletion. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GeminiPreferenceExampleCompletion object.
-