Class ChatCompletionUserMessageParam.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class ChatCompletionUserMessageParam.BuilderA builder for ChatCompletionUserMessageParam.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
content
final ChatCompletionUserMessageParam.Builder content(ChatCompletionUserMessageParam.Content content)
The contents of the user message.
 
- 
                                        
content
final ChatCompletionUserMessageParam.Builder content(JsonField<ChatCompletionUserMessageParam.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
content
final ChatCompletionUserMessageParam.Builder content(String text)
Alias for calling content with
Content.ofText(text). 
- 
                                        
contentOfArrayOfContentParts
final ChatCompletionUserMessageParam.Builder contentOfArrayOfContentParts(List<ChatCompletionContentPart> arrayOfContentParts)
Alias for calling content with
Content.ofArrayOfContentParts(arrayOfContentParts). 
- 
                                        
role
final ChatCompletionUserMessageParam.Builder role(JsonValue role)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("user")This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
name
final ChatCompletionUserMessageParam.Builder name(String name)
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
 
- 
                                        
name
final ChatCompletionUserMessageParam.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
additionalProperties
final ChatCompletionUserMessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
putAdditionalProperty
final ChatCompletionUserMessageParam.Builder putAdditionalProperty(String key, JsonValue value)
 
- 
                                        
putAllAdditionalProperties
final ChatCompletionUserMessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
removeAdditionalProperty
final ChatCompletionUserMessageParam.Builder removeAdditionalProperty(String key)
 
- 
                                        
removeAllAdditionalProperties
final ChatCompletionUserMessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
 
- 
                                        
build
final ChatCompletionUserMessageParam build()
Returns an immutable instance of ChatCompletionUserMessageParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -