derive

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package derive builds an eval suite for a skill that has none, by recovering a spec from the bundle and drafting evals from it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deriver

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

Deriver builds suites. Construct with New.

func New

func New(o Options) (*Deriver, error)

New validates o and returns a Deriver.

func (*Deriver) Derive

func (d *Deriver) Derive(ctx context.Context, in Input) (*Result, error)

Derive recovers a spec from the bundle, drafts an eval set, and validates it statically.

type Input

type Input struct {
	Skill  string
	Bundle []byte
	// Tier and Panel are used only to dry-run runner.BuildPlan, so a suite too
	// thin to plan is refused before it is pushed and an eval row created.
	Tier  string
	Panel runner.Panel
}

Input is one derivation request.

type Options

type Options struct {
	Gateway llm.Gateway
	Logger  func(format string, args ...any)
}

Options are the deriver's injected dependencies.

type Result

type Result struct {
	Archive []byte
	Checks  []evalsuite.Check
	Spec    *spec.SkillSpec
}

Result is a derived suite, ready to push to the registry.

Jump to

Keyboard shortcuts

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