Class RealtimeResponseUsage
- 
                    
                    - All Implemented Interfaces:
 
 public final class RealtimeResponseUsageUsage statistics for the Response, this will correspond to billing. A Realtime API session will maintain a conversation context and append new Items to the Conversation, thus output from previous turns (text and audio tokens) will become the input for later turns. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classRealtimeResponseUsage.BuilderA builder for RealtimeResponseUsage. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Optional<RealtimeResponseUsageInputTokenDetails>inputTokenDetails()Details about the input tokens used in the Response. final Optional<Long>inputTokens()The number of input tokens used in the Response, including text and audio tokens. final Optional<RealtimeResponseUsageOutputTokenDetails>outputTokenDetails()Details about the output tokens used in the Response. final Optional<Long>outputTokens()The number of output tokens sent in the Response, including text and audio tokens. final Optional<Long>totalTokens()The total number of tokens in the Response including input and output text and audio tokens. final JsonField<RealtimeResponseUsageInputTokenDetails>_inputTokenDetails()Returns the raw JSON value of inputTokenDetails. final JsonField<Long>_inputTokens()Returns the raw JSON value of inputTokens. final JsonField<RealtimeResponseUsageOutputTokenDetails>_outputTokenDetails()Returns the raw JSON value of outputTokenDetails. final JsonField<Long>_outputTokens()Returns the raw JSON value of outputTokens. final JsonField<Long>_totalTokens()Returns the raw JSON value of totalTokens. final Map<String, JsonValue>_additionalProperties()final RealtimeResponseUsage.BuildertoBuilder()final RealtimeResponseUsagevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeResponseUsage.Builderbuilder()Returns a mutable builder for constructing an instance of RealtimeResponseUsage. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        inputTokenDetailsfinal Optional<RealtimeResponseUsageInputTokenDetails> inputTokenDetails() Details about the input tokens used in the Response. Cached tokens are tokens from previous turns in the conversation that are included as context for the current response. Cached tokens here are counted as a subset of input tokens, meaning input tokens will include cached and uncached tokens. 
 - 
                                        inputTokensfinal Optional<Long> inputTokens() The number of input tokens used in the Response, including text and audio tokens. 
 - 
                                        outputTokenDetailsfinal Optional<RealtimeResponseUsageOutputTokenDetails> outputTokenDetails() Details about the output tokens used in the Response. 
 - 
                                        outputTokensfinal Optional<Long> outputTokens() The number of output tokens sent in the Response, including text and audio tokens. 
 - 
                                        totalTokensfinal Optional<Long> totalTokens() The total number of tokens in the Response including input and output text and audio tokens. 
 - 
                                        _inputTokenDetailsfinal JsonField<RealtimeResponseUsageInputTokenDetails> _inputTokenDetails() Returns the raw JSON value of inputTokenDetails. Unlike inputTokenDetails, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _inputTokensfinal JsonField<Long> _inputTokens() Returns the raw JSON value of inputTokens. Unlike inputTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _outputTokenDetailsfinal JsonField<RealtimeResponseUsageOutputTokenDetails> _outputTokenDetails() Returns the raw JSON value of outputTokenDetails. Unlike outputTokenDetails, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _outputTokensfinal JsonField<Long> _outputTokens() Returns the raw JSON value of outputTokens. Unlike outputTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _totalTokensfinal JsonField<Long> _totalTokens() Returns the raw JSON value of totalTokens. Unlike totalTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal RealtimeResponseUsage.Builder toBuilder() 
 - 
                                        validatefinal RealtimeResponseUsage validate() 
 - 
                                        builderfinal static RealtimeResponseUsage.Builder builder() Returns a mutable builder for constructing an instance of RealtimeResponseUsage. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-