Class BetaResponseTextDoneEvent.Logprob
-
- All Implemented Interfaces:
public final class BetaResponseTextDoneEvent.LogprobA logprob is the logarithmic probability that the model assigns to producing a particular token at a given position in the sequence. Less-negative (higher) logprob values indicate greater model confidence in that token choice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseTextDoneEvent.Logprob.BuilderA builder for Logprob.
public final classBetaResponseTextDoneEvent.Logprob.TopLogprob
-
Method Summary
Modifier and Type Method Description final Stringtoken()A possible text token. final Doublelogprob()The log probability of this token. final Optional<List<BetaResponseTextDoneEvent.Logprob.TopLogprob>>topLogprobs()The log probabilities of up to 20 of the most likely tokens. final JsonField<String>_token()Returns the raw JSON value of token. final JsonField<Double>_logprob()Returns the raw JSON value of logprob. final JsonField<List<BetaResponseTextDoneEvent.Logprob.TopLogprob>>_topLogprobs()Returns the raw JSON value of topLogprobs. final Map<String, JsonValue>_additionalProperties()final BetaResponseTextDoneEvent.Logprob.BuildertoBuilder()final BetaResponseTextDoneEvent.Logprobvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseTextDoneEvent.Logprob.Builderbuilder()Returns a mutable builder for constructing an instance of Logprob. -
-
Method Detail
-
topLogprobs
final Optional<List<BetaResponseTextDoneEvent.Logprob.TopLogprob>> topLogprobs()
The log probabilities of up to 20 of the most likely tokens.
-
_token
final JsonField<String> _token()
Returns the raw JSON value of token.
Unlike token, this method doesn't throw if the JSON field has an unexpected type.
-
_logprob
final JsonField<Double> _logprob()
Returns the raw JSON value of logprob.
Unlike logprob, this method doesn't throw if the JSON field has an unexpected type.
-
_topLogprobs
final JsonField<List<BetaResponseTextDoneEvent.Logprob.TopLogprob>> _topLogprobs()
Returns the raw JSON value of topLogprobs.
Unlike topLogprobs, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseTextDoneEvent.Logprob.Builder toBuilder()
-
validate
final BetaResponseTextDoneEvent.Logprob validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseTextDoneEvent.Logprob.Builder builder()
Returns a mutable builder for constructing an instance of Logprob.
The following fields are required:
.token() .logprob()
-
-
-
-