Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsComponent ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.