Package com.google.genai.types
Class LogprobsResult
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LogprobsResult
Logprobs Result
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LogprobsResult.Builder
builder()
Instantiates a builder for LogprobsResult.abstract Optional<List<LogprobsResultCandidate>>
Length = total number of decoding steps.static LogprobsResult
Deserializes a JSON string to a LogprobsResult object.abstract LogprobsResult.Builder
Creates a builder with the same values as this instance.abstract Optional<List<LogprobsResultTopCandidates>>
Length = total number of decoding steps.Methods inherited from class com.google.genai.JsonSerializable
fromJsonString, toJson
-
Constructor Details
-
LogprobsResult
public LogprobsResult()
-
-
Method Details
-
chosenCandidates
Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. -
topCandidates
Length = total number of decoding steps. -
builder
Instantiates a builder for LogprobsResult. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LogprobsResult object.
-