Versions in this module Expand all Collapse all v0 v0.2.4 Oct 25, 2026 Changes in this version + const VerdictFail + const VerdictPass + const VerdictTool + type Judge struct + func NewJudge(caller ModelCaller, base model.ToolCallingChatModel, prompt string) (Judge, error) + func (j Judge) Rule(ctx context.Context, brief string) (Verdict, error) + type ModelCaller interface + Call func(ctx context.Context, model model.ToolCallingChatModel, msgs []*schema.Message, ...) (*schema.Message, error) + type Off struct + func (Off) AfterIteration(context.Context, []*schema.Message, []*schema.Message) (Verdict, error) + func (Off) AtFinish(context.Context, []*schema.Message, string) (Verdict, error) + type OnFinish struct + func NewOnFinish(judge Judge) OnFinish + func (r OnFinish) AtFinish(ctx context.Context, task []*schema.Message, answer string) (Verdict, error) + type OnIteration struct + func NewOnIteration(judge Judge) OnIteration + func (r OnIteration) AfterIteration(ctx context.Context, task, iteration []*schema.Message) (Verdict, error) + type Verdict struct + Confidence float64 + Hint string + Reason string + Verdict string + func (v Verdict) Failed() bool