Interface ChatCompletionCreateParams.ResponseFormat.Visitor
- 
                    
                    - All Implemented Interfaces:
 
 public interface ChatCompletionCreateParams.ResponseFormat.Visitor<T extends Object>An interface that defines how to map each variant of ResponseFormat to a value of type T. 
- 
                
                    
                    - 
                                
                            
                                Method SummaryModifier and Type Method Description abstract TvisitText(ResponseFormatText text)Default response format. abstract TvisitJsonSchema(ResponseFormatJsonSchema jsonSchema)JSON Schema response format. abstract TvisitJsonObject(ResponseFormatJsonObject jsonObject)JSON object response format. Tunknown(JsonValue json)Maps an unknown variant of ResponseFormat to a value of type T. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        visitTextabstract T visitText(ResponseFormatText text) Default response format. Used to generate text responses. 
 - 
                                        visitJsonSchemaabstract T visitJsonSchema(ResponseFormatJsonSchema jsonSchema) JSON Schema response format. Used to generate structured JSON responses. Learn more about Structured Outputs. 
 - 
                                        visitJsonObjectabstract T visitJsonObject(ResponseFormatJsonObject jsonObject) JSON object response format. An older method of generating JSON responses. Using json_schemais recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
 - 
                                        unknownT unknown(JsonValue json) Maps an unknown variant of ResponseFormat to a value of type T. An instance of ResponseFormat can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-