Class ChatCompletion.Choice.Logprobs
- 
                    
                    
- All Implemented Interfaces:
 
public final class ChatCompletion.Choice.LogprobsLog probability information for the choice.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletion.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 ChatCompletion.Choice.Logprobs.BuildertoBuilder()final ChatCompletion.Choice.Logprobsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletion.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 ChatCompletion.Choice.Logprobs.Builder toBuilder()
 
- 
                                        
validate
final ChatCompletion.Choice.Logprobs validate()
 
- 
                                        
builder
final static ChatCompletion.Choice.Logprobs.Builder builder()
Returns a mutable builder for constructing an instance of Logprobs.
The following fields are required:
.content() .refusal() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -