llm

package
v8.166.0-rc.34 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Flavours gen.FlavourSlice
	Language string
}

type Finding

type Finding struct {
	// Path is relative to the repository root, with slashes.
	Path    string
	Problem string
	Fix     string
}

Finding is a reason to leave a repository unchanged.

type LLM

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

func New

func New(config Config) (*LLM, error)

func (*LLM) BaseLLMRules

func (l *LLM) BaseLLMRules() input.Input

func (*LLM) GoLLMRules

func (l *LLM) GoLLMRules() input.Input

type Mode

type Mode int

Mode selects what gen llm may change in a repository.

const (
	// DefaultMode handles repositories without instructions and repositories
	// whose AGENTS.md has a devctl-managed block. Alignment runs in this mode.
	DefaultMode Mode = iota
	// MigrationMode also moves existing instructions and skills.
	MigrationMode
)

type Report

type Report struct {
	Findings []Finding
}

Report lists the findings of a preflight. A repository with findings must not be changed.

func Preflight

func Preflight(ctx context.Context, root string, mode Mode) (Report, error)

Preflight checks the repository at root before any LLM output is written.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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