Class EvalCreateParams.TestingCriterion.LabelModel.Input
-
- All Implemented Interfaces:
public final class EvalCreateParams.TestingCriterion.LabelModel.Input
A chat message that makes up the prompt or context. May include variable references to the
item
namespace, ie {{item.name}}.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
EvalCreateParams.TestingCriterion.LabelModel.Input.Visitor
An interface that defines how to map each variant of Input to a value of type T.
public final class
EvalCreateParams.TestingCriterion.LabelModel.Input.SimpleInputMessage
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.
-
Method Summary
-
-
Method Detail
-
simpleInputMessage
final Optional<EvalCreateParams.TestingCriterion.LabelModel.Input.SimpleInputMessage> simpleInputMessage()
-
evalItem
final Optional<EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem> 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.
-
isSimpleInputMessage
final Boolean isSimpleInputMessage()
-
isEvalItem
final Boolean isEvalItem()
-
asSimpleInputMessage
final EvalCreateParams.TestingCriterion.LabelModel.Input.SimpleInputMessage asSimpleInputMessage()
-
asEvalItem
final EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem asEvalItem()
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.
-
accept
final <T extends Any> T accept(EvalCreateParams.TestingCriterion.LabelModel.Input.Visitor<T> visitor)
-
validate
final EvalCreateParams.TestingCriterion.LabelModel.Input validate()
-
ofSimpleInputMessage
final static EvalCreateParams.TestingCriterion.LabelModel.Input ofSimpleInputMessage(EvalCreateParams.TestingCriterion.LabelModel.Input.SimpleInputMessage simpleInputMessage)
-
ofEvalItem
final static EvalCreateParams.TestingCriterion.LabelModel.Input ofEvalItem(EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem 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.
-
-
-
-