planning

package
v0.2.0-beta.4 Latest Latest
Warning

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

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

Documentation

Overview

Package planning turns researched UI maps into prioritized, deduplicated test scenarios through one model conversation per iteration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Planner

type Planner struct {
	LLM explore.LLM
	// Knowledge optionally supplies operator hints matched to the
	// screen; nil means no hints.
	Knowledge explore.KnowledgeStore
}

Planner implements explore.Planner on top of one chat model.

func (*Planner) PlanNext

func (p *Planner) PlanNext(ctx context.Context, request explore.PlanRequest) ([]explore.Scenario, error)

PlanNext asks the model for up to request.Budget scenarios grounded in the researched map, validates the reply, drops rejected and repeated entries, and stamps the survivors with style, start screen, and pending status.

type Style

type Style struct {
	Name      string
	Directive string
}

Style pairs a planning style name with the prompt directive that shapes one planning iteration.

func LookupStyle

func LookupStyle(name string) (style Style, known bool)

LookupStyle resolves a style name. Unknown names fall back to the normal style with known reported false so callers can note the miss.

func Styles

func Styles() []Style

Styles returns the built-in planning styles in rotation order. The CLI lists these to the operator.

Jump to

Keyboard shortcuts

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