Interface MessageContent.Visitor
- 
                    
                    - All Implemented Interfaces:
 
 public interface MessageContent.Visitor<T extends Object>An interface that defines how to map each variant of MessageContent to a value of type T. 
- 
                
                    
                    - 
                                
                            
                                Method SummaryModifier and Type Method Description abstract TvisitImageFile(ImageFileContentBlock imageFile)References an image File in the content of a message. abstract TvisitImageUrl(ImageUrlContentBlock imageUrl)References an image URL in the content of a message. abstract TvisitText(TextContentBlock text)The text content that is part of a message. abstract TvisitRefusal(RefusalContentBlock refusal)The refusal content generated by the assistant. Tunknown(JsonValue json)Maps an unknown variant of MessageContent to a value of type T. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        visitImageFileabstract T visitImageFile(ImageFileContentBlock imageFile) References an image File in the content of a message. 
 - 
                                        visitImageUrlabstract T visitImageUrl(ImageUrlContentBlock imageUrl) References an image URL in the content of a message. 
 - 
                                        visitTextabstract T visitText(TextContentBlock text) The text content that is part of a message. 
 - 
                                        visitRefusalabstract T visitRefusal(RefusalContentBlock refusal) The refusal content generated by the assistant. 
 - 
                                        unknownT unknown(JsonValue json) Maps an unknown variant of MessageContent to a value of type T. An instance of MessageContent 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. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-