Class ChatCompletionChunk.Choice.Logprobs
-
- All Implemented Interfaces:
public final class ChatCompletionChunk.Choice.LogprobsLog probability information for the choice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionChunk.Choice.Logprobs.BuilderA builder for Logprobs.
-
Method Summary
Modifier and Type Method Description final Optional<List<ChatCompletionTokenLogprob>>content()A list of message content tokens with log probability information. final Optional<List<ChatCompletionTokenLogprob>>refusal()A list of message refusal tokens with log probability information. final JsonField<List<ChatCompletionTokenLogprob>>_content()Returns the raw JSON value of content. final JsonField<List<ChatCompletionTokenLogprob>>_refusal()Returns the raw JSON value of refusal. final Map<String, JsonValue>_additionalProperties()final ChatCompletionChunk.Choice.Logprobs.BuildertoBuilder()final ChatCompletionChunk.Choice.Logprobsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionChunk.Choice.Logprobs.Builderbuilder()Returns a mutable builder for constructing an instance of Logprobs. -
-
Method Detail
-
content
final Optional<List<ChatCompletionTokenLogprob>> content()
A list of message content tokens with log probability information.
-
refusal
final Optional<List<ChatCompletionTokenLogprob>> refusal()
A list of message refusal tokens with log probability information.
-
_content
final JsonField<List<ChatCompletionTokenLogprob>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_refusal
final JsonField<List<ChatCompletionTokenLogprob>> _refusal()
Returns the raw JSON value of refusal.
Unlike refusal, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionChunk.Choice.Logprobs.Builder toBuilder()
-
validate
final ChatCompletionChunk.Choice.Logprobs 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 ChatCompletionChunk.Choice.Logprobs.Builder builder()
Returns a mutable builder for constructing an instance of Logprobs.
The following fields are required:
.content() .refusal()
-
-
-
-