generation

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package generation compiles resolved model defaults into a fill-only Agent request policy. Explicit per-call request fields always win.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("coding generation: invalid request defaults")

ErrInvalid means resolved defaults cannot be represented by the target protocol.

Functions

This section is empty.

Types

type Policy

type Policy func(*ai.Request)

Policy applies immutable fill-only defaults to a request.

func Compile

func Compile(model modelcatalog.ResolvedModel) (Policy, error)

Compile validates and compiles one resolved snapshot. It performs no I/O.

Jump to

Keyboard shortcuts

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