Class StructuredChatCompletionCreateParams
- 
                    
                    
- All Implemented Interfaces:
 
public final class StructuredChatCompletionCreateParams<T extends Object>A wrapper for ChatCompletionCreateParams that provides a type-safe Builder that can record the responseType used to derive a JSON schema from an arbitrary class when using the Structured Outputs feature. When a JSON response is received, it is deserialized to an instance of that type. See the SDK documentation for more details on Structured Outputs.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classStructuredChatCompletionCreateParams.Builder 
- 
                                
                            
                                
Field Summary
Fields Modifier and Type Field Description private final Class<T>responseTypeprivate final ChatCompletionCreateParamsrawParams 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final Class<T>responseType()final ChatCompletionCreateParamsrawParams()The raw, underlying chat completion create parameters wrapped by this structured instance of the parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static <T extends Any> StructuredChatCompletionCreateParams.Builder<T>builder()- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
responseType
final Class<T> responseType()
 
- 
                                        
rawParams
final ChatCompletionCreateParams rawParams()
The raw, underlying chat completion create parameters wrapped by this structured instance of the parameters.
 
- 
                                        
builder
final static <T extends Any> StructuredChatCompletionCreateParams.Builder<T> builder()
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -