Package dev.braintrust.eval
Class Parameters
java.lang.Object
dev.braintrust.eval.Parameters
Holds the merged parameter values for a single eval run, along with the parameter definitions.
Parameter values are the result of merging evaluator defaults with request overrides. This class provides typed accessors so task and scorer implementations don't need to cast.
-
Constructor Summary
ConstructorsConstructorDescriptionParameters(List<ParameterDef<?>> definitions, Map<String, Object> requestParams) -
Method Summary
Modifier and TypeMethodDescriptionstatic Parametersempty()Returns an emptyParametersinstance with no values or definitions.<T> TReturns the raw value for the given key, or null if absent.-- GETTER -- Returns the merged parameter values as an unmodifiable map.booleanReturns true if a value exists for the given key.booleanisEmpty()Returns true if no parameter values are present.
-
Constructor Details
-
Parameters
-
-
Method Details
-
empty
Returns an emptyParametersinstance with no values or definitions. -
isEmpty
public boolean isEmpty()Returns true if no parameter values are present. -
has
Returns true if a value exists for the given key. -
get
Returns the raw value for the given key, or null if absent. -
getMerged
-- GETTER -- Returns the merged parameter values as an unmodifiable map.
-