Class ChatCompletionDeveloperMessageParam.Content
- 
                    
                    
- All Implemented Interfaces:
 
public final class ChatCompletionDeveloperMessageParam.ContentThe contents of the developer message.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceChatCompletionDeveloperMessageParam.Content.VisitorAn interface that defines how to map each variant of Content to a value of type T.
 
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
arrayOfContentParts
final Optional<List<ChatCompletionContentPartText>> arrayOfContentParts()
An array of content parts with a defined type. For developer messages, only type
textis supported. 
- 
                                        
isArrayOfContentParts
final Boolean isArrayOfContentParts()
 
- 
                                        
asArrayOfContentParts
final List<ChatCompletionContentPartText> asArrayOfContentParts()
An array of content parts with a defined type. For developer messages, only type
textis supported. 
- 
                                        
accept
final <T extends Any> T accept(ChatCompletionDeveloperMessageParam.Content.Visitor<T> visitor)
 
- 
                                        
validate
final ChatCompletionDeveloperMessageParam.Content validate()
 
- 
                                        
ofText
final static ChatCompletionDeveloperMessageParam.Content ofText(String text)
The contents of the developer message.
 
- 
                                        
ofArrayOfContentParts
final static ChatCompletionDeveloperMessageParam.Content ofArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)
An array of content parts with a defined type. For developer messages, only type
textis supported. 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -