Class EvalLabelModelGrader.Input
-
- All Implemented Interfaces:
public final class EvalLabelModelGrader.Input
A message input to the model with a role indicating instruction following hierarchy. Instructions given with the
developer
orsystem
role take precedence over instructions given with theuser
role. Messages with theassistant
role are presumed to have been generated by the model in previous interactions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
EvalLabelModelGrader.Input.Builder
A builder for Input.
public final class
EvalLabelModelGrader.Input.Content
Text inputs to the model - can contain template strings.
public final class
EvalLabelModelGrader.Input.Role
The role of the message input. One of
user
,assistant
,system
, ordeveloper
.public final class
EvalLabelModelGrader.Input.Type
The type of the message input. Always
message
.
-
Method Summary
Modifier and Type Method Description final EvalLabelModelGrader.Input.Content
content()
Text inputs to the model - can contain template strings. final EvalLabelModelGrader.Input.Role
role()
The role of the message input. final Optional<EvalLabelModelGrader.Input.Type>
type()
The type of the message input. final JsonField<EvalLabelModelGrader.Input.Content>
_content()
Returns the raw JSON value of content. final JsonField<EvalLabelModelGrader.Input.Role>
_role()
Returns the raw JSON value of role. final JsonField<EvalLabelModelGrader.Input.Type>
_type()
Returns the raw JSON value of type. final Map<String, JsonValue>
_additionalProperties()
final EvalLabelModelGrader.Input.Builder
toBuilder()
final EvalLabelModelGrader.Input
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static EvalLabelModelGrader.Input.Builder
builder()
Returns a mutable builder for constructing an instance of Input. -
-
Method Detail
-
content
final EvalLabelModelGrader.Input.Content content()
Text inputs to the model - can contain template strings.
-
role
final EvalLabelModelGrader.Input.Role role()
The role of the message input. One of
user
,assistant
,system
, ordeveloper
.
-
type
final Optional<EvalLabelModelGrader.Input.Type> type()
The type of the message input. Always
message
.
-
_content
final JsonField<EvalLabelModelGrader.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<EvalLabelModelGrader.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<EvalLabelModelGrader.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 EvalLabelModelGrader.Input.Builder toBuilder()
-
validate
final EvalLabelModelGrader.Input validate()
-
builder
final static EvalLabelModelGrader.Input.Builder builder()
Returns a mutable builder for constructing an instance of Input.
The following fields are required:
.content() .role()
-
-
-
-