Skip to content

Root Package

Import path: go.devnw.com/canary

FUNCTIONS

API (raw go doc)




FUNCTIONS

func CheckStaleness(rep report, dur time.Duration) error
    CheckStaleness: fail if any TESTED/BENCHED has UPDATED older than dur

func GenerateSchema[T any]() any
func ParseGAPClaims(path string) (map[string]claim, error)
func Single[T any](
    ctx context.Context, c *LLMClient,
    model, desc string,
    system []string,
    context ...string,
) (T, error)
func VerifyClaims(rep report, claims map[string]claim) error
func WriteCSV(rep report, path string) error
func Scan(root string) (report, error)

TYPES

type ClientOption func(*LLMClient) error

type LLMClient struct {
    // Has unexported fields.
}

func LLM(ctx context.Context, opts ...ClientOption) (*LLMClient, error)

type Output[T any] struct {
    Data T `json:"data"`
}

Packages