Package com.google.genai.types
Class LogprobsResultTopCandidates
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LogprobsResultTopCandidates
Candidates with top log probabilities at each decoding step.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for LogprobsResultTopCandidates. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for LogprobsResultTopCandidates.abstract Optional<List<LogprobsResultCandidate>>
Sorted by log probability in descending order.static LogprobsResultTopCandidates
Deserializes a JSON string to a LogprobsResultTopCandidates object.abstract LogprobsResultTopCandidates.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
LogprobsResultTopCandidates
public LogprobsResultTopCandidates()
-
-
Method Details
-
candidates
Sorted by log probability in descending order. -
builder
Instantiates a builder for LogprobsResultTopCandidates. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LogprobsResultTopCandidates object.
-