GeminiPreferenceExample

@Serializable
data class GeminiPreferenceExample(val completions: List<GeminiPreferenceExampleCompletion>? = null, val contents: List<Content>? = null)

Input example for preference optimization. This data type is not supported in Gemini API.

Constructors

Link copied to clipboard
constructor(completions: List<GeminiPreferenceExampleCompletion>? = null, contents: List<Content>? = null)

Properties

Link copied to clipboard

List of completions for a given prompt.

Link copied to clipboard
val contents: List<Content>? = null

Multi-turn contents that represents the Prompt.