Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GradeRequest ¶
type GradeResult ¶
type GradeResult struct {
Name string
Score float64
Passed bool
Message string
Assertions []Assertion
Metadata map[string]any
}
GradeResult is one grader's decision for a trial. Assertions, when present, are aggregated into Passed so callers do not need to duplicate that logic.
type Grader ¶
type Grader interface {
Name() string
Grade(context.Context, GradeRequest) (*GradeResult, error)
}
type GraderFunc ¶
type GraderFunc struct {
GraderName string
Fn func(context.Context, GradeRequest) (*GradeResult, error)
}
func (GraderFunc) Grade ¶
func (g GraderFunc) Grade(ctx context.Context, req GradeRequest) (*GradeResult, error)
func (GraderFunc) Name ¶
func (g GraderFunc) Name() string
type HarnessFunc ¶
type Outcome ¶
Outcome is the evaluated system's domain result. OutputRef points to host-owned content without copying that content into an eval report.
type Runner ¶
Runner executes a suite sequentially. It intentionally does not own concurrency, durable storage, or model-as-judge infrastructure.
type SuiteResult ¶
type Trace ¶
Trace is the bounded trajectory record used by graders. Hosts decide how much detail to map in from runtime events, logs, or workflow records.
type TrialResult ¶
type TrialResult struct {
Trial Trial
Grades []GradeResult
Passed bool
Message string
}
TrialResult combines one harness attempt with all grader outputs.