Package dev.braintrust.devserver
Class RemoteEval<INPUT,OUTPUT>
java.lang.Object
dev.braintrust.devserver.RemoteEval<INPUT,OUTPUT>
- Type Parameters:
INPUT- The type of input data for the evaluationOUTPUT- The type of output produced by the task
Represents a remote evaluator that can be exposed via the dev server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classRepresents a configurable parameter for the evaluatorstatic enumParameter type enumeration -
Method Summary
Modifier and TypeMethodDescriptionstatic <INPUT,OUTPUT>
RemoteEval.Builder<INPUT,OUTPUT> builder()getName()The name of this evaluator (used as identifier)Optional parameters that can be configured from the UIList of scorers for this evaluatorgetTask()The task function that performs the evaluation
-
Method Details
-
builder
-
getName
The name of this evaluator (used as identifier) -
getTask
The task function that performs the evaluationThe task function must be thread safe.
-
getScorers
List of scorers for this evaluatorThe score function must be thread safe.
-
getParameters
Optional parameters that can be configured from the UI
-