Class LabelModelGrader.Input
- 
                    
                    
- All Implemented Interfaces:
 
public final class LabelModelGrader.InputA message input to the model with a role indicating instruction following hierarchy. Instructions given with the
developerorsystemrole take precedence over instructions given with theuserrole. Messages with theassistantrole are presumed to have been generated by the model in previous interactions. 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classLabelModelGrader.Input.BuilderA builder for Input.
public final classLabelModelGrader.Input.ContentInputs to the model - can contain template strings.
public final classLabelModelGrader.Input.RoleThe role of the message input. One of
user,assistant,system, ordeveloper.public final classLabelModelGrader.Input.TypeThe type of the message input. Always
message. 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final LabelModelGrader.Input.Contentcontent()Inputs to the model - can contain template strings. final LabelModelGrader.Input.Rolerole()The role of the message input. final Optional<LabelModelGrader.Input.Type>type()The type of the message input. final JsonField<LabelModelGrader.Input.Content>_content()Returns the raw JSON value of content. final JsonField<LabelModelGrader.Input.Role>_role()Returns the raw JSON value of role. final JsonField<LabelModelGrader.Input.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final LabelModelGrader.Input.BuildertoBuilder()final LabelModelGrader.Inputvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static LabelModelGrader.Input.Builderbuilder()Returns a mutable builder for constructing an instance of Input. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
content
final LabelModelGrader.Input.Content content()
Inputs to the model - can contain template strings.
 
- 
                                        
role
final LabelModelGrader.Input.Role role()
The role of the message input. One of
user,assistant,system, ordeveloper. 
- 
                                        
type
final Optional<LabelModelGrader.Input.Type> type()
The type of the message input. Always
message. 
- 
                                        
_content
final JsonField<LabelModelGrader.Input.Content> _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<LabelModelGrader.Input.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_type
final JsonField<LabelModelGrader.Input.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 LabelModelGrader.Input.Builder toBuilder()
 
- 
                                        
validate
final LabelModelGrader.Input validate()
 
- 
                                        
builder
final static LabelModelGrader.Input.Builder builder()
Returns a mutable builder for constructing an instance of Input.
The following fields are required:
.content() .role() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -