handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: EUPL-1.2 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticFS embed.FS

Functions

func CapabilityChart

func CapabilityChart(points []lab.CapabilityPoint) template.HTML

CapabilityChart generates an SVG horizontal bar chart for capability scores.

func CategoryBreakdownWithJudge

func CategoryBreakdownWithJudge(points []lab.CapabilityPoint, judgePoints []lab.CapabilityJudgePoint) template.HTML

CategoryBreakdownWithJudge generates an HTML table showing per-category capability scores. When judge data is available, shows 0-10 float averages. Falls back to binary correct/total.

func ContentChart

func ContentChart(points []lab.ContentPoint) template.HTML

ContentChart generates an SVG multi-line chart for content scores by dimension.

func DomainChart

func DomainChart(stats []lab.DomainStat) template.HTML

DomainChart renders a horizontal bar chart of domain counts (top 25).

func LossChart

func LossChart(points []lab.LossPoint) template.HTML

LossChart generates an SVG line chart for training loss data.

func VoiceChart

func VoiceChart(stats []lab.VoiceStat) template.HTML

VoiceChart renders a vertical bar chart of voice distribution.

Types

type APIHandler

type APIHandler struct {
	// contains filtered or unexported fields
}

func NewAPIHandler

func NewAPIHandler(s *lab.Store) *APIHandler

func (*APIHandler) Agents

func (h *APIHandler) Agents(w http.ResponseWriter, r *http.Request)

func (*APIHandler) GoldenSet

func (h *APIHandler) GoldenSet(w http.ResponseWriter, r *http.Request)

func (*APIHandler) Health

func (h *APIHandler) Health(w http.ResponseWriter, r *http.Request)

func (*APIHandler) Models

func (h *APIHandler) Models(w http.ResponseWriter, r *http.Request)

func (*APIHandler) Runs

func (h *APIHandler) Runs(w http.ResponseWriter, r *http.Request)

func (*APIHandler) Services

func (h *APIHandler) Services(w http.ResponseWriter, r *http.Request)

func (*APIHandler) Status

func (h *APIHandler) Status(w http.ResponseWriter, r *http.Request)

func (*APIHandler) Training

func (h *APIHandler) Training(w http.ResponseWriter, r *http.Request)

type ModelGroup

type ModelGroup struct {
	Model         string
	TrainingRuns  []lab.TrainingRunStatus
	BenchmarkRuns []lab.BenchmarkRun
	HasTraining   bool
	HasContent    bool
	HasCapability bool
	BestStatus    string // best training status: complete > training > pending
}

ModelGroup gathers all runs and data for a single model name.

type WebHandler

type WebHandler struct {
	// contains filtered or unexported fields
}

func NewWebHandler

func NewWebHandler(s *lab.Store) *WebHandler

func (*WebHandler) Agents

func (h *WebHandler) Agents(w http.ResponseWriter, r *http.Request)

func (*WebHandler) Dashboard

func (h *WebHandler) Dashboard(w http.ResponseWriter, r *http.Request)

func (*WebHandler) Dataset

func (h *WebHandler) Dataset(w http.ResponseWriter, r *http.Request)

func (*WebHandler) Events

func (h *WebHandler) Events(w http.ResponseWriter, r *http.Request)

Events is an SSE endpoint that pushes "update" events when store data changes.

func (*WebHandler) GoldenSet

func (h *WebHandler) GoldenSet(w http.ResponseWriter, r *http.Request)

func (*WebHandler) Models

func (h *WebHandler) Models(w http.ResponseWriter, r *http.Request)

func (*WebHandler) Runs

func (h *WebHandler) Runs(w http.ResponseWriter, r *http.Request)

func (*WebHandler) Services

func (h *WebHandler) Services(w http.ResponseWriter, r *http.Request)

func (*WebHandler) Training

func (h *WebHandler) Training(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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