store

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package store persists eval run summaries in a local SQLite database.

The data layer uses modernc.org/sqlite: a pure-Go, zero-CGO build of SQLite so the binary keeps zero external runtime dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBPath

func DBPath() string

DBPath returns the local store location.

Types

type Run

type Run struct {
	ID         int64
	CreatedAt  string
	PromptPath string
	Suite      string
	Models     string
	Passed     int
	Failed     int
	Skipped    int
	Total      int
}

Run is a stored eval run summary.

type Store

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

Store wraps a SQLite connection.

func Open

func Open() (*Store, error)

Open opens (creating if needed) the local store.

func (*Store) Close

func (s *Store) Close() error

Close closes the underlying connection.

func (*Store) ListRuns

func (s *Store) ListRuns() ([]Run, error)

ListRuns returns stored runs newest first.

func (*Store) RecordRun

func (s *Store) RecordRun(promptPath, suite, models string, total, passed, failed, skipped int) (int64, error)

RecordRun inserts a run summary and returns its id.

Jump to

Keyboard shortcuts

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