complexity

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package complexity provides task complexity analysis functionality. This package is independent to avoid circular imports between agent and perception packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

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

Analyzer analyzes task complexity

func NewAnalyzer

func NewAnalyzer() *Analyzer

NewAnalyzer creates a new complexity analyzer

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(taskDescription string) *Score

Analyze analyzes the complexity of a task description

func (*Analyzer) ShouldDecompose

func (a *Analyzer) ShouldDecompose(taskDescription string) bool

ShouldDecompose returns true if the task should be decomposed

type Score

type Score struct {
	Score       int      `json:"score"`
	Factors     []string `json:"factors"`
	ShouldSplit bool     `json:"should_split"`
}

Score represents the complexity of a task

Jump to

Keyboard shortcuts

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