Package com.google.genai.types
Class LogprobsResultCandidate
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LogprobsResultCandidate
Candidate for the logprobs token and score.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for LogprobsResultCandidate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for LogprobsResultCandidate.static LogprobsResultCandidate
Deserializes a JSON string to a LogprobsResultCandidate object.The candidate's log probability.abstract LogprobsResultCandidate.Builder
Creates a builder with the same values as this instance.token()
The candidate's token string value.tokenId()
The candidate's token id value.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
LogprobsResultCandidate
public LogprobsResultCandidate()
-
-
Method Details
-
logProbability
The candidate's log probability. -
token
The candidate's token string value. -
tokenId
The candidate's token id value. -
builder
Instantiates a builder for LogprobsResultCandidate. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LogprobsResultCandidate object.
-