Class ChatCompletionSystemMessageParam.Content
- 
                    
                    
- All Implemented Interfaces:
 
public final class ChatCompletionSystemMessageParam.ContentThe contents of the system message.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceChatCompletionSystemMessageParam.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 system messages, only type
textis supported. 
- 
                                        
isArrayOfContentParts
final Boolean isArrayOfContentParts()
 
- 
                                        
asArrayOfContentParts
final List<ChatCompletionContentPartText> asArrayOfContentParts()
An array of content parts with a defined type. For system messages, only type
textis supported. 
- 
                                        
accept
final <T extends Any> T accept(ChatCompletionSystemMessageParam.Content.Visitor<T> visitor)
 
- 
                                        
validate
final ChatCompletionSystemMessageParam.Content validate()
 
- 
                                        
ofText
final static ChatCompletionSystemMessageParam.Content ofText(String text)
The contents of the system message.
 
- 
                                        
ofArrayOfContentParts
final static ChatCompletionSystemMessageParam.Content ofArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)
An array of content parts with a defined type. For system messages, only type
textis supported. 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -