Class Parameters

java.lang.Object
dev.braintrust.eval.Parameters

public class Parameters extends Object
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 Details

  • Method Details

    • empty

      public static Parameters empty()
      Returns an empty Parameters instance with no values or definitions.
    • isEmpty

      public boolean isEmpty()
      Returns true if no parameter values are present.
    • has

      public boolean has(String key)
      Returns true if a value exists for the given key.
    • get

      public <T> T get(@Nonnull String key, @Nonnull Class<T> paramClass)
      Returns the raw value for the given key, or null if absent.
    • getMerged

      public Map<String,Object> getMerged()
      -- GETTER -- Returns the merged parameter values as an unmodifiable map.