EvaluatorReference

sealed class EvaluatorReference

The reference to an evaluator used in online evaluation configurations, containing the evaluator identifier.

Inheritors

Types

Link copied to clipboard
data class EvaluatorId(val value: String) : EvaluatorReference

The unique identifier of the evaluator. Can reference builtin evaluators (e.g., Builtin.Helpfulness) or custom evaluators.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this EvaluatorReference as a EvaluatorId and retrieves its kotlin.String value. Throws an exception if the EvaluatorReference is not a EvaluatorId.

Link copied to clipboard

Casts this EvaluatorReference as a EvaluatorId and retrieves its kotlin.String value. Returns null if the EvaluatorReference is not a EvaluatorId.