Package com.openai.models.beta.realtime
        Class RealtimeResponseUsage.InputTokenDetails
- 
                    
                    
- All Implemented Interfaces:
 
public final class RealtimeResponseUsage.InputTokenDetailsDetails about the input tokens used in the Response.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeResponseUsage.InputTokenDetails.BuilderA builder for InputTokenDetails.
 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final Optional<Long>audioTokens()The number of audio tokens used in the Response. final Optional<Long>cachedTokens()The number of cached tokens used in the Response. final Optional<Long>textTokens()The number of text tokens used in the Response. final JsonField<Long>_audioTokens()Returns the raw JSON value of audioTokens. final JsonField<Long>_cachedTokens()Returns the raw JSON value of cachedTokens. final JsonField<Long>_textTokens()Returns the raw JSON value of textTokens. final Map<String, JsonValue>_additionalProperties()final RealtimeResponseUsage.InputTokenDetails.BuildertoBuilder()final RealtimeResponseUsage.InputTokenDetailsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeResponseUsage.InputTokenDetails.Builderbuilder()Returns a mutable builder for constructing an instance of InputTokenDetails. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
audioTokens
final Optional<Long> audioTokens()
The number of audio tokens used in the Response.
 
- 
                                        
cachedTokens
final Optional<Long> cachedTokens()
The number of cached tokens used in the Response.
 
- 
                                        
textTokens
final Optional<Long> textTokens()
The number of text tokens used in the Response.
 
- 
                                        
_audioTokens
final JsonField<Long> _audioTokens()
Returns the raw JSON value of audioTokens.
Unlike audioTokens, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_cachedTokens
final JsonField<Long> _cachedTokens()
Returns the raw JSON value of cachedTokens.
Unlike cachedTokens, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_textTokens
final JsonField<Long> _textTokens()
Returns the raw JSON value of textTokens.
Unlike textTokens, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
 
- 
                                        
toBuilder
final RealtimeResponseUsage.InputTokenDetails.Builder toBuilder()
 
- 
                                        
validate
final RealtimeResponseUsage.InputTokenDetails validate()
 
- 
                                        
builder
final static RealtimeResponseUsage.InputTokenDetails.Builder builder()
Returns a mutable builder for constructing an instance of InputTokenDetails.
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -