Documentation
¶
Overview ¶
Package evalplan defines immutable evaluation inputs and scorer identities.
Index ¶
Constants ¶
View Source
const SchemaVersion = 1
SchemaVersion is the supported frozen-plan wire version.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Criterion ¶
type Criterion struct {
ID string `json:"id"`
Scorer string `json:"scorer"`
Revision string `json:"revision"`
Config map[string]any `json:"config,omitempty"`
Required bool `json:"required"`
RequiresExpected bool `json:"requires_expected"`
}
Criterion pins a scorer and the constraints it must satisfy.
type Plan ¶
type Plan struct {
ID id.ID `json:"id"`
SchemaVersion int `json:"schema_version"`
AppID string `json:"app_id"`
TenantID string `json:"tenant_id"`
Suite suite.Suite `json:"suite"`
PromptVersionID string `json:"prompt_version_id,omitempty"`
Cases []Case `json:"cases"`
PassThreshold float64 `json:"pass_threshold"`
Digest string `json:"digest"`
CreatedAt time.Time `json:"created_at"`
}
Plan freezes scoring inputs independently of any target or agent runtime.
func (Plan) ContentDigest ¶
ContentDigest hashes scoring content, excluding storage identity and time.
Click to show internal directories.
Click to hide internal directories.