Package com.openai.models.beta.threads
        Class ThreadCreateAndRunParams.Thread.Message.Content
- 
                    
                    - All Implemented Interfaces:
 
 public final class ThreadCreateAndRunParams.Thread.Message.ContentThe text contents of the message. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public interfaceThreadCreateAndRunParams.Thread.Message.Content.VisitorAn interface that defines how to map each variant of Content to a value of type T. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Optional<String>text()The text contents of the message. final Optional<List<MessageContentPartParam>>arrayOfContentParts()An array of content parts with a defined type, each can be of type textor images can be passed withimage_urlorimage_file.final BooleanisText()final BooleanisArrayOfContentParts()final StringasText()The text contents of the message. final List<MessageContentPartParam>asArrayOfContentParts()An array of content parts with a defined type, each can be of type textor images can be passed withimage_urlorimage_file.final Optional<JsonValue>_json()final <T extends Any> Taccept(ThreadCreateAndRunParams.Thread.Message.Content.Visitor<T> visitor)final ThreadCreateAndRunParams.Thread.Message.Contentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ThreadCreateAndRunParams.Thread.Message.ContentofText(String text)The text contents of the message. final static ThreadCreateAndRunParams.Thread.Message.ContentofArrayOfContentParts(List<MessageContentPartParam> arrayOfContentParts)An array of content parts with a defined type, each can be of type textor images can be passed withimage_urlorimage_file.- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        arrayOfContentPartsfinal Optional<List<MessageContentPartParam>> arrayOfContentParts() An array of content parts with a defined type, each can be of type textor images can be passed withimage_urlorimage_file. Image types are only supported on Vision-compatible models.
 - 
                                        isArrayOfContentPartsfinal Boolean isArrayOfContentParts() 
 - 
                                        asArrayOfContentPartsfinal List<MessageContentPartParam> asArrayOfContentParts() An array of content parts with a defined type, each can be of type textor images can be passed withimage_urlorimage_file. Image types are only supported on Vision-compatible models.
 - 
                                        acceptfinal <T extends Any> T accept(ThreadCreateAndRunParams.Thread.Message.Content.Visitor<T> visitor) 
 - 
                                        validatefinal ThreadCreateAndRunParams.Thread.Message.Content validate() 
 - 
                                        ofTextfinal static ThreadCreateAndRunParams.Thread.Message.Content ofText(String text) The text contents of the message. 
 - 
                                        ofArrayOfContentPartsfinal static ThreadCreateAndRunParams.Thread.Message.Content ofArrayOfContentParts(List<MessageContentPartParam> arrayOfContentParts) An array of content parts with a defined type, each can be of type textor images can be passed withimage_urlorimage_file. Image types are only supported on Vision-compatible models.
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-