Class EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem
-
- All Implemented Interfaces:
public final class EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem
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
EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.Builder
A builder for EvalItem.
public final class
EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.Content
Text inputs to the model - can contain template strings.
public final class
EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.Role
The role of the message input. One of
user
,assistant
,system
, ordeveloper
.public final class
EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.Type
The type of the message input. Always
message
.
-
Method Summary
-
-
Method Detail
-
content
final EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.Content content()
Text inputs to the model - can contain template strings.
-
role
final EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.Role role()
The role of the message input. One of
user
,assistant
,system
, ordeveloper
.
-
type
final Optional<EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.Type> type()
The type of the message input. Always
message
.
-
_content
final JsonField<EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.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<EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.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<EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.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 EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.Builder toBuilder()
-
validate
final EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem validate()
-
builder
final static EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.Builder builder()
Returns a mutable builder for constructing an instance of EvalItem.
The following fields are required:
.content() .role()
-
-
-
-