Package com.google.genai.types
Class GeminiPreferenceExample
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GeminiPreferenceExample
Input example for preference optimization.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for GeminiPreferenceExample. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for GeminiPreferenceExample.abstract Optional<List<GeminiPreferenceExampleCompletion>>
List of completions for a given prompt.contents()
Multi-turn contents that represents the Prompt.static GeminiPreferenceExample
Deserializes a JSON string to a GeminiPreferenceExample object.abstract GeminiPreferenceExample.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GeminiPreferenceExample
public GeminiPreferenceExample()
-
-
Method Details
-
completions
List of completions for a given prompt. -
contents
Multi-turn contents that represents the Prompt. -
builder
Instantiates a builder for GeminiPreferenceExample. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GeminiPreferenceExample object.
-