store

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Run

type Run struct {
	Agent     string        `json:"agent"`
	Status    string        `json:"status"`
	Result    string        `json:"result,omitempty"`
	Error     string        `json:"error,omitempty"`
	CostUSD   float64       `json:"cost_usd"`
	Duration  time.Duration `json:"duration_ms"`
	StartedAt time.Time     `json:"started_at"`
	SessionID string        `json:"session_id,omitempty"`
}

type Store

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

func New

func New(dir string) *Store

func (*Store) GetRuns

func (s *Store) GetRuns(agentName string, limit int) ([]Run, error)

func (*Store) SaveRun

func (s *Store) SaveRun(run *Run) error

func (*Store) TotalCost

func (s *Store) TotalCost(agentName string) float64

Jump to

Keyboard shortcuts

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