ScorerData
The result from a single scorer for one example.
Each ScoringResult contains a list of ScorerData – one per scorer
that was run. Inspect value for the scorer’s output.
Attributes
name?str
Scorer name (e.g. "faithfulness").
strvalue?Optional[Union[str, float]]
The scorer result. Binary scorers use "Yes" or "No"; categorical scorers use their selected category.
Optional[Union[str, float]]Nonescore_type?Optional[str]
Result type returned by the scorer.
Optional[str]Noneminimum_score_range?float
Lower bound of the scoring scale.
float0maximum_score_range?float
Upper bound of the scoring scale.
float1evaluation_model?Optional[str]
The LLM used to produce the score.
Optional[str]Noneerror?Optional[str]
Error message if scoring failed.
Optional[str]Noneadditional_metadata?Dict[str, Any]
Extra metadata from the scorer.
Dict[str, Any]field(default_factory=dict)id?Optional[str]
Unique identifier for this result.
Optional[str]Nonesuccess?Optional[bool]
Outcome of a client-side pass condition for the row this scorer result belongs to. None when no pass condition was evaluated.
Optional[bool]Noneto_dict()
Serialize to a dictionary, omitting None fields.
def to_dict() -> Dict[str, Any]:
Returns
Dict[str, Any]