Interface AssistantResponseFormatOption.Visitor
- 
                    
                    - All Implemented Interfaces:
 
 public interface AssistantResponseFormatOption.Visitor<T extends Object>An interface that defines how to map each variant of AssistantResponseFormatOption to a value of type T. 
- 
                
                    
                    - 
                                
                            
                                Method SummaryModifier and Type Method Description abstract TvisitAuto(JsonValue auto)autois the default valueabstract TvisitResponseFormatText(ResponseFormatText responseFormatText)Default response format. abstract TvisitResponseFormatJsonObject(ResponseFormatJsonObject responseFormatJsonObject)JSON object response format. abstract TvisitResponseFormatJsonSchema(ResponseFormatJsonSchema responseFormatJsonSchema)JSON Schema response format. Tunknown(JsonValue json)Maps an unknown variant of AssistantResponseFormatOption to a value of type T. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        visitResponseFormatTextabstract T visitResponseFormatText(ResponseFormatText responseFormatText) Default response format. Used to generate text responses. 
 - 
                                        visitResponseFormatJsonObjectabstract T visitResponseFormatJsonObject(ResponseFormatJsonObject responseFormatJsonObject) 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.
 - 
                                        visitResponseFormatJsonSchemaabstract T visitResponseFormatJsonSchema(ResponseFormatJsonSchema responseFormatJsonSchema) JSON Schema response format. Used to generate structured JSON responses. Learn more about Structured Outputs. 
 - 
                                        unknownT unknown(JsonValue json) Maps an unknown variant of AssistantResponseFormatOption to a value of type T. An instance of AssistantResponseFormatOption 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. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-