evaluator

package
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsComponent

type MetricsComponent interface {
	tea.Model
	View() string
	SetWidth(w int)
}

MetricsComponent is the public interface for the evaluator metrics header.

func NewMetricsCmp

func NewMetricsCmp(stats *evaluator.Stats) MetricsComponent

NewMetricsCmp creates a new metrics header component.

type SkillsComponent

type SkillsComponent interface {
	tea.Model
	layout.Sizeable
	layout.Bindings
	// Selected returns the skill under the cursor, or nil when the list is empty.
	Selected() *evaluator.Skill
}

SkillsComponent is the public interface for the skill library list.

func NewSkillsCmp

func NewSkillsCmp(skills []evaluator.Skill) SkillsComponent

NewSkillsCmp creates a new skills list component.

type TableComponent

type TableComponent interface {
	tea.Model
	layout.Sizeable
	layout.Bindings
}

TableComponent is the public interface for the evaluator template table.

func NewSessionsTableCmp added in v1.2.4

func NewSessionsTableCmp(sessions []evaluator.SessionDetail) TableComponent

NewSessionsTableCmp creates a table of the recently evaluated sessions: reward, corrections, the top reward components and how many variants and skills the session ran with.

func NewTableCmp

func NewTableCmp(templates []evaluator.TemplateStats) TableComponent

NewTableCmp creates a new template ranking table component.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL