engine

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by scripts/generate-harness-catalog.py; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidDeclaration = errors.New("invalid engine profile declaration")
View Source
var ErrInvalidInput = errors.New("invalid engine configuration")

Functions

This section is empty.

Types

type Catalog

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

Catalog is immutable after construction. Its zero value selects built-in profiles. NewCatalog with an empty map explicitly qualifies no engines.

func NewCatalog

func NewCatalog(profiles map[string]Profile) Catalog

NewCatalog rejects invalid static registrations with ErrInvalidDeclaration. Nil and empty maps both explicitly authorize no engines.

func (Catalog) Kinds

func (c Catalog) Kinds() []string

Kinds returns a stable snapshot of harnesses qualified by this build.

func (Catalog) Lookup

func (c Catalog) Lookup(kind string) (Profile, bool)

type Profile

type Profile struct {
	ProgrammaticToolCallingDisable             proto.CapabilitySupport
	Placements                                 []string
	MCPOrigins                                 []string
	WebSearchControl, TextVerbosity, MCPBearer proto.CapabilitySupport
	StructuredOutput                           proto.CapabilitySupport
	ToolSearch                                 proto.CapabilitySupport
	MessageImages                              proto.CapabilitySupport
	ConfigurationValidation                    ValidationPolicy
	ToolsValidation                            ValidationPolicy
	FunctionResultValidation                   ValidationPolicy
	ValidateConfiguration                      func(agent v1.Agent, environment *v1.Environment) error
	ValidateTools                              func(environment *v1.Environment, functions []proto.FunctionTool, mcp []proto.MCPHTTPServer) error
	ValidateFunctionResult                     func(placement string, result proto.FunctionResultPayload) error
	// WhitespaceOnlyText qualifies messages without an image or non-whitespace
	// text. Unqualified harnesses reject them at admission; Core never trims or
	// pads model input to fit a harness.
	WhitespaceOnlyText proto.CapabilitySupport
}

Profile records qualified public behavior, independently of Runtime advertisements.

func (Profile) Accepts

func (p Profile) Accepts(placement string) bool

func (Profile) ValidateDeclaration

func (p Profile) ValidateDeclaration() error

ValidateDeclaration runs before a Catalog can authorize any operation. Every future field must be classified here; no field receives an inferred default.

func (Profile) ValidateMCPOrigins

func (p Profile) ValidateMCPOrigins(environment *v1.Environment, servers []proto.MCPHTTPServer) error

ValidateMCPOrigins preserves outbound authority independently of Harness names. Workspace connections never stand in for service-network connections.

type ValidationPolicy

type ValidationPolicy uint8

ValidationPolicy distinguishes an explicit reliance on common validation from additional pure Harness restrictions. Neither is an execution implementation.

const (
	ValidationUnspecified ValidationPolicy = iota
	CommonValidationOnly
	AdditionalValidation
)

Directories

Path Synopsis
Package enginetest supplies explicit declarations for admission fixtures.
Package enginetest supplies explicit declarations for admission fixtures.

Jump to

Keyboard shortcuts

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