Configuration types define how different components of the JudgmentEval SDK should behave. These types are used to customize scoring behavior, API clients, and evaluation parameters.
Returns the name/identifier for this scorer. Override to customize.
Reference Example
# BaseScorer is the abstract base class - for reference only# In practice, create scorers using ExampleScorer:from judgeval import ExampleScorer# Create a custom scorer using ExampleScorer (recommended approach)custom_scorer = ExampleScorer( name="similarity_scorer", scorer_fn=lambda input, output, expected: 1.0 if expected and expected.lower() in output.lower() else 0.0)# Use the scorerresult = custom_scorer.score( input="What is 2+2?", output="The answer is 4", expected="4")