askintent

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractWorkflowPaths added in v0.2.1

func ExtractWorkflowPaths(prompt string) []string

func IsHardOverride added in v0.2.1

func IsHardOverride(decision Decision) bool

Types

type Decision

type Decision struct {
	Route           Route
	Confidence      float64
	Reason          string
	Target          Target
	AllowGeneration bool
	AllowRetry      bool
	RequiresLint    bool
	LLMPolicy       LLMPolicy
}

func Classify

func Classify(input Input) Decision

type Input

type Input struct {
	Prompt          string
	CreateFlag      bool
	EditFlag        bool
	ReviewFlag      bool
	HasWorkflowTree bool
	HasPrepare      bool
	HasApply        bool
}

type LLMPolicy

type LLMPolicy string
const (
	LLMDisallowed LLMPolicy = "disallowed"
	LLMOptional   LLMPolicy = "optional"
	LLMRequired   LLMPolicy = "required"
)

type Route

type Route string
const (
	RouteClarify  Route = "clarify"
	RouteQuestion Route = "question"
	RouteExplain  Route = "explain"
	RouteReview   Route = "review"
	RouteRefine   Route = "refine"
	RouteDraft    Route = "draft"
)

func ParseRoute

func ParseRoute(value string) Route

type Target

type Target struct {
	Kind string
	Path string
	Name string
}

Jump to

Keyboard shortcuts

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