Documentation
¶
Overview ¶
Package report generates human-readable and machine-readable reports from evaluation runs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CIReporter ¶
type CIReporter struct{}
CIReporter outputs GitHub Actions workflow annotations.
func (*CIReporter) Format ¶
func (r *CIReporter) Format() Format
type HTMLReporter ¶
type HTMLReporter struct{}
HTMLReporter renders a report as an HTML page.
func NewHTMLReporter ¶
func NewHTMLReporter() *HTMLReporter
NewHTMLReporter creates a new HTML reporter.
func (*HTMLReporter) Format ¶
func (r *HTMLReporter) Format() Format
type JSONReporter ¶
type JSONReporter struct{}
JSONReporter renders a report as formatted JSON.
func NewJSONReporter ¶
func NewJSONReporter() *JSONReporter
NewJSONReporter creates a new JSON reporter.
func (*JSONReporter) Format ¶
func (r *JSONReporter) Format() Format
type Report ¶
type Report struct {
Run *evalrun.Run `json:"run"`
Results []*evalrun.Result `json:"results"`
Stats *evalrun.ResultStats `json:"stats"`
DimensionScores map[string]float64 `json:"dimension_scores,omitempty"`
GeneratedAt time.Time `json:"generated_at"`
}
Report holds all data needed to render an evaluation report.
type TerminalReporter ¶
type TerminalReporter struct{}
TerminalReporter renders a colored table report to the terminal.
func NewTerminalReporter ¶
func NewTerminalReporter() *TerminalReporter
NewTerminalReporter creates a new terminal reporter.
func (*TerminalReporter) Format ¶
func (r *TerminalReporter) Format() Format
Click to show internal directories.
Click to hide internal directories.