Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Judge ¶
type Judge interface {
Name() string
Evaluate(ctx context.Context, evaluationContext models.EvaluationContext) models.StageResult
}
type JudgePool ¶
type JudgePool struct {
// contains filtered or unexported fields
}
JudgePool builds and manages a collection of judges from configuration
func NewJudgePool ¶
func NewJudgePool(registry *llm.LLMClientRegistry, logger *zerolog.Logger) *JudgePool
NewJudgePool creates a new judge pool builder
func (*JudgePool) BuildHolisticJudgeFromConfig ¶
func (p *JudgePool) BuildHolisticJudgeFromConfig(cfg *config.JudgesConfig) (Judge, error)
BuildHolisticJudgeFromConfig builds the single holistic conversation judge (scope: "conversation"). Returns the first enabled conversation-scoped judge.
func (*JudgePool) BuildTurnJudgesFromConfig ¶
func (p *JudgePool) BuildTurnJudgesFromConfig(cfg *config.JudgesConfig) ([]Judge, error)
BuildTurnJudgesFromConfig builds per-turn judges (scope: "turn").
type JudgeRunner ¶
type JudgeRunner struct {
Judges []Judge
// contains filtered or unexported fields
}
func NewJudgeRunner ¶
func NewJudgeRunner(judges []Judge, logger *zerolog.Logger) *JudgeRunner
func (*JudgeRunner) Run ¶
func (c *JudgeRunner) Run(ctx context.Context, evaluationContext models.EvaluationContext) []models.StageResult
type LLMJudge ¶
type LLMJudge struct {
// contains filtered or unexported fields
}
LLMJudge is a generic judge implementation that uses LLM with configurable prompts.
func NewLLMJudge ¶
func (*LLMJudge) Evaluate ¶
func (j *LLMJudge) Evaluate(ctx context.Context, evalCtx models.EvaluationContext) models.StageResult
Evaluate executes the judge evaluation