Class ScoreModelGrader.Input
-
- All Implemented Interfaces:
public final class ScoreModelGrader.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 classScoreModelGrader.Input.BuilderA builder for Input.
public final classScoreModelGrader.Input.ContentText inputs to the model - can contain template strings.
public final classScoreModelGrader.Input.RoleThe role of the message input. One of
user,assistant,system, ordeveloper.public final classScoreModelGrader.Input.TypeThe type of the message input. Always
message.
-
Method Summary
Modifier and Type Method Description final ScoreModelGrader.Input.Contentcontent()Text inputs to the model - can contain template strings. final ScoreModelGrader.Input.Rolerole()The role of the message input. final Optional<ScoreModelGrader.Input.Type>type()The type of the message input. final JsonField<ScoreModelGrader.Input.Content>_content()Returns the raw JSON value of content. final JsonField<ScoreModelGrader.Input.Role>_role()Returns the raw JSON value of role. final JsonField<ScoreModelGrader.Input.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final ScoreModelGrader.Input.BuildertoBuilder()final ScoreModelGrader.Inputvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ScoreModelGrader.Input.Builderbuilder()Returns a mutable builder for constructing an instance of Input. -
-
Method Detail
-
content
final ScoreModelGrader.Input.Content content()
Text inputs to the model - can contain template strings.
-
role
final ScoreModelGrader.Input.Role role()
The role of the message input. One of
user,assistant,system, ordeveloper.
-
type
final Optional<ScoreModelGrader.Input.Type> type()
The type of the message input. Always
message.
-
_content
final JsonField<ScoreModelGrader.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<ScoreModelGrader.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<ScoreModelGrader.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 ScoreModelGrader.Input.Builder toBuilder()
-
validate
final ScoreModelGrader.Input validate()
-
builder
final static ScoreModelGrader.Input.Builder builder()
Returns a mutable builder for constructing an instance of Input.
The following fields are required:
.content() .role()
-
-
-
-