Documentation
¶
Overview ¶
Package report formats and prints validation and scoring results. It supports colored terminal output, GitHub Actions annotations, JSON, and Markdown output formats.
Index ¶
- func Compare(w io.Writer, results []*judge.CachedResult, skillDir, format string) error
- func Default(w io.Writer, results []*judge.CachedResult, skillDir, format string) error
- func FormatEvalResults(w io.Writer, results []*evaluate.Result, format, display string) error
- func FormatMultiEvalResults(w io.Writer, results []*evaluate.Result, format, display string) error
- func List(w io.Writer, results []*judge.CachedResult, skillDir, format string) error
- func Print(w io.Writer, r *types.Report, perFile bool)
- func PrintAnnotations(w io.Writer, r *types.Report, workDir string)
- func PrintEvalJSON(w io.Writer, results []*evaluate.Result) error
- func PrintEvalMarkdown(w io.Writer, result *evaluate.Result, display string)
- func PrintEvalText(w io.Writer, result *evaluate.Result, display string)
- func PrintJSON(w io.Writer, r *types.Report, perFile bool) error
- func PrintMarkdown(w io.Writer, r *types.Report, perFile bool) error
- func PrintMulti(w io.Writer, mr *types.MultiReport, perFile bool)
- func PrintMultiAnnotations(w io.Writer, mr *types.MultiReport, workDir string)
- func PrintMultiEvalMarkdown(w io.Writer, results []*evaluate.Result, display string)
- func PrintMultiJSON(w io.Writer, mr *types.MultiReport, perFile bool) error
- func PrintMultiMarkdown(w io.Writer, mr *types.MultiReport, perFile bool) error
- type EvalJSONOutput
- type EvalJSONRef
- type EvalJSONSkill
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatEvalResults ¶
FormatEvalResults formats a single EvalResult in the given format.
func FormatMultiEvalResults ¶
FormatMultiEvalResults formats multiple EvalResults in the given format.
func Print ¶
Print writes a human-readable validation report to w. When perFile is true, per-file content and contamination analysis sections are included.
func PrintAnnotations ¶
PrintAnnotations writes GitHub Actions workflow command annotations for errors and warnings in the report. Pass and Info results are skipped. workDir is the working directory used to compute relative file paths; in CI this is typically the repository root.
func PrintEvalJSON ¶
PrintEvalJSON writes results as indented JSON.
func PrintEvalMarkdown ¶
PrintEvalMarkdown writes a single EvalResult as Markdown.
func PrintEvalText ¶
PrintEvalText writes a human-readable text representation of an EvalResult.
func PrintMarkdown ¶
PrintMarkdown writes the report as GitHub-flavored markdown to the given writer.
func PrintMulti ¶
func PrintMulti(w io.Writer, mr *types.MultiReport, perFile bool)
PrintMulti prints each skill report separated by a line, with an overall summary.
func PrintMultiAnnotations ¶
func PrintMultiAnnotations(w io.Writer, mr *types.MultiReport, workDir string)
PrintMultiAnnotations writes annotations for all skills in a multi-report.
func PrintMultiEvalMarkdown ¶
PrintMultiEvalMarkdown writes multiple EvalResults as Markdown, separated by rules.
func PrintMultiJSON ¶
PrintMultiJSON writes the multi-skill report as JSON to the given writer.
func PrintMultiMarkdown ¶
PrintMultiMarkdown writes the multi-skill report as GitHub-flavored markdown.
Types ¶
type EvalJSONOutput ¶
type EvalJSONOutput struct {
Skills []EvalJSONSkill `json:"skills"`
}
EvalJSONOutput is the top-level JSON envelope.
type EvalJSONRef ¶
EvalJSONRef is one reference file entry in JSON output.
type EvalJSONSkill ¶
type EvalJSONSkill struct {
SkillDir string `json:"skill_dir"`
SkillScores any `json:"skill_scores,omitempty"`
RefScores []EvalJSONRef `json:"reference_scores,omitempty"`
RefAggregate any `json:"reference_aggregate,omitempty"`
}
EvalJSONSkill is one skill entry in JSON output.