CustomJudgeSpec can be defined once and reused across multiple evaluator
instances or shared across a codebase.
Parameters
The evaluation prompt. Can be a plain string (wrapped
in a single user message) or a list of
Message dicts.Optional schema for the LLM response before
transformation. Required when output fields use
transform.Example
Defining a reusable faithfulness evaluator spec:Attributes
The evaluation prompt — a plain string (wrapped in a single user
message) or a list of
Message dicts.Schema defining the final output fields; each field produces one
Score.Optional metadata for the
{{ placeholder }} template variables,
keyed by placeholder name.