Documentation
¶
Index ¶
Constants ¶
View Source
const ( VerdictPass = "pass" VerdictFail = "fail" )
View Source
const VerdictTool = "review_verdict"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Judge ¶
type Judge struct {
// contains filtered or unexported fields
}
func NewJudge ¶
func NewJudge(caller ModelCaller, base model.ToolCallingChatModel, prompt string) (Judge, error)
type ModelCaller ¶
type Off ¶
type Off struct{}
Off never reviews and makes no model call. It returns the zero Verdict, which means no review ran.
func (Off) AfterIteration ¶
type OnFinish ¶
type OnFinish struct {
Off
// contains filtered or unexported fields
}
func NewOnFinish ¶
type OnIteration ¶
type OnIteration struct {
Off
// contains filtered or unexported fields
}
OnIteration judges every iteration against the task. The judge sees the task and only that iteration, written out as text, so it needs none of the run's tools and is not anchored on the whole history.
func NewOnIteration ¶
func NewOnIteration(judge Judge) OnIteration
func (OnIteration) AfterIteration ¶
Click to show internal directories.
Click to hide internal directories.