Class StructuredChatCompletion
- 
                    
                    - All Implemented Interfaces:
 
 public final class StructuredChatCompletion<T extends Object>A wrapper for ChatCompletion that provides type-safe access to the choices when using the Structured Outputs feature to deserialize a JSON response to an instance of an arbitrary class. See the SDK documentation for more details on Structured Outputs. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classStructuredChatCompletion.Choice
 - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description private final Class<T>responseTypeprivate final ChatCompletionrawChatCompletion
 - 
                                
                            
                                Constructor SummaryConstructors Constructor Description StructuredChatCompletion(Class<T> responseType, ChatCompletion rawChatCompletion)
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Class<T>responseType()final ChatCompletionrawChatCompletion()final Stringid()final List<StructuredChatCompletion.Choice<T>>choices()final Longcreated()final Stringmodel()final JsonValue_object_()final Optional<ChatCompletion.ServiceTier>serviceTier()final Optional<String>systemFingerprint()final Optional<CompletionUsage>usage()final JsonField<String>_id()final JsonField<List<StructuredChatCompletion.Choice<T>>>_choices()final JsonField<Long>_created()final JsonField<String>_model()final JsonField<ChatCompletion.ServiceTier>_serviceTier()final JsonField<String>_systemFingerprint()final JsonField<CompletionUsage>_usage()final Map<String, JsonValue>_additionalProperties()final StructuredChatCompletion<T>validate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()- 
                    
                    
                    - 
                                
                            
                                Constructor Detail- 
                                        StructuredChatCompletionStructuredChatCompletion(Class<T> responseType, ChatCompletion rawChatCompletion) 
 
- 
                                        
 - 
                                
                            
                                Method Detail- 
                                        responseTypefinal Class<T> responseType() 
 - 
                                        rawChatCompletionfinal ChatCompletion rawChatCompletion() 
 - 
                                        choicesfinal List<StructuredChatCompletion.Choice<T>> choices() 
 - 
                                        serviceTierfinal Optional<ChatCompletion.ServiceTier> serviceTier() 
 - 
                                        systemFingerprintfinal Optional<String> systemFingerprint() 
 - 
                                        usagefinal Optional<CompletionUsage> usage() 
 - 
                                        _choicesfinal JsonField<List<StructuredChatCompletion.Choice<T>>> _choices() 
 - 
                                        _serviceTierfinal JsonField<ChatCompletion.ServiceTier> _serviceTier() 
 - 
                                        _systemFingerprintfinal JsonField<String> _systemFingerprint() 
 - 
                                        _usagefinal JsonField<CompletionUsage> _usage() 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        validatefinal StructuredChatCompletion<T> validate() 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-