contextpack

package
v0.7.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(opts Options, blocks []parser.Block) []string

func EstimateTokens

func EstimateTokens(text string) int

func MinimumBudget

func MinimumBudget() int

func MinimumBudgetForLines

func MinimumBudgetForLines(lineCount int) int

func MinimumBudgetForOptions

func MinimumBudgetForOptions(opts Options, namedObjectCount int) int

func NamedObjectCount

func NamedObjectCount(blocks []parser.Block) int

Types

type Options

type Options struct {
	Namespace string
	File      string
	Task      string
	Focus     string
	MaxTokens int
}

Jump to

Keyboard shortcuts

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