Class EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem
-
- All Implemented Interfaces:
public final class EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItemA 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 classEvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.BuilderA builder for EvalItem.
public final classEvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.ContentInputs to the model - can contain template strings.
public final classEvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.RoleThe role of the message input. One of
user,assistant,system, ordeveloper.public final classEvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.TypeThe type of the message input. Always
message.
-
Method Summary
-
-
Method Detail
-
content
final EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem.Content content()
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()
-
-
-
-