Class ResponseInputItem.Message
- 
                    
                    
- All Implemented Interfaces:
 
public final class ResponseInputItem.MessageA message input to the model with a role indicating instruction following hierarchy. Instructions given with the
developerorsystemrole take precedence over instructions given with theuserrole. 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseInputItem.Message.BuilderA builder for Message.
public final classResponseInputItem.Message.RoleThe role of the message input. One of
user,system, ordeveloper.public final classResponseInputItem.Message.StatusThe status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.public final classResponseInputItem.Message.TypeThe type of the message input. Always set to
message. 
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
content
final List<ResponseInputContent> content()
A list of one or many input items to the model, containing different content types.
 
- 
                                        
role
final ResponseInputItem.Message.Role role()
The role of the message input. One of
user,system, ordeveloper. 
- 
                                        
status
final Optional<ResponseInputItem.Message.Status> status()
The status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API. 
- 
                                        
type
final Optional<ResponseInputItem.Message.Type> type()
The type of the message input. Always set to
message. 
- 
                                        
_content
final JsonField<List<ResponseInputContent>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_role
final JsonField<ResponseInputItem.Message.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_status
final JsonField<ResponseInputItem.Message.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_type
final JsonField<ResponseInputItem.Message.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
 
- 
                                        
toBuilder
final ResponseInputItem.Message.Builder toBuilder()
 
- 
                                        
validate
final ResponseInputItem.Message validate()
 
- 
                                        
builder
final static ResponseInputItem.Message.Builder builder()
Returns a mutable builder for constructing an instance of Message.
The following fields are required:
.content() .role() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -